Compile x86 rtld with -mno-sse -mno-mmx
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
4         * stdlib/stdlib.h (atof): Moved to ...
5         * include/bits/stdlib-float.h: Here.  New file.
6         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
7         * stdlib/bits/stdlib-float.h: New file.
8         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
9         -mno-sse -mno-mmx.
10         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
11         <xmmintrin.h>.
12
13 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
14
15         * conform/conformtest.pl (@headers): Add fenv.h.
16         * conform/data/fenv.h-data: New file.
17         * include/fenv.h [_ISOMAC]: Disable all contents of file except
18         include of <math/fenv.h>.
19
20         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
21         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
22         && !UNIX98].  Enables tests for XOPEN2K8.
23         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
24         POSIX2008]: Likewise.
25
26         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
27         (struct rusage): Do not expect type or its members.
28
29         [BZ #3439]
30         * math/math.h (FP_NAN): Define macro to integer constant usable in
31         #if and use that to give value to enum constant.
32         (FP_INFINITE): Likewise.
33         (FP_ZERO): Likewise.
34         (FP_SUBNORMAL): Likewise.
35         (FP_NORMAL): Likewise.
36
37 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
38
39         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
40         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
41         arguments.
42
43 2012-11-02  Roland McGrath  <roland@hack.frob.com>
44
45         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
46         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
47         autoconf-time if not.
48         * configure.in: Remove AC_PREREQ.
49
50 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
51
52         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
53         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
54         of the internal implementation.
55
56 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
57
58         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
59         except include of <misc/sys/syslog.h>.
60
61 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
62
63         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
64         function returns with a NULL context exit with zero.
65
66 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
67
68         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
69
70 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
71
72         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
73         (run_program_cmd): This.
74         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
75         (tst_langinfo): New variable.  Use it.
76
77 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
78
79         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
80         floating point opcodes.
81
82 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
83
84         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
85         variable.
86
87         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
88
89         * sysdeps/mach/hurd/powerpc: Remove directory.
90         * sysdeps/mach/powerpc: Likewise.
91
92 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
93
94         * scripts/check-local-headers.sh: Ignore c++ headers.
95
96 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
97
98         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
99         __libc_cleanup_region_start argument.
100
101 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
102
103         [BZ #14784]
104         [BZ #14785]
105         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
106         x * y using scaling, not as x * y + z.
107         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
108         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
109         * math/libm-test.inc (fma_test): Add more tests.
110         (fma_test_towardzero): Likewise.
111         (fma_test_downward): Likewise.
112         (fma_test_upward): Likewise.
113
114 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
115
116         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
117
118 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
119
120         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
121         New variable.
122
123 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
124
125         * rt/tst-shm.c (worker): Correct checking for mmap failure.
126
127 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
128
129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
130         Fix sort order.
131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
132         Likewise.
133
134 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
135
136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
137         Fix the order of the list for glibc 2.17.
138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
139         Likewise.
140
141 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
142
143         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
144
145 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
146
147         [BZ #14610]
148         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
149         for low part of x being zero before using __atanl (y).
150         * math/libm-test.inc (atan2_test): Add another test.
151
152         * manual/install.texi (Configuring and compiling): Document
153         general use of test-wrapper and test-wrapper-env.
154         * INSTALL: Regenerated.
155
156         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
157         (__fma): Do not extract and scale down low bits on after-rounding
158         systems when result rounded to normal precision would have normal
159         exponent.
160         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
161         (__fmal): Do not extract and scale down low bits on after-rounding
162         systems when result rounded to normal precision would have normal
163         exponent.
164         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
165         (__fmal): Do not extract and scale down low bits on after-rounding
166         systems when result rounded to normal precision would have normal
167         exponent.
168         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
169         macro.
170         (fma_test): Add more tests.
171         (fma_test_towardzero): Likewise.
172         (fma_test_downward): Likewise.
173         (fma_test_upward): Likewise.
174
175 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
176
177         * sysdeps/i386/tininess.h: Renamed to ...
178         * sysdeps/x86/tininess.h: This.
179         * sysdeps/x86_64/tininess.h: Removed.
180
181 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
182
183         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
184         input.  Use $(build-program-cmd).
185         ($(objpfx)tst-array1-static.out): Likewise.
186         ($(objpfx)tst-array2.out): Likewise.
187         ($(objpfx)tst-array3.out): Likewise.
188         ($(objpfx)tst-array4.out): Likewise.
189         ($(objpfx)tst-array5.out): Likewise.
190         ($(objpfx)tst-array5-static.out): Likewise.
191
192 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
193
194         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
195         if defined.
196
197         * nss/nsswitch.h (nss_interface_function): Provide new
198         macro for use with NSS functions.
199         * grp/initgroups.c: Use new macro.
200         * nss/getXXbyYY.c: Likewise.
201         * nss/getXXbyYY_r.c: Likewise.
202         * nss/getXXent.c: Likewise.
203         * nss/getXXent_r.c: Likewise.
204         * sysdeps/posix/getaddrinfo.c: Likewise.
205
206 2012-10-30  Andreas Jaeger  <aj@suse.de>
207
208         * po/ru.po: Update Russion translation from translation project.
209
210 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
211
212         [BZ #14152]
213         [BZ #14783]
214         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
215         result and shift together with sticky bit instead of replicating
216         round-to-nearest rounding.
217         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
218         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
219         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
220         missing underflow exceptions.
221         (fma_test_towardzero): Add more tests.
222         (fma_test_downward): Likewise.
223         (fma_test_upward): Likewise.
224
225         [BZ #14047]
226         * sysdeps/generic/tininess.h: New file.
227         * sysdeps/i386/tininess.h: Likewise.
228         * sysdeps/sh/tininess.h: Likewise.
229         * sysdeps/x86_64/tininess.h: Likewise.
230         * stdlib/tst-strtod-underflow.c: Likewise.
231         * stdlib/tst-tininess.c: Likewise.
232         * stdlib/strtod_l.c: Include <tininess.h>.
233         (round_and_return): Do not set errno for exact underflow cases.
234         Force an underflow exception when setting errno for underflow.
235         Determine underflow based on rounding to normal precision if
236         TININESS_AFTER_ROUNDING.
237         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
238         ERANGE for exact underflow cases.
239         * stdlib/Makefile (tests): Add tst-tininess and
240         tst-strtod-underflow.
241         ($(objpfx)tst-tininess): Use $(link-libm).
242         ($(objpfx)tst-strtod-underflow): Likewise.
243
244 2012-10-30  Andreas Jaeger  <aj@suse.de>
245
246         [BZ#14767]
247         * elf/Makefile (tests): Remove conditional for have-initfini-array
248         since this is now always required and the variable does not exist
249         anymore.
250         (tests-static): Likewise.
251         (modules-names): Likewise.
252
253         * po/eo.po: Add Esperanto translation from translation project.
254
255         * elf/tst-array1.c (fini_array): Make writeable so that it can be
256         merged with constructor/destructor.
257         (init_array): Likewise.
258         * elf/tst-array2dep.c (fini_array): Likewise.
259         (init_array): Likewise.
260
261 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
262
263         * manual/message.texi: Delete @cartouche tags.
264
265 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
266
267         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
268         EOPNOTSUPP.
269         * sysdeps/mach/hurd/fsync.c: Likewise.
270
271         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
272         [_POSIX_REALTIME_SIGNALS]: Change condition to
273         [_POSIX_REALTIME_SIGNALS > 0].
274
275 2012-10-27  Andreas Jaeger  <aj@suse.de>
276
277         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
278         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
279         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
280         [__WORDSIZE != 64]: Likewise.
281
282 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
283
284         *  iconvdata/tst-table.sh: Remove ${SHELL}.
285         *  iconvdata/tst-tables.sh: Likewise.
286
287 2012-10-25  David S. Miller  <davem@davemloft.net>
288
289         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
290         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
291         of strtoull.
292
293         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
294         ifunc-impl-list.c
295         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
296         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
297         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
298         file.
299
300 2012-10-25  Roland McGrath  <roland@hack.frob.com>
301
302         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
303         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
304         __getdirentries.
305
306 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
307             Jim Blandy  <jimb@codesourcery.com>
308
309         * scripts/cross-test-ssh.sh: New file.
310         * manual/install.texi (Configuring and compiling): Document use of
311         cross-test-ssh.sh.
312         * INSTALL: Regenerated.
313
314 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
315
316         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
317         EOPNOTSUPP.
318
319 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
320
321         * Makeconfig (run-program-prefix): Fix comment.
322
323 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
324             Jim Blandy  <jimb@codesourcery.com>
325
326         * Makeconfig (test-wrapper): New variable,
327         (test-wrapper-env): Likewise.
328         [$(cross-compiling) = yes && $(test-wrapper) != ""]
329         (run-built-tests): Define to yes.
330         (run-program-prefix): Use $(test-wrapper).
331         (built-program-cmd): Likewise.
332         * Rules (make-test-out): Use $(test-wrapper-env) and
333         $(host-built-program-cmd).
334         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
335         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
336         tst-pathopt.sh.
337         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
338         $(test-wrapper-env) to tst-rtld-load-self.sh.
339         ($(objpfx)order2.out): Use $(test-wrapper).
340         ($(objpfx)tst-initorder.out): Likewise.
341         ($(objpfx)tst-initorder2.out): Likewise.
342         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
343         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
344         (test_wrapper_env): New variable.  Use it to run ld.so.
345         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
346         Use it to run ld.so.
347         (test_wrapper_env): Likewise.
348         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
349         $(test-wrapper) to run-iconv-test.sh.
350         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
351         (ICONV): Use $test_wrapper.
352         * posix/Makefile ($(objpfx)globtest.out): Pass
353         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
354         globtest.sh, not $(run-program-prefix).
355         * posix/globtest.sh (run_via_rtld_prefix): New variable.
356         (test_wrapper): Likewise.
357         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
358         set together with run_via_rtld_prefix.
359         (run_program_prefix): Define in terms of test_wrapper and
360         run_via_rtld_prefix.
361
362 2012-10-24  Roland McGrath  <roland@hack.frob.com>
363
364         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
365         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
366         Targets removed.
367
368         [BZ #14743]
369         * include/time.h: Remove librt_hidden_proto (clock_gettime).
370         Declare __clock_getres, __clock_gettime, __clock_settime,
371         __clock_nanosleep, and __clock_getcpuclockid.
372         * rt/clock_gettime.c: Define __clock_gettime as an alias.
373         Remove librt_hidden_def (clock_gettime).
374         * sysdeps/unix/clock_gettime.c: Likewise.
375         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
376         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
377         * rt/clock_getres.c: Define __clock_getres as an alias.
378         * sysdeps/posix/clock_getres.c: Likewise.
379         * rt/clock_settime.c: Define __clock_settime as an alias.
380         * sysdeps/unix/clock_settime.c: Likewise.
381         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
382         * sysdeps/unix/clock_nanosleep.c: Likewise.
383         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
384         * rt/clock-compat.c: New file.
385         * rt/Makefile (librt-routines): Add clock-compat and move
386         $(clock-routines) to ...
387         (routines): ... here, new variable.
388         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
389         Don't add get_clockfreq here.
390         * rt/Versions (libc: GLIBC_2.17): New version set.
391         Add clock_* symbols here.
392         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
393         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
394         (GLIBC_2.17): Add clock_* symbols.
395         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
397         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
399         Likewise.
400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
401         Likewise.
402         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
403         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
404         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
406         * NEWS: Mention the move.
407
408         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
409         Use __open, __read, __close rather than their public counterparts.
410         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
411         (__get_clockfreq_via_cpuinfo): Likewise.
412         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
413         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
414
415         * config.h.in (HAVE_IFUNC): New #undef.
416         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
417         was successful.
418         * configure: Regenerated.
419
420 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
421
422         * configure.in: Move READELF check to start of file.
423         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
424         libc_cv_asm_gnu_indirect_function in the process.
425         * configure: Regenerated.
426
427 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
428
429         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
430         send the output to /dev/null.
431         (libc_cv_cc_with_libunwind): Likewise.
432         (libc_cv_as_noexecstack): Likewise.
433         * configure: Regenerate.
434
435 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
436
437         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
438
439         * posix/globtest.sh (TMPDIR): Do not set.
440         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
441         (testout): Likewise.
442
443 2012-10-24  Andreas Jaeger  <aj@suse.de>
444
445         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
446         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
447         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
448         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
449         posix_fadvise64, posix_fallocate64.
450
451         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
452         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
453         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
454         Likewise.
455         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
456         Likewise.
457         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
458
459         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
460         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
461         <bits/fcntl-linux.h>.
462         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
463
464         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
465         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
466         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
467         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
468         [__WORDSIZE != 64]: Likewise.
469
470 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
471
472         * Makeconfig (run-built-tests): New variable.
473         * Rules [$(cross-compiling) = yes]: Change condition to
474         [$(run-built-tests) = no].
475         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
476         to [$(run-built-tests) = yes].
477         * elf/Makefile [$(cross-compiling) = no]: Likewise
478         * grp/Makefile [$(cross-compiling) = no]: Likewise.
479         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
480         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
481         * intl/Makefile [$(cross-compiling) = no]: Likewise.
482         * io/Makefile [$(cross-compiling) = no]: Likewise.
483         * libio/Makefile [$(cross-compiling) = no]: Likewise.
484         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
485         * misc/Makefile [$(cross-compiling) = no]: Likewise.
486         * posix/Makefile [$(cross-compiling) = no]: Likewise.
487         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
488         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
489         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
490         * string/Makefile [$(cross-compiling) = no]: Likewise.
491
492         * posix/Makefile ($(objpfx)globtest.out): Pass
493         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
494         $(rtld-installed-name).
495         * posix/globtest.sh (elf_objpfx): Remove variable.
496         (rtld_installed_name): Likewise.
497         (library_path): Likewise.
498         (run_program_prefix): New variable.  Use for running globtest
499         binary.
500
501 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
502             Joseph Myers  <joseph@codesourcery.com>
503
504         * Makeconfig (host-built-program-cmd): New variable.
505         * elf/Makefile (tst-stackguard1-ARGS): Use
506         $(host-built-program-cmd).
507         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
508         (tst-spawn-ARGS): Likewise.
509         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
510
511 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
512             Jim Blandy  <jimb@codesourcery.com>
513
514         * Makeconfig (run-via-rtld-prefix): New variable.
515         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
516         (built-program-cmd): Likewise.
517
518 2012-10-22  Andreas Jaeger  <aj@suse.de>
519
520         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
521         __O_RSYNC if it exists, otherwise to O_SYNC.
522
523 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
524             Joseph Myers  <joseph@codesourcery.com>
525
526         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
527         /dev/null.
528         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
529         from /dev/null
530         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
531         /dev/null.
532
533 2012-10-22  Andreas Jaeger  <aj@suse.de>
534
535         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
536         Define always.
537         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
538
539         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
540         bits/fcntl-linux.h.
541
542         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
543         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
544
545         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
546         to __O_LARGEFILE.
547         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
548         to __O_LARGEFILE.
549
550 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
551             Joseph Myers  <joseph@codesourcery.com>
552
553         * config.make.in (NM): New variable.
554
555 2012-10-21  Andreas Jaeger  <aj@suse.de>
556
557         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
558         definitions and declarations that are provided by
559         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
560
561 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
562
563         [BZ #14683]
564         * elf/Makefile (tests-static): Add tst-leaks1-static.
565         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
566         ($(objpfx)tst-leaks1-static): New rule.
567         ($(objpfx)tst-leaks1-static-mem): Likewise.
568         (tst-leaks1-static-ENV): New macro.
569         * elf/dl-open.c (dl_open_worker): Check the main application
570         only if SHARED is defined.
571         * elf/tst-leaks1-static.c: New file.
572
573 2012-10-20  Andreas Jaeger  <aj@suse.de>
574
575         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
576         generic values for Linux.
577         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
578         and declarations that are provided by <bits/fcntl-linux.h> and
579         include <bits/fcntl-linux.h>.
580         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
581         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
582
583 2012-10-20  Roland McGrath  <roland@hack.frob.com>
584
585         * io/fcntl.h: Move include of <bits/types.h> to the top and
586         include it unconditionally.
587
588 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
589
590         * wcsmbs/Makefile (tests-ifunc): New variable.
591         (tests): Add $(tests-ifunc).
592         * wcsmbs/test-wcschr-ifunc.c: New file.
593         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
594         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
595         * wcsmbs/test-wcslen-ifunc.c: Likewise.
596         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
597         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
598
599         * string/Makefile (tests-ifunc): New variable.
600         (tests): Add $(tests-ifunc).
601         * string/test-memccpy.c (TEST_NAME): New macro.
602         * string/test-memchr.c (TEST_NAME): Likewise.
603         * string/test-memcmp.c (TEST_NAME): Likewise.
604         * string/test-memcpy.c (TEST_NAME): Likewise.
605         * string/test-memmem.c (TEST_NAME): Likewise.
606         * string/test-memmove.c (TEST_NAME): Likewise.
607         * string/test-memset.c (TEST_NAME): Likewise.
608         * string/test-rawmemchr.c (TEST_NAME): Likewise.
609         * string/test-stpcpy.c (TEST_NAME): Likewise.
610         * string/test-stpncpy.c (TEST_NAME): Likewise.
611         * string/test-strcasecmp.c (TEST_NAME): Likewise.
612         * string/test-strcasestr.c (TEST_NAME): Likewise.
613         * string/test-strcat.c (TEST_NAME): Likewise.
614         * string/test-strchr.c (TEST_NAME): Likewise.
615         * string/test-strcmp.c(TEST_NAME): Likewise.
616         * string/test-strcpy.c (TEST_NAME): Likewise.
617         * string/test-strcspn.c (TEST_NAME): Likewise.
618         * string/test-strlen.c (TEST_NAME): Likewise.
619         * string/test-strncasecmp.c (TEST_NAME): Likewise.
620         * string/test-strncmp.c (TEST_NAME): Likewise.
621         * string/test-strncpy.c (TEST_NAME): Likewise.
622         * string/test-strnlen.c (TEST_NAME): Likewise.
623         * string/test-strpbrk.c (TEST_NAME): Likewise.
624         * string/test-strrchr.c (TEST_NAME): Likewise.
625         * string/test-strspn.c (TEST_NAME): Likewise.
626         * string/test-strstr.c (TEST_NAME): Likewise.
627         * string/test-bcopy-ifunc.c: New file.
628         * string/test-bzero-ifunc.c: Likewise.
629         * string/test-memccpy-ifunc.c: Likewise.
630         * string/test-memchr-ifunc.c: Likewise.
631         * string/test-memcmp-ifunc.c: Likewise.
632         * string/test-memcpy-ifunc.c: Likewise.
633         * string/test-memmem-ifunc.c: Likewise.
634         * string/test-memmove-ifunc.c: Likewise.
635         * string/test-mempcpy-ifunc.c: Likewise.
636         * string/test-memset-ifunc.c: Likewise.
637         * string/test-rawmemchr-ifunc.c: Likewise.
638         * string/test-stpcpy-ifunc.c: Likewise.
639         * string/test-stpncpy-ifunc.c: Likewise.
640         * string/test-strcasecmp-ifunc.c: Likewise.
641         * string/test-strcasestr-ifunc.c: Likewise.
642         * string/test-strcat-ifunc.c: Likewise.
643         * string/test-strchr-ifunc.c: Likewise.
644         * string/test-strchrnul-ifunc.c: Likewise.
645         * string/test-strcmp-ifunc.c: Likewise.
646         * string/test-strcpy-ifunc.c: Likewise.
647         * string/test-strcspn-ifunc.c: Likewise.
648         * string/test-strlen-ifunc.c: Likewise.
649         * string/test-strncasecmp-ifunc.c: Likewise.
650         * string/test-strncat-ifunc.c: Likewise.
651         * string/test-strncmp-ifunc.c: Likewise.
652         * string/test-strncpy-ifunc.c: Likewise.
653         * string/test-strnlen-ifunc.c: Likewise.
654         * string/test-strpbrk-ifunc.c: Likewise.
655         * string/test-strrchr-ifunc.c: Likewise.
656         * string/test-strspn-ifunc.c: Likewise.
657         * string/test-strstr-ifunc.c: Likewise.
658
659         * debug/Makefile (tests-ifunc): New variable.
660         (tests): Add $(tests-ifunc).
661         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
662         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
663         * debug/test-stpcpy_chk-ifunc.c: New file.
664         * debug/test-strcpy_chk-ifunc.c: Likewise.
665
666 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
667
668         [BZ #13601]
669         * elf/dl-load.c (open_verify): Retry read if the entire ELF
670         header is not read in.
671
672 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
673
674         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
675         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
676         directly.  Pass built executable to script as
677         $(built-program-cmd).
678         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
679         $testprogram without using LD_LIBRARY_PATH and $ldso.
680
681         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
682         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
683         $(rtld-installed-name).
684         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
685         (rtld_installed_name): Likewise.
686         (library_path): Likewise.
687         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
688         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
689         $(run-program-prefix) to tst-tables.sh.
690         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
691         it to run tst-table-from and tst-table-to.
692         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
693         Pass it to tst-table.sh.
694         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
695         $(run-program-prefix) to tst-gettext.sh.
696         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
697         tst-translit.sh.
698         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
699         tst-gettext2.sh.
700         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
701         to run tst-gettext.
702         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
703         to run tst-gettext2.
704         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
705         to run tst-translit.
706         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
707         $(run-program-prefix) to tst-mtrace.sh.
708         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
709         to run tst-mtrace.
710         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
711         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
712         $(rtld-installed-name).
713         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
714         (rtld_installed_name): Likewise.
715         (run_program_prefix): New variable.  Use it to run wordexp-test.
716
717         * Makeconfig (ARCH): Remove all definitions.
718         (machine): Likewise.
719         [ARCH]: Remove conditional code.
720         [!objdir]: Give error.
721         [!objdir] (objpfx): Remove.
722         [!objdir] (common-objpfx): Likewise.
723         [!objdir] (common-objdir): Likewise.
724         * configure.in (config_makefile): Remove.  Hardcode Makefile in
725         AC_CONFIG_FILES call.
726         * configure: Regenerated.
727
728         [BZ #13888]
729         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
730         or TMPDIR.
731         (testout): Likewise.
732
733         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
734         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
735         $(rtld-installed-name).
736         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
737         (rtld_installed_name): Likwise.
738         (runit): Remove function.
739         (run_getconf): New variable,  Use it for running getconf binary.
740
741 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
742
743         [BZ #14716]
744         * string/test-memmem.c (check_result): New function.
745         (do_one_test): Use it.
746         (check1): New function.
747         (test_main): Use it.
748
749 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
750
751         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
752
753 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
754
755         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
756         (_G_LSEEK64): Likewise.
757         (_G_MMAP64): Likewise.
758         (_G_FSTAT64): Likewise.
759         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
760         (_G_LSEEK64): Likewise.
761         (_G_MMAP64): Likewise.
762         (_G_FSTAT64): Likewise.
763         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
764         unconditional.  Call __mmap64 directly.
765         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
766         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
767         __lseek64 directly.
768         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
769         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
770         __mmap64 directly.
771         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
772         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
773         __lseek64 directly.
774         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
775         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
776         __lseek64 directly.
777         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
778         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
779         __lseek64 directly.
780         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
781         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
782         __fxstat64 directly.
783         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
784         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
785         unconditional.
786         (freopen64) [!_G_OPEN64]: Remove conditional code.
787         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
788         unconditional.
789         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
790         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
791         unconditional.
792         (ftello64) [!_G_LSEEK64]: Remove conditional code.
793         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
794         unconditional.
795         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
796         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
797         unconditional.
798         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
799         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
800         unconditional.
801         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
802         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
803         unconditional.
804         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
805         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
806         unconditional.
807         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
808
809 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
810
811         [BZ #12140]
812         * manual/memory.texi (Malloc Tunable Parameters): Add note
813         about free list pointers overwriting some perturb bytes.
814         Wording suggested by Roland McGrath.
815
816 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
817
818         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
819         (lgamma_test): Likewise.
820         (tgamma_test): Likewise.
821
822 2012-10-16  Florian Weimer  <fweimer@redhat.com>
823
824         [BZ #14700]
825         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
826         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
827
828 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
829
830         * NEWS: Mention BZ #14716.
831         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
832         when removing AVAILABLE1_USES_J macro.
833
834 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
835
836         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
837         (__bswap_64): __uint64_t for unsigned 64-bit int.
838
839 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
840
841         * include/string.h (memmem): Declare libc hidden alias.
842         * string/memmem.c (memmem): Define libc hidden alias.
843         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
844         __read, __close instead of open, read, close.
845
846 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
847
848         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
849         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
850         global and hidden.
851         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
852         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
853         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
854         Likewise.
855         (__rawmemchr_sse2): Likewise.
856         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
857         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
858         (__strchr_sse2): Likewise.
859         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
860         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
861         (__strcasecmp_sse2): Likewise.
862         (__strncasecmp_sse2): Likewise.
863         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
864         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
865         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
866         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
867         (__strrchr_sse2): Likewise.
868         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
869         ifunc-impl-list.c.
870         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
871         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
872         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
873         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
874         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
875         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
876         * sysdeps/x86_64/multiarch/memset.S: Likewise.
877         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
878         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
879         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
880         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
881         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
882         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
883         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
884         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
885         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
886         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
887         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
888         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
889         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
890         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
891         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
892         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
893         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
894         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
895         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
896         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
897         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
898         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
899         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
900
901         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
902         global and hidden.
903         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
904         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
905         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
906         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
907         Likewise.
908         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
909         Likewise.
910         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
911         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
912         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
913         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
914         ifunc-impl-list.c.
915         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
916         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
917         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
918         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
919         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
920         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
921         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
922         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
923         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
924         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
925         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
926         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
927         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
928         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
929         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
930         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
931         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
932         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
933         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
934         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
935         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
936         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
937         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
938         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
939         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
940         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
941         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
942         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
943         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
944         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
945         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
946         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
947         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
948         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
949         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
950         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
951         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
952         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
953         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
954         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
955         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
956
957         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
958         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
959         * include/ifunc-impl-list.h: New file.
960         * misc/ifunc-impl-list.c: Likewise.
961         * misc/Makefile (routines): Add ifunc-impl-list.
962         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
963         * string/test-string.h: Include <ifunc-impl-list.h>.
964         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
965         impl_array): New variables.
966         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
967         are defined.
968         (test_init): Call __libc_ifunc_impl_list to initialize
969         func_list if TEST_IFUNC and TEST_NAME are defined.
970
971         * string/Makefile (strop-tests): Add bcopy and bzero.
972         * string/test-bcopy.c: New file.
973         * string/test-bzero.c: Likewise.
974         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
975         defined.
976         * string/test-memset.c: Support bzero test if TEST_BZERO is
977         defined.
978         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
979         __libc_memmove.
980         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
981         __libc_memset.
982         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
983         of memset.
984
985 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
986
987         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
988         * configure: Regenerated.
989
990         * Makeconfig (+link-static-before-libc): Don't include
991         $(link-static-libc).
992
993         * libio/libio.h (_IO_pos_t): Remove.
994
995 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
996
997         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
998         McGrath.
999
1000 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1001
1002         * crypt/crypt-entry.c: Include fips-private.h.
1003         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1004         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1005         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1006         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1007
1008 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1009
1010         * crypt/crypt-private.h: Include stdbool.h.
1011         (_ufc_setup_salt_r): Return bool.
1012         * crypt/crypt-entry.c: Include errno.h.
1013         (__crypt_r): Return NULL with EINVAL for bad salt.
1014         * crypt/crypt_util.c (bad_for_salt): New.
1015         (_ufc_setup_salt_r): Check that salt is long enough and within
1016         the specified alphabet.
1017         * crypt/badsalttest.c: New file.
1018         * crypt/Makefile (tests): Add it.
1019         ($(objpfx)badsalttest): New.
1020
1021 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1022
1023         * NEWS: Add entry for BZ #14602.
1024
1025 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1026
1027         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1028         type-generic.
1029         * math/libm-test.inc: Update comment listing what functions and
1030         macros are tested.
1031         (isgreater_test): New function.
1032         (isgreaterequal_test): Likewise.
1033         (isless_test): Likewise.
1034         (islessequal_test): Likewise.
1035         (islessgreater_test): Likewise.
1036         (isunordered_test): Likewise.
1037         (main): Call the new functions.
1038
1039 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1040
1041         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1042         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1043         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1044         * sysdeps/i386/configure: Regenerated.
1045         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1046         * sysdeps/mach/configure: Regenerated.
1047         * sysdeps/mach/hurd/configure: Regenerated.
1048         * sysdeps/powerpc/configure: Regenerated.
1049         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1050         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1051         * sysdeps/s390/s390-32/configure: Regenerated.
1052         * sysdeps/s390/s390-64/configure: Regenerated.
1053         * sysdeps/sh/configure: Regenerated.
1054         * sysdeps/sparc/configure: Regenerated.
1055         * sysdeps/unix/sysv/linux/configure: Regenerated.
1056         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1057         * sysdeps/x86_64/configure: Regenerated.
1058
1059         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1060         defined.  Don't check if MAP is NULL.
1061
1062 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1063
1064         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1065         (_G_stat64): Likewise.
1066         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1067         (_G_stat64): Likewise.
1068         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1069         instead of struct _G_stat64.
1070         * libio/fileops.c (mmap_remap_check): Likewise.
1071         (decide_maybe_mmap): Likewise.
1072         (_IO_new_file_seekoff): Likewise.
1073         (_IO_file_stat): Likewise.
1074         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1075         _G_off64_t.
1076         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1077         instead of struct _G_stat64.
1078         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1079
1080 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1081
1082         [BZ #14602]
1083         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1084         Replace with ...
1085         (CHECK_EOL): New macro.
1086         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1087         CHECK_EOL.
1088         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1089         Replace with CHECK_EOL.
1090         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1091         Replace with CHECK_EOL.
1092
1093 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1094
1095         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1096         type-generic.
1097         * math/libm-test.inc: Update comment listing what functions and
1098         macros are tested.
1099         (finite_test): New function.
1100         (isinf_test): Likewise.
1101         (isnan_test): Likewise.
1102         (fpclassify_test): Test subnormal input.
1103         (isfinite_test): Likewise.
1104         (isnormal_test): Likewise.
1105         (main): Call the new functions.
1106
1107 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1108
1109         [BZ #14660]
1110         * Makerules (%.dynsym): Force C locale when running
1111         $(OBJDUMP) --dynamic-syms.
1112
1113 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1114
1115         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1116         <stdint.h>.
1117
1118 2012-10-06  David S. Miller  <davem@davemloft.net>
1119
1120         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1121         upper 32-bits of the length value in %o2 since we use branch-on-register
1122         tests which consider the entire 64-bit register.
1123
1124 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1125
1126         * string/test-strstr.c (check2): Add a test for page boundary.
1127
1128 2012-10-05  David S. Miller  <davem@davemloft.net>
1129
1130         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1131         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1132         file.
1133         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1134         sysdep_routines.
1135         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1136         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1137         and bzero when HWCAP_SPARC_CRYPTO is present.
1138
1139 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1140
1141         [BZ #14602]
1142         * string/test-strstr.c (check2): New function.
1143         (test_main): Call check2.
1144
1145         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1146         and bug-strchr1.
1147         * string/bug-strcasestr1.c (do_test): Moved to ...
1148         * string/test-strcasestr.c (check1): Here.  New function.
1149         (do_one_test): Break out result checking code into ...
1150         (check_result): This.  New function.
1151         (do_one_test): Call check_result.
1152         (test_main): Call check1.
1153         * string/bug-strchr1.c (do_test): Moved to ...
1154         * string/test-strchr.c (check1): Here.  New function.
1155         (do_one_test): Break out result checking code into ...
1156         (check_result): This.  New function.
1157         (do_one_test): Call check_result.
1158         (test_main): Call check1.
1159         * string/bug-strstr1.c (main): Moved to ...
1160         * string/test-strchr.c (check1): Here.  New function.
1161         (do_one_test): Break out result checking code into ...
1162         (check_result): This.  New function.
1163         (do_one_test): Call check_result.
1164         (test_main): Call check1.
1165         * string/bug-strcasestr1.c: Removed.
1166         * string/bug-strchr1.c: Likewise.
1167         * string/bug-strstr1.c: Likewise.
1168
1169         * elf/Makefile (dl-routines): Add hwcaps.
1170         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1171         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1172         (_dl_important_hwcaps): Moved to ...
1173         * elf/dl-hwcaps.c: Here.  New file.
1174         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1175
1176         [BZ #14557]
1177         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1178         if IS_IN_rtld isn't defined.
1179
1180         * elf/dl-support.c (_dl_sysinfo_map): New.
1181         Include "get-dynamic-info.h" and "setup-vdso.h".
1182         (_dl_non_dynamic_init): Call setup_vdso.
1183         * elf/dynamic-link.h: Don't include <assert.h>.
1184         (elf_get_dynamic_info): Moved to ...
1185         * elf/get-dynamic-info.h: Here.  New file.
1186         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1187         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1188         * elf/setup-vdso.h: Here.  New file.
1189         * elf/rtld.c: Include "setup-vdso.h".
1190         (dl_main): Call setup_vdso.
1191
1192 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1193
1194         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1195         creal in comment listing functions tested.  List finite, isinf,
1196         isnan, isless, islessequal, isgreater, isgreaterequal,
1197         islessgreater, isunordered, lgamma_r and pow10 as functions and
1198         macros not tested.  Mention which functions not tested are aliases
1199         for other functions.  Fix typo.  Note that signs of NaNs are not
1200         tested.
1201
1202         * scripts/config.guess: Update from config.git.
1203         * scripts/config.sub: Likewise.
1204
1205 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1206
1207         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1208         * misc/madvise.c (madvise): Renamed to __madvise.
1209         Make madvise a weak alias.
1210         * include/sys/mman.h: Declare __madvise.
1211         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1212         * sysdeps/unix/syscalls.list
1213         (madvise): Make __madvise the strong name, and madvise a weak alias.
1214         * sysdeps/unix/sysv/linux/syscalls.list
1215         (madvise, mmap): Remove redundant entries.
1216         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1217         * malloc/malloc.c (mtrim): Likewise.
1218         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1219
1220 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1221
1222         * sysdeps/mach/hurd/dl-cache.c: File removed.
1223         * config.h.in (USE_LDCONFIG): New #undef.
1224         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1225         * configure: Regenerated.
1226         * elf/Makefile (dl-routines): Add dl-cache only under
1227         [$(use-ldconfig) = yes].
1228         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1229         cache on [USE_LDCONFIG].
1230         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1231         [USE_LDCONFIG].
1232         * elf/rtld.c (dl_main): Likewise.
1233
1234 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1235
1236         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1237         _SC_LEVEL4_CACHE_LINESIZE.
1238
1239 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1240
1241         * sysdeps/unix/bsd/confstr.h: File removed.
1242
1243 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1244
1245         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1246         sys/sdt-config.h.
1247
1248 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1249
1250         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1251         Make 'mapoff' field ElfW(Off) rather than off_t.
1252
1253 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1254
1255         * nscd/Makefile: Remove nscd-cflags and all its users.
1256         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1257         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1258
1259         [BZ #10631]
1260         * malloc.c (malloc_printerr): Clarify error message.
1261
1262 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1263
1264         [BZ #14648]
1265         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1266         Set bit_FMA_Usable if FMA is supported.
1267         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1268         macro.
1269         (bit_FMA4_Usable): Updated.
1270         (index_FMA_Usable): New macro.
1271         (CPUID_FMA): Likewise
1272         (HAS_FMA): Defined with bit_FMA_Usable.
1273
1274 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1275
1276         * bits/types.h (__swblk_t): Type removed.
1277         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1278         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1279         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1280         (__SWBLK_T_TYPE): Likewise.
1281         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1282         (__SWBLK_T_TYPE): Likewise.
1283         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1284         (__SWBLK_T_TYPE): Likewise.
1285         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1286         (__SWBLK_T_TYPE): Likewise.
1287
1288 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1289             Honza Horak <hhorak@redhat.com>
1290
1291         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1292         (xdr_mapname): Use YPMAXMAP as maxsize.
1293         (xdr_peername): Use YPMAXPEER as maxsize.
1294         (xdr_keydat): Use YPAXRECORD as maxsize.
1295         (xdr_valdat): Use YPMAXRECORD as maxsize.
1296
1297 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1298
1299         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1300
1301         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1302         * csu/init-first.c: ... here.
1303         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1304         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1305         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1306         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1307         * sysdeps/i386/init-first.c: File removed.
1308         * sysdeps/sh/init-first.c: File removed.
1309
1310 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1311
1312         [BZ #14645]
1313         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1314         if x * y might underflow to zero and z is zero.
1315         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1316         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1317         * math/libm-test.inc (min_subnorm_value): New variable.
1318         (fma_test): Add more tests.
1319         (fma_test_towardzero): Likewise.
1320         (fma_test_downward): Likewise
1321         (fma_test_upward): Likewise.
1322         (initialize): Set min_subnorm_value.
1323
1324 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1325
1326         [BZ #14638]
1327         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1328         0 + 0.
1329         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1330         mode for addition resulting in exact zero.
1331         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1332         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1333         exact 0 + 0.
1334         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1335         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1336         * math/libm-test.inc (fma_test): Add more tests.
1337         (fma_test_towardzero): New function.
1338         (fma_test_downward): Likewise.
1339         (fma_test_upward): Likewise.
1340         (main): Call the new functions.
1341
1342 2012-09-28  David S. Miller  <davem@davemloft.net>
1343
1344         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1345
1346 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1347
1348         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1349         instead of SIGALRM.
1350
1351         * sysdeps/gnu/_G_config.h: Moved to ...
1352         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1353         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1354         * sysdeps/generic/_G_config.h: ... here.
1355
1356         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1357
1358         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1359
1360         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1361         Conditionalize target on [libnss_test1.so-version].
1362
1363         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1364
1365         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1366         (elfobjdir): Move out of conditionals.
1367
1368         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1369         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1370         (__nss_lookup_function): Conditionalize label remove_from_tree on
1371         [!DO_STATIC_NSS || SHARED], matching its only use.
1372
1373 2012-09-28  David S. Miller  <davem@davemloft.net>
1374
1375         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1376         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1377         file.
1378         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1379         sysdep_routines.
1380         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1381         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1382         when HWCAP_SPARC_CRYPTO is present.
1383
1384 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1385
1386         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1387
1388 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1389
1390         [BZ #6530]
1391         * stdio-common/vfprintf.c (process_string_arg): Revert
1392         2000-07-22 change.
1393
1394 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1395
1396         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1397         for testcase.
1398         * stdio-common/tst-sprintf.c: Include <locale.h>
1399         (main): Test sprintf's handling of incomplete multibyte
1400         characters.
1401
1402 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1403
1404         * elf/dl-runtime.c (VERSYMIDX): Removed.
1405         * elf/dl-version.c (VERSYMIDX): Likewise.
1406         * elf/do-rel.h (VERSYMIDX): Likewise.
1407         (VALIDX): Likewise.
1408         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1409         * elf/rtld.c (VALIDX): Likewise.
1410         (ADDRIDX): Likewise.
1411         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1412         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1413         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1414         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1415         (VALIDX): Likewise.
1416         (ADDRIDX): Likewise.
1417
1418 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1419
1420         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1421
1422 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1423
1424         [BZ #11438]
1425         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1426         to global scope.
1427         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1428         addresses are in the same scope as 192.0.2/24.
1429         * posix/gai.conf: Document new scope table defaults.
1430
1431 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1432
1433         [BZ #5298]
1434         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1435         for ftell.  Compute offsets from write pointers instead.
1436         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1437
1438 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1439
1440         [BZ #14543]
1441         * libio/Makefile (tests): New test case tst-fseek.
1442         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1443         combination works in wide mode.
1444         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1445         state when the external buffer state changes.
1446
1447 2012-09-27  David S. Miller  <davem@davemloft.net>
1448
1449         [BZ #14376]
1450         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1451         pass reloc->r_addend in as the 'high' argument to
1452         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1453
1454         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1455
1456 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1457
1458         * rt/tst-aio2.c: Include <pthread.h>.
1459         * rt/tst-aio3.c: Likewise.
1460
1461 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1462
1463         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1464
1465 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1466
1467         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1468         contents on [SHARED].
1469
1470 2012-09-26  Marek Polacek  <polacek@redhat.com>
1471
1472         [BZ #14530]
1473         [BZ #13741]
1474         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1475         for C++ and GCC <4.3 as well as for non GCC compilers.
1476
1477 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1478
1479         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1480
1481 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1482
1483         * Makefile.in (all, install): Declare with .PHONY.
1484         Reported by Michael Hope <michael.hope@linaro.org>.
1485
1486 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1487
1488         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1489         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1490         system header.
1491         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1492         Likewise.
1493         (sydep_routines): Add the new and the internal functions.
1494         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1495         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1497         (GLIBC_2.17): Add the new function.
1498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1499         (GLIBC_2.17): Likewise.
1500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1501         (GLIBC_2.17): Likewise.
1502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1503         (GLIBC_2.17): Likewise.
1504         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1505
1506 2012-09-25  Alan Modra  <amodra@gmail.com>
1507
1508         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1509         Add release barrier before setting once_control to say
1510         initialisation is done.  Add hints on lwarx.  Use macro in
1511         place of isync.
1512         (clear_once_control): Add release barrier.
1513
1514 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1515
1516         [BZ #13629]
1517         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1518         specially.
1519         * math/s_clog10.c (__clog10): Likewise.
1520         * math/s_clog10f.c (__clog10f): Likewise.
1521         * math/s_clog10l.c (__clog10l): Likewise.
1522         * math/s_clogf.c (__clogf): Likewise.
1523         * math/s_clogl.c (__clogl): Likewise.
1524         * math/Makefile (libm-calls): Add x2y2m1.
1525         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1526         (__x2y2m1): Likewise.
1527         (__x2y2m1l): Likewise.
1528         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1529         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1530         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1531         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1532         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1533         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1534         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1535         * sysdeps/i386/fpu/libm-test-ulps: Update.
1536         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1537
1538         [BZ #14621]
1539         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1540         int as type of variable DEPTH.
1541         (glob): Use size_t instead of int as type of variables NEWCOUNT
1542         and OLD_PATHC.
1543
1544 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1545
1546         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1547         Add s_sincosf-sse2.
1548         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1549         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1550         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1551         macros for using routine as __sincosf_ia32.
1552         Use macro for function declaration and weak_alias.
1553         * sysdeps/i386/fpu/libm-test-ulps: Update.
1554
1555         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1556         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1557
1558         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1559         subnormal argument.
1560         * math/s_cexpf.c (__cexpf): Likewise.
1561         * math/s_csinf.c (__csinf): Likewise.
1562         * math/s_csinhf.c (__csinhf): Likewise.
1563         * math/s_ctanf.c (__ctanf): Likewise.
1564         * math/s_ctanhf.c (__ctanhf): Likewise.
1565         * math/s_ccosh.c (__ccoshf): Likewise.
1566         * math/s_cexp.c (__cexpl): Likewise.
1567         * math/s_csin.c (__csin): Likewise.
1568         * math/s_csinh.c (__csinh): Likewise.
1569         * math/s_ctan.c (__ctan): Likewise.
1570         * math/s_ctanh.c (ctanh): Likewise.
1571         * math/s_ccoshl.c (__ccoshl): Likewise.
1572         * math/s_cexpl.c (__cexpl): Likewise.
1573         * math/s_csinl.c (__csinl): Likewise.
1574         * math/s_csinhl.c (__csinhl): Likewise.
1575         * math/s_ctanl.c (__ctanl): Likewise.
1576         * math/s_ctanhl.c (__ctanhl): Likewise.
1577
1578 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1579
1580         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1581         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1582         (_IO_off_t): Define to __off_t, not _G_off_t.
1583         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1584         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1585         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1586         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1587         type of __dummy and __dummy2 fields.
1588         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1589         (_G_ssize_t): Likewise.
1590         (_G_off_t): Likewise.
1591         (_G_pid_t): Likewise.
1592         (_G_uid_t): Likewise.
1593         (_G_wchar_t): Likewise.
1594         (_G_wint_t): Likewise.
1595         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1596         (_G_ssize_t): Likewise.
1597         (_G_off_t): Likewise.
1598         (_G_pid_t): Likewise.
1599         (_G_uid_t): Likewise.
1600         (_G_wchar_t): Likewise.
1601         (_G_wint_t): Likewise.
1602         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1603         (_G_ssize_t): Likewise.
1604         (_G_off_t): Likewise.
1605         (_G_pid_t): Likewise.
1606         (_G_uid_t): Likewise.
1607         (_G_wchar_t): Likewise.
1608         (_G_wint_t): Likewise.
1609
1610 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1611
1612         * malloc/arena.c: Include malloc-sysdep.h.
1613         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1614         is sufficient to shrink the heap or an unmap is needed.
1615         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1616         new function check_may_shrink_heap.
1617         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1618         new function check_may_shrink_heap.
1619
1620 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1621
1622         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1623         comments.
1624
1625 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1626
1627         * catgets/test-gencat.sh: Add "set -e".
1628         * elf/tst-pathopt.sh: Likewise.
1629         * grp/tst_fgetgrent.sh: Likewise.
1630         * iconvdata/run-iconv-test.sh: Likewise.
1631         * intl/tst-gettext.sh: Likewise.
1632         * intl/tst-gettext2.sh: Likewise.
1633         * intl/tst-gettext4.sh: Likewise.
1634         * intl/tst-gettext6.sh: Likewise.
1635         * intl/tst-translit.sh: Likewise.
1636         * io/ftwtest-sh: Likewise.
1637         * libio/test-freopen.sh: Likewise.
1638         * malloc/tst-mtrace.sh: Likewise.
1639         * posix/globtest.sh: Likewise.
1640         * posix/tst-getconf.sh: Likewise.
1641         * posix/wordexp-tst.sh: Likewise.
1642         * stdio-common/tst-printf.sh: Likewise.
1643         * stdio-common/tst-unbputc.sh: Likewise.
1644         * stdlib/tst-fmtmsg.sh: Likewise.
1645         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1646         * catgets/Makefile: Do not specify -e option when running
1647         testsuite shell scripts.
1648         * elf/Makefile: Likewise.
1649         * grp/Makefile: Likewise.
1650         * iconvdata/Makefile: Likewise.
1651         * intl/Makefile: Likewise.
1652         * io/Makefile: Likewise.
1653         * libio/Makefile: Likewise.
1654         * malloc/Makefile: Likewise.
1655         * posix/Makefile: Likewise.
1656         * stdio-common/Makefile: Likewise.
1657         * stdlib/Makefile: Likewise.
1658         * sysdeps/x86_64/Makefile: Likewise.
1659
1660         * io/ftwtest-sh: Add copyright header.
1661         * posix/globtest.sh: Likewise.
1662         * posix/tst-getconf.sh: Likewise.
1663         * posix/wordexp-tst.sh: Likewise.
1664         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1665
1666 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1667
1668         [BZ #13679]
1669         * Makeconfig (+link): Defined as $(+link-static) if
1670         $(build-shared) isn't yes.
1671         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1672         isn't yes.
1673         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1674
1675         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1676
1677         [BZ #14562]
1678         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1679         new chunk size with MALLOC_ALIGN_MASK.
1680
1681 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1682
1683         [BZ #5044]
1684         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1685         <rounding-mode.h>.
1686         (__printf_fphex): Determine rounding using get_rounding_mode and
1687         round_away.
1688         * stdio-common/tst-printf-round.c (struct hex_test): New
1689         structure.
1690         (hex_tests): New variable.
1691         (test_hex_in_one_mode): New function.
1692         (do_test): Also run tests for hex float output.
1693
1694 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1695
1696         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1697         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1698         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1699         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1700         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1701         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1702         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1703         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1704
1705 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1706
1707         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1708         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1709         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1710         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1711
1712 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1713
1714         [BZ #14579]
1715         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1716         mode only.
1717         * elf/tst-rtld-load-self.sh: New test.
1718         * elf/Makefile: Run it.
1719
1720 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1721
1722         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1723         (tst-writev-ENV): Remove.
1724         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1725
1726 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1727
1728         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1729
1730 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1731
1732         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1733         unconditional.
1734         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1735         Likewise.
1736         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1737         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1738         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1739         Likewise.
1740
1741 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1742
1743         [BZ #14587]
1744         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1745         * config.make.in (have-cpp-asm-debuginfo): Removed.
1746         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1747         * configure: Regenerated.
1748
1749 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1750
1751         [BZ #5044]
1752         * stdio-common/printf_fp.c: Include <stdbool.h> and
1753         <rounding-mode.h>.
1754         (___printf_fp): Determine rounding using get_rounding_mode and
1755         round_away.
1756         * stdio-common/tst-printf-round.c: New file.
1757         * stdio-common/Makefile (tests): Add tst-printf-round.
1758         (link-libm): New variable.
1759         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1760
1761 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1762
1763         [BZ #14576]
1764         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1765         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1766         Likewise.
1767         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1768         Likewise.
1769
1770 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1771
1772         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1773         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1774         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1775         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1776
1777 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1778
1779         [BZ #14518]
1780         * include/rounding-mode.h: New file.
1781         * sysdeps/generic/get-rounding-mode.h: Likewise.
1782         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1783         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1784         (MAX_VALUE): New macro.
1785         (MIN_VALUE): Likewise.
1786         (overflow_value): New function.
1787         (underflow_value): Likewise.
1788         (round_and_return): Use overflow_value and underflow_value to
1789         determine return values in overflow and underflow cases.  Use
1790         round_away to determine rounding depending on rounding mode.
1791         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1792         determine return values in overflow and underflow cases.
1793         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1794         (struct test_results): New structure.
1795         (struct test): Use struct test_results to store expected results
1796         for all rounding modes.
1797         (TEST): Include expected results for all rounding modes.
1798         (test_in_one_mode): New function.
1799         (do_test): Use test_in_one_mode to compute and check results.
1800         Check results for all rounding modes.
1801         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1802         $(link-libm).
1803
1804 2012-12-09  Allan McRae  <allan@archlinux.org>
1805
1806         * sysdeps/i386/fpu/libm-test-ulps: Update
1807
1808 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1809
1810         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1811         (_G_int32_t): Likewise.
1812         (_G_uint16_t): Likewise.
1813         (_G_uint32_t): Likewise.
1814         (_G_HAVE_BOOL): Likewise.
1815         (_G_HAVE_ATEXIT): Likewise.
1816         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1817         (_G_HAVE_IO_FILE_OPEN): Likewise.
1818         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1819         (_G_int32_t): Likewise.
1820         (_G_uint16_t): Likewise.
1821         (_G_uint32_t): Likewise.
1822         (_G_HAVE_BOOL): Likewise.
1823         (_G_HAVE_ATEXIT): Likewise.
1824         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1825         (_G_HAVE_IO_FILE_OPEN): Likewise.
1826         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1827         (_G_int32_t): Likewise.
1828         (_G_uint16_t): Likewise.
1829         (_G_uint32_t): Likewise.
1830         (_G_HAVE_BOOL): Likewise.
1831         (_G_HAVE_ATEXIT): Likewise.
1832         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1833         (_G_HAVE_IO_FILE_OPEN): Likewise.
1834
1835 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1836
1837         * csu/libc-tls.c: Update copyright years.
1838
1839 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1842         [!_G_USING_THUNKS]: Remove conditional code.
1843         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1844         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1845
1846         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1847         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1848         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1849         (_G_VTABLE_LABEL_PREFIX): Likewise.
1850         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1851         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1852         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1853         (_G_VTABLE_LABEL_PREFIX): Likewise.
1854         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1855         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1856         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1857         (_G_VTABLE_LABEL_PREFIX): Likewise.
1858         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1859
1860 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1861
1862         * libio/Makefile: Include ../Makeconfig before tests.
1863         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1864         only if $(build-shared) is yes.
1865
1866         * iconv/gconv_db.c: Update copyright years.
1867
1868 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1869
1870         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1871         unwind info if defined PIC. Fix special cases description.
1872         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1873
1874         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1875         DP_HI_MASK entry.
1876         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1877
1878 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1879
1880         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1881
1882         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1883         is NULL.
1884
1885         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1886         (LDLIBS-tst-chk4): This.
1887         (LDFLAGS-tst-chk5): Renamed to ...
1888         (LDLIBS-tst-chk5): This.
1889         (LDFLAGS-tst-chk6): Renamed to ...
1890         (LDLIBS-tst-chk6): This.
1891         (LDFLAGS-tst-lfschk4): Renamed to ...
1892         (LDLIBS-tst-lfschk4): This.
1893         (LDFLAGS-tst-lfschk5): Renamed to ...
1894         (LDLIBS-tst-lfschk5): This.
1895         (LDFLAGS-tst-lfschk6): Renamed to ...
1896         (LDLIBS-tst-lfschk6): This.
1897
1898         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1899         on $(common-objpfx)soversions.mk.
1900
1901 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1902
1903         [BZ #10014]
1904         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1905         example host name.
1906
1907 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1908
1909         * malloc/arena.c (arena_get_retry): New function that gets
1910         another arena for the caller to try its request on.
1911         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1912         current arena cannot fulfill the request.
1913         (__libc_memalign): Likewise.
1914         (__libc_memalign): Likewise.
1915         (__libc_pvalloc): Likewise.
1916         (__libc_calloc): Likewise.
1917
1918 2012-09-05  John Tobey  <john.tobey@gmail.com>
1919
1920         [BZ #13542]
1921         * manual/arith.texi (Operations on Complex): Fix description
1922         of carg branch cut.
1923
1924 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1925
1926         [BZ #10014]
1927         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1928         host name.
1929
1930         [BZ #10038]
1931         * manual/memory.texi (Memory): Make order of menu items match
1932         order of sections.
1933
1934 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1935
1936         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1937         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1938         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1939
1940 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1941
1942         * csu/libc-tls.c (static_dtv): Renamed to ...
1943         (_dl_static_dtv): This.  Make it global.
1944         (_dl_initial_dtv): Removed.
1945         (__libc_setup_tls): Updated.
1946         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1947         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1948         DL_INITIAL_DTV.
1949
1950 2012-09-06  Petr Machata  <pmachata@redhat.com>
1951
1952         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1953         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1954         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1955         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1956
1957 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1958
1959         [BZ #14545]
1960         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1961         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1962         freeing dtv[-1].
1963
1964 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1965
1966         [BZ #14544]
1967         * Makeconfig (link-static-before-libc): Replace $(+prector)
1968         with $(+prectorT).
1969         (link-static-after-libc): Replace $(+postctor) with
1970         $(+postctorT).
1971         (link-bounded): Replace $(+prector)/$(+postctor) with
1972         $(+prectorT)/$(+postctorT).
1973         (+prectorT): New macro.
1974         (+postctorT): Likewise.
1975
1976 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1977
1978         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1979         (round_str): Handle values above the maximum for IBM long double
1980         as inexact.
1981         * stdlib/tst-strtod-round.c (tests): Regenerated.
1982
1983 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1984
1985         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1986         assembler flag.
1987         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1988         zarch_nohighgprs around the zarch optimized routines.
1989         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1990         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1991         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1992         for zarch.
1993
1994 2012-09-05  David S. Miller  <davem@davemloft.net>
1995
1996         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1997
1998         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1999         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2000         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2001         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2002         entries.
2003
2004 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2005
2006         * malloc/arena.c: Fold copyright years.
2007         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2008
2009 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2010
2011         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2012
2013 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2014
2015         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2016
2017 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2018
2019         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2020         change internal state upon failure.
2021
2022 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2023
2024         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2025         * malloc/memusage.c (mmap): Likewise.
2026         (mmap64, mremap): Likewise.  Adjust name in comment.
2027
2028 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2029
2030         * libio/fileops.c: Fix typos in comments.
2031         * libio/oldfileops.c: Likewise.
2032         * libio/wfileops.c: Likewise.
2033
2034 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2035
2036         [BZ #1349]
2037         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2038         (tst-malloc-usable-ENV): Set environment for test case.
2039         * malloc/hooks.c (malloc_check_get_size): New function to get
2040         requested size.
2041         * malloc/malloc.c (musable): Use malloc_check_get_size.
2042         * malloc/tst-malloc-usable.c: New test case.
2043
2044 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2045
2046         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2047
2048 2012-09-05  Allan McRae  <allan@archlinux.org>
2049
2050         [BZ #13966]
2051         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2052         determine header location.
2053         * configure: Regenerated.
2054
2055 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2056
2057         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2058         float format.
2059         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2060         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2061         format.
2062         (test): Regenerate.
2063
2064 2012-09-04  David S. Miller  <davem@davemloft.net>
2065
2066         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2067         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2068         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2069
2070 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2071
2072         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2073         failures.
2074
2075         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2076
2077 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2078
2079         [BZ #9914]
2080         * libio/iogetdelim.c: Include <limits.h>.
2081         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2082         + len + 1 would overflow.
2083
2084 2012-09-03  Andreas Jaeger  <aj@suse.de>
2085
2086         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2087         * sysdeps/i386/fpu/libm-test-ulps: Update.
2088
2089 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2090
2091         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2092         Add s_sinf-sse2, s_conf-sse2.
2093
2094         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2095         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2096         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2097         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2098
2099         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2100         for using routine as __sinf_ia32.
2101         Use macro for function declaration and weak_alias.
2102         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2103         for using routine as __cosf_ia32.
2104         Use macro for function declaration and weak_alias.
2105
2106         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2107         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2108
2109         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2110         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2111         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2112
2113         * math/libm-test.inc (cos_test): Add more test cases.
2114         (sin_test): Likewise.
2115         (sincos_test): Likewise.
2116
2117 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2118
2119         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2120         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2121         hidden.
2122         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2123
2124 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2125
2126         [BZ #14538]
2127         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2128         first element of the GOT.
2129         (elf_machine_load_address): Return the difference between
2130         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2131
2132 2012-09-01  Allan McRae  <allan@archlinux.org>
2133
2134         [BZ #13412]
2135         * configure.in (AWK): Require gawk version 3.0 or later.
2136         * configure: Regenerated.
2137
2138 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2139
2140         * sysdeps/unix/sysv/linux/kernel-features.h
2141         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2142         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2143         [__NR_clock_getres]: Make code unconditional.
2144         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2145         (clock_getcpuclockid): Remove code left unreachable by removal of
2146         conditionals.
2147         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2148         code unconditional.
2149         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2150         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2151         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2152         Make code unconditional.
2153         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2154         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2155         * sysdeps/unix/sysv/linux/clock_settime.c
2156         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2157         conditional code.
2158         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2159         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2160
2161 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2162
2163         [BZ #14476]
2164         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2165         scripts/test-installation.pl.
2166
2167         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2168         and $ld_so_version if it is set.
2169
2170 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2171
2172         [BZ #14516]
2173         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2174         failure if reading from procfs failed.
2175         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2176
2177 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2178
2179         * sysdeps/unix/sysv/linux/kernel-features.h
2180         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2181         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2182         Remove conditional code.
2183         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2184         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2185         Remove conditional code.
2186         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2187         * sysdeps/unix/sysv/linux/i386/fxstat.c
2188         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2189         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2190         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2191         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2192         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2193         * sysdeps/unix/sysv/linux/i386/lxstat.c
2194         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2195         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2196         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2197         Remove conditional code.
2198         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2199         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2200         Remove conditional code.
2201         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2202         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2203         <kernel-features.h>.
2204         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2205         Remove.
2206         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2207         Remove conditional code.
2208         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2209         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2210         Remove conditional.
2211
2212 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2213
2214         [BZ #5400]
2215         * NEWS: Add fixed bug number.
2216
2217 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2218
2219         [BZ #14519]
2220         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2221         underflowing exponent in case of negative sign.
2222         * stdlib/tst-strtod-round-data: Add more tests.
2223         * stdlib/tst-strtod-round.c (tests): Regenerated.
2224
2225         [BZ #3479]
2226         * stdlib/strtod_l.c (NDIG): Remove.
2227         (HEXNDIG): Likewise.
2228         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2229         smallest representable value.
2230         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2231         lie within an exact representation of 1/2 ulp of the result.
2232         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2233         unconditionally.
2234         (TENS_P9_IDX): Define unconditionally.
2235         (TENS_P9_SIZE): Likewise.
2236         (TENS_P10_IDX): Likewise.
2237         (TENS_P10_SIZE): Likewise.
2238         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2239         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2240         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2241         entries for 10^2^13 and 10^2^14.
2242         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2243         (TENS_P13_IDX): Define.
2244         (TENS_P13_SIZE): Likewise.
2245         (TENS_P14_IDX): Likewise.
2246         (TENS_P14_SIZE): Likewise.
2247         (_fpioconst_pow10): Change array size to
2248         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2249         unconditional.
2250         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2251         1024]: Add entries for 10^2^13 and 10^2^14.
2252         [LAST_POW10 > _LAST_POW10]: Remove #error.
2253         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2254         (_fpioconst_pow10): Change array size to
2255         FPIOCONST_POW10_ARRAY_SIZE.
2256         * stdlib/gen-fpioconst.c: New file.
2257         * stdlib/gen-tst-strtod-round.c: Likewise.
2258         * stdlib/tst-strtod-round-data: Likewise.
2259         * stdlib/tst-strtod-round.c: Likewise.
2260         * stdlib/Makefile (tests): Add tst-strtod-round.
2261
2262         [BZ #14459]
2263         * stdlib/strtod_l.c: Include <stdint.h>.
2264         (NDEBUG): Do not define.
2265         (round_and_return): Change EXPONENT parameter to type intmax_t.
2266         Rearrange calculations to avoid internal overflow possibilities.
2267         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2268         Rearrange calculations to avoid internal overflow possibilities.
2269         Assert that number fits inside MPNSIZE limbs.
2270         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2271         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2272         calculations and add assertions to avoid internal overflow
2273         possibilities.  Add casts to avoid signed/unsigned operations.
2274         * stdlib/tst-strtod-overflow.c: New file.
2275         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2276
2277 2012-08-25  Marek Polacek  <polacek@redhat.com>
2278
2279         * time/time.h: Fix some typos in comments.
2280
2281 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2282
2283         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2284         * posix/tst-rfc3484-2.c: Likewise.
2285         * posix/tst-rfc3484-3.c: Likewise.
2286
2287 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2288
2289         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2290         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2291
2292 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2293
2294         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2295         #include of fxstatat64.c.
2296
2297 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2298
2299         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2300         * shadow/getspent_r.c: Likewise.
2301         * shadow/getspnam.c: Likewise.
2302         * shadow/getspnam_r.c: Likewise.
2303         * gshadow/getsgent.c: Likewise.
2304         * gshadow/getsgent_r.c: Likewise.
2305         * gshadow/getsgnam.c: Likewise.
2306         * gshadow/getsgnam_r.c: Likewise.
2307         * inet/getnetbyad.c: Likewise.
2308         * inet/getnetbyad_r.c: Likewise.
2309         * inet/getnetbynm.c: Likewise.
2310         * inet/getnetbynm_r.c: Likewise.
2311         * inet/getnetent.c: Likewise.
2312         * inet/getnetent_r.c: Likewise.
2313         * inet/getproto.c: Likewise.
2314         * inet/getproto_r.c: Likewise.
2315         * inet/getprtent.c: Likewise.
2316         * inet/getprtent_r.c: Likewise.
2317         * inet/getprtname.c: Likewise.
2318         * inet/getprtname_r.c: Likewise.
2319         * inet/getrpcbyname.c: Likewise.
2320         * inet/getrpcbyname_r.c: Likewise.
2321         * inet/getrpcbynumber.c: Likewise.
2322         * inet/getrpcbynumber_r.c: Likewise.
2323         * inet/getrpcent.c: Likewise.
2324         * inet/getrpcent_r.c: Likewise.
2325         * inet/getaliasent.c: Likewise.
2326         * inet/getaliasent_r.c: Likewise.
2327         * inet/getaliasname.c: Likewise.
2328         * inet/getaliasname_r.c: Likewise.
2329         * nscd/getgrgid_r.c: Likewise.
2330         * nscd/getgrnam_r.c: Likewise.
2331         * nscd/gethstbyad_r.c: Likewise.
2332         * nscd/gethstbynm3_r.c: Likewise.
2333         * nscd/getpwnam_r.c: Likewise.
2334         * nscd/getpwuid_r.c: Likewise.
2335         * nscd/getsrvbynm_r.c: Likewise.
2336         * nscd/getsrvbypt_r.c: Likewise.
2337         * nscd/gai.c: Likewise.
2338
2339         * configure.in (build_nscd): New substituted variable, set
2340         by --disable-build-nscd and defaults to $use_nscd.
2341         * configure: Regenerated.
2342         * config.make.in (build-nscd): New substituted variable.
2343         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2344         Change conditional to require [$(build-nscd) = yes] as well.
2345         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2346
2347         [BZ# 13696]
2348         * configure.in (use_nscd): New substituted variable, set by
2349         --disable-nscd.  If enabled, define USE_NSCD.
2350         * configure: Regenerated.
2351         * config.h.in: Add USE_NSCD.
2352         * config.make.in (use-nscd): New substituted variable.
2353         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2354         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2355         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2356         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2357         (CFLAGS-getgrnam_r.c): Likewise.
2358         (CFLAGS-initgroups.c): Likewise.
2359         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2360         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2361         Variables removed.
2362         * inet/getnetgrent_r.c
2363         (nscd_setnetgrent): New function, broken out of ...
2364         (setnetgrent): ... here.  Call it.
2365         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2366         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2367         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2368         * nscd/Makefile (routines, aux): Move definitions after include of
2369         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2370         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2371         Conditionalize on [USE_NSCD].
2372         (is_nscd, nscd_init_cb): Likewise.
2373         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2374         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2375         * nss/nss_db/db-init.c: Likewise.
2376         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2377         [USE_NSCD].
2378         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2379         (make_request): Use it.
2380         (cache_valid_p): New function.
2381         (__check_pf): Use it.
2382         * NEWS: Add item for --disable-nscd.
2383
2384 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2385
2386         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2387         to support sed >= 4.2.1-20-ga9bf076.
2388         * configure: Regenerated.
2389
2390 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2391
2392         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2393         Conditionalize whole body on [IREL].
2394
2395 2012-08-22  Jeff Law <law@redhat.com>
2396
2397         [BZ #14505]
2398         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2399         if the family is PF_UNSPEC.
2400
2401 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2402
2403         * Makerules (lib-version): Rename from V.
2404         (install-lib-nosubdir): Change V to lib-version.
2405
2406 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2407
2408         [BZ #14252]
2409         * powerpc32/power6/wcschr.c: New file.
2410         * powerpc32/power6/wcscpy.c: New file.
2411         * powerpc32/power6/wcsrchr.c: New file.
2412         * powerpc64/power6/wcschr.c: New file.
2413         * powerpc64/power6/wcscpy.c: New file.
2414         * powerpc64/power6/wcsrchr.c: New file.
2415
2416 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2417
2418         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2419         (two_way_short_needle): Use it.
2420         * string/strstr.c (AVAILABLE1_USES_J): Define.
2421         * string/strcasestr.c: Likewise.
2422
2423         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2424         array references.
2425         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2426
2427         [BZ #11607]
2428         * NEWS: Add an entry.
2429         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2430         define their defaults.
2431         (two_way_short_needle): Detect end-of-string on-the-fly.
2432         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2433         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2434         * string/bug-strcasestr1.c: New test.
2435         * string/Makefile: Run it.
2436
2437 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2438
2439         [BZ #11607]
2440         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2441         the first character.
2442
2443 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2444
2445         * csu/elf-init.c (__libc_csu_irel): Function removed.
2446         * csu/libc-start.c (apply_irel): New function.
2447         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2448
2449 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2450
2451         * sysdeps/unix/sysv/linux/kernel-features.h
2452         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2453         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2454         <kernel-features.h>.
2455         [__NR_fadvise64_64]: Make code unconditional.
2456         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2457         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2458         !__NR_fadvise64_64)]: Likewise.
2459         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2460         !__NR_fadvise64_64))]: Likewise.
2461         [__NR_fadvise64]: Make code unconditional.
2462         [!__NR_fadvise64]: Remove conditional code.
2463         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2464         <kernel-features.h>.
2465         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2466         unconditional.
2467         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2468         conditional code.
2469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2470         not include <kernel-features.h>.
2471         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2472         unconditional.
2473         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2474         conditional code.
2475         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2476         include <kernel-features.h>.
2477         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2478         unconditional.
2479         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2480         conditional code.
2481
2482 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2483
2484         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2485         slight instruction rearrangements per scrollpipe analysis.
2486         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2487
2488 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2489
2490         * manual/syslog.texi (syslog; vsyslog, closelog):
2491         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2492         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2493
2494         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2495         DSOCAPS to match condition on defining it.
2496
2497 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2498
2499         * sysdeps/unix/sysv/linux/kernel-features.h
2500         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2502         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2503         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2504         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2505         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2506         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2508         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2509         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2510
2511         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2512         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2513
2514         * sysdeps/unix/sysv/linux/kernel-features.h
2515         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2516         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2517         unconditional.
2518         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2519         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2520         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2521         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2522         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2523         Make code unconditional.
2524         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2525         (__mmap64) [!__NR_mmap2]: Likewise.
2526         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2527         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2528         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2529         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2530         [__NR_mmap2]: Make code unconditional.
2531         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2532         (__mmap64) [!__NR_mmap2]: Likewise.
2533
2534 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2535
2536         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2537
2538 2012-08-18  Andreas Jaeger  <aj@suse.de>
2539
2540         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2541
2542 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2543
2544         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2545         * include/unistd.h (__have_sock_cloexec): Likewise.
2546         (__have_pipe2): Likewise.
2547         (__have_dup3): Likewise.
2548
2549 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2550
2551         [BZ #9685]
2552         * include/unistd.h (__have_pipe2): Change define into an extern int.
2553         (__have_dup3): Likewise.
2554         * socket/have_sock_cloexec.c: Include fcntl.h.
2555         (__have_pipe2): New variable.
2556         (__have_dup3): Likewise.
2557
2558 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2559
2560         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2561
2562 2012-08-17  Marek Polacek  <polacek@redhat.com>
2563
2564         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2565         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2566
2567 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2568
2569         * configure.in: Add AC_SUBST for sysheaders.
2570         * configure: Regenerated.
2571         * config.make.in (sysheaders): New substituted variable.
2572
2573         * sysdeps/unix/mkfifo.c: Moved ...
2574         * sysdeps/posix/mkfifo.c: ... here.
2575         * sysdeps/unix/mkfifoat.c: Moved ...
2576         * sysdeps/posix/mkfifoat.c: ... here.
2577
2578         * sysdeps/unix/utime.c: Moved ...
2579         * sysdeps/posix/utime.c: ... here.
2580
2581         * sysdeps/unix/time.c: Moved ...
2582         * sysdeps/posix/time.c: ... here.
2583         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2584         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2585
2586         * sysdeps/unix/nice.c: Moved ...
2587         * sysdeps/posix/nice.c: ... here.
2588
2589         * sysdeps/unix/alarm.c: Moved ...
2590         * sysdeps/posix/alarm.c: ... here.
2591
2592         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2593
2594 2012-08-17  Jeff Law <law@redhat.com>
2595
2596         * intl/Makefile (codeset_mo): New variable.
2597         ($(codeset_mo)): New target.
2598         (tst-codeset.out): Depend on that.  Remove explicit rule.
2599         (tst-gettext3.out, tst-gettext5.out): Likewise.
2600         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2601         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2602         * intl/tst-codeset.sh: Remove.
2603         * intl/tst-gettext3.sh: Likewise.
2604         * intl/tst-gettext5.sh: Likewise.
2605
2606 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2607
2608         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2609         * sysdeps/unix/syscalls.list: ... here.
2610
2611         * sysdeps/posix/getaddrinfo.c
2612         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2613         (gaiconf_init, gaiconf_reload): Use them.
2614         [!_STATBUF_ST_NSEC]
2615         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2616         Define using time_t rather than struct timespec.
2617
2618         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2619         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2620         Macros removed.
2621         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2622         [!NO_THREADS].
2623         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2624         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2625         Likewise.
2626
2627         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2628         __libc_cleanup_push argument.
2629
2630         * bits/param.h: New file.
2631         * misc/sys/param.h: New file.
2632         * include/sys/param.h: New file.
2633         * misc/Makefile (headers): Add bits/param.h.
2634         * sysdeps/generic/sys/param.h: File removed.
2635         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2636         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2637         * sysdeps/mach/hurd/bits/param.h: New file.
2638         * sysdeps/mach/hurd/sys/param.h: File removed.
2639
2640         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2641         last change.
2642
2643         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2644         [_IO_MTSAFE_IO].
2645         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2646         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2647         New macros.
2648
2649         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2650         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2651         rather than -D_IO_MTSAFE_IO conditionally.
2652         * stdio-common/Makefile (CPPFLAGS): Likewise.
2653         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2654         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2655         Use $(libio-mtsafe).
2656         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2657         of -D_IO_MTSAFE_IO.
2658         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2659         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2660         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2661         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2662         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2663         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2664         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2665         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2666         (CFLAGS-fread_u_chk.c): Likewise.
2667         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2668         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2669         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2670         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2671         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2672         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2673         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2674         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2675         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2676
2677         * libio/Makefile: Test [$(libc-reentrant) = yes]
2678         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2679
2680         * Makeconfig
2681         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2682         * sysdeps/pthread/configure: File removed.
2683         * sysdeps/pthread/Makeconfig: New file.
2684         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2685         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2686
2687 2012-08-16  Gary Benson  <gbenson@redhat.com>
2688
2689         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2690         unmapping the first object in a namespace.
2691
2692 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2693
2694         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2695         (__internal_setnetgrent): ... this.  Add internal_function to
2696         definition.  Add libc_hidden_def.
2697         (setnetgrent): Update caller.
2698         (internal_endnetgrent): Renamed to ...
2699         (__internal_endnetgrent): ... this.  Add internal_function to
2700         definition.  Add libc_hidden_def.
2701         (endnetgrent): Update caller.
2702         (internal_getnetgrent_r): Renamed to ...
2703         (__internal_getnetgrent_r): ... this.  Add internal_function to
2704         definition.  Add libc_hidden_def.
2705         (__getnetgrent_r): Update caller.
2706         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2707
2708 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2709
2710         * stdlib/longlong.h: Update from GCC.
2711
2712 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2713
2714         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2715         on _QL, which is set by umul_ppmm but never used.
2716         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2717         variables, which are set by GMP macros but never used.
2718         * stdio-common/_itowa.c (_itowa): Likewise.
2719         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2720         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2721
2722 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2723
2724         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2725         struct La_sh_regs is not constant.
2726         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2727         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2728         and struct La_sparc64_regs are not constant.
2729
2730 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2731
2732         * sysdeps/unix/sysv/linux/kernel-features.h
2733         (__ASSUME_POSIX_TIMERS): Remove.
2734         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2735         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2736         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2737         Make code unconditional.
2738         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2739         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2740         Make code unconditional.
2741         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2742         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2743         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2744         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2745         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2746         Make code unconditional.
2747         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2748         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2749         (__libc_missing_posix_timers): Remove.
2750
2751 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2752
2753         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2754         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2755
2756         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2757
2758         * elf/dl-sym.c: Include <stdlib.h>.
2759
2760         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2761         constants, which avoids warnings in 32-bit builds.
2762
2763         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2764         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2765
2766         * misc/lseek.c: File moved to ...
2767         * io/lseek.c: ... here.
2768
2769         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2770
2771         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2772         shifting LEN more than 31 bits at once.
2773
2774 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2775
2776         [BZ #14195]
2777         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2778         segmentation fault for a case of two empty input strings.
2779         * string/test-strncasecmp.c (check1): Renamed to...
2780         (bz12205): ...this.
2781         (bz14195): Add new testcase for two empty input strings and N > 0.
2782         (test_main): Call new testcase, adapt for renamed function.
2783
2784 2012-08-15  Andreas Jaeger  <aj@suse.de>
2785
2786         [BZ #14090]
2787         * crypt/md5test2.c: New test, based on test supplied by Serge
2788         Belyshev <belyshev@depni.sinp.msu.ru>.
2789         * crypt/Makefile (xtests): Add md5test-giant..
2790         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2791
2792 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2793
2794         [BZ #14090]
2795         * crypt/md5.c (md5_process_block): Don't assume the buffer
2796         length is less than 2**32.
2797         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2798         length is less than 2**64.
2799
2800 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2801
2802         * string/str-two-way.h: Include <sys/param.h>.
2803         (MAX): Macro removed.
2804
2805         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2806         Move #define and #undef of memmove to just before and after
2807         including <string.h>.
2808
2809         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2810         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2811         and after including <string.h>.  Move declarations of
2812         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2813         to before #include "string/memmove.c".
2814
2815         * include/dirent.h: Declare __getdirentries.
2816
2817         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2818         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2819
2820 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2821
2822         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2823         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2824         * sysdeps/i386/configure: Regenerated.
2825         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2826         STABS_CURRENT_FILE, and STABS_FUN.
2827         (END): Remove call to STABS_FUN_END.
2828         (STABS_CURRENT_FILE1): Delete.
2829         (STABS_CURRENT_FILE): Likewise.
2830         (STABS_FUN): Likewise.
2831         (STABS_FUN_END): Likewise.
2832         (STABS_FUN2): Likewise.
2833         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2834         * sysdeps/x86_64/configure: Regenerated.
2835
2836 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2837
2838         * elf/dl-open.c: Include <atomic.h>.
2839         * elf/dl-lookup.c: Likewise.
2840
2841 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2842
2843         * sysdeps/unix/sysv/linux/kernel-features.h
2844         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2845         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2846         unconditionally.
2847         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2848         unconditionally.
2849         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2850         condition on __ASSUME_CLONE_THREAD_FLAGS.
2851
2852 2012-08-14  Andreas Jaeger  <aj@suse.de>
2853
2854         * sysdeps/i386/fpu/libm-test-ulps: Update.
2855
2856 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2857
2858         * include/atomic.h (atomic_exchange_and_add): Split into ...
2859         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2860         New atomic macros.
2861
2862 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2863
2864         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2865
2866 2012-08-13  Jeff Law <law@redhat.com>
2867
2868         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2869         null byte in the output string.
2870
2871 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2872
2873         * sysdeps/unix/sysv/linux/kernel-features.h
2874         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2875         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2876         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2877         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2878         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2879         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2880         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2881
2882 2012-08-09  Jeff Law <law@redhat.com>
2883
2884         [BZ #13939]
2885         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2886         When avoid_arena is set, don't retry in the that arena.  Pick the
2887         next one, whatever it might be.
2888         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2889         (arena_lock): Pass in new parameter to arena_get2.
2890         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2891         arena_get2.
2892         (__libc_malloc): Unify retrying after main arena failure with
2893         __libc_memalign version.
2894         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2895
2896 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2897
2898         [BZ #14166]
2899         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2900         to __redirect_strstr.
2901         (__strstr_sse42): Use typeof __redirect_strstr.
2902         (__strstr_ia32): Likewise.
2903         (__libc_strstr): New prototype.
2904         (strstr): Renamed to ...
2905         (__libc_strstr): This.
2906         (strstr): New strong alias of __libc_strstr.
2907         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2908         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2909         __redirect_time.
2910         Include <time.h>.
2911         (__libc_time): New prototype.
2912         (time_ifunc): Replace time with __libc_time.
2913         (time): New strong alias and hidden definition of __libc_time.
2914         (__GI_time): Remove strong alias.
2915         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2916         Include <stddef.h>.
2917         (memmove): Redefined to __redirect_memmove.
2918         (__memmove_sse2): Use typeof __redirect_memmove.
2919         (__memmove_ssse3): Likewise.
2920         (__memmove_ssse3_back): Likewise.
2921         (__libc_memmove): New prototype.
2922         (memmove): Renamed to ...
2923         (__libc_memmove): This.
2924         (memmove): New strong alias of __libc_memmove.
2925
2926 2012-08-08  Mark Salter  <msalter@redhat.com>
2927
2928         * elf/elf.h
2929         (R_MN10300_TLS_GD): Define.
2930         (R_MN10300_TLS_LD): Likewise.
2931         (R_MN10300_TLS_LDO): Likewise.
2932         (R_MN10300_TLS_GOTIE): Likewise.
2933         (R_MN10300_TLS_IE): Likewise.
2934         (R_MN10300_TLS_LE): Likewise.
2935         (R_MN10300_TLS_DTPMOD): Likewise.
2936         (R_MN10300_TLS_DTPOFF): Likewise.
2937         (R_MN10300_TLS_TPOFF): Likewise.
2938         (R_MN10300_SYM_DIFF): Likewise.
2939         (R_MN10300_ALIGN): Likewise.
2940         (R_MN10300_NUM): Update.
2941
2942 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2943
2944         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2945         Remove.
2946
2947 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2948
2949         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2950
2951         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2952         sysdeps/unix -> sysdeps/posix move.
2953         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2954
2955 2012-08-07      Allan McRae     <allan@archlinux.org>
2956
2957         [BZ #14303]
2958         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2959         (SUNOS_CPP): Likewise.
2960         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2961         not found.
2962         (open_input): Call CPP using execvp.
2963
2964 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2965
2966         * sysdeps/unix/sysv/linux/kernel-features.h
2967         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2968         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2969         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2970         (__ASSUME_WAITID_SYSCALL): Likewise.
2971         * sysdeps/unix/sysv/linux/dl-execstack.c
2972         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2973         code unconditional.
2974         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2975         conditional code.
2976         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2977         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2978         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2979         code.
2980         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2981         unconditional.
2982         [__ASSUME_WAITID_SYSCALL]: Likewise.
2983         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2984
2985 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2986
2987         * sysdeps/unix/closedir.c: Renamed to ...
2988         * sysdeps/posix/closedir.c: ... here.
2989         * sysdeps/unix/dirfd.c: Renamed to ...
2990         * sysdeps/posix/dirfd.c: ... here.
2991         * sysdeps/unix/dirstream.h: Renamed to ...
2992         * sysdeps/posix/dirstream.h: ... here.
2993         * sysdeps/unix/fdopendir.c: Renamed to ...
2994         * sysdeps/posix/fdopendir.c: ... here.
2995         * sysdeps/unix/opendir.c: Renamed to ...
2996         * sysdeps/posix/opendir.c: ... here.
2997         * sysdeps/unix/readdir.c: Renamed to ...
2998         * sysdeps/posix/readdir.c: ... here.
2999         * sysdeps/unix/readdir_r.c: Renamed to ...
3000         * sysdeps/posix/readdir_r.c: ... here.
3001         * sysdeps/unix/rewinddir.c: Renamed to ...
3002         * sysdeps/posix/rewinddir.c: ... here.
3003         * sysdeps/unix/seekdir.c: Renamed to ...
3004         * sysdeps/posix/seekdir.c: ... here.
3005         * sysdeps/unix/telldir.c: Renamed to ...
3006         * sysdeps/posix/telldir.c: ... here.
3007         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3008         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3009         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3010         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3011
3012         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3013         * bits/fcntl.h: ... here.
3014
3015         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3016         not 0.
3017         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3018         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3019         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3020         (struct flock): Move l_start, l_len to the beginning.
3021         Use __pid_t for l_pid.
3022         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3023         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3024         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3025         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3026         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3027         [__USE_LARGEFILE64] (struct flock64): New type.
3028         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3029
3030         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3031         * bits/dirent.h: ... here.
3032
3033         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3034         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3035
3036 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3037
3038         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3039         Change from 2.6.0 to 2.6.16.
3040         * sysdeps/unix/sysv/linux/configure: Regenerated.
3041         * sysdeps/unix/sysv/linux/kernel-features.h
3042         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3043         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3044         version.
3045         (__ASSUME_UTIMES): Likewise.
3046         (__ASSUME_CLONE_STOPPED): Remove.
3047         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3048         architectures, not kernel version.
3049         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3050         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3051         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3052         (__ASSUME_WAITID_SYSCALL): Likewise.
3053         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3054         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3055         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3056         refer to older versions.
3057
3058 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3059
3060         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3061         Define alphasort64 as an alias.
3062         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3063         Define versionsort64 as an alias.
3064         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3065         Define scandir64 as an alias.
3066         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3067         Define scandirat64 as an alias.
3068         * dirent/alphasort64.c (alphasort64):
3069         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3070         * dirent/versionsort64.c: Likewise.
3071         * dirent/scandir64.c: Likewise.
3072         * dirent/scandirat64.c: Likewise.
3073         * sysdeps/wordsize-64/alphasort.c: File removed.
3074         * sysdeps/wordsize-64/alphasort64.c: File removed.
3075         * sysdeps/wordsize-64/scandir.c: File removed.
3076         * sysdeps/wordsize-64/scandir64.c: File removed.
3077         * sysdeps/wordsize-64/scandirat.c: File removed.
3078         * sysdeps/wordsize-64/scandirat64.c: File removed.
3079         * sysdeps/wordsize-64/versionsort.c: File removed.
3080         * sysdeps/wordsize-64/versionsort64.c: File removed.
3081         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3082         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3083         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3084         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3085         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3086         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3087         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3088         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3089
3090         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3091         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3092         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3093         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3094         [defined __arch64__ || defined __sparcv9]
3095         (__INO_T_MATCHES_INO64_T): New macro.
3096         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3097         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3098         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3099         * sysdeps/unix/sysv/linux/bits/dirent.h
3100         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3101         (_DIRENT_MATCHES_DIRENT64): New macro.
3102
3103         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3104         Define lockf64 as an alias.
3105         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3106         Define fseeko64 as an alias.
3107         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3108         Define ftello64 as an alias.
3109         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3110         Define _IO_fgetpos64 and fgetpos64 as aliases.
3111         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3112         Define _IO_fsetpos64 and fsetpos64 as aliases.
3113         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3114         Conditionalize body on this.
3115         * libio/fseeko64.c: Likewise.
3116         * libio/ftello64.c: Likewise.
3117         * libio/iofgetpos64.c: Likewise.
3118         * libio/iofsetpos64.c: Likewise.
3119         * sysdeps/wordsize-64/lockf.c: File removed.
3120         * sysdeps/wordsize-64/lockf64.c: File removed.
3121         * sysdeps/wordsize-64/fseeko.c: File removed.
3122         * sysdeps/wordsize-64/fseeko64.c: File removed.
3123         * sysdeps/wordsize-64/ftello.c: File removed.
3124         * sysdeps/wordsize-64/ftello64.c: File removed.
3125         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3126         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3127         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3128         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3129         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3130         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3131         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3132         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3133         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3134         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3135         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3136         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3137         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3138         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3139
3140         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3141         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3142         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3143         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3144         [defined __arch64__ || defined __sparcv9]
3145         (__OFF_T_MATCHES_OFF64_T): New macro.
3146         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3147         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3148         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3149         (__OFF_T_MATCHES_OFF64_T): New macro.
3150
3151 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3152
3153         * stdlib/secure-getenv.c (__secure_getenv): Replace
3154         GLIBC_2_16 with GLIBC_2_17.
3155
3156 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3157
3158         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3159         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3160
3161 2012-08-03  David S. Miller  <davem@davemloft.net>
3162
3163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3164
3165 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3166
3167         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3168         Remove.
3169         (__ASSUME_CORRECT_SI_PID): Likewise.
3170         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3171         (__ASSUME_TMPFS_NAME): Likewise.
3172         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3173         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3174         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3175         (HAVE_AUX_SECURE): Make definition unconditional.
3176         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3177         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3178
3179 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3180
3181         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3182         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3183         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3184         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3185         __eloop_threshold instead of SYMLOOP_MAX.
3186
3187         * sysdeps/generic/eloop-threshold.h: New file.
3188         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3189         of MAXSYMLINKS.
3190         * elf/chroot_canon.c (chroot_canon): Likewise.
3191
3192 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3193
3194         [BZ #13717]
3195         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3196         Change to 2.6.0 everywhere.
3197         * sysdeps/unix/sysv/linux/configure: Regenerated.
3198         * sysdeps/unix/sysv/linux/kernel-features.h
3199         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3200         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3201         kernel versions.
3202         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3203         (__ASSUME_FUTEX_REQUEUE): Remove.
3204         (__ASSUME_STATFS64): Define unconditionally.
3205         (__ASSUME_AT_SECURE): Likewise.
3206         (__ASSUME_CORRECT_SI_PID): Likewise.
3207         (__ASSUME_TGKILL): Define without depending on kernel version for
3208         i386.
3209         (__ASSUME_UTIMES): Likewise.
3210         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3211         kernel version.
3212         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3213         (__ASSUME_TMPFS_NAME): Likewise.
3214         * README: Update reference to Linux kernel versions.
3215
3216 2012-08-02  Marek Polacek  <polacek@redhat.com>
3217
3218         [BZ# 14150]
3219         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3220         libc_cv_asm_type_prefix with %.
3221         * configure: Regenerated.
3222         * include/libc-symbols.h: Remove comment about
3223         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3224         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3225         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3226         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3227         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3228         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3229         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3230         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3231         * elf/tst-unique2mod1.c: Likewise.
3232         * elf/tst-unique1mod2.c: Likewise.
3233         * elf/tst-unique1mod1.c: Likewise.
3234         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3235         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3236         Replace ASM_TYPE_DIRECTIVE with .type.
3237         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3238         * sysdeps/i386/sysdep.h: Likewise.
3239         * sysdeps/x86_64/sysdep.h: Likewise.
3240         * sysdeps/sh/sysdep.h: Likewise.
3241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3242         Do not define ASM_TYPE_DIRECTIVE.
3243         * sysdeps/powerpc/sysdep.h: Likewise.
3244         * sysdeps/powerpc/powerpc32/sysdep.h:
3245         Replace ASM_TYPE_DIRECTIVE with .type.
3246         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3247         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3248         * sysdeps/i386/fpu/e_powf.S: Likewise.
3249         * sysdeps/i386/fpu/e_expl.S: Likewise.
3250         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3251         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3252         * sysdeps/i386/fpu/e_pow.S: Likewise.
3253         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3254         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3255         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3256         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3257         * sysdeps/i386/fpu/e_log2.S: Likewise.
3258         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3259         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3260         * sysdeps/i386/fpu/e_powl.S: Likewise.
3261         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3262         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3263         * sysdeps/i386/fpu/e_logl.S: Likewise.
3264         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3265         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3266         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3267         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3268         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3269         * sysdeps/i386/fpu/e_log.S: Likewise.
3270         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3271         * sysdeps/i386/fpu/e_logf.S: Likewise.
3272         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3273         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3274         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3275         * sysdeps/i386/fpu/e_log10.S: Likewise.
3276         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3277         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3278         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3279         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3280         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3281         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3282         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3283         * sysdeps/i386/i686/strtok.S: Likewise.
3284         * sysdeps/i386/i386-mcount.S: Likewise.
3285         * sysdeps/i386/strtok.S: Likewise.
3286         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3287         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3288         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3289         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3290         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3291         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3292         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3293         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3294         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3295         * sysdeps/x86_64/_mcount.S: Likewise.
3296         * sysdeps/x86_64/strtok.S: Likewise.
3297         * sysdeps/sh/_mcount.S: Likewise.
3298
3299 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3300
3301         * libio/iofopen.c: Include <fcntl.h>.
3302         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3303         (_IO_fopen64, fopen64): Define as aliases.
3304         * libio/iofopen64.c: Include <fcntl.h>.
3305         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3306         Conditionalize body on this.
3307         * sysdeps/wordsize-64/iofopen.c: File removed.
3308         * sysdeps/wordsize-64/iofopen64.c: File removed.
3309
3310 2012-08-01  Marek Polacek  <polacek@redhat.com>
3311
3312         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3313         Use dlfcn directly instead of a variable.
3314         (binfmt-subdir): Do not define.
3315         (dlfcn): Likewise.
3316
3317 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3318
3319         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3320         Remove all definitions.
3321         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3322         <kernel-features.h>.
3323         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3324         (miss_F_GETOWN_EX): Remove all definitions.
3325         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3326         macro definition.
3327         [!__ASSUME_FCNTL64]: Remove conditional code.
3328         [__ASSUME_FCNTL64]: Make code unconditional.
3329         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3330         <kernel-features.h>.
3331         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3332         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3333         (lockf64) [__NR_fcntl64]: Make code unconditional.
3334         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3335
3336         * sysdeps/unix/sysv/linux/kernel-features.h
3337         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3338         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3339         Make code unconditional.
3340         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3341         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3343         [__NR_vfork]: Make code unconditional.
3344         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3345         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3347         [__NR_vfork]: Make code unconditional.
3348         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3349         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3350
3351 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3352
3353         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3354         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3355
3356         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3357         Define mkstemp64 as an alias.
3358         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3359         Define mkstemps64 as an alias.
3360         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3361         Define mkostemp64 as an alias.
3362         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3363         Define mkostemps64 as an alias.
3364         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3365         Conditionalize body on this.
3366         * misc/mkostemp64.c: Likewise.
3367         * misc/mkostemps64.c: Likewise.
3368         * misc/mkstemps64.c: Likewise.
3369         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3370         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3371         * sysdeps/wordsize-64/mkostemp.c: File removed.
3372         * sysdeps/wordsize-64/mkstemp.c: File removed.
3373         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3374         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3375         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3376         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3377
3378         [BZ #14138]
3379         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3380         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3381         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3382         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3383
3384         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3385         compat_symbol macros from <shlib-compat.h> rather than the underlying
3386         default_symbol_version and symbol_version macros, so that DEFAULT
3387         lines in shlib-versions are respected.
3388         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3389
3390 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3391
3392         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3393         Declare with warn_unused_result.
3394         (setgid, setregid, setegid, setresgid): Likewise.
3395         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3396         Likewise.
3397         * WUR-REPORT: Remove set*id functions.
3398
3399 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3400
3401         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3402
3403 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3404
3405         * include/sys/socket.h (__libc_accept, __libc_accept4):
3406         Add attribute_hidden.
3407         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3408
3409         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3410         use of PTR_MANGLE.
3411         * inet/getnetgrent_r.c (setup): Likewise.
3412
3413         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3414
3415 2012-07-31  David S. Miller  <davem@davemloft.net>
3416
3417         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3418
3419 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3420
3421         [BZ #13629]
3422         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3423         value between 1.0 and 2.0 and smaller part has absolute value less
3424         than 1.0.
3425         * math/s_clog10.c (__clog10): Likewise.
3426         * math/s_clog10f.c (__clog10f): Likewise.
3427         * math/s_clog10l.c (__clog10l): Likewise.
3428         * math/s_clogf.c (__clogf): Likewise.
3429         * math/s_clogl.c (__clogl): Likewise.
3430         * math/libm-test.inc (clog_test): Add more tests.
3431         (clog10_test): Likewise.
3432         * sysdeps/i386/fpu/libm-test-ulps: Update.
3433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3434
3435 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3436
3437         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3438         Exit with zero in case no suitable GID is found, and write a
3439         message to standard error.
3440
3441 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3442
3443         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3444         rather than to 1.
3445         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3446         (MAXPATHLEN): Removed.
3447         (NOGROUP, NODEV): New macros.
3448         (setbit, clrbit, isset, isclr): New macros.
3449         (howmany, roundup, powerof2): New macros.
3450         (DEV_BSIZE): New macro.
3451
3452         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3453         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3454
3455         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3456         definition on [!__NO_LONG_DOUBLE_MATH].
3457
3458         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3459         PTR_MANGLE and PTR_DEMANGLE.
3460
3461         * socket/accept4.c (accept4): Rename to __libc_accept4.
3462         Define accept4 as a weak alias.
3463
3464         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3465         on [_DIRENT_HAVE_D_TYPE].
3466         * io/ftw.c (ftw_dir): Likewise.
3467
3468         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3469
3470         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3471
3472         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3473         Use the BSD numbers rather than the arbitrary ones we had.
3474         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3475         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3476         (SIGXCPU, SIGXFSZ): New macros.
3477         (_NSIG): Now 32.
3478
3479         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3480         initializer on [_LIBC_REENTRANT].
3481
3482         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3483         definitions inside [_POSIX_MAPPED_FILES].
3484
3485         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3486
3487         * dirent/opendir.c: Include <fcntl.h>.
3488
3489         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3490         (__libc_getspecific): Likewise.
3491         (__libc_key_create): Likewise.
3492
3493         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3494         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3495         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3496         (tmpfile64): Define as alias.
3497         * sysdeps/wordsize-64/tmpfile.c: File removed.
3498         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3499         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3500         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3501
3502         * stdio-common/vfscanf.c: Include <stdbool.h>.
3503         * nss/makedb.c: Likewise.
3504         * stdio-common/_i18n_number.h: Likewise.
3505         * argp/argp-help.c: Likewise.
3506         * posix/wordexp.c: Likewise.
3507         * sysdeps/posix/spawni.c: Likewise.
3508         * nss/nss_files/files-initgroups.c: Likewise.
3509         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3510         * nss/nss_files/files-initgroups.c: Likewise.
3511         * nss/nss_db/db-netgrp.c: Likewise.
3512         * nss/nss_db/db-initgroups.c: Likewise.
3513         * io/fchmodat.c: Include <sys/stat.h>.
3514
3515         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3516         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3517
3518         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3519         [HAVE_MMAP].
3520
3521         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3522         Add multiple inclusion protection.
3523
3524 2012-07-27  David S. Miller  <davem@davemloft.net>
3525
3526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3527
3528 2012-07-27  Gary Benson  <gbenson@redhat.com>
3529
3530         [BZ #14298]
3531         * elf/rtld.c: Include <stap-probe.h>.
3532         (dl_main): Added static probes "init_start" and "init_complete".
3533         * elf/dl-load.c: Include <stap-probe.h>.
3534         (lose): Take new parameter "nsid".
3535         Added static probe "map_failed".
3536         (_dl_map_object_from_fd): Pass namespace id to lose.
3537         Added static probe "map_start".
3538         (open_verify): Pass namespace id to lose.
3539         * elf/dl-open.c: Include <stap-probe.h>.
3540         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3541         and "reloc_complete".
3542         * elf/dl-close.c: Include <stap-probe.h>.
3543         (_dl_close_worker): Added static probes "unmap_start" and
3544         "unmap_complete".
3545         * elf/rtld-debugger-interface.txt: New file documenting the above.
3546
3547 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3548
3549         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3550         rather than a string variable.
3551         * sunrpc/rpc_main.c (h_output): Likewise.
3552         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3553
3554 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3555
3556         * inet/check_native.c: New file.
3557
3558 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3559
3560         [BZ #13629]
3561         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3562         if larger part has absolute value 1.0.
3563         * math/s_clog10.c (__clog10): Likewise.
3564         * math/s_clog10f.c (__clog10f): Likewise.
3565         * math/s_clog10l.c (__clog10l): Likewise.
3566         * math/s_clogf.c (__clogf): Likewise.
3567         * math/s_clogl.c (__clogl): Likewise.
3568         * math/libm-test.inc (clog_test): Add more tests.
3569         (clog10_test): Likewise.
3570         * sysdeps/i386/fpu/libm-test-ulps: Update.
3571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3572
3573         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3574         (pltexit): Likewise.
3575         (La_regs): Likewise.
3576         (La_retval): Likewise.
3577         (int_retval): Likewise.
3578         Update #error for removed macros to refer only to definitions in
3579         tst-audit.h.
3580         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3581         macro.
3582         (pltexit): Likewise.
3583         (La_regs): Likewise.
3584         (La_retval): Likewise.
3585         (int_retval): Likewise.
3586         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3587         macro.
3588         (pltexit): Likewise.
3589         (La_regs): Likewise.
3590         (La_retval): Likewise.
3591         (int_retval): Likewise.
3592         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3593         macro.
3594         (pltexit): Likewise.
3595         (La_regs): Likewise.
3596         (La_retval): Likewise.
3597         (int_retval): Likewise.
3598         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3599         macro.
3600         (pltexit): Likewise.
3601         (La_regs): Likewise.
3602         (La_retval): Likewise.
3603         (int_retval): Likewise.
3604         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3605         macro.
3606         (pltexit): Likewise.
3607         (La_regs): Likewise.
3608         (La_retval): Likewise.
3609         (int_retval): Likewise.
3610         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3611         macro.
3612         (pltexit): Likewise.
3613         (La_regs): Likewise.
3614         (La_retval): Likewise.
3615         (int_retval): Likewise.
3616         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3617         macro definitions in tst-audit.h.
3618         * sysdeps/i386/tst-audit.h: New file.
3619         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3620         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3621         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3622         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3623         * sysdeps/sh/tst-audit.h: Likewise.
3624         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3625         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3626         * sysdeps/x86_64/tst-audit.h: Likewise.
3627
3628 2012-07-26  Andreas Jaeger  <aj@suse.de>
3629
3630         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3631         ptrace.
3632
3633         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3634         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3635         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3636         PTRACE_O_MASK.
3637         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3638         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3639         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3640
3641         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3642         value.
3643
3644         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3645         _sigsys.
3646         (si_call_addr, si_syscall, si_arch): Define new macro.
3647         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3648         _sigsys.
3649         (si_call_addr, si_syscall, si_arch): Define new marcro.
3650         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3651         _sigsys.
3652         (si_call_addr, si_syscall, si_arch): Define new macro.
3653         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3654         _sigsys.
3655         (si_call_addr, si_syscall, si_arch): Define new macro.
3656
3657 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3658
3659         [BZ #13717]
3660         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3661         Change to 2.4.21 where previously 2.4.1.
3662         * sysdeps/unix/sysv/linux/configure: Regenerated.
3663         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3664         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3665         Linux kernel version.
3666         (__ASSUME_STD_AUXV): Remove.
3667         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3668         kernel version.
3669         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3670         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3671         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3672         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3673         (__ASSUME_NETLINK_SUPPORT): Likewise.
3674         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3675         (__no_netlink_support): Remove conditional definition.
3676         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3677         Remove.
3678         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3679         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3680         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3681         (if_nameindex_ioctl): Remove.
3682         (if_nameindex_netlink): Do not handle __no_netlink_support.
3683         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3684         code.
3685         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3686         Remove conditional code.
3687         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3688         code.
3689         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3690         unconditional.
3691         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3692         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3693         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3694         Remove.
3695         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3696         [!__ASSUME_STD_AUXV]: Remove conditional code.
3697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3698         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3699         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3701         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3702         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3703         code.
3704         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3706         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3707         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3708         conditional code.
3709         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3711         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3712         code.
3713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3714         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3715         conditional code.
3716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3717         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3718         code unconditional.
3719         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3720         conditional code.
3721         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3722         unconditional.
3723         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3724         conditional code.
3725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3726         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3727         unconditional.
3728         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3729         conditional code.
3730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3731         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3732         code unconditional.
3733         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3734         conditional code.
3735         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3736         unconditional.
3737         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3738         conditional code.
3739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3740         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3741         code unconditional.
3742         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3743         conditional code.
3744         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3745         unconditional.
3746         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3747         conditional code.
3748
3749 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3750
3751         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3752         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3753         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3754         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3755         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3756         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3757         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3758         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3759         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3760         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3761         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3762         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3763         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3764         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3765         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3766         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3767         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3768         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3769         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3770         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3771         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3772         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3773         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3774
3775 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3776
3777         * Versions.def: Add GLIBC_2.17.
3778         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3779         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3780         Introduce __libc_secure_getenv.
3781         * stdlib/Versions (2.17): Add secure_getenv
3782         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3783         * stdlib/secure-getenv.c: Rename __secure_getenv to
3784         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3785         symbol __secure_getenv for GLIBC_2.0.
3786         * stdlib/tst-secure-getenv.c: New.
3787         * stdlib/Makefile (tests): Add testcase.
3788         * manual/startup.texi (Environment Access): Document
3789         secure_getenv.
3790         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3791         __libc_secure_getenv.
3792         * inet/ruserpass.c (ruserpass): Likewise.
3793         * malloc/mtrace.c (mtrace): Likewise.
3794         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3795         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3796         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3797         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3798         HAVE_SECURE_GETENV.
3799         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3800         __secure_getenv to __libc_secure_getenv.
3801         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3803         Likewise.
3804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3805         Likewise.
3806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3808         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3809         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3810         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3813
3814 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3815
3816         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3817         (struct La_i86_retval): Likewise.
3818         (struct La_x86_64_regs): Likewise.
3819         (struct La_x86_64_retval): Likewise.
3820         (struct La_x32_regs): Likewise.
3821         (struct La_x32_retval): Likewise.
3822         (struct La_ppc32_regs): Likewise.
3823         (struct La_ppc32_retval): Likewise.
3824         (struct La_ppc64_regs): Likewise.
3825         (struct La_ppc64_retval): Likewise.
3826         (struct La_sh_regs): Likewise.
3827         (struct La_sh_retval): Likewise.
3828         (struct La_s390_32_regs): Likewise.
3829         (struct La_s390_32_retval): Likewise.
3830         (struct La_s390_64_regs): Likewise.
3831         (struct La_s390_64_retval): Likewise.
3832         (struct La_sparc32_regs): Likewise.
3833         (struct La_sparc32_retval): Likewise.
3834         (struct La_sparc64_regs): Likewise.
3835         (struct La_sparc64_retval): Likewise.
3836         (struct audit_ifaces): Remove architecture-specific pltenter and
3837         pltexit members.
3838         * sysdeps/i386/ldsodefs.h: New file.
3839         * sysdeps/powerpc/ldsodefs.h: Likewise.
3840         * sysdeps/s390/ldsodefs.h: Likewise.
3841         * sysdeps/sh/ldsodefs.h: Likewise.
3842         * sysdeps/sparc/ldsodefs.h: Likewise.
3843         * sysdeps/x86_64/ldsodefs.h: Likewise.
3844
3845 2012-07-25  Marek Polacek  <polacek@redhat.com>
3846
3847         [BZ #6808]
3848         * math/libm-test.inc (yn_test): Add another test.
3849         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3850         to ERANGE when the result is +-Inf.
3851         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3852         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3853         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3854         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3855
3856 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3857
3858         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3859         equal to 0.
3860         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3861         clock_t.
3862         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3863
3864 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3865
3866         * configure.in <sysdeps resolving>: Correct printing
3867         Implies_before.
3868         * configure: Regenerate.
3869
3870 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3871
3872         * math/w_ilogb.c: Include <limits.h>.
3873         * math/w_ilogbl.c: Likewise.
3874
3875 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3876
3877         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3878         va_copy.  Document allowing for unavailable va_copy only as
3879         pre-C99 compatibility.
3880         * manual/string.texi (Copying and Concatenation): Use va_copy
3881         instead of __va_copy in concat example.
3882
3883 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3884
3885         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3886         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3887         it if not null.
3888
3889         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3890         with O_NOLINK passed to __file_name_lookup.
3891
3892         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3893         with O_NOLINK passed to __file_name_lookup.
3894
3895         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3896         negative N or less than NGIDS.
3897
3898         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3899         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3900         enough.  Use memcpy instead of strncpy.
3901
3902 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3903
3904         * elf/Makefile (check-data): Remove.
3905         (localplt.data): New vpath directive.
3906         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3907         instead of $(check-data).
3908         * scripts/data/localplt-generic.data: Move to ...
3909         * sysdeps/generic/localplt.data: ... here.
3910         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3911         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3912         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3914         ... here.
3915         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3917         ... here.
3918         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3920         ... here.
3921         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3922         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3923         ... here.
3924         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3925         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3926         ... here.
3927         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3928         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3929         ... here.
3930
3931 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3932
3933         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3934         PPC32 and PPC64 files.
3935         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3936         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3937
3938 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3939
3940         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3941         __makecontext_ret to ...
3942         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3943         ... here and call exit if uc_link is NULL.  New file.
3944         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3945         __makecontext_ret.S.
3946         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3947         __makecontext_ret to ...
3948         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3949         ... here and call exit if uc_link is NULL.  New file.
3950         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3951         __makecontext_ret.S.
3952
3953 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3954
3955         * elf/elf.h (R_390_IRELATIVE): New definition.
3956         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3957         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3958         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3959         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3960         (elf_machine_lazy_rel): Likewise.
3961         * sysdeps/s390/dl-irel.h: New file.
3962         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3963         * sysdeps/s390/s390-64/memset.S: New asm code.
3964         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3965         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3966         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3967         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3968         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3969         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3970         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3971         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3972         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3973         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3974         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3975         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3976         * sysdeps/s390/s390-32/memset.S: New asm code.
3977         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3978
3979 2012-07-17  Marek Polacek  <polacek@redhat.com>
3980
3981         [BZ #14349]
3982         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3983         * sysdeps/s390/s390-64/configure.in: Likewise.
3984         * sysdeps/sparc/configure.in: Likewise.
3985         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3986         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3987         * sysdeps/i386/configure.in: Likewise.
3988         * sysdeps/x86_64/configure.in: Likewise.
3989         * sysdeps/sh/configure.in: Likewise.
3990         * sysdeps/s390/s390-32/configure: Regenerated.
3991         * sysdeps/s390/s390-64/configure: Likewise.
3992         * sysdeps/x86_64/configure: Likewise.
3993         * sysdeps/sh/configure: Likewise.
3994         * sysdeps/powerpc/powerpc64/configure: Likewise.
3995         * sysdeps/powerpc/powerpc32/configure: Likewise.
3996         * sysdeps/sparc/configure: Likwise.
3997         * sysdeps/i386/configure: Likewise.
3998
3999         * elf/dl-open.c: Comment fixes.
4000
4001 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4002
4003         * Makefile [CXX] (check-data): Remove.
4004         [CXX] (c++-types.data): New vpath directive.
4005         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4006         vpath.  Do not allow for C++ type data being missing.
4007         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4008         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4009         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4010         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4011         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4012         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4013         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4015         ... here.
4016         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4018         ... here.
4019         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4020         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4021         ... here.
4022         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4023         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4024         ... here.
4025         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4026         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4027         ... here.
4028         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4030         ... here.
4031         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4033         ... here.
4034         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4036
4037         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4038         definitions to architecture-specific files.
4039         (TLS_IE): Likewise.
4040         (TLS_LD): Likewise.
4041         (TLS_GD): Likewise.
4042         * sysdeps/i386/tls-macros.h: New file.
4043         * sysdeps/powerpc/tls-macros.h: Likewise.
4044         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4045         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4046         * sysdeps/sh/tls-macros.h: Likewise.
4047         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4048         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4049         * sysdeps/x86_64/tls-macros.h: Likewise.
4050
4051 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4052
4053         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4054         zero value for regular exit case.
4055
4056         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4057         (__start_context): Preserve zero value for regular exit case.
4058
4059 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4060             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4061
4062         * manual/setjmp.texi (setcontext): Clarify normal process
4063         termination when uc_link is the null pointer.
4064         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4065         exit call.
4066
4067 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4068
4069         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4070         preprocessor.  Test for each exception mask separately.
4071
4072 2012-07-16  Andreas Jaeger  <aj@suse.de>
4073
4074         * po/ru.po: Update from translation team.
4075
4076 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4077
4078         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4079         equal to 0.
4080         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4081         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4082         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4083         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4084         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4085
4086 2012-07-13  Andreas Jaeger  <aj@suse.de>
4087
4088         * po/fr.po: Update from translation team.
4089
4090 2012-07-12  Marek Polacek  <polacek@redhat.com>
4091
4092         [BZ #14173]
4093         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4094         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4095         loop condition.
4096
4097 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4098
4099         [BZ #13717]
4100         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4101         Change to 2.4.1 where previously 2.4.0.
4102         * sysdeps/unix/sysv/linux/configure: Regenerated.
4103         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4104         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4105         version.
4106         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4107         (__ASSUME_AT_CLKTCK): Remove.
4108         (__ASSUME_AT_PAGESIZE): Likewise.
4109         (__ASSUME_AT_XID): Likewise.
4110         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4111         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4112         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4113         unconditionally.
4114         (HAVE_AUX_PAGESIZE): Likewise.
4115         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4116         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4117         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4118
4119 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4120
4121         [BZ #14307]
4122         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4123         the temporary buffer used to invoke __gethostbyname2_r,
4124         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4125         host_data / struct gaih_addrtuple.
4126         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4127         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4128         header file nss/nsswitch.h.
4129         * nss/nsswitch.h (global scope): Add definition of implementation
4130         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4131         resolv/nss_dns/dns-host.c).
4132
4133 2012-07-11  Andreas Jaeger  <aj@suse.de>
4134
4135         * po/fr.po: Update from translation team.
4136
4137         * po/sv.po: Update from translation team
4138         * po/fr.po: Another update from translation team.
4139
4140 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4141
4142         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4143         for subnormals or multiply small sinh result by itself.
4144         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4145         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4146
4147 2012-07-11  David S. Miller  <davem@davemloft.net>
4148
4149         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4150
4151 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4152
4153         [BZ #14347]
4154         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4155         (INTERNAL_MARK): Shift it here.
4156
4157 2012-07-10  Marek Polacek  <polacek@redhat.com>
4158
4159         [BZ #14151]
4160         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4161         libc_cv_asm_global_directive with .globl.
4162         * configure: Regenerated.
4163         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4164         with .globl.
4165         * sysdeps/i386/configure: Regenerated.
4166         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4167         with .globl.
4168         * sysdeps/x86_64/configure: Regenerated.
4169         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4170         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4171         * elf/tst-unique2mod2.c: Likewise.
4172         * elf/tst-unique2mod1.c: Likewise.
4173         * elf/tst-unique1mod2.c: Likewise.
4174         * elf/tst-unique1mod1.c: Likewise.
4175         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4176         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4177         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4178         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4179         * sysdeps/mach/sysdep.h: Likewise.
4180         * sysdeps/i386/sysdep.h: Likewise.
4181         * sysdeps/i386/i386-mcount.S: Likewise.
4182         * sysdeps/x86_64/_mcount.S: Likewise.
4183         * sysdeps/x86_64/sysdep.h: Likewise.
4184         * sysdeps/sh/_mcount.S: Likewise.
4185         * sysdeps/sh/sysdep.h: Likewise.
4186         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4187         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4188         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4189         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4190         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4191         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4192         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4193         * locale/localeinfo.h: Likewise.
4194         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4195         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4196
4197 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4198
4199         [BZ #14336]
4200         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4201         system".
4202         * manual/message.texi (The Uniforum approach): Likewise.
4203         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4204         (glibc iconv Implementation): Likewise.
4205
4206 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4207
4208         [BZ #14337]
4209         * math/s_clog.c (__clog): Avoid scaling a value down where that
4210         could result in underflow.
4211         * math/s_clog10.c (__clog10): Likewise.
4212         * math/s_clog10f.c (__clog10f): Likewise.
4213         * math/s_clog10l.c (__clog10l): Likewise.
4214         * math/s_clogf.c (__clogf): Likewise.
4215         * math/s_clogl.c (__clogl): Likewise.
4216         * math/libm-test.inc (clog_test): Add more tests.
4217         (clog10_test): Likewise.
4218         * sysdeps/i386/fpu/libm-test-ulps: Update.
4219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4220
4221 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4222
4223         [BZ #14283]
4224         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4225         by 7 not 8 to examine high bit of fractional part.
4226
4227         [BZ #14042]
4228         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4229         for call to __mcount_internal.
4230         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4231         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4232         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4233
4234 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4235
4236         [BZ #14154]
4237         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4238         approximation for values within 0x1p-13f of an odd multiple of
4239         pi/4.
4240         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4241         exception.  Add more tests.
4242         * sysdeps/i386/fpu/libm-test-ulps: Update.
4243
4244         [BZ #6778]
4245         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4246         inputs and return -1 for them.  Do not check for +Inf in case not
4247         reachable for +Inf.
4248         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4249         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4250         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4251         and return -1 for them.  Do not check for +Inf in case not
4252         reachable for +Inf.
4253         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4254         define.
4255         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4256         and return -1 for them.  Do not check for +Inf in case not
4257         reachable for +Inf.
4258         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4259         spurious underflow.
4260         * sysdeps/i386/fpu/libm-test-ulps: Update.
4261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4262
4263 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4264
4265         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4266
4267 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4268
4269         [BZ #14157]
4270         [BZ #14331]
4271         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4272         could result in spurious underflow.  Scale down values above
4273         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4274         * math/s_csqrtf.c (__csqrtf): Likewise.
4275         * math/s_csqrtl.c (__csqrtl): Likewise.
4276         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4277         spurious underflow.
4278         * sysdeps/i386/fpu/libm-test-ulps: Update.
4279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4280
4281 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4282
4283         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4284         xopen-msg.sed.
4285         * catgets/xopen-msg.awk: New file.
4286         * catgets/xopen-msg.sed: Removed.
4287
4288         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4289         po2text.sed.
4290         * intl/po2test.awk: New file.
4291         * intl/po2test.sed: Removed.
4292
4293 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4294
4295         [BZ #14328]
4296         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4297         or multiply small sinh result by itself.
4298         * math/s_ctanf.c (__ctanf): Likewise.
4299         * math/s_ctanh.c (__ctanh): Likewise.
4300         * math/s_ctanhf.c (__ctanhf): Likewise.
4301         * math/s_ctanhl.c (__ctanhl): Likewise.
4302         * math/s_ctanl.c (__ctanl): Likewise.
4303         * math/libm-test.inc (ctan_test_tonearest): New function.
4304         (ctan_test_towardzero): Likewise.
4305         (ctan_test_downward): Likewise.
4306         (ctan_test_upward): Likewise.
4307         (ctanh_test_tonearest): Likewise.
4308         (ctanh_test_towardzero): Likewise.
4309         (ctanh_test_downward): Likewise.
4310         (ctanh_test_upward): Likewise.
4311         (main): Call these new functions.
4312         * sysdeps/i386/fpu/libm-test-ulps: Update.
4313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4314
4315 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4316
4317         * .gitignore: Delete /ports entry.
4318
4319 2012-07-03  Andreas Jaeger  <aj@suse.de>
4320
4321         * po/bg.po: Update from translation team.
4322         * po/cs.po: Likewise.
4323         * po/de.po: Likewise.
4324         * po/hr.po: Likewise.
4325         * po/nl.pl: Likewise.
4326         * po/pl.po: Likewise.
4327         * po/vi.po: Likewise.
4328
4329 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4330
4331         * Makeconfig [!+link] (+link-before-libc): New variable.
4332         [!+link] (+link-after-libc): Likewise.
4333         [!+link] (+link-tests): Likewise.
4334         [!+link] (+link): Define in terms of $(+link-before-libc) and
4335         $(+link-after-libc).
4336         [!+link-static] (+link-static-before-libc): New variable.
4337         [!+link-static] (+link-static-after-libc): Likewise.
4338         [!+link-static] (+link-static-tests): Likewise.
4339         [!+link-static] (+link-static): Define in terms of
4340         $(+link-static-before-libc) and $(+link-static-after-libc).
4341         [build-shared] (link-libc-before-gnulib): New variable.
4342         [build-shared] (link-libc-tests): Likewise.
4343         [build-shared] (link-libc): Define in terms of
4344         $(link-libc-before-gnulib).
4345         [!build-shared] (link-libc-tests): New variable.
4346         (link-libc-static-tests): New variable.
4347         [!gnulib] (gnulib-arch): New variable.
4348         [!gnulib] (gnulib-tests): Likewise.
4349         [!gnulib] (static-gnulib-arch): Likewise.
4350         [!gnulib] (static-gnulib-tests): Likewise.
4351         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4352         Define with "=" instead of ":=".
4353         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4354         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4355         * Rules (binaries-all-notests): New variable.
4356         (binaries-all-tests): Likewise.
4357         (binaries-static-notests): Likewise.
4358         (binaries-static-tests): Likewise.
4359         (binaries-all): Define using $(binaries-all-notests) and
4360         $(binaries-all-tests).
4361         (binaries-static): Define using $(binaries-static-notests) and
4362         $(binaries-static-tests).
4363         (binaries-shared-tests): New variable.
4364         (binaries-shared-notests): Likewise.
4365         (binaries-shared): Remove variable.
4366         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4367         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4368         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4369         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4370         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4371         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4372         * elf/Makefile (sln-modules): New variable.
4373         (extra-objs): Add $(sln-modules:=.o).
4374         (ldconfig-modules): Add static-stubs.
4375         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4376         * elf/static-stubs.c: New file.
4377
4378         [BZ #14283]
4379         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4380         by 7 not 8 to examine high bit of fractional part.  Use volatile
4381         variables when splitting into final array of floats if
4382         __FLT_EVAL_METHOD__ != 0.
4383         * math/libm-test.inc (cos_test): Add another test.
4384         (sin_test): Likewise.
4385         * sysdeps/i386/fpu/libm-test-ulps: Update.
4386
4387         [BZ #14273]
4388         * math/libm-test.inc (cosh_test): Add more tests.
4389
4390         * version.h (RELEASE): Set to "development".
4391         (VERSION): Set to "2.16.90".
4392
4393 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4394
4395         * NEWS: Update copyright. Remove last-updated date.
4396         Mention math library bug fixes and timezone data changes.
4397         * README: Mention GNU/Hurd, x32, and HPPA support status.
4398
4399 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4400
4401         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4402
4403 2012-06-27  Andreas Jaeger  <aj@suse.de>
4404
4405         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4406
4407 2012-06-25  Andreas Jaeger  <aj@suse.de>
4408
4409         * sysdeps/s390/fpu/libm-test-ulps: Update.
4410
4411 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4412             Thomas Schwinge  <thomas@codesourcery.com>
4413
4414         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4415         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4416         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4417         fanotify_mark.
4418
4419 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4420
4421         * sysdeps/mach/start.c: Remove file.
4422         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4423         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4424         * sysdeps/sh/init-first.c: Likewise.
4425
4426         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4427         registers for frame unwinding purposes, add CFI directives.
4428         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4429         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4430         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4431         Likewise.
4432
4433         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4434         __fortify_fail returning.
4435         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4436
4437         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4438         sysdeps/sh/____longjmp_chk.S.
4439         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4440         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4441         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4442         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4443
4444         * sysdeps/sh/abort-instr.h: New file.
4445         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4446         process in case exit returns.
4447
4448         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4449         initialize the GOT register before use.
4450
4451         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4452         calculation of ARGC > 4.
4453
4454         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4455         meaningful names to some local labels.
4456
4457 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4458             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4459
4460         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4461         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4462         (__arch_compare_and_exchange_val_16_acq): Likewise.
4463         (__arch_compare_and_exchange_val_32_acq): Likewise.
4464         (atomic_exchange_and_add): Fix gUSA sequence.
4465         (atomic_add): Likewise.
4466         (atomic_add_negative): Likewise.
4467         (atomic_add_zero): Likewise.
4468         (atomic_bit_test_set): Likewise.
4469
4470 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4471
4472         [BZ #13579]
4473         * include/link.h (struct link_map): Add l_free_initfini.
4474         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4475         l_initfini.
4476         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4477         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4478         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4479         set.
4480
4481 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4482
4483         * configure.in: Use AC_LANG_SOURCE.
4484         * configure: Regenerate.
4485
4486 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4487
4488         * configure.in (libc_cv_localstatedir): New substituted variable.
4489         * configure: Regenerated.
4490         * config.make.in (localstatedir): New variable, substituted from
4491         libc_cv_localstatedir.
4492         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4493         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4494         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4495         * sysdeps/gnu/configure: Regenerated.
4496
4497 2012-06-21  Jeff Law  <law@redhat.com>
4498
4499         [BZ #14277]
4500         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4501         free.  Simplify list management for _LIBC case.
4502
4503 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4504
4505         [BZ #14273]
4506         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4507         Clear sign bit of 64-bit integer value before comparing against
4508         overflow value.
4509
4510         * sysdeps/mach/configure: Regenerated.
4511
4512 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4513
4514         [BZ #14278]
4515         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4516
4517 2012-06-21  Jeff Law  <law@redhat.com>
4518
4519         [BZ #13882]
4520         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4521         uint16_t for elements in the "seen" array to avoid char overflows.
4522         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4523         * elf/dl-open.c (dl_open_worker): Likewise.
4524
4525 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4526
4527         * scripts/list-sources.sh: Scan PORTS for translations.
4528         * po/libc.pot: Regenerated.
4529
4530 2012-06-21  Andreas Jaeger  <aj@suse.de>
4531
4532         [BZ #12194]
4533         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4534         warning.
4535         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4536         * bits/byteswap-16.h (__bswap_16): Likewise.
4537         * bits/byteswap.h (__bswap_constant_16): Likewise.
4538
4539 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4540
4541         [BZ #14117]
4542         * sysdeps/i386/fpu_control.h: Removed.
4543         * sysdeps/x86_64/fpu_control.h: Moved to ...
4544         * sysdeps/x86/fpu_control.h: Here.
4545
4546         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4547         (_FPU_SETCW): Likewise.
4548
4549 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4550
4551         [BZ #14117]
4552         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4553         * sysdeps/x86/fpu/bits/mathinline.h: This.
4554         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4555
4556         [BZ #14050]
4557         [BZ #14117]
4558         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4559         functions if __x86_64__ is defined.
4560
4561 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4562
4563         * string/endian.h: Add !__ASSEMBLER__ condition for including
4564         conversion interfaces.
4565
4566 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4567
4568         [BZ #14241]
4569         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4570         of ABS(x) in calculating zero to negative powers other than odd
4571         integers.
4572         * math/libm-test.inc (pow_test): Add more tests.
4573
4574 2012-06-15  Andreas Jaeger  <aj@suse.de>
4575
4576         * manual/contrib.texi (Contributors): Update entry of Liubov
4577         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4578         Machado Filho.
4579
4580 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4581
4582         * string/string.h: Add __wur to GNU version of strerror_r.
4583
4584 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4585
4586         [BZ #14229]
4587         * string/Makefile (tests): Add tst-strtok_r.
4588         * string/tst-strtok_r.c: New file.
4589         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4590         RAX_LP/RDX_LP on SAVE_PTR.
4591
4592 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4593
4594         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4595
4596 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4597
4598         * libm_test.inc (csqrt_test): Allow more spurious underflow
4599         exceptions.
4600         (j0_test): Likewise.
4601         (j1_test): Likewise.
4602         (y0_test): Likewise.
4603         (y1_test): Likewise.
4604
4605 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4606
4607         * po/Makefile (libc.pot): Use UTF-8 charset.
4608
4609 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4610
4611         [BZ #14210]
4612         Suppress sign-conversion warning from FD_SET.
4613         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4614         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4615         not unsigned long int.
4616         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4617
4618 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4619
4620         [BZ #14050]
4621         [BZ #14117]
4622         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4623         __extern_always_inline instead of __extern_inline.
4624         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4625         (__signbit): Likewise.
4626         (__signbitl): Support C++ namespace.
4627         (lrintf): New inline function.
4628         (lrint): Likewise.
4629         (llrintf): Likewise.
4630         (llrint): Likewise.
4631         (fmaxf): Likewise.
4632         (fmax): Likewise.
4633         (fminf): Likewise.
4634         (fmin): Likewise.
4635         (rint): Likewise.
4636         (rintf): Likewise.
4637         (ceil): Likewise.
4638         (ceilf): Likewise.
4639         (floor): Likewise.
4640         (floorf): Likewise.
4641         (nearbyint): Likewise.
4642         (nearbyintf): Likewise.
4643
4644 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4645
4646         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4647         non-default versions.
4648
4649 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4650
4651         [BZ #14218]
4652         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4653
4654 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4655
4656         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4657         (FE_UPWARD, FE_DOWNWARD): Don't define.
4658         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4659         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4660
4661         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4662         reading it.
4663         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4664         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4665
4666 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4667
4668         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4669         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4670         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4671         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4672
4673 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4674
4675         [BZ #14117]
4676         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4677         * sysdeps/i386/fpu/Implies: New file.
4678         * sysdeps/x86_64/fpu/Implies: Likewise.
4679         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4680         * sysdeps/x86/fpu/bits/fenv.h: This.
4681
4682         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4683         __SSE_MATH__.
4684
4685 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4686
4687         [BZ #14134]
4688         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4689         character 0xffff that matches the last element of the
4690         conversion table.
4691
4692 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4693
4694         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4695         fmodl commit.
4696
4697 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4698
4699         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4700         values higher than 25.6283.
4701
4702 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4703
4704         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4705         subnormal exponent extraction and add some __builtin_expect.
4706         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4707         Fix for subnormal mantissa calculation.
4708
4709 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4710
4711         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4712         cpu2 is -1 and errno is not ENOSYS.
4713
4714 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4715
4716         [BZ #14117]
4717         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4718         * sysdeps/x86/bits/string.h: This.
4719         * sysdeps/x86_64/bits/string.h: Removed.
4720
4721         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4722         if not compiling for x86-64, but compiling for >= i486.
4723
4724         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4725         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4726
4727         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4728         New macro from Linux kernel 3.4.0.
4729         (FP_XSTATE_MAGIC2): Likewise.
4730         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4731         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4732         (struct _fpx_sw_bytes): New struct.
4733         (struct _xsave_hdr): Likewise.
4734         (struct _ymmh_state): Likewise.
4735         (struct _xstate): Likewise.
4736
4737         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4738         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4739         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4740         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4741         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4742         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4743
4744         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4745         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4746         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4747         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4748         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4749         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4750
4751 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4752
4753         [BZ #13743]
4754         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4755         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4756         (sysdep_headers): Include sys/platform/ppc.h.
4757         * sysdeps/powerpc/test-gettimebase.c: Test for
4758         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4759         * manual/Makefile (appendices): Include platform.texi.
4760         * manual/contrib.texi (Contributors): Update @node pointers.
4761         * manual/maint.texi (Maintenance): Likewise.
4762         (Platform): New node.
4763         * manual/platform.texi: New file.  Document the new features.
4764
4765 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4766             Jakub Jelinek  <jakub@redhat.com>
4767
4768         [BZ #14188]
4769         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4770         where __builtin_expect is unavailable.
4771
4772 2012-06-03  David S. Miller  <davem@davemloft.net>
4773
4774         * stdlib/longlong.h: Updated from GCC.
4775
4776 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4777
4778         [BZ #14042]
4779         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4780         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4781         __mcount_internal.
4782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4783         (GLIBC_2.16): Likewise.
4784
4785 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4786
4787         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4788
4789 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4790
4791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4792         (default-abi): New variable.
4793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4794         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4795         variable.
4796         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4797         Likewise.
4798         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4799         Likewise.
4800         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4801         Likewise.
4802
4803         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4804         definition.  Document in comment.
4805
4806 2012-06-01  David S. Miller  <davem@davemloft.net>
4807
4808         * stdlib/longlong.h: Updated from GCC.
4809
4810 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4811
4812         [BZ #14117]
4813         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4814         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4815         sys/debugreg.h sys/io.h here.
4816         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4817         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4818         sys/io.h.
4819         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4820         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4821         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4822         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4823         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4824         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4825
4826         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4827         Define only if __x86_64__ is defined.
4828
4829 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4830
4831         [BZ #14048]
4832         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4833         Use int64_t for variable i.
4834         * math/libm-test.inc (fmod_test): Add more tests.
4835
4836         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4837         z computation is not scheduled after fetestexcept.
4838         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4839         Use math_force_eval instead of asm to ensure calculation scheduled
4840         before exception test.
4841         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4842         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4843
4844 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4845
4846         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4847         computation is not scheduled after fetestexcept.
4848
4849 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4850
4851         [BZ #14117]
4852         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4853         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4854
4855 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4856
4857         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4858         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4859
4860 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4861
4862         [BZ #14117]
4863         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4864         <bits/wordsize.h>.
4865         (__WCHAR_MIN): Support __WORDSIZE == 64.
4866         (__WCHAR_MAX): Likewise.
4867
4868         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4869         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4870
4871         [BZ #14183]
4872         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4873         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4874
4875         [BZ #14117]
4876         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4877         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4878
4879         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4880         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4881
4882         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4883         Defined to 1 if __x86_64__ isn't defined.
4884         (_STAT_VER_LINUX_OLD): New.
4885         (st_atime): Remove duplicate.
4886         (st_mtime): Likewise.
4887         (st_ctime): Likewise.
4888
4889 2012-05-31  David S. Miller  <davem@davemloft.net>
4890
4891         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4892         entries.
4893
4894 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4895
4896         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4897         gen-libm-test.pl.
4898
4899         [BZ #14132]
4900         * elf/dl-reloc.c: Include <_itoa.h>.
4901         (_dl_reloc_bad_type): Remove use of INTUSE.
4902         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4903         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4904         * stdio-common/psiginfo.c (psiginfo): Likewise.
4905         * stdio-common/psignal.c (psignal): Likewise.
4906         * string/strsignal.c (strsignal): Likewise.
4907         * include/signal.h (_sys_siglist): Declare hidden proto.
4908         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4909         INTVARDEF with libc_hidden_data_def.
4910         * stdio-common/itoa-udigits.c: Likewise.
4911         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4912         (_itoa_lower_digits_internal): Remove declaration.
4913         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4914         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4915         (_sys_sigabbrev_internal): Remove aliases.
4916         (_sys_siglist): Define hidden alias.
4917
4918 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4919
4920         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4921         bits/sysctl.h.
4922
4923 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4924
4925         [BZ #14117]
4926         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4927         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4928
4929         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4930         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4931         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4932         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4933         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4934         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4935
4936         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4937         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4938         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4939
4940         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4941         with __addr.
4942         (insw): Likewise.
4943         (insl): Likewise.
4944         (outsb): Likewise.
4945         (outsw): Likewise.
4946         (outsl): Likewise.
4947
4948         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4949         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4950         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4951
4952         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4953         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4954         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4955         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4956         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4957         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4958
4959         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4960         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4961
4962         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4963         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4964
4965         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4966         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4967         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4968
4969         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4970         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4971         to ...
4972         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4973
4974         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4975         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4976         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4977
4978         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4979         for x86-64.
4980         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4981
4982 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4983
4984         * math/math.h (M_El): Use two more decimal places.
4985         (M_LOG2El): Likewise.
4986         (M_LOG10El): Likewise.
4987         (M_LN2l): Likewise.
4988         (M_LN10l): Likewise.
4989         (M_PIl): Likewise.
4990         (M_PI_2l): Likewise.
4991         (M_PI_4l): Likewise.
4992         (M_1_PIl): Likewise.
4993         (M_2_PIl): Likewise.
4994         (M_2_SQRTPIl): Likewise.
4995         (M_SQRT2l): Likewise.
4996         (M_SQRT1_2l): Likewise.
4997
4998 2012-05-31  David S. Miller  <davem@davemloft.net>
4999
5000         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5001         values between float registers.
5002         * sysdeps/sparc/sparc64/memset.S: Likewise.
5003         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5004
5005 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5006
5007         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5008         -D_FORTIFY_SOURCE=1.
5009         (CPPFLAGS-tst-longjmp_chk.c): Define.
5010         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5011         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5012         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5013         CFLAGS-tst-wchar-h.c.
5014
5015 2012-05-31  Marek Polacek  <polacek@redhat.com>
5016
5017         [BZ #14132]
5018         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5019         __endmntent_internal): Remove declaration.
5020         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5021         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5022         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5023
5024 2012-05-30  David S. Miller  <davem@davemloft.net>
5025
5026         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5027         (___Q_simulate_exceptions): Use real FP ops rather than writing
5028         into the %fsr.
5029         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5030         Likewise.
5031
5032 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5033
5034         [BZ #14117]
5035         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5036         * sysdeps/x86/bits/xtitypes.h: This.
5037
5038         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5039         * sysdeps/x86/bits/wordsize.h: This.
5040
5041         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5042         * sysdeps/x86/bits/huge_vall.h: This.
5043
5044         * sysdeps/i386/bits/select.h: Removed.
5045         * sysdeps/x86_64/bits/select.h: Renamed to ...
5046         * sysdeps/x86/bits/select.h: This.
5047
5048         * sysdeps/i386/bits/setjmp.h: Removed.
5049         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5050         * sysdeps/x86/bits/setjmp.h: This.
5051
5052         * sysdeps/i386/bits/mathdef.h: Removed.
5053         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5054         * sysdeps/x86/bits/mathdef.h: This.
5055
5056 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5057
5058         [BZ #14132]
5059         * include/sys/socket.h (__connect_internal)
5060         (__libc_sa_len_internal): Remove declaration.
5061         (__connect, __libc_sa_len): Declare hidden_proto.
5062         (SA_LEN): Remove use of INTUSE.
5063         * socket/connect.c: Add libc_hidden_def.
5064         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5065         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5066         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5067         alias.
5068         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5069         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5070         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5071         of adding _internal alias.
5072
5073 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5074
5075         [BZ #14117]
5076         * sysdeps/i386/bits/link.h: Removed.
5077         * sysdeps/i386/bits/linkmap.h: Likewise.
5078         * sysdeps/x86_64/bits/link.h: Renamed to ...
5079         * sysdeps/x86/bits/link.h: This.
5080         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5081         * sysdeps/x86/bits/linkmap.h: This.
5082
5083         * sysdeps/i386/bits/endian.h: Removed.
5084         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5085         * sysdeps/x86/bits/endian.h: This.
5086
5087         * sysdeps/i386/bits/byteswap.h: Removed.
5088         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5089         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5090         * sysdeps/x86/bits/byteswap.h: This.
5091         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5092         * sysdeps/x86/bits/byteswap-16.h: This.
5093         * sysdeps/i386/Implies: Add x86.
5094         * sysdeps/x86_64/Implies: Likewise.
5095
5096 2012-05-30  David S. Miller  <davem@davemloft.net>
5097
5098         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5099         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5100         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5101         (FP_TRAPPING_EXCEPTIONS): Define.
5102         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5103         (FP_TRAPPING_EXCEPTIONS): Define.
5104         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5105         subnormals only when inexact has been signalled or underflow
5106         exceptions are enabled.
5107         (_FP_PACK_CANONICAL): Likewise.
5108
5109 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5110
5111         [BZ #14183]
5112         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5113         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5114
5115 2012-05-30  Richard Henderson  <rth@twiddle.net>
5116
5117         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5118         with #ifndef NOT_IN_libc.
5119
5120         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5121         marked to avoid plt entry.
5122
5123 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5124
5125         [BZ #14112]
5126         * Makeconfig (default-abi): New macro.
5127         (abi-includes): Likewise.
5128         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5129         $(abi-$(default-abi)-lib-soname) for soname if defined.
5130         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5131         abi-variants.
5132         * Makefile (installed-stubs): Likewise.
5133         * include/stubs-biarch.h: Removed.
5134         * scripts/lib-names.awk: Only handle one library at a time.
5135         * scripts/soversions.awk: Remove WORDSIZE support.
5136         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5137         entries.
5138         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5139         Removed.
5140         (syscall-list-default-condition): Likewise.
5141         (syscall-list-default-condition): Likewise.
5142         (syscall-list-includes): Likewise.
5143         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5144         syscall-list-* with abi-*.  Handle undefined abi-variants.
5145         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5146         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5147         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5148         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5149         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5150         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5151         Removed.
5152         (syscall-list-32-options): Likewise.
5153         (syscall-list-32-condition): Likewise.
5154         (syscall-list-64-options): Likewise.
5155         (syscall-list-64-condition): Likewise.
5156         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5157         macro.
5158         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5159         Renamed to ...
5160         (abi-*): This.
5161         (abi-64-ld-soname): New macro.
5162         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5163         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5164         Renamed to ...
5165         (abi-*): This.
5166         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5167         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5168
5169 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5170
5171         * sysdeps/unix/sysv/linux/kernel-features.h
5172         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5173         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5174         include <kernel-features.h>.
5175         [!__NR_ftruncate64]: Remove conditional code.
5176         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5177         [__NR_ftruncate64]: Make code unconditional.
5178         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5179         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5180         include <kernel-features.h>.
5181         [!__NR_ftruncate64]: Remove conditional code.
5182         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5183         [__NR_ftruncate64]: Make code unconditional.
5184         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5186         include <kernel-features.h>.
5187         [!__NR_ftruncate64]: Remove conditional code.
5188         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5189         [__NR_ftruncate64]: Make code unconditional.
5190         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5192         include <kernel-features.h>.
5193         [!__NR_ftruncate64]: Remove conditional code.
5194         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5195         [__NR_ftruncate64]: Make code unconditional.
5196         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5197
5198         * configure.in (libc_cv_fpie): Weaken to a compile test using
5199         LIBC_TRY_CC_OPTION.
5200         * configure: Regenerated.
5201
5202 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5203
5204         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5205         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5206         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5207         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5208         Refreshed.
5209         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5210         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5211         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5212         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5213         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5215         Refreshed.
5216
5217 2012-05-27  David S. Miller  <davem@davemloft.net>
5218
5219         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5220         (___Q_zero): New.
5221         (__Q_simulate_exceptions): Return void.  Change to simulate
5222         exceptions by writing into the %fsr.
5223         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5224         (__Qp_handle_exceptions): Likewise.
5225         (numbers): Delete.
5226         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5227         __Qp_handle_exceptions.
5228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5229         __Qp_handle_exceptions.
5230         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5231         as unused and give dummy FP_RND_NEAREST initializer.
5232         (FP_INHIBIT_RESULTS): Define.
5233         (___Q_simulate_exceptions): Update declaration.
5234         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5235         formatting.
5236         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5237         as unused and give dummy FP_RND_NEAREST initializer.
5238         (__Qp_handle_exceptions): Update declaration.
5239         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5240         formatting.
5241
5242 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5243
5244         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5245         the temporary FPU control word.
5246         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5247         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5248         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5249         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5250         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5251         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5252         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5253         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5254         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5255         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5256         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5257
5258 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5259
5260         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5261         fields.
5262
5263 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5264
5265         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5266         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5267         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5268         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5269         Likewise.
5270         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5271         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5272         Likewise.
5273
5274 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5275
5276         * po/h.po: Update from translation team.
5277
5278 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5279
5280         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5281
5282         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5283         handling of denormals.
5284         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5285         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5286         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5287         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5288         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5289         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5290         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5291         Likewise.
5292
5293 2012-05-26  Marek Polacek  <polacek@redhat.com>
5294
5295         [BZ #14152]
5296         * math/libm-test.inc (fma_test): Don't always expect underflow
5297         exception.
5298
5299 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5300
5301         [BZ #12416]
5302         * elf/tst-execstack.c: Include stackinfo.h.
5303         (do_test): Adjust test case to ensure that pthread_getattr_np
5304         behaviour remains the same after marking stack executable.
5305
5306 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5307
5308         * sysdeps/unix/sysv/linux/kernel-features.h
5309         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5310         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5311         kernel-features.h.
5312         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5313         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5314         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5315         kernel-features.h.
5316         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5317         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5318
5319 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5320
5321         * configure.in: Define the default includes to being none.
5322         * configure: Regenerated.
5323
5324 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5325
5326         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5327         * sysdeps/x86_64/setjmp.S: Likewise.
5328         * sysdeps/i386/bsd-setjmp.S: Likewise.
5329         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5330         * sysdeps/i386/setjmp.S: Likewise.
5331         * sysdeps/i386/__longjmp.S: Likewise.
5332         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5333         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5334
5335         * include/stap-probe.h: New file.
5336         * configure.in: Handle --enable-systemtap.
5337         * configure: Regenerated.
5338         * config.h.in (USE_STAP_PROBE): New #undef.
5339         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5340         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5341         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5342
5343 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5344
5345         [BZ #13717]
5346         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5347         to 2.4.0 where earlier.
5348         * sysdeps/unix/sysv/linux/configure: Regenerated.
5349         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5350         <kernel-features.h>.
5351         [__ASSUME_32BITUIDS]: Make code unconditional.
5352         [!__ASSUME_32BITUIDS]: Remove conditional code.
5353         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5354         <kernel-features.h>.
5355         [__ASSUME_32BITUIDS]: Make code unconditional.
5356         [!__ASSUME_32BITUIDS]: Remove conditional code.
5357         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5358         [__ASSUME_32BITUIDS]: Make code unconditional.
5359         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5360         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5361         <kernel-features.h>.
5362         [__ASSUME_32BITUIDS]: Make code unconditional.
5363         [!__ASSUME_32BITUIDS]: Remove conditional code.
5364         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5365         <kernel-features.h>.
5366         [__ASSUME_32BITUIDS]: Make code unconditional.
5367         [!__ASSUME_32BITUIDS]: Remove conditional code.
5368         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5369         <kernel-features.h>.
5370         [__ASSUME_32BITUIDS]: Make code unconditional.
5371         [!__ASSUME_32BITUIDS]: Remove conditional code.
5372         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5373         <kernel-features.h>.
5374         [__ASSUME_32BITUIDS]: Make code unconditional.
5375         [!__ASSUME_32BITUIDS]: Remove conditional code.
5376         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5377         <kernel-features.h>.
5378         [__ASSUME_32BITUIDS]: Make code unconditional.
5379         [!__ASSUME_32BITUIDS]: Remove conditional code.
5380         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5381         <kernel-features.h>.
5382         [__ASSUME_32BITUIDS]: Make code unconditional.
5383         [!__ASSUME_32BITUIDS]: Remove conditional code.
5384         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5385         <kernel-features.h>.
5386         [__ASSUME_32BITUIDS]: Make code unconditional.
5387         [!__ASSUME_32BITUIDS]: Remove conditional code.
5388         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5389         <kernel-features.h>.
5390         [__ASSUME_32BITUIDS]: Make code unconditional.
5391         [!__ASSUME_32BITUIDS]: Remove conditional code.
5392         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5393         <kernel-features.h>.
5394         [__ASSUME_32BITUIDS]: Make code unconditional.
5395         [!__ASSUME_32BITUIDS]: Remove conditional code.
5396         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5397         <kernel-features.h>.
5398         [__ASSUME_32BITUIDS]: Make code unconditional.
5399         [!__ASSUME_32BITUIDS]: Remove conditional code.
5400         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5401         <kernel-features.h>.
5402         [__NR_setresgid] (__setresgid): Do not declare.
5403         [__ASSUME_32BITUIDS]: Make code unconditional.
5404         [!__ASSUME_32BITUIDS]: Remove conditional code.
5405         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5406         <kernel-features.h>.
5407         [__NR_setresuid] (__setresuid): Do not declare.
5408         [__ASSUME_32BITUIDS]: Make code unconditional.
5409         [!__ASSUME_32BITUIDS]: Remove conditional code.
5410         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5411         <kernel-features.h>.
5412         [__ASSUME_32BITUIDS]: Make code unconditional.
5413         [!__ASSUME_32BITUIDS]: Remove conditional code.
5414         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5415         <kernel-features.h>.
5416         [__ASSUME_32BITUIDS]: Make code unconditional.
5417         [!__ASSUME_32BITUIDS]: Remove conditional code.
5418         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5419         <kernel-features.h>.
5420         [__ASSUME_32BITUIDS]: Make code unconditional.
5421         [!__ASSUME_32BITUIDS]: Remove conditional code.
5422         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5423         <kernel-features.h>.
5424         [__ASSUME_32BITUIDS]: Make code unconditional.
5425         [!__ASSUME_32BITUIDS]: Remove conditional code.
5426         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5427         <kernel-features.h>.
5428         [__ASSUME_32BITUIDS]: Make code unconditional.
5429         [!__ASSUME_32BITUIDS]: Remove conditional code.
5430         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5431         <kernel-features.h>.
5432         [__ASSUME_32BITUIDS]: Make code unconditional.
5433         [!__ASSUME_32BITUIDS]: Remove conditional code.
5434         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5435         <kernel-features.h>.
5436         [__ASSUME_32BITUIDS]: Make code unconditional.
5437         [!__ASSUME_32BITUIDS]: Remove conditional code.
5438         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5439         <kernel-features.h>.
5440         [__ASSUME_32BITUIDS]: Make code unconditional.
5441         [!__ASSUME_32BITUIDS]: Remove conditional code.
5442         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5443         <kernel-features.h>.
5444         [__ASSUME_32BITUIDS]: Make code unconditional.
5445         [!__ASSUME_32BITUIDS]: Remove conditional code.
5446         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5447         <kernel-features.h>.
5448         [__ASSUME_32BITUIDS]: Make code unconditional.
5449         [!__ASSUME_32BITUIDS]: Remove conditional code.
5450         * sysdeps/unix/sysv/linux/kernel-features.h
5451         (__ASSUME_SETRESUID_SYSCALL): Remove.
5452         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5453         (__ASSUME_32BITUIDS): Likewise.
5454         (__ASSUME_LDT_WORKS): Likewise.
5455         (__ASSUME_O_DIRECTORY): Likewise.
5456         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5457         architecture but not kernel version.
5458         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5459         (__ASSUME_MMAP2_SYSCALL): Likewise.
5460         (__ASSUME_STAT64_SYSCALL): Likewise.
5461         (__ASSUME_IPC64): Likewise.
5462         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5463         <kernel-features.h>.
5464         [__ASSUME_32BITUIDS]: Make code unconditional.
5465         [!__ASSUME_32BITUIDS]: Remove conditional code.
5466         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5467         <kernel-features.h>.
5468         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5469         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5470         132096]: Remove conditional code.
5471         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5472         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5473         <kernel-features.h>.
5474         [__ASSUME_32BITUIDS]: Make code unconditional.
5475         [!__ASSUME_32BITUIDS]: Remove conditional code.
5476         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5477         <kernel-features.h>.
5478         [__ASSUME_32BITUIDS]: Make code unconditional.
5479         [!__ASSUME_32BITUIDS]: Remove conditional code.
5480         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5481         <kernel-features.h>.
5482         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5483         unconditional.
5484         (__setresgid): Do not declare.
5485         [__ASSUME_32BITUIDS]: Make code unconditional.
5486         [!__ASSUME_32BITUIDS]: Remove conditional code.
5487         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5488         <kernel-features.h>.
5489         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5490         unconditional.
5491         (__setresuid): Do not declare.
5492         [__ASSUME_32BITUIDS]: Make code unconditional.
5493         [!__ASSUME_32BITUIDS]: Remove conditional code.
5494         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5495         <kernel-features.h>.
5496         [__ASSUME_32BITUIDS]: Make code unconditional.
5497         [!__ASSUME_32BITUIDS]: Remove conditional code.
5498         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5499         <kernel-features.h>.
5500         [__ASSUME_32BITUIDS]: Make code unconditional.
5501         [!__ASSUME_32BITUIDS]: Remove conditional code.
5502
5503 2012-05-25  Richard Henderson  <rth@twiddle.net>
5504
5505         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5506         dl_hwcap to ifunc resolver.
5507         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5508         elf_ifunc_invoke.
5509         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5510         dl_hwcap to ifunc resolver.
5511         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5512
5513 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5514
5515         [BZ #14153]
5516         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5517         for |x| <= 2**-26, not 2**-57.
5518         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5519         exception.
5520
5521 2012-05-24  Jeff Law  <law@redhat.com>
5522
5523         * stdio-common/Makefile (tests): Add bug25.
5524         * stdio-common/bug25.c: New test.
5525
5526 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5527
5528         [BZ #13576]
5529         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5530         multiple of MALLOC_ALIGNMENT in size.
5531         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5532
5533 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5534
5535         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5536         Require >= 256.
5537         (FILENAME_MAX): Use macro-int-constant.
5538         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5539         (_IOFBF): Use macro-int-constant.
5540         (_IOLBF): Likewise.
5541         (_IONBF): Likewise.
5542         (SEEK_CUR): Likewise.
5543         (SEEK_END): Likewise.
5544         (SEEK_SET): Likewise.
5545         (TMP_MAX): Likewise.
5546         (EOF): Use macro-int-constant.  Require < 0.
5547         (NULL): Use macro-constant.  Require == 0.
5548         (stdin): Require type to be FILE *.
5549         (stdout): Likewise.
5550         (stderr): Likewise.
5551         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5552         macro-int-constant.
5553         (EXIT_SUCCESS): Likewise.
5554         (NULL): Use macro-constant.  Require == 0.
5555         (RAND_MAX): Use macro-int-constant.
5556         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5557         [C99-based standards] (strtof): Require function.
5558         [C99-based standards] (strtold): Likewise.
5559         [C99-based standards] (strtoll): Likewise.
5560         [C99-based standards] (strtoull): Likewise.
5561         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5562         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5563         [ISO || ISO99 || ISO11] (math.h): Likewise.
5564         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5565         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5566         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5567
5568 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5569
5570         [BZ #14132]
5571         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5572         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5573         * intl/dgettext.c (DCGETTEXT): Likewise.
5574         * intl/gettext.c (DCGETTEXT): Likewise.
5575         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5576         * posix/regex_internal.h (gettext): Likewise.
5577         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5578         Remove declaration.
5579         * include/argz.h (__argz_count_internal)
5580         (__argz_stringify_internal): Remove declaration.
5581         (__argz_count, __argz_stringify): Declare hidden proto.
5582         * intl/dcgettext.c: Remove use of INTDEF.
5583         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5584         * string/argz-stringify.c: Likewise.
5585         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5586         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5587         Declare hidden proto.
5588         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5589         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5590         Declare hidden proto.
5591         * include/stdio.h (__asprintf_internal): Don't declare.
5592         (__asprintf): Don't define as macro.  Declare hidden proto.
5593         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5594         (__fsetlocking): Declare hidden proto.
5595         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5596         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5597         hidden proto.
5598         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5599         (_IO_setlinebuf): Remove use of INTUSE.
5600         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5601         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5602         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5603         Remove declaration.
5604         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5605         (_IO_do_flush): Remove use of INTUSE.
5606         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5607         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5608         (_IO_adjust_column, _IO_least_wmarker)
5609         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5610         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5611         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5612         (_IO_default_doallocate, _IO_wdefault_doallocate)
5613         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5614         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5615         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5616         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5617         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5618         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5619         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5620         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5621         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5622         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5623         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5624         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5625         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5626         proto.
5627         (_IO_flush_all_internal, _IO_adjust_column_internal)
5628         (_IO_default_uflow_internal, _IO_default_finish_internal)
5629         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5630         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5631         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5632         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5633         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5634         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5635         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5636         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5637         (_IO_file_close_internal, _IO_file_close_it_internal)
5638         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5639         (_IO_file_init_internal, _IO_file_attach_internal)
5640         (_IO_file_fopen_internal, _IO_file_read_internal)
5641         (_IO_file_sync_internal, _IO_file_seek_internal)
5642         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5643         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5644         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5645         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5646         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5647         (_IO_list_all_internal, _IO_link_in_internal)
5648         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5649         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5650         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5651         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5652         (_IO_do_write_internal, _IO_padn_internal)
5653         (_IO_getline_info_internal, _IO_getline_internal)
5654         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5655         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5656         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5657         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5658         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5659         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5660         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5661         with libc_hidden_ver, remove use of INTUSE.
5662         * libio/genops.c: Likewise.
5663         * libio/freopen.c: Likewise.
5664         * libio/freopen64.c: Likewise.
5665         * libio/iofclose.c: Likewise.
5666         * libio/iofdopen.c: Likewise.
5667         * libio/iofflush.c: Likewise.
5668         * libio/iofflush_u.c: Likewise.
5669         * libio/iofgets.c: Likewise.
5670         * libio/iofgets_u.c: Likewise.
5671         * libio/iofopen.c: Likewise.
5672         * libio/iofopncook.c: Likewise.
5673         * libio/iofread.c: Likewise.
5674         * libio/iofread_u.c: Likewise.
5675         * libio/ioftell.c: Likewise.
5676         * libio/iofwrite.c: Likewise.
5677         * libio/iogetline.c: Likewise.
5678         * libio/iogets.c: Likewise.
5679         * libio/iogetwline.c: Likewise.
5680         * libio/iopadn.c: Likewise.
5681         * libio/iopopen.c: Likewise.
5682         * libio/ioseekoff.c: Likewise.
5683         * libio/ioseekpos.c: Likewise.
5684         * libio/iosetbuffer.c: Likewise.
5685         * libio/iosetvbuf.c: Likewise.
5686         * libio/ioungetc.c: Likewise.
5687         * libio/ioungetwc.c: Likewise.
5688         * libio/iovdprintf.c: Likewise.
5689         * libio/iovsprintf.c: Likewise.
5690         * libio/iovsscanf.c: Likewise.
5691         * libio/memstream.c: Likewise.
5692         * libio/obprintf.c: Likewise.
5693         * libio/oldfileops.c: Likewise.
5694         * libio/oldiofclose.c: Likewise.
5695         * libio/oldiofdopen.c: Likewise.
5696         * libio/oldiofopen.c: Likewise.
5697         * libio/oldiopopen.c: Likewise.
5698         * libio/oldstdfiles.c: Likewise.
5699         * libio/putc.c: Likewise.
5700         * libio/setbuf.c: Likewise.
5701         * libio/setlinebuf.c: Likewise.
5702         * libio/stdfiles.c: Likewise.
5703         * libio/strops.c: Likewise.
5704         * libio/vasprintf.c: Likewise.
5705         * libio/vscanf.c: Likewise.
5706         * libio/vsnprintf.c: Likewise.
5707         * libio/vswprintf.c: Likewise.
5708         * libio/wfiledoalloc.c: Likewise.
5709         * libio/wfileops.c: Likewise.
5710         * libio/wgenops.c: Likewise.
5711         * libio/wmemstream.c: Likewise.
5712         * libio/wstrops.c: Likewise.
5713         * libio/__fpurge.c: Likewise.
5714         * libio/__fsetlocking.c: Likewise.
5715         * assert/assert.c: Likewise.
5716         * debug/fgets_chk.c: Likewise.
5717         * debug/fgets_u_chk.c: Likewise.
5718         * debug/fread_chk.c: Likewise.
5719         * debug/fread_u_chk.c: Likewise.
5720         * debug/gets_chk.c: Likewise.
5721         * debug/obprintf_chk.c: Likewise.
5722         * debug/vasprintf_chk.c: Likewise.
5723         * debug/vdprintf_chk.c: Likewise.
5724         * debug/vsnprintf_chk.c: Likewise.
5725         * debug/vsprintf_chk.c: Likewise.
5726         * malloc/mtrace.c: Likewise.
5727         * misc/error.c: Likewise.
5728         * misc/syslog.c: Likewise.
5729         * stdio-common/asprintf.c: Likewise.
5730         * stdio-common/fxprintf.c: Likewise.
5731         * stdio-common/getw.c: Likewise.
5732         * stdio-common/isoc99_fscanf.c: Likewise.
5733         * stdio-common/isoc99_scanf.c: Likewise.
5734         * stdio-common/isoc99_vfscanf.c: Likewise.
5735         * stdio-common/isoc99_vscanf.c: Likewise.
5736         * stdio-common/isoc99_vsscanf.c: Likewise.
5737         * stdio-common/printf-prs.c: Likewise.
5738         * stdio-common/printf_fp.c: Likewise.
5739         * stdio-common/printf_fphex.c: Likewise.
5740         * stdio-common/printf_size.c: Likewise.
5741         * stdio-common/putw.c: Likewise.
5742         * stdio-common/scanf.c: Likewise.
5743         * stdio-common/sprintf.c: Likewise.
5744         * stdio-common/tmpfile.c: Likewise.
5745         * stdio-common/vfprintf.c: Likewise.
5746         * stdio-common/vfscanf.c: Likewise.
5747         * stdlib/strfmon_l.c: Likewise.
5748         * sunrpc/openchild.c: Likewise.
5749         * sunrpc/xdr_stdio.c: Likewise.
5750         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5751         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5752
5753 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5754
5755         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5756
5757         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5758         in the third column, to generate for the shared library an IFUNC
5759         that uses _dl_vdso_vsym.
5760         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5761         * Makeconfig (object-suffixes-noshared): New variable.
5762
5763         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5764         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5765         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5766         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5767
5768         [BZ #14132]
5769         * include/sys/time.h (__gettimeofday): Remove macro.
5770         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5771         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5772         Remove INTDEF.
5773         (__gettimeofday): Add libc_hidden_def.
5774         (gettimeofday): Add libc_hidden_weak.
5775         * sysdeps/mach/gettimeofday.c: Likewise.
5776         * sysdeps/posix/gettimeofday.c: Likewise.
5777         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5778         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5779         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5780         (__gettimeofday_internal): Remove strong_alias.
5781         (__gettimeofday): Add libc_hidden_def.
5782         (gettimeofday): Add libc_hidden_weak.
5783         * sysdeps/unix/syscalls.list (gettimeofday):
5784         Remove __gettimeofday_internal alias.
5785
5786 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5787             H.J. Lu  <hongjiu.lu@intel.com>
5788
5789         [BZ #12495]
5790         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5791         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5792         (largebin_index_32_big): New.
5793         (largebin_index): Use it for 16-byte alignment.
5794         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5795         correction with front_misalign.
5796
5797 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5798
5799         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5801         Likewise.
5802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5803         Likewise.
5804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5805         Likewise.
5806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5807         Likewise.
5808         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5809         Likewise.
5810         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5811         Likewise.
5812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5813         Likewise.
5814         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5815         Likewise.
5816         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5817         Likewise.
5818         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5819         Likewise.
5820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5821         Likewise.
5822         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5823         Likewise.
5824
5825         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5826         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5827
5828 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5829
5830         [BZ #10846]
5831         [BZ #14036]
5832         * math/libm-test.inc (exp_test): Add test from bug 14036.
5833         (pow_test): Add test from bug 10846.
5834
5835         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5836         and other flags.
5837         (special_function): Do not include flags in test name.
5838         (parse_args): Likewise.
5839         * sysdeps/i386/fpu/libm-test-ulps: Update.
5840         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5841         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5842         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5844
5845         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5846         exceptions.
5847         * math/libm-test.inc ("Philosophy"): Update comment about
5848         exception testing.
5849         (UNDERFLOW_EXCEPTION): New macro.
5850         (UNDERFLOW_EXCEPTION_OK): Likewise.
5851         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5852         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5853         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5854         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5855         (INVALID_EXCEPTION_OK): Update value.
5856         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5857         (OVERFLOW_EXCEPTION_OK): Likewise.
5858         (IGNORE_ZERO_INF_SIGN): Likewise.
5859         (test_exceptions): Handle underflow exceptions.
5860         (acos_test): Update for underflow exception expectations.
5861         (cexp_test): Likewise.
5862         (clog_test): Likewise.
5863         (clog10_test): Likewise.
5864         (csqrt_test): Likewise.
5865         (ctan_test): Likewise.
5866         (ctanh_test): Likewise.
5867         (exp_test): Likewise.
5868         (exp10_test): Likewise.
5869         (exp2_test): Likewise.
5870         (expm1_test): Likewise.
5871         (fma_test): Likewise.
5872         (j0_test): Likewise.
5873         (jn_test): Likewise.
5874         (nexttoward_test): Likewise.
5875         (pow_test): Likewise.
5876         (scalbn_test): Likewise.
5877         (scalbln_test): Likewise.
5878         (tan_test): Likewise.
5879         (y1_test): Likewise.
5880         * sysdeps/i386/fpu/libm-test-ulps: Update.
5881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5882
5883 2012-05-23  David S. Miller  <davem@davemloft.net>
5884
5885         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5886         (__libc_sigaction): Remove unused local variables.
5887
5888 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5889
5890         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5891
5892 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5893
5894         mktime: avoid signed integer overflow
5895         * time/mktime.c (__mktime_internal): Do not mishandle the case
5896         where diff == INT_MIN.
5897
5898         mktime: simplify computation of average
5899         * time/mktime.c (ranged_convert): Use new time_t_avg function
5900         instead of rolling our own (probably-slower) code.
5901
5902         mktime: do not assume signed right shift propagates sign bit
5903         * time/mktime.c (isdst_differ): New static function.
5904         (__mktime_internal): No need to normalize tm_isdst now.
5905         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5906         tm_isdst values.
5907
5908         mktime: merge another wrapv change from gnulib
5909         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5910         from some compilers.
5911
5912         mktime: remove incorrect attempt at unusual arithmetics
5913         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5914         The code didn't really work on such machines anyway.
5915         (TYPE_MINIMUM): Assume two's complement.
5916         (twos_complement_arithmetic): Verify that long_int and time_t
5917         are two's complement (or unsigned, in the latter case).
5918
5919         mktime: check signed shifts on long_int and time_t, too
5920         * time/mktime.c (SHR): Check that shifts work as desired
5921         on the types long_int and time_t too, as SHR is used on
5922         such types.
5923
5924         mktime: do not assume 'long' is wide enough
5925         * time/mktime.c (verify): Move decl up.
5926         (long_int): New type.
5927         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5928         to remove assumption in the code that 'long' is wide enough to
5929         store year values.  This assumption is not true on x32 and on
5930         some non-glibc platforms.
5931
5932         mktime: merge wrapv change from gnulib
5933         * time/mktime.c (WRAPV): New macro.
5934         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5935         (guess_time_tm, __mktime_internal): Do not assume that signed
5936         integer overflow wraps around; modern compilers generate code
5937         where this assumption is no longer valid.
5938
5939 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5940
5941         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5942         Replace "jmp L(pseudo_end)" with "ret".
5943         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5944         Likewise.
5945
5946 2012-05-23  Andreas Jaeger  <aj@suse.de>
5947
5948         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5949         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5950
5951 2012-05-23  Andreas Jaeger  <aj@suse.de>
5952             Maximilian Attems  <max@stro.at>
5953
5954         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5955         New macros.
5956
5957 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5958
5959         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5960         code so that pseudo_end is just ret and the stack pointer is
5961         correct also for static library in error case.
5962
5963 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5964
5965         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5966         move to syscalls.list.
5967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5971
5972         * manual/install.texi (Running make install): Do not mention Linux
5973         kernel version for which pt_chown is not needed.
5974         (Linux): Do not mention problems with nscd with 2.0 kernels.
5975         * INSTALL: Regenerated.
5976
5977 2012-05-23  Andreas Jaeger  <aj@suse.de>
5978
5979         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5980         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5981         macro.
5982         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5983         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5984         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5985         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5986         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5987         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5988         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5989         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5990         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5991         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5992         * sysdeps/unix/sysv/linux/bits/in.h
5993         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5994
5995 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5996
5997         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5998         (PREPARE_VERSION): Just use assert instead, it will be elided
5999         under [NDEBUG] anyway.
6000
6001 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6002
6003         * sysdeps/unix/sysv/linux/Makefile: Include
6004         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6005         (sysdep_routines): Remove sysctl.
6006         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6007         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6008         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6009         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6010         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6011
6012 2012-05-22  Andreas Jaeger  <aj@suse.de>
6013
6014         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6015         that pseudo_end is just ret and the stack pointer is correct also
6016         for static library in error case.
6017
6018 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6019
6020         [BZ #14122]
6021         * nss/nsswitch.c (defconfig_entries): New variable.
6022         (__nss_database_lookup): Don't leak defconfig entries.
6023         (nss_parse_service_list): Don't leak on error paths.
6024         (free_database_entries): New function.
6025         (free_defconfig): New function.
6026         (free_mem): Move common code to free_database_entries.
6027
6028 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6031         Add arch_prctl.
6032         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6033
6034         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6035         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6036         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6037         New macro.
6038         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6039         (INTERNAL_SYSCALL_TYPES): Likewise.
6040         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6041         (LOAD_REGS_TYPES_[1-6]): Likewise.
6042         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6043         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6044
6045 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6046
6047         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6048         copysignl for GLIBC_2_0.
6049         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6050         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6051         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6052         logbl for GLIBC_2_0.
6053         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6054         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6055
6056 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6057
6058         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6059         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6060
6061         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6062         Use "neg %eax".
6063
6064         * time/mktime.c: Update copyright years.
6065
6066 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6067
6068         mktime: merge comment-quoting-style change from gnulib
6069         * time/mktime.c: Quote 'like this' in comments.
6070         The GNU coding standards suggest that we no longer quote `like this',
6071         as "`" and "'" are typically rendered asymmetrically nowadays.
6072         The typical gnulib style is to quote 'like this' when quoting
6073         code, and "like this" when quoting English.
6074
6075         * time/mktime.c (compile-command): Add "-I.".
6076
6077         mktime: merge mktime-internal.h change from gnulib
6078         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6079
6080         mktime: merge time_r change from gnulib
6081         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6082
6083         mktime: merge DEBUG change from gnulib
6084         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6085         case system <time.h> has a #define.
6086
6087         mktime: merge <sys/types.h> change from gnulib
6088         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6089         since <time.t> is now guaranteed to define time_t.
6090
6091         mktime: merge HAVE_CONFIG_H change from gnulib
6092         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6093
6094 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6095
6096         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6097         Use "neg %eax".
6098
6099         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6100         __rlim_t cast.
6101         (struct rusage): Use anonymous union to pad each field to
6102         __syscall_slong_t.
6103
6104 2012-05-21  David S. Miller  <davem@davemloft.net>
6105
6106         * Makefules (o-iterator): Remove .s cases.
6107         (compile-command.s): Delete.
6108         (COMPILE.s): Delete.
6109         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6110
6111 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6112
6113         * configure.in (libc_cv_predef_stack_protector): Only consider
6114         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6115         * configure: Regenerated.
6116
6117 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6118
6119         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6120         New macro.  Use R*LP on int and pointer.
6121         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6122         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6123         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6124         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6125
6126         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6127         [__WORDSIZE_TIME64_COMPAT32] instead of
6128         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6129         (struct utmp): Likewise.
6130         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6131         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6132         Renamed to ...
6133         (__WORDSIZE_TIME64_COMPAT32): This.
6134         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6135         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6136         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6137         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6138         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6139         (__WORDSIZE_TIME64_COMPAT32): New macro.
6140
6141 2012-05-21  Andreas Jaeger  <aj@suse.de>
6142
6143         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6144         only if [SHARED]. Add prototype for __wcschr_ia32.
6145
6146 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6147
6148         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6149         of %rbp unmolested in the jmp_buf while mangling the low bits.
6150         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6151         unmolested high bits of %rbp while demangling the low bits.
6152         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6153
6154 2012-05-21  Andreas Jaeger  <aj@suse.de>
6155
6156         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6157         * sunrpc/svc_simple.c: Use it for registerrpc.
6158         * sunrpc/xcrypt.c: Use it for passwd2des.
6159
6160         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6161
6162 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6163
6164         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6165         Don't define if [__SYSCALL_WORDSIZE != 32].
6166         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6167         New macro.
6168
6169 2012-05-21  Bruno Haible  <bruno@clisp.org>
6170             Andreas Jaeger  <aj@suse.de>
6171
6172         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6173         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6174         inptr and inend for must_buffer_ch.
6175         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6176         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6177         * stdio-common/Makefile (tests): Remove bug15.
6178         (bug15-ENV): Remove macro.
6179         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6180         anymore.
6181
6182 2012-05-19  Andreas Jaeger  <aj@suse.de>
6183             Roland McGrath  <roland@hack.frob.com>
6184
6185         * manual/contrib.texi: Completely rewritten. It contains now an
6186         alphabetical list of contributors and their contributions.
6187
6188 2012-05-21  Richard Henderson  <rth@twiddle.net>
6189
6190         * misc/getauxval.c (__getauxval): Use unsigned long int.
6191         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6192         (getauxval): Use unsigned long int.
6193
6194 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6195
6196         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6197
6198 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6199
6200         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6201         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6202         __alignof__ (long double).
6203
6204 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6205
6206         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6207
6208 2012-05-20  Richard Henderson  <rth@twiddle.net>
6209
6210         * misc/getauxval.c: New file.
6211         * misc/sys/auxv.h: New file.
6212         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6213         (routines): Add getauxval.
6214         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6215         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6216         * elf/dl-sysdep.c (_dl_auxv): Remove.
6217         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6218         * elf/dl-support.c (_dl_auxv): New variable.
6219         (_dl_aux_init): Initialize it.
6220         * manual/startup.texi (Auxiliary Vector): New node.
6221         * sysdeps/generic/bits/hwcap.h: New file.
6222         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6223         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6224         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6225         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6226         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6227         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6229         Update.
6230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6231         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6233         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6234         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6235         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6236         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6238
6239 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6240
6241         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6242
6243 2012-05-19  David S. Miller  <davem@davemloft.net>
6244
6245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6246
6247 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6248
6249         [BZ #14123]
6250         * math/s_ccosh.c: Include <float.h>
6251         (__ccosh): Avoid internal overflow calculating sinh and cosh
6252         values before multiplying by sin and cos values.
6253         * math/s_ccoshf.c: Likewise.
6254         * math/s_ccoshl.c: Likewise.
6255         * math/s_csin.c: Likewise.
6256         * math/s_csinf.c: Likewise.
6257         * math/s_csinl.c: Likewise.
6258         * math/s_csinh.c: Likewise.
6259         * math/s_csinhf.c: Likewise.
6260         * math/s_csinhl.c: Likewise.
6261         * math/libm-test.inc (ccos_test): Add more tests.
6262         (ccosh_test): Likewise.
6263         (csin_test): Likewise.
6264         (csinh_test): Likewise.
6265         * sysdeps/i386/fpu/libm-test-ulps: Update.
6266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6267
6268 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6269
6270         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6271         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6272
6273         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6274
6275 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6276
6277         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6278         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6279         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6280         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6281         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6282         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6283         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6284         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6285         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6286         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6287         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6288         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6289         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6290         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6291         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6292         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6293         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6294         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6295         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6296         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6297         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6298         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6299         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6300         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6301         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6302         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6303         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6304         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6305         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6306         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6307         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6308
6309 2012-05-18  Andreas Jaeger  <aj@suse.de>
6310
6311         * csu/.gitignore: Delete.
6312
6313 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6314
6315         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6316         (timex): Use __syscall_slong_t.
6317
6318 2012-05-18  Andreas Jaeger  <aj@suse.de>
6319             Carlos O'Donell  <carlos_odonell@mentor.com>
6320
6321         * manual/install.texi (Configuring and compiling): Update
6322         description about files modified in the source directory.
6323         * INSTALL: Regenerated.
6324
6325 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6326
6327         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6328         value.  Use "or" to set return value to -1.
6329         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6330         negate return value.
6331
6332 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6333
6334         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6335         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6336         failure if the compiler has Graphite support disabled.
6337         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6338         Likewise.
6339         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6340         CFLAGS-memmove.c): Likewise.
6341         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6342         Likewise.
6343
6344 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6345
6346         * sysdeps/x86_64/x32/_itoa.h: New file.
6347
6348         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6349         getdents system call only if kernel and user dirents have the
6350         same d_ino and d_off.
6351
6352         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6353         LLONG_MAX != LONG_MAX.
6354         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6355         (_fitoa_word): Likewise.
6356
6357         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6358         years.
6359         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6360         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6361         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6362
6363         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6364         include <bits/wordsize.h>.  Check __x86_64__ instead of
6365         __WORDSIZE.
6366         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6367         if __x86_64__ is defined.  Use anonymous union on fpstate.
6368
6369         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6370         anonymous union.
6371
6372 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6373
6374         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6375         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6376         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6377         Refer to _rtld_local_ro instead of _rtld_global_ro.
6378         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6379         Likewise.
6380         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6381         Likewise.
6382         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6383         Likewise.
6384         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6385         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6386         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6387
6388         * sysdeps/powerpc/powerpc32/dl-machine.c
6389         (__elf_machine_runtime_setup) [PROF]: Don't reference
6390         _dl_prof_resolve.
6391
6392 2012-05-18  Andreas Jaeger  <aj@suse.de>
6393
6394         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6395         function only available for GCCs before 3.4 since GCC 3.4
6396         introduced a builtin.
6397         (lrint): Likewise.
6398         (llrintf): Likewise.
6399         (llrint): Likewise.
6400         (fmaxf): Likewise.
6401         (fmax): Likewise.
6402         (fminf): Likewise.
6403         (fmin): Likewise.
6404         (rint): Likewise.
6405         (rintf): Likewise.
6406         (nearbyint): Likewise.
6407         (nearbyintf): Likewise.
6408         (ceil): Likewise.
6409         (ceilf): Likewise.
6410         (floor): Likewise.
6411         (floorf): Likewise.
6412
6413 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6414
6415         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6416         on both fields and cast pointer to __syscall_ulong_t.
6417
6418         * bits/types.h (__fsword_t): New type.
6419         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6420         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6421         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6422         (__FSWORD_T_TYPE): Likewise.
6423         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6424         (__FSWORD_T_TYPE): Likewise.
6425         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6426         (__FSWORD_T_TYPE): Likewise.
6427         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6428         (__FSWORD_T_TYPE): Likewise.
6429         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6430         __SWORD_TYPE with __fsword_t.
6431         (statfs64): Likewise.
6432
6433 2012-05-17  David S. Miller  <davem@davemloft.net>
6434
6435         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6436
6437 2012-05-17  Andreas Jaeger  <aj@suse.de>
6438
6439         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6440         warning.
6441
6442 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6443
6444         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6445
6446 2012-05-17  Andreas Jaeger  <aj@suse.de>
6447
6448         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6449         when it is used.
6450
6451 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6452
6453         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6454
6455 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6456
6457         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6458         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6459
6460 2012-05-17  Andreas Jaeger  <aj@suse.de>
6461             Carlos O'Donell  <carlos_odonell@mentor.com>
6462
6463         [BZ #14059]
6464         * sysdeps/x86_64/multiarch/init-arch.h
6465         (bit_YMM_Usable): Rename to...
6466         (bit_AVX_Usable): ... this.
6467         (bit_FMA4_Usable): New macro.
6468         (bit_XMM_state): New macro.
6469         (bit_YMM_state): New macro.
6470         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6471         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6472         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6473         (CPUID_OSXSAVE): New macro.
6474         (CPUID_AVX): New macro.
6475         (CPUID_FMA4): New macro.
6476         (index_YMM_Usable): Rename to...
6477         (index_AVX_Usable): ... this.
6478         (HAS_AVX): Use HAS_ARCH_FEATURE.
6479         (HAS_FMA4): Likewise.
6480         (HAS_YMM_USABLE): Remove.
6481         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6482         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6483         are present.
6484         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6485         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6486         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6487         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6488         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6489
6490 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6491
6492         * math/libm-test.c: Support platforms without multiple rounding modes.
6493         * math/bug-nextafter.c: Support platforms without FP exceptions.
6494         * math/bug-nexttoward.c: Likewise.
6495         * math/test-fenv.c: Likewise.
6496         * math/test-misc.c: Likewise.
6497         * stdlib/bug-getcontext.c: Likewise.
6498
6499 2012-05-17  Andreas Jaeger  <aj@suse.de>
6500
6501         * manual/examples/search.c (critter_cmp): Change signature to
6502         avoid warnings.
6503         * manual/string.texi (Collation Functions): Likewise.
6504
6505 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6506
6507         * bits/types.h: Fold copyright years.
6508         * bits/typesizes.h: Likewise.
6509         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6510         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6511         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6512         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6513         * time/time.h: Likewise.
6514
6515 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6516
6517         [BZ #208]
6518         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6519         in instead of returning them.  Return void.
6520         (__libc_mallinfo): Accumulate over all arenas.
6521         (__malloc_stats): Adjust for change in int_mallinfo interface.
6522
6523 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6524
6525         [BZ #10375]
6526         * configure.in (NM): Add AC_CHECK_TOOL for it.
6527         (libc_extra_cflags): New substituted variable.
6528         Check for -fstack-protector being used implicitly.
6529         * configure: Regenerated.
6530         * config.make.in (config-extra-cflags): New variable,
6531         gets @libc_extra_cflags@.
6532         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6533
6534         [BZ #10375]
6535         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6536         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6537         * configure: Regenerated.
6538         * config.make.in (CPPUNDEFS): New substituted variable.
6539         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6540         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6541         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6542
6543 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6544
6545         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6546         (mq_attr): Use __syscall_slong_t.
6547
6548 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6549
6550         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6551         Check __x86_64__ instead of __WORDSIZE.
6552         (_STAT_VER_LINUX): Likewise.
6553         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6554         __syscall_ulong_t and __syscall_slong_t.
6555         (stat64): Likewise.
6556
6557 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6558
6559         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6560
6561 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6562
6563         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6564
6565 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6566
6567         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6568         __syscall_ulong_t.
6569
6570         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6571         include <bits/wordsize.h>.  Check __x86_64__ instead of
6572         __WORDSIZE.
6573         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6574         defined.
6575         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6576
6577         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6578         include <bits/wordsize.h>.  Check __x86_64__ instead of
6579         __WORDSIZE.
6580         (user_regs_struct): Use "__extension__ unsigned long long"
6581         instead of "unsigned long" if __x86_64__ is defined.
6582         (user): Likewise.  Pad after pointer field if __ILP32__ is
6583         defined.
6584
6585 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6586
6587         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6588         versions 5 to 9.
6589         * configure: Regenerated.
6590         * manual/install.texi (texinfo): Increase version requirement to
6591         4.5 or later.
6592         * INSTALL: Regenerated.
6593
6594         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6595
6596 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6597
6598         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6599
6600         * sysdeps/x86_64/x32/ffs.c: New file.
6601
6602         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6603         __syscall_ulong_t.
6604         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6605         defined.  Use __syscall_ulong_t.
6606         (shminfo): Use __syscall_ulong_t.
6607         (shm_info): Likewise.
6608
6609         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6610         __syscall_ulong_t.
6611
6612         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6613         <bits/wordsize.h>.
6614         (msgqnum_t): Use __syscall_ulong_t.
6615         (msglen_t): Likewise.
6616         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6617         __syscall_ulong_t.
6618
6619         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6620         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6621
6622         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6623
6624         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6625         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6626
6627         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6628         __syscall_slong_t.
6629
6630         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6631         include <bits/wordsize.h>.  Check __x86_64__ instead of
6632         __WORDSIZE.
6633
6634         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6635         "unsigned long long int" if __x86_64__ is defined.
6636         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6637
6638         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6639         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6640         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6641
6642         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6643         <stdint.h>.
6644         (GET_PC): Cast to uintptr_t first.
6645         (GET_FRAME): Likewise.
6646         (GET_STACK): Likewise.
6647
6648         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6649         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6650         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6651         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6652         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6653         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6654         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6655         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6656         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6657         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6658         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6659         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6660         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6661         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6662         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6663         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6664         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6665         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6666         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6667         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6668         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6669         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6670         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6671         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6672         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6673         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6674         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6675         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6676         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6677
6678 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6679
6680         * Makerules (+depfiles): Also collect depfiles from .oS in
6681         $(extra-objs).
6682         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6683         .oS, $(libnldbl-routines)).
6684
6685         * Makerules (native-compile-mkdep-flags): Define.
6686         * sunrpc/Makefile (extra-objs): Add $(addprefix
6687         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6688         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6689         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6690         calling $(make-target-directory).
6691
6692 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6693
6694         * bits/types.h (__snseconds_t): Removed.
6695         * time/time.h (struct timespec): Replace __snseconds_t with
6696         __syscall_slong_t.
6697         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6698         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6699         Likewise.
6700         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6701         (__SNSECONDS_T_TYPE): Likewise.
6702         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6703         (__SNSECONDS_T_TYPE): Likewise.
6704         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6705         (__SNSECONDS_T_TYPE): Likewise.
6706
6707 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6708
6709         * sysdeps/mach/hurd/bits/typesizes.h
6710         (__SYSCALL_SLONG_TYPE): New macro.
6711         (__SYSCALL_ULONG_TYPE): Likewise.
6712
6713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6714
6715         * bits/types.h (__syscall_slong_t): New type.
6716         (__syscall_ulong_t): Likewise.
6717
6718         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6719         (__SYSCALL_ULONG_TYPE): Likewise.
6720         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6721         (__SYSCALL_SLONG_TYPE): Likewise.
6722         (__SYSCALL_ULONG_TYPE): Likewise.
6723         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6724         (__SYSCALL_SLONG_TYPE): Likewise.
6725         (__SYSCALL_ULONG_TYPE): Likewise.
6726         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6727         (__SYSCALL_SLONG_TYPE): Likewise.
6728         (__SYSCALL_ULONG_TYPE): Likewise.
6729
6730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6731
6732         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6733         Add sigaltstack-offsets.sym.
6734         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6735         <sigaltstack-offsets.h>.
6736         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6737         longjmp_msg pointer.
6738         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6739         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6740         signal stack.
6741         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6742
6743 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6744
6745         * elf/stackguard-macros.h: Remove file.
6746         * sysdeps/generic/stackguard-macros.h: New file.
6747         * sysdeps/i386/stackguard-macros.h: Likewise.
6748         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6749         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6750         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6751         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6752         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6753         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6754         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6755         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6756         <elf/stackguard-macros.h>.
6757
6758         [BZ #14109]
6759         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6760         __aligned__ in attribute.
6761         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6762         (gregset_t): Likewise.
6763
6764 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6765
6766         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6767         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6768         * sysdeps/x86_64/x32/Implies-after: New file.
6769
6770 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6771
6772         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6773         and access return value for _dl_profile_fixup.  Use R10_LP to
6774         load frame size.
6775
6776 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6777
6778         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6779
6780 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6781
6782         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6783         * sysdeps/x86_64/x32/sysdep.h: New file.
6784
6785 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6786
6787         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6788         * sysdeps/x86_64/setjmp.S: Likewise.
6789
6790 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6791
6792         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6793         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6794         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6795         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6796         remove unused global constant.
6797
6798 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6799
6800         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6801         include of <not-cancel.h>.
6802
6803 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6804
6805         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6806
6807 2012-05-15  Jeff Law  <law@redhat.com>
6808             Andreas Jaeger  <aj@suse.de>
6809
6810         [BZ #13594]
6811         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6812         out from...
6813         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6814         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6815         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6816         code changing __hst_map_handle.map.
6817
6818 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6819
6820         * configure.in (sysnames): Look for Implies-before and Implies-after
6821         files.
6822         * configure: Regenerated.
6823
6824 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6825
6826         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6827         8-byte data alignment with LP_SIZE alignment.
6828
6829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6830
6831         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6832         into R10_LP.
6833
6834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6835
6836         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6837
6838 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6839
6840         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6841         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6842         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6843         Likewise.
6844         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6845
6846 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6847
6848         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6849         (stackinfo_sub_sp): Likewise.
6850
6851 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6852
6853         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6854         RAX_LP.
6855
6856 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6857
6858         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6859         into R*_LP.
6860
6861 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6862
6863         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6864         sizes into R*_LP.
6865
6866 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6867
6868         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6869
6870 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6871
6872         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6873         into R11_LP and load __x86_64_shared_cache_size_half into
6874         R8_LP.
6875
6876 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6877
6878         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6879         R8_LP.
6880
6881 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6882
6883         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6884         logb for POWER7.
6885         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6886         logbf for POWER7.
6887         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6888         logbl for POWER7.
6889         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6890         powerpc32/power7/fpu/s_logb.c via #include.
6891         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6892         powerpc32/power7/fpu/s_logbf.c via #include.
6893         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6894         powerpc32/power7/fpu/s_logbl.c via #include.
6895
6896 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6897
6898         * README.libm: Remove file.
6899
6900 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6901
6902         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6903         count for x32.  Use R*_LP and omit operand-size suffix.
6904
6905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6906
6907         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6908         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6909         * sysdeps/x86_64/x32/shlib-versions: New file.
6910
6911 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6912
6913         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6914         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6915         Use _dl_fatal_printf instead.
6916
6917 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6918
6919         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6920         set if not set by the user.  Do not allow for being unset.
6921         * sysdeps/unix/sysv/linux/configure: Regenerated.
6922
6923 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6924
6925         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6926         the `q' suffix from lea and replace .quad with ASM_ADDR.
6927
6928 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6929
6930         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6931         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6932         instead of $17.
6933         (PTR_DEMANGLE): Likewise.
6934
6935 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6936
6937         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6938         (LP_OP): Likewise.
6939         (ASM_ADDR): Likewise.
6940         (RAX_LP): Likewise.
6941         (RBP_LP): Likewise.
6942         (RBX_LP): Likewise.
6943         (RCX_LP): Likewise.
6944         (RDI_LP): Likewise.
6945         (RSI_LP): Likewise.
6946         (RSP_LP): Likewise.
6947         (R8_LP): Likewise.
6948         (R9_LP): Likewise.
6949         (R10_LP): Likewise.
6950         (R10_LP): Likewise.
6951         (R11_LP): Likewise.
6952         (R12_LP): Likewise.
6953         (R13_LP): Likewise.
6954         (R14_LP): Likewise.
6955         (R15_LP): Likewise.
6956
6957 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6958
6959         * sysdeps/x86_64/x32/dl-machine.h: New file.
6960
6961 2012-05-14  Andreas Jaeger  <aj@suse.de>
6962
6963         * manual/Makefile (subdir): Remove export of subdir.
6964         (all): Remove target.
6965         (.PHONY): Remove all from list.
6966         (mkinstalldirs): Remove.
6967         (.PHONY): Remove installdirs from list.
6968         ($(inst_infodir)/libc.info): Use make-target-directory.
6969         (installdirs): Remove.
6970         (subdir_%): Remove.
6971         (glibc-targets): Remove.
6972         (lib): Remove.
6973         (stubs): Remove.
6974         ($(objpfx)stubs ../po/manual.pot): Remove.
6975         ($(objpfx)stamp%): Remove.
6976         (make-target-directory): Remove.
6977         (subdir_install): Remove.
6978         (routines): Remove.
6979         (aux): Remove.
6980         (sources): Remove.
6981         (objects): Remove.
6982         (headers): Remove.
6983
6984         [BZ #13750]
6985         * manual/.gitignore: Remove, it's not needed anymore.
6986         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6987         all files in it.
6988         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6989         directory.
6990         (texis): Renamed to $(objpfx)texis.
6991         (texis-path): New, contains path to generated files.
6992         (chapters.%): Use texis-path for complete path, add extra argument
6993         libc-texinfo.sh.
6994         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6995         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6996         (summary,texi, stamp-summary): Use complete path of
6997         files. Generate files in build dir.
6998         (dir-add.texi): Build in build dir.
6999         (libm-err.texi,stamp-libm-err): Likewise.
7000         (version.texi, stamp-version): Likewise.
7001         (.%c.texi): Likewise.
7002         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7003         (mostlyclean): Remove target.
7004         (realclean): Remove target.
7005         (generated): Add new variable with contents from mostlyclean and
7006         realclean, remove entries duplicated in common-mostlyclean, add
7007         stamp-libm-err and stamp-version.
7008         (generated-dirs): Add libc directory.
7009         ($(inst_infodir)/libc.info): Install files from build dir.
7010
7011         * manual/install.texi (Configuring and compiling): Adjust since
7012         the info files are not part of the tar ball anymore.
7013
7014 2012-05-14  Andreas Jaeger  <aj@suse.de>
7015
7016         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7017         variable.
7018
7019 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7020
7021         [BZ #13717]
7022         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7023         to 2.2.0 where earlier.
7024         * sysdeps/unix/sysv/linux/configure: Regenerated.
7025         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7026         Remove conditional code.
7027         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7028         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7029         Remove conditional code.
7030         [!__NR_lchown]: Likewise.
7031         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7032         [__NR_lchown]: Likewise.
7033         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7034         comment referencing __ASSUME_LCHOWN_SYSCALL.
7035         * sysdeps/unix/sysv/linux/i386/sigaction.c
7036         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7037         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7038         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7039         Remove conditional code.
7040         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7041         (__protocol_available): Remove #if 0 code.
7042         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7043         conditional code.
7044         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7045         * sysdeps/unix/sysv/linux/kernel-features.h
7046         (__ASSUME_GETCWD_SYSCALL): Don't define.
7047         (__ASSUME_REALTIME_SIGNALS): Likewise.
7048         (__ASSUME_PREAD_SYSCALL): Likewise.
7049         (__ASSUME_PWRITE_SYSCALL): Likewise.
7050         (__ASSUME_POLL_SYSCALL): Likewise.
7051         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7052         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7053         non-SPARC.
7054         (__ASSUME_SIOCGIFNAME): Don't define.
7055         (__ASSUME_MSG_NOSIGNAL): Likewise.
7056         (__ASSUME_SENDFILE): Define unconditionally.
7057         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7058         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7059         conditional code.
7060         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7061         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7062         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7063         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7064         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7065         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7066         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7068         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7069         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7071         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7072         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7074         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7075         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7077         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7078         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7080         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7081         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7083         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7084         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7086         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7087         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7089         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7090         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7091         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7092         Remove conditional code.
7093         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7094         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7095         Remove conditional code.
7096         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7097         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7098         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7099         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7100         Remove conditional code.
7101         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7102         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7103         Remove conditional code.
7104         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7105         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7106         Remove conditional code.
7107         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7108         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7109         Remove conditional code.
7110         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7111         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7112         Remove conditional code.
7113         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7114         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7115         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7116         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7117         * sysdeps/unix/sysv/linux/sigaction.c
7118         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7119         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7120         * sysdeps/unix/sysv/linux/sigpending.c
7121         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7122         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7123         * sysdeps/unix/sysv/linux/sigprocmask.c
7124         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7125         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7126         * sysdeps/unix/sysv/linux/sigsuspend.c
7127         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7128         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7129         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7130         (__libc_missing_rt_sigs): Remove.
7131         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7132         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7133         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7134         Remove conditional code.
7135         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7136         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7137         return 1.
7138         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7139         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7140         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7141         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7142
7143 2012-05-14  Andreas Jaeger  <aj@suse.de>
7144
7145         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7146         it's not used in glibc.
7147         (__coshm1): Likewise.
7148         (__acosh1p): Likewise.
7149         (__sgn): Likewise.
7150
7151         * manual/string.texi (Copying and Concatenation): Add missing
7152         variable in concat example.
7153         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7154
7155 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7156
7157         [BZ #14103]
7158         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7159         __builtin_clzl with __builtin_clzll.
7160
7161 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7162
7163         [BZ #14104]
7164         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7165         libc_freeres_ptr.
7166
7167 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7168
7169         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7170         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7171         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7172         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7173
7174 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7175
7176         * NEWS: Update ia64 info.
7177
7178 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7179
7180         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7181         used as bcopy.
7182
7183 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7184
7185         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7186         * sysdeps/unix/syscalls.list (dup3): Likewise.
7187         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7188         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7189
7190 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7191
7192         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7193         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7194
7195 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7196
7197         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7198         thread pointer.
7199         (TLS_IE): Use mov/add instead of movq/addq to load thread
7200         pointer.
7201         (TLS_GD_PREFIX): New.
7202         (TLS_GD): Use it.
7203
7204 2012-05-11  David S. Miller  <davem@davemloft.net>
7205
7206         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7207         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7208         (_FPU_SETCW): Likewise.
7209
7210 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7211
7212         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7213         is 32-byte aligned.
7214
7215 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7216
7217         [BZ #11837]
7218         * iconvdata/gb18030.c: Update tables.
7219         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7220         characters specially.
7221         (BODY for TO_LOOP): Add encoding of missing ranges.
7222
7223 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7224
7225         [BZ #13673]
7226         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7227         * sysdeps/mach/hurd/dup3.c: Likewise.
7228         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7229         * sysdeps/powerpc/memmove.c:: Likewise.
7230
7231 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7232
7233         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7234         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7235
7236 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7237
7238         * elf/elf.h (R_X86_64_RELATIVE64): New.
7239         (R_X86_64_NUM): Updated.
7240         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7241         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7242         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7243         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7244         tst-quad1pie tst-quad2pie
7245         (modules-names): Add tst-quadmod1 tst-quadmod2.
7246         ($(objpfx)tst-quad1): New dependency.
7247         ($(objpfx)tst-quad2): Likewise.
7248         ($(objpfx)tst-quad1pie): Likewise.
7249         ($(objpfx)tst-quad2pie): Likewise.
7250         * sysdeps/x86_64/tst-quad1.c: New file.
7251         * sysdeps/x86_64/tst-quad1pie.c: New file.
7252         * sysdeps/x86_64/tst-quad2.c: Likewise.
7253         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7254         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7255         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7256         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7257         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7258
7259 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7260
7261         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7262         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7263         * streams/stropts.h (t_scalar_t): Define type.
7264
7265         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7266         (_PATH_PRESERVE): Set to "/var/lib".
7267         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7268
7269         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7270         instead of int.
7271
7272         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7273         if __dir_mkfile succeeded.
7274
7275         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7276         checking for _hurd_dtablesize.  Unlock it right after having
7277         finished _hurd_dtable allocation.
7278
7279 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7280
7281         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7282         * sysdeps/mach/hurd/configure: Regenerated.
7283         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7284         special-casing to...
7285         * sysdeps/gnu/configure.in: ... this new file.
7286         * sysdeps/unix/sysv/linux/configure: Regenerated.
7287         * sysdeps/gnu/configure: New generated file.
7288
7289         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7290         for Linux: use nsec instead of usec, as well as:
7291         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7292         members of type struct timespec.
7293         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7294         New macros.
7295         (struct stat64): Likewise.
7296         (_STATBUF_ST_NSEC): New macro.
7297         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7298
7299         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7300         __strtoul_internal rather than strtoul.
7301
7302 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7303
7304         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7305         and reject them.
7306
7307 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7308
7309         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7310         which preserves existing values.
7311         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7312
7313 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7314
7315         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7316         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7317         greater than FD_SETSIZE.
7318
7319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7320
7321         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7322         allocated, call __vm_protect to finish enabling the existing space, and
7323         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7324         allocate the remainder.
7325
7326 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7327
7328         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7329         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7330
7331 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7332
7333         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7334         sysdeps/mach/hurd/readlink.c.
7335
7336         * posix/tst-sysconf.c (posix_options): Only use
7337         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7338         _POSIX_SYNCHRONIZED_IO when they are defined
7339         * sysdeps/mach/hurd/bits/posix_opt.h:
7340         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7341         (_XOPEN_REALTIME): Undefine macro.
7342         (_XOPEN_REALTIME_THREADS): Undefine macro.
7343         (_XOPEN_SHM): Undefine macro.
7344         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7345         macro to -1.
7346         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7347         macro to -1.
7348         (_POSIX_ASYNC_IO): Undefine macro.
7349         (_POSIX_PRIORITIZED_IO): Undefine macro.
7350         (_POSIX_SPIN_LOCKS): Define macro to -1.
7351
7352         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7353         SA_NODEFER, SA_RESETHAND.
7354         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7355         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7356         F_DUPFD_CLOEXEC.
7357
7358 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7359
7360         * elf/Makefile (pldd-modules): Define unconditionally.
7361
7362 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7363
7364         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7365
7366 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7367
7368         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7369         Return ENOENT when name is empty.
7370         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7371
7372 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7373
7374         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7375
7376         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7377
7378 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7379
7380         Fix mlock in all cases except non-readable pages.
7381         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7382         instead of VM_PROT_ALL as parameter to __vm_wire function.
7383
7384         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7385         (__mkdir): When path is `/', just fail with EEXIST.
7386         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7387
7388 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7389
7390         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7391         <sys/uio.h> (for writev).
7392         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7393         and <sys/param.h> (for MIN).
7394
7395 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7396
7397         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7398         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7399         if interrupted.
7400
7401 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7402
7403         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7404         Depend on against $(link-rpcuserlibs).
7405
7406 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7407
7408         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7409         (__libc_stack_end): Do not use attribute_relro.
7410         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7411         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7412         to libthread-provided value.
7413         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7414         attribute_relro.
7415
7416 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7417
7418         [BZ #3748]
7419         * bits/libc-lock.h (__libc_once_get): New macro.
7420         * sysdeps/mach/bits/libc-lock.h: Likewise.
7421         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7422         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7423         instead of using implementation details.
7424
7425         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7426         * libio/freopen.c: Likewise.
7427         * libio/freopen64.c: Likewise.
7428         * misc/syslog.c: Likewise.
7429         * nscd/connections.c: Likewise.
7430         * nscd/netgroupcache.c: Likewise.
7431         * sysdeps/posix/getcwd.c: Likewise.
7432
7433 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7434
7435         * math/w_ilogbf.c: Add #include <limits.h>.
7436
7437 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7438
7439         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7440         path instead of returning without unlocking.
7441
7442         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7443         immediate-write ioctls.
7444         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7445
7446 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7447
7448         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7449         __builtin_frame_address instead of making assumptions about the
7450         location of the return address relative to DATA.  Force early load of
7451         the return address.
7452         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7453         __builtin_frame_address.
7454
7455         dup3 for GNU Hurd.
7456         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7457         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7458         implement dup3 and do some further code clean-ups.
7459         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7460         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7461
7462 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7463
7464         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7465
7466         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7467         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7468         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7469         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7470         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7471         d->port.lock.
7472
7473         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7474         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7475         when handler == SIG_ERR, not when handler != SIG_ERR.
7476
7477 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7478
7479         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7480         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7481         definitions.
7482
7483         accept4 for GNU Hurd.
7484         * include/sys/socket.h (__libc_accept4): New prototype.
7485         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7486         to implement __libc_accept4.
7487         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7488         __libc_accept4.
7489         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7490
7491         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7492         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7493         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7494         signal-defines.sym.
7495
7496 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7497
7498         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7499
7500 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7501
7502         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7503         assertion on O_CLOEXEC flag.
7504         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7505         * hurd/intern-fd.c: Likewise.
7506         * hurd/port2fd.c: Likewise.
7507
7508 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7509
7510         [BZ #3906]
7511         * bits/in.h (IPV6_PKTINFO): Define new macro.
7512         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7513
7514 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7515
7516         [BZ #13954]
7517         [BZ #13955]
7518         [BZ #13956]
7519         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7520         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7521         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7522         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7523         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7524         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7525         * math/libm-test.inc (logb_test) : Additional logb tests.
7526
7527 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7528             Andreas Jaeger  <aj@suse.de>
7529
7530         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7531         * configure: Regenerated.
7532         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7533         * config.make.in (link-obsolete-rpc): New substituted variable.
7534         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7535         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7536         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7537         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7538         so that libc.a contains the symbols.
7539         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7540         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7541         * sunrpc/auth_none.c: Likewise.
7542         * sunrpc/auth_unix.c: Likewise.
7543         * sunrpc/authdes_prot.c: Likewise.
7544         * sunrpc/authuxprot.c: Likewise.
7545         * sunrpc/clnt_gen.c: Likewise.
7546         * sunrpc/clnt_perr.c: Likewise.
7547         * sunrpc/clnt_raw.c: Likewise.
7548         * sunrpc/clnt_simp.c: Likewise.
7549         * sunrpc/clnt_tcp.c: Likewise.
7550         * sunrpc/clnt_udp.c: Likewise.
7551         * sunrpc/clnt_unix.c: Likewise.
7552         * sunrpc/des_crypt.c: Likewise.
7553         * sunrpc/des_soft.c: Likewise.
7554         * sunrpc/get_myaddr.c: Likewise.
7555         * sunrpc/key_call.c: Likewise.
7556         * sunrpc/key_prot.c: Likewise.
7557         * sunrpc/netname.c: Likewise.
7558         * sunrpc/pm_getmaps.c: Likewise.
7559         * sunrpc/pm_getport.c: Likewise.
7560         * sunrpc/pmap_clnt.c: Likewise.
7561         * sunrpc/pmap_prot.c: Likewise.
7562         * sunrpc/pmap_prot2.c: Likewise.
7563         * sunrpc/pmap_rmt.c: Likewise.
7564         * sunrpc/publickey.c: Likewise.
7565         * sunrpc/rpc_cmsg.c: Likewise.
7566         * sunrpc/rpc_common.c: Likewise.
7567         * sunrpc/rpc_dtable.c: Likewise.
7568         * sunrpc/rpc_prot.c: Likewise.
7569         * sunrpc/rpc_thread.c: Likewise.
7570         * sunrpc/rtime.c: Likewise.
7571         * sunrpc/svc.c: Likewise.
7572         * sunrpc/svc_auth.c: Likewise.
7573         * sunrpc/svc_raw.c: Likewise.
7574         * sunrpc/svc_run.c: Likewise.
7575         * sunrpc/svc_tcp.c: Likewise.
7576         * sunrpc/svc_udp.c: Likewise.
7577         * sunrpc/svc_unix.c: Likewise.
7578         * sunrpc/svcauth_des.c: Likewise.
7579         * sunrpc/xcrypt.c: Likewise.
7580         * sunrpc/xdr.c: Likewise.
7581         * sunrpc/xdr_array.c: Likewise.
7582         * sunrpc/xdr_float.c: Likewise.
7583         * sunrpc/xdr_intXX_t.c: Likewise.
7584         * sunrpc/xdr_mem.c: Likewise.
7585         * sunrpc/xdr_rec.c: Likewise.
7586         * sunrpc/xdr_ref.c: Likewise.
7587         * sunrpc/xdr_sizeof.c: Likewise.
7588         * sunrpc/xdr_stdio.c: Likewise.
7589
7590 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7591
7592         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7593         change.  Update copyright years.
7594
7595 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7596
7597         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7598
7599 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7600             Joseph Myers  <joseph@codesourcery.com>
7601             Paul Pluzhnikov  <ppluzhnikov@google.com>
7602
7603         [BZ #14012]
7604         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7605         requiring rpcgen.
7606         [cross-compiling] (extra-libs): Likewise.
7607         [cross-compiling] (extra-libs-others): Likewise.
7608         [cross-compiling] (librpcsvc-routines): Likewise.
7609         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7610         [cross-compiling] (omit-deps): Likewise.
7611         (sunrpc-CPPFLAGS): New variable.
7612         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7613         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7614         (cross-rpcgen-objs): New variable.
7615         (extra-objs): Append $(cross-rpcgen-objs).
7616         ($(cross-rpcgen-objs)): New rule.
7617         ($(objpfx)cross-rpcgen): Likewise.
7618         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7619         comment.
7620         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7621         ($(objpfx)x%.stmp): Likewise.
7622         * sunrpc/proto.h [IS_IN_build] (_): Define.
7623         [IS_IN_build] (_libc_intl_domainname): Likewise.
7624
7625 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7626
7627         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7628         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7629         and R_X86_64_TPOFF64.
7630
7631 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7632
7633         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7634         sysdeps/unix/sysv/syscalls.list.
7635         (stime): Likewise.
7636         (utime): Likewise.
7637         * sysdeps/unix/sysv/syscalls.list: Remove file.
7638
7639 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7640
7641         [BZ #3440]
7642         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7643         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7644         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7645         (__LC_IDENTIFICATION): Make these macros useful in #if
7646         expressions, as required by C99.
7647
7648 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7649
7650         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7651         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7652         after this.
7653
7654 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7655
7656         * stdlib/longlong.h: Updated from GCC.
7657
7658 2012-05-09  Andreas Jaeger  <aj@suse.de>
7659
7660         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7661         default is first entry.
7662         (run_mode): Set type.
7663         (main): Remove informal message about syslog.
7664         (options): Fix typo.
7665
7666         [BZ #14053]
7667         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7668         to asm.
7669         (lrint): Likewise.
7670         (llrintf): Likewise.
7671         (llrint): Likewise.
7672         (rint): Likewise.
7673         (rintf): Likewise.
7674         (nearbyint): Likewise.
7675         (nearbyintf): Likewise.
7676
7677 2012-05-09  Andreas Jaeger  <aj@suse.de>
7678             Pedro Alves  <palves@redhat.com>
7679
7680         * nscd/nscd.c (run_mode): Use enum.
7681         (main): Cleanup coding style issue.
7682
7683 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7684             Andreas Jaeger  <aj@suse.de>
7685
7686         * nscd/nscd.c (go_background): Replaced with...
7687         (run_mode): ... this.
7688         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7689         (options): Add -F --foreground.
7690         (main): Implement it.
7691         (parse_opt): Parse it.
7692
7693 2012-05-09  Andreas Jaeger  <aj@suse.de>
7694
7695         [BZ #14083]
7696         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7697         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7698         -Wconversion warning.
7699         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7700         Likewise.
7701
7702 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7703
7704         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7705         == 0.
7706         (LC_ALL): Use macro-int-constant.
7707         (LC_COLLATE): Likewise.
7708         (LC_CTYPE): Likewise.
7709         (LC_MESSAGES): Likewise.
7710         (LC_MONETARY): Likewise.
7711         (LC_NUMERIC): Likewise.
7712         (LC_TIME): Likewise.
7713         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7714         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7715         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7716         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7717         Specify type.
7718         [C99-based standards] (float_t): Expect type.
7719         [C99-based standards] (double_t): Expect type.
7720         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7721         type.
7722         [C99-based standards] (HUGE_VALL): Likewise.
7723         [C99-based standards] (INFINITY): Likewise.
7724         [C99-based standards] (NAN): Likewise.
7725         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7726         [C99-based standards] (FP_NAN): Likewise.
7727         [C99-based standards] (FP_NORMAL): Likewise.
7728         [C99-based standards] (FP_SUBNORMAL): Likewise.
7729         [C99-based standards] (FP_ZERO): Likewise.
7730         [C99-based standards] (FP_FAST_FMA): Use
7731         optional-macro-int-constant.  Specify type.  Require == 1.
7732         [C99-based standards] (FP_FAST_FMAF): Likewise.
7733         [C99-based standards] (FP_FAST_FMAL): Likewise.
7734         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7735         [C99-based standards] (FP_ILOGBNAN): Likewise.
7736         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7737         Specify type.
7738         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7739         [C99-based standards] (math_errhandling): Specify type.
7740         [ISO99 || ISO11] (signgam): Do not allow.
7741         [non-C99-based standards] (copysignf): Do not allow.
7742         [non-C99-based standards] (exp2f): Likewise.
7743         [non-C99-based standards] (log2f): Likewise.
7744         [non-C99-based standards] (modff): Allow.
7745         [non-C99-based standards] (erff): Do not allow.
7746         [non-C99-based standards] (erfcf): Likewise.
7747         [non-C99-based standards] (gammaf): Likewise.
7748         [non-C99-based standards] (hypotf): Likewise.
7749         [non-C99-based standards] (j0f): Likewise.
7750         [non-C99-based standards] (j1f): Likewise.
7751         [non-C99-based standards] (jnf): Likewise.
7752         [non-C99-based standards] (lgammaf): Likewise.
7753         [non-C99-based standards] (tgammaf): Likewise.
7754         [non-C99-based standards] (y0f): Likewise.
7755         [non-C99-based standards] (y1f): Likewise.
7756         [non-C99-based standards] (ynf): Likewise.
7757         [non-C99-based standards] (isnanf): Likewise.
7758         [non-C99-based standards] (acoshf): Likewise.
7759         [non-C99-based standards] (asinhf): Likewise.
7760         [non-C99-based standards] (atanhf): Likewise.
7761         [non-C99-based standards] (cbrtf): Likewise.
7762         [non-C99-based standards] (expm1f): Likewise.
7763         [non-C99-based standards] (ilogbf): Likewise.
7764         [non-C99-based standards] (log1pf): Likewise.
7765         [non-C99-based standards] (logbf): Likewise.
7766         [non-C99-based standards] (nextafterf): Likewise.
7767         [non-C99-based standards] (remainderf): Likewise.
7768         [non-C99-based standards] (rintf): Likewise.
7769         [non-C99-based standards] (scalbf): Likewise.
7770         [non-C99-based standards] (copysignl): Likewise.
7771         [non-C99-based standards] (exp2l): Likewise.
7772         [non-C99-based standards] (log2l): Likewise.
7773         [non-C99-based standards] (modfl): Allow.
7774         [non-C99-based standards] (erfl): Do not allow.
7775         [non-C99-based standards] (erfcl): Likewise.
7776         [non-C99-based standards] (gammal): Likewise.
7777         [non-C99-based standards] (hypotl): Likewise.
7778         [non-C99-based standards] (j0l): Likewise.
7779         [non-C99-based standards] (j1l): Likewise.
7780         [non-C99-based standards] (jnl): Likewise.
7781         [non-C99-based standards] (lgammal): Likewise.
7782         [non-C99-based standards] (tgammal): Likewise.
7783         [non-C99-based standards] (y0l): Likewise.
7784         [non-C99-based standards] (y1l): Likewise.
7785         [non-C99-based standards] (ynl): Likewise.
7786         [non-C99-based standards] (isnanl): Likewise.
7787         [non-C99-based standards] (acoshl): Likewise.
7788         [non-C99-based standards] (asinhl): Likewise.
7789         [non-C99-based standards] (atanhl): Likewise.
7790         [non-C99-based standards] (cbrtl): Likewise.
7791         [non-C99-based standards] (expm1l): Likewise.
7792         [non-C99-based standards] (ilogbl): Likewise.
7793         [non-C99-based standards] (log1pl): Likewise.
7794         [non-C99-based standards] (logbl): Likewise.
7795         [non-C99-based standards] (nextafterl): Likewise.
7796         [non-C99-based standards] (remainderl): Likewise.
7797         [non-C99-based standards] (rintl): Likewise.
7798         [non-C99-based standards] (scalbl): Likewise.
7799         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7800         [non-C99-based standards] (FP_*): Do not allow.
7801         [C99-based standards] (FP_*): Change to
7802         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7803         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7804         allow.
7805         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7806         (SIG_ERR): Likewise.
7807         [X/Open-based standards] (SIG_HOLD): Likewise.
7808         (SIG_IGN): Likewise.
7809         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7810         positive value.
7811         (SIGFPE): Likewise.
7812         (SIGILL): Likewise.
7813         (SIGINT): Likewise.
7814         (SIGSEGV): Likewise.
7815         (SIGTER): Likewise.
7816         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7817         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7818         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7819         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7820         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7821         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7822         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7823         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7824         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7825         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7826         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7827         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7828         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7829         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7830         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7831         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7832         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7833         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7834         [X/Open-based standards] (SIGTRAP): Likewise.
7835         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7836         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7837         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7838         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7839         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7840         allow.
7841
7842 2012-05-08  Ian Wienand  <ianw@vmware.com>
7843
7844         [BZ #14080]
7845         * time/tzset.c (__tzset_parse_tz): Update default rules for
7846         daylight time changes in the Energy Policy Act of 2005.
7847
7848 2012-05-09  Andreas Jaeger  <aj@suse.de>
7849
7850         [BZ #13983]
7851         * elf/ldconfig.c (parse_conf): Change string to make clear that
7852         ldconfig only issued a warning if ld.so.conf does not exist.
7853
7854 2012-05-08  David S. Miller  <davem@davemloft.net>
7855
7856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7857         movxtod instead of popping the value on the stack.
7858
7859         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7860
7861 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7862
7863         * config.h.in: Add HAVE_ARM_PCS_VFP.
7864
7865 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7866
7867         [BZ #13979]
7868         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7869         checking but the checks are disabled for any reason.
7870
7871 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7872
7873         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7874         and ELF64_R_TYPE with ELFW(R_TYPE).
7875
7876 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7877
7878         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7879         (ulimit): Likewise.
7880
7881         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7882         (settimeofday): Likewise.
7883
7884 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7885
7886         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7887         a struct th_u2 inside the union, and move tu_block/tu_code into
7888         a new th_u3 union of tu_block/tu_code inside of that.  Move
7889         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7890         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7891         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7892         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7893         (th_stuff): Change to th_u1.tu_stuff.
7894         (th_data): Define.
7895         (th_msg): Change to th_u1.th_u2.tu_data.
7896
7897 2012-05-07  David S. Miller  <davem@davemloft.net>
7898
7899         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7900
7901         [BZ #14074]
7902         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7903         (SETUP_PIC_REG): Use it.
7904         (SETUP_PIC_REG_LEAF): Use it.
7905
7906 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7907
7908         [BZ #13885]
7909         [BZ #13923]
7910         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7911         USE_AS_EXPM1L.
7912         (EXPL_FINITE): Likewise.
7913         (FLDLOG): Likewise.
7914         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7915         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7916         e_expl.S.
7917         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7918         USE_AS_EXPM1L.
7919         (EXPL_FINITE): Likewise.
7920         (FLDLOG): Likewise.
7921         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7922         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7923         e_expl.S.
7924         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7925         test of -max_value argument for long double.
7926         * sysdeps/i386/fpu/libm-test-ulps: Update.
7927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7928
7929 2012-05-06  David S. Miller  <davem@davemloft.net>
7930
7931         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7932         quad soft-float symbols whose references which are compiler
7933         generated.
7934         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7935
7936 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7937
7938         [BZ #13884]
7939         [BZ #13914]
7940         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7941         USE_AS_EXP10L.
7942         (EXPL_FINITE): Likewise.
7943         (FLDLOG): Likewise.
7944         (c0): Likewise.
7945         (c1): Likewise.
7946         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7947         Adjust comments for base varying.
7948         (__expl_finite): Change alias to EXPL_FINITE.
7949         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7950         e_expl.S.
7951         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7952         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7953         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7954         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7955         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7956         USE_AS_EXP10L.
7957         (EXPL_FINITE): Likewise.
7958         (FLDLOG): Likewise.
7959         (c0): Likewise.
7960         (c1): Likewise.
7961         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7962         Adjust comments for base varying.
7963         (__expl_finite): Change alias to EXPL_FINITE.
7964         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7965         tests for bugs.
7966         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7967
7968         [BZ #14064]
7969         * math/libm-test.inc (check_float_internal): Correct ulp
7970         calculation for subnormal expected results.
7971
7972 2012-05-06  Andreas Jaeger  <aj@suse.de>
7973
7974         * Makeconfig (+math-flags): New, set to -frounding-math.
7975         (+cflags): Add +math-flags so that all of glibc gets compiled with
7976         it.
7977
7978         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7979
7980 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7981
7982         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7983         Disable one test.
7984
7985         [BZ #13787]
7986         [BZ #13922]
7987         [BZ #14036]
7988         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7989         (__ieee754_expl): Allow for and saturate large arguments.
7990         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7991         (u_threshold): Likewise.
7992         (__exp): Call __ieee754_exp before checking for overflow and
7993         underflow.
7994         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7995         (u_threshold): Likewise.
7996         (__expf): Call __ieee754_expf before checking for overflow and
7997         underflow.
7998         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7999         (u_threshold): Likewise.
8000         (__expl): Call __ieee754_expl before checking for overflow and
8001         underflow.
8002         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8003         (__ieee754_expl): Allow for and saturate large arguments.
8004         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8005         missing overflow exception on overflow.
8006         (expm1_test): Do not allow missing overflow exception on overflow.
8007
8008         * sysdeps/i386/fpu/e_expl.c: Move to ...
8009         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8010         rather than using inline asm.
8011         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8012         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8013         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8014
8015         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8016         (nice): Likewise.
8017         (poll): Likewise.
8018         (signal): Likewise.
8019         (time): Likewise.
8020         (times): Likewise.
8021
8022 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8023
8024         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8025         sysdeps/unix/common/syscalls.list.
8026         (fchmod): Likewise.
8027         (fchown): Likewise.
8028         (ftruncate): Likewise.
8029         (getrusage): Likewise.
8030         (gettimeofday): Likewise.
8031         (setpgid): Likewise.
8032         (setregid): Likewise.
8033         (setreuid): Likewise.
8034         (sigaction): Likewise.
8035         (truncate): Likewise.
8036         (vhangup): Likewise.
8037         * sysdeps/unix/common/syscalls.list: Remove file.
8038         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8039         * sysdeps/unix/sysv/linux/Implies: Likewise.
8040
8041 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8042
8043         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8044         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8045         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8046         Moved to ...
8047         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8048         Here.
8049         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8050         to ...
8051         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8052         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8053         to ...
8054         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8055         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8056         to ...
8057         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8058         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8059         to ...
8060         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8061         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8062         to ...
8063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8064         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8065         to ...
8066         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8067         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8068         to ...
8069         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8070         Here.
8071         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8072         to ...
8073         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8074         Here.
8075         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8076         to ...
8077         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8078         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8079         Moved to ...
8080         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8081         Here.
8082         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8083         to ...
8084         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8085
8086 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8087
8088         * sysdeps/unix/common/bits/dirent.h: Remove file.
8089         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8090
8091         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8092         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8093         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8094         * sysdeps/unix/bsd/isatty.c: Likewise.
8095         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8096         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8097         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8098
8099 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8100
8101         [BZ #13563]
8102         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8103         long double comparison inaccuracies.
8104         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8105         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8106
8107 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8108
8109         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8110         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8111
8112 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8113
8114         [BZ #14049]
8115         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8116         nonzero digits before rounding a hex value.
8117         * stdlib/tst-strtod.c (tests): Add another test.
8118
8119 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8120
8121         * sysdeps/s390/fpu/libm-test-ulps: Update.
8122
8123 2012-05-03  Andreas Jaeger  <aj@suse.de>
8124
8125         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8126         does not get optimized out.
8127         (malloc_opt_barrier): New.
8128
8129 2012-05-03  Andreas Jaeger  <aj@suse.de>
8130             Roland McGrath  <roland@hack.frob.com>
8131
8132         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8133         intermediate file deletion.
8134         (generated): Add .symlist files.
8135
8136 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8137
8138         [BZ #13775]
8139         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8140         Redirect under this condition.
8141         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8142         [__USE_GNU] (__dprintf_chk): Not under this condition.
8143         [__USE_GNU] (__vdprintf_chk): Likewise.
8144         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8145         under this condition.
8146         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8147         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8148         [__USE_XOPEN2K8] (vdprintf): Likewise.
8149         [__USE_GNU] (__dprintf_chk): Not under this condition.
8150         [__USE_GNU] (__vdprintf_chk): Likewise.
8151         [__USE_GNU] (dprintf): Likewise.
8152         [__USE_GNU] (vdprintf): Likewise.
8153
8154 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8155
8156         * elf/Makefile (common-generated): Set this instead of generated for
8157         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8158         $(all-built-dso)-derived lists.
8159
8160 2012-05-03  Andreas Jaeger  <aj@suse.de>
8161
8162         * sysdeps/i386/fpu/libm-test-ulps: Update.
8163
8164         * FAQ: Removed.
8165         * FAQ.in: Likewise.
8166         * scripts/gen-FAQ.pl: Likewise.
8167         * manual/install.texi (Installation): Point to online location of
8168         FAQ.
8169         * Makefile (files-for-dist): Remove FAQ.
8170         (FAQ): Remove.
8171
8172 2012-05-02  Allan McRae  <allan@archlinux.org>
8173
8174         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8175         (LDFLAGS-reldepmod5.so): Likewise.
8176         (LDFLAGS-reldep6mod1.so): Likewise.
8177         (LDFLAGS-reldep6mod4.so): Likewise.
8178         (LDFLAGS-reldep8mod3.so): Likewise.
8179         (LDFLAGS-unload4mod1.so): Likewise.
8180         (LDFLAGS-unload4mod2.so): Likewise.
8181         (LDFLAGS-tst-initorder): Likewise.
8182         (LDFLAGS-tst-initordera2.so): Likewise.
8183         (LDFLAGS-tst-initordera3.so): Likewise.
8184         (LDFLAGS-tst-initordera4.so): Likewise.
8185         (LDFLAGS-tst-initorderb2.so): Likewise.
8186         (LDFLAGS-noload): Likewise.
8187         (LDFLAGS-next): Likewise.
8188         (LDFLAGS-order2mod1.so): Likewise.
8189         (LDFLAGS-order2mod2.so): Likewise.
8190         (LDFLAGS-tst-initorder2): Likewise.
8191         (LDFLAGS-tst-initorder2a.so): Likewise.
8192         (LDFLAGS-tst-initorder2b.so): Likewise.
8193         (LDFLAGS-tst-initorder2c.so): Likewise.
8194         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8195
8196 2012-05-02  David S. Miller  <davem@davemloft.net>
8197
8198         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8199
8200 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8201
8202         [BZ #14055]
8203         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8204
8205 2012-05-02  Andreas Jaeger  <aj@suse.de>
8206
8207         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8208         since we manipulate rounding mode.
8209         (CPPFLAGS-test-idouble.c): Likewise.
8210         (CPPFLAGS-test-ifloat.c): Likewise.
8211         (CFLAGS-test-ldouble.c): Likewise.
8212         (CFLAGS-test-double.c): Likewise.
8213         (CFLAGS-test-float.c): Likewise.
8214         (CFLAGS-test-misc.c): Likewise.
8215         (CFLAGS-test-test-fenv.c): Likewise.
8216
8217 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8218
8219         [BZ #2550]
8220         [BZ #2570]
8221         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8222         comparisons to determine direction to adjust input.
8223
8224 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8225
8226         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8227         output to the target.
8228
8229         * scripts/localplt.awk: New file.
8230         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8231         (check-localplt-CFLAGS): Variable removed.
8232         ($(all-built-dso:=.jmprel)): New static pattern rule.
8233         (generated): Add those targets.
8234         (localplt-built-dso): New variable.
8235         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8236
8237         * elf/check-localplt.c: File removed.
8238
8239         * scripts/check-execstack.awk: New file.
8240         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8241         (check-execstack-CFLAGS): Variable removed.
8242         ($(objpfx)check-execstack.h): Target removed.
8243         ($(objpfx)execstack-default): New target.
8244         (generated): Add that instead of check-execstack.h.
8245         ($(all-built-dso:=.phdr)): New static pattern rule.
8246         (generated): Add those targets.
8247         * elf/check-execstack.c: File removed.
8248
8249         * scripts/check-textrel.awk: New file.
8250         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8251         (check-textrel-CFLAGS): Variable removed.
8252         (all-built-dso): Use := to define.o
8253         ($(all-built-dso:=.dyn)): New static pattern rule.
8254         (generated): Add those targets.
8255         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8256         * config.make.in (READELF): New substituted variable.
8257         * elf/check-textrel.c: File removed.
8258
8259 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8260
8261         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8262         allow.
8263         * conform/data/ctype.h-data [C99-based standards] (isblank):
8264         Expect function.
8265         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8266         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8267         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8268         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8269         Specify type.  Require positive value.
8270         (EILSEQ): Likewise.
8271         (ERANGE): Likewise.
8272         [ISO || POSIX] (EILSEQ): Do not expect.
8273         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8274         Specify type.  Require positive value.
8275         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8276         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8277         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8278         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8279         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8280         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8281         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8282         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8283         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8284         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8285         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8286         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8287         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8288         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8289         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8290         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8291         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8292         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8293         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8294         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8295         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8296         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8297         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8298         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8299         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8300         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8301         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8302         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8303         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8304         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8305         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8306         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8307         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8308         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8309         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8310         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8311         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8312         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8313         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8314         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8315         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8316         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8317         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8318         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8319         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8320         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8321         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8322         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8323         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8324         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8325         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8326         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8327         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8328         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8329         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8330         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8331         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8332         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8333         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8334         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8335         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8336         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8337         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8338         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8339         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8340         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8341         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8342         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8343         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8344         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8345         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8346         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8347         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8348         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8349         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8350         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8351         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8352         Require >= 2.
8353         (FLT_ROUNDS): Expect as macro, not constant.
8354         (FLT_MANT_DIG): Use macro-int-constant.
8355         (DBL_MANT_DIG): Likewise.
8356         (LDBL_MANT_DIG): Likewise.
8357         (FLT_DIG): Likewise.
8358         (DBL_DIG): Likewise.
8359         (LDBL_DIG): Likewise.
8360         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8361         (DBL_MIN_EXP): Likewise.
8362         (LDBL_MIN_EXP): Likewise.
8363         (FLT_MAX_EXP): Use macro-int-constant.
8364         (DBL_MAX_EXP): Likewise.
8365         (LDBL_MAX_EXP): Likewise.
8366         (FLT_MAX_10_EXP): Likewise.
8367         (DBL_MAX_10_EXP): Likewise.
8368         (LDBL_MAX_10_EXP): Likewise.
8369         (FLT_MAX): Use macro-constant.
8370         (DBL_MAX): Likewise.
8371         (LDBL_MAX): Likewise.
8372         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8373         (DBL_EPSILON): Likewise.
8374         (LDBL_EPSILON): Likewise.
8375         (FLT_MIN): Likewise.
8376         (DBL_MIN): Likewise.
8377         (LDBL_MIN): Likewise.
8378         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8379         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8380         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8381         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8382         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8383         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8384         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8385         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8386         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8387         [ISO11] (FLT_TRUE_MIN): Likewise.
8388         [ISO11] (LDBL_TRUE_MIN): Likewise.
8389         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8390         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8391         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8392         (SCHAR_MAX): Likewise.
8393         (UCHAR_MAX): Likewise.
8394         (CHAR_MIN): Likewise.
8395         (CHAR_MAX): Likewise.
8396         (MB_LEN_MAX): Use macro-int-constant.
8397         (SHRT_MIN): Use macro-int-constant.  Specify type.
8398         (SHRT_MAX): Likewise.
8399         (USHRT_MAX): Likewise.
8400         (INT_MAX): Likewise.
8401         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8402         bound negative.
8403         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8404         bound with "U".
8405         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8406         bound with "L".
8407         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8408         bound negative.  Suffix upper bound with "L".
8409         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8410         bound with "UL".
8411         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8412         Specify type.
8413         [C99-based standards] (LLONG_MAX): Likewise.
8414         [C99-based standards] (ULLONG_MAX): Likewise.
8415         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8416         == 0.
8417         [ISO11] (max_align_t): Require type.
8418         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8419
8420         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8421         from $CFLAGS, without defining away __attribute__ calls.
8422         (checknamespace): Use $CFLAGS_namespace.
8423
8424         * conform/conformtest.pl (@keywords): Only include C99 keywords
8425         for standards based on C99 or C11.
8426
8427         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8428         Disable tests.
8429         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8430         UNIX98]: Likewise.
8431
8432         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8433         usability of symbols in #if.
8434
8435         * conform/conformtest.pl: If macro or constant types start
8436         "promoted:", expect the symbol to be of the following type
8437         promoted by the integer promotions.
8438
8439         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8440         in one place.  Also handle "macro-constant".
8441
8442         * conform/conformtest.pl: Only accept expected macro values with
8443         "==".  Parse all "macro" lines in one place.
8444         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8445
8446         * conform/conformtest.pl: Handle braced types on "constant" lines
8447         instead of handling "typed-constant".
8448         * conform/data/signal.h-data: Use "constant" instead of
8449         "typed-constant".
8450
8451         * conform/conformtest.pl: Handle "optional-" at start of lines in
8452         one place rather than duplicating several cases.  Handle each
8453         format of "macro" line with initial "optional-".
8454
8455         * conform/conformtest.pl: Only accept expected constant or
8456         optional-constant values with "==".  Parse all "constant" lines in
8457         one place.  Parse all "optional-constant" lines in one place.
8458         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8459         * conform/data/fmtmsg.h-data: Likewise.
8460         * conform/data/netinet/in.h-data: Likewise.
8461         * conform/data/tar.h-data: Likewise.
8462         * conform/data/limits.h-data: Use "==" form on "constant" and
8463         "optional-constant" lines.
8464
8465         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8466         Use -std=c99 for XOPEN2K.
8467         (@knownproblems): Remove.
8468         (newtoken): Don't check %isknown.
8469
8470         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8471         Do not expect macro.
8472         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8484         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8485         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8502         [XPG3] (acosh): Likewise.
8503         [XPG3] (asinh): Likewise.
8504         [XPG3] (atanh): Likewise.
8505         [XPG3] (cbrt): Likewise.
8506         [XPG3] (expm1): Likewise.
8507         [XPG3] (ilogb): Likewise.
8508         [XPG3] (log1p): Likewise.
8509         [XPG3] (logb): Likewise.
8510         [XPG3] (nextafter): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8513         [XPG3] (remainder): Likewise.
8514         [XPG3] (rint): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8522         [UNIX98 || XOPEN2K] (scalb): Expect.
8523         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8524         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8574         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8575         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8576         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8577         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8578         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8579         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8580         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8581         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8582         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8583         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8584         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8585         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8586         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8587         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8588         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8589         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8590         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8591         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8592         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8593         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8594         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8595         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8596         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8597         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8598         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8599         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8600         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8601         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8602         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8603         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8604         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8605         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8606         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8607         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8608         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8609         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8610         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8611         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8612         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8613         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8614         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8615         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8616         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8617         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8618         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8619         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8620         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8621         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8622         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8623         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8624         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8625         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8626         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8627         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8628         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8629         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8630         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8631         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8632         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8633         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8634         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8635         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8636         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8637         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8638         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8639         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8640         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8641         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8642         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8643         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8644         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8645         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8646         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8647         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8648         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8649         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8650         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8651         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8652         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8653         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8654         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8655         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8656         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8657         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8658         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8659         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8660
8661         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8662         _XOPEN_SOURCE_EXTENDED for XPG4.
8663
8664         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8665
8666         * Makeconfig (localtime): Remove variable.
8667         (inst_localtime-file): Likewise.
8668
8669 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8670
8671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8672         Update.
8673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8674         Update.
8675         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8676         Update.
8677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8678         Update.
8679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8680         Update.
8681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8682         Update.
8683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8684         Update.
8685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8686         Update.
8687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8688         Update.
8689
8690 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8691
8692         [BZ #2550]
8693         [BZ #2570]
8694         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8695         comparisons to determine direction to adjust input.
8696         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8697         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8698         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8699         Likewise.
8700         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8701         Likewise.
8702         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8703         Likewise.
8704         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8705         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8706         Likewise.
8707         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8708         Likewise.
8709         * math/libm-test.inc (nexttoward_test): Add more tests.
8710
8711 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8712
8713         [BZ #14040]
8714         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8715         in version GLIBC_2.1, not GLIBC_2.0.
8716         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8717         Likewise.
8718
8719 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8720
8721         [BZ #13942]
8722         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8723         (1 - x) * (1 + x).
8724         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8725         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8726         * math/libm-test.inc (acos_test): Add more tests.
8727         (asin_test): Likewise.
8728         * sysdeps/i386/fpu/libm-test-ulps: Update.
8729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8730
8731         [BZ #14034]
8732         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8733         of square root.
8734         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8735         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8736         * math/libm-test.inc (acos_test_tonearest): New function.
8737         (acos_test_towardzero): Likewise.
8738         (acos_test_downward): Likewise.
8739         (acos_test_upward): Likewise.
8740         (asin_test_tonearest): Likewise.
8741         (asin_test_towardzero): Likewise.
8742         (asin_test_downward): Likewise.
8743         (asin_test_upward): Likewise.
8744         (main): Call the new functions.
8745         * sysdeps/i386/fpu/libm-test-ulps: Update.
8746         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8747
8748         [BZ #13884]
8749         [BZ #13924]
8750         * math/e_exp10.c: Include <float.h>.
8751         (__ieee754_exp10): Handle underflow here rather than multiplying
8752         large negative argument by M_LN10.
8753         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8754         of __ieee754_expf.
8755         * math/e_exp10l.c: Include <float.h>.
8756         (__ieee754_exp10l): Handle underflow here rather than multiplying
8757         large negative argument by M_LN10l.
8758         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8759         spurious overflow exception on underflow.
8760
8761 2012-04-29  Marek Polacek  <polacek@redhat.com>
8762
8763         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8764         (__fortify_function): New macro.
8765         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8766         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8767         __extern_always_inline.
8768         * libio/bits/stdio2.h: Likewise.
8769         * libio/bits/stdio.h: Likewise.
8770         * string/string.h: Likewise.
8771         * string/bits/string3.h: Likewise.
8772         * include/stdio.h: Likewise.
8773         * stdlib/bits/stdlib.h: Likewise.
8774         * stdlib/stdlib.h: Likewise.
8775         * rt/bits/mqueue2.h: Likewise.
8776         * rt/mqueue.h: Likewise.
8777         * posix/bits/unistd.h: Likewise.
8778         * posix/unistd.h: Likewise.
8779         * io/bits/poll2.h: Likewise.
8780         * io/bits/fcntl2.h: Likewise.
8781         * io/fcntl.h: Likewise.
8782         * io/sys/poll.h: Likewise.
8783         * misc/bits/syslog.h: Likewise.
8784         * misc/bits/syslog-ldbl.h: Likewise.
8785         * misc/sys/syslog.h: Likewise.
8786         * socket/bits/socket2.h: Likewise.
8787         * socket/sys/socket.h: Likewise.
8788         * debug/tst-chk1.c: Likewise.
8789         * wcsmbs/bits/wchar2.h: Likewise.
8790         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8791         * wcsmbs/wchar.h: Likewise.
8792
8793 2012-04-29  Andreas Jaeger  <aj@suse.de>
8794
8795         * Makerules (tests): Remove enable-check-abi protection.
8796         (check-abi-warn): Remove.
8797         (check-abi-%): Remove check-abi-warn usage.
8798
8799         * configure.in: Remove check-abi configure option.
8800         * configure: Regenerated.
8801         * config.make.in (enable-check-abi): Remove.
8802
8803 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8804
8805         [BZ #14033]
8806         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8807         double functions to double *_finite functions.
8808
8809         [BZ #13941]
8810         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8811         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8812         LDBL_MIN_EXP.
8813         * stdio-common/Makefile (tests): Add tst-sprintf3.
8814         * stdio-common/tst-sprintf3.c: New file.
8815
8816         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8817         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8818
8819 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8820
8821         * conform/conformtest.pl: Remove duplicate typed-constant
8822         handling.
8823
8824 2012-04-28  David S. Miller  <davem@davemloft.net>
8825
8826         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8827         (check-abi-%): Remove AWK script prerequisite and explicit
8828         abilist directory.
8829         (check-abi): Rewrite to just diff the symlist with the abilist.
8830         (config-tls, config-abi-config): Delete, no longer used.
8831         (update-abi-%): Remove AWK script and explicit abilist directory.
8832         (update-abi): Rewrite to simply compare and conditionally copy the
8833         symlist and the sysdep abilist file.  Remove update-abi-config
8834         checks.
8835         * abilist/ld.abilist: Remove.
8836         * abilist/libBrokenLocale.abilist: Remove.
8837         * abilist/libanl.abilist: Remove.
8838         * abilist/libcrypt.abilist: Remove.
8839         * abilist/libdl.abilist: Remove.
8840         * abilist/librt.abilist: Remove.
8841         * abilist/libthread_db.abilist: Remove.
8842         * abilist/libutil.abilist: Remove.
8843         * scripts/extract-abilist.awk: Remove.
8844         * scripts/merge-abilist.awk: Remove.
8845         * sysdeps/generic/libcidn.abilist: New file.
8846         * sysdeps/generic/libnss_compat.abilist: New file.
8847         * sysdeps/generic/libnss_db.abilist: New file.
8848         * sysdeps/generic/libnss_dns.abilist: New file.
8849         * sysdeps/generic/libnss_files.abilist: New file.
8850         * sysdeps/generic/libnss_hesiod.abilist: New file.
8851         * sysdeps/generic/libnss_nis.abilist: New file.
8852         * sysdeps/generic/libnss_nisplus.abilist: New file.
8853         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8854         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8855         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8856         file.
8857         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8858         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8859         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8860         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8861         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8862         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8863         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8864         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8865         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8866         file.
8867         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8868         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8869         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8870         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8871         file.
8872         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8873         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8874         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8875         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8876         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8877         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8878         file.
8879         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8880         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8881         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8882         file.
8883         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8884         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8885         New file.
8886         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8887         New file.
8888         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8889         New file.
8890         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8891         New file.
8892         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8893         New file.
8894         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8895         New file.
8896         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8897         New file.
8898         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8899         New file.
8900         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8901         New file.
8902         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8903         New file.
8904         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8905         New file.
8906         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8907         New file.
8908         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8909         New file.
8910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8911         file.
8912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8913         New file.
8914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8915         New file.
8916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8917         file.
8918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8919         New file.
8920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8921         New file.
8922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8923         file.
8924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8925         New file.
8926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8927         New file.
8928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8929         New file.
8930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8931         New file.
8932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8933         New file.
8934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8935         New file.
8936         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8938         file.
8939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8940         New file.
8941         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8942         file.
8943         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8944         file.
8945         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8946         file.
8947         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8948         file.
8949         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8950         file.
8951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8952         New file.
8953         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8954         file.
8955         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8956         file.
8957         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8958         New file.
8959         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8960         file.
8961         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8963         file.
8964         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8965         New file.
8966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8967         file.
8968         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8969         file.
8970         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8971         file.
8972         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8973         file.
8974         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8975         file.
8976         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8977         New file.
8978         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8979         file.
8980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8981         file.
8982         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8983         New file.
8984         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8985         file.
8986         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8987         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8988         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8989         file.
8990         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8991         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8992         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8993         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8994         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8995         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8996         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8997         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8998         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8999         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9000         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9002         file.
9003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9004         New file.
9005         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9006         file.
9007         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9008         file.
9009         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9010         file.
9011         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9012         file.
9013         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9014         file.
9015         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9016         New file.
9017         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9018         New file.
9019         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9020         file.
9021         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9022         New file.
9023         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9024         file.
9025         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9027         file.
9028         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9029         New file.
9030         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9031         file.
9032         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9033         file.
9034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9035         file.
9036         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9037         file.
9038         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9039         file.
9040         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9041         New file.
9042         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9043         New file.
9044         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9045         file.
9046         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9047         New file.
9048         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9049         file.
9050
9051 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9052
9053         * conform/conformtest.pl: Fix typo in handling typed-constant from
9054         allow-header.
9055
9056 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9057
9058         * README: Cut down references to pre-2.6 Linux kernels and
9059         Linuxthreads.  Update lists of configurations in libc and ports
9060         and sort alphabetically.  Say "or newer" with Linux kernel version
9061         requirements.
9062
9063         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9064
9065 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9066
9067         [BZ #887]
9068         * math/libm-test.inc (logb_test_downward): New test to expose
9069         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9070         rounding mode.
9071
9072 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9073
9074         [BZ #14027]
9075         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9076         to be done.
9077         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9078         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9079
9080 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9081
9082         * sysdeps/unix/i386/brk.S: Remove file.
9083         * sysdeps/unix/i386/dl-brk.S: Likewise.
9084         * sysdeps/unix/i386/pipe.S: Likewise.
9085         * sysdeps/unix/i386/sigreturn.S: Likewise.
9086         * sysdeps/unix/i386/syscall.S: Likewise.
9087         * sysdeps/unix/i386/vfork.S: Likewise.
9088         * sysdeps/unix/i386/wait.S: Likewise.
9089
9090         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9091         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9092
9093         * configure.in (arm*-none*): Do not allow without
9094         --enable-hacker-mode.
9095         (netbsd*): Remove case setting base_os.
9096         (386bsd*): Likewise.
9097         (freebsd*): Likewise.
9098         (bsdi*): Likewise.
9099         (osf*): Likewise.
9100         (sunos*): Likewise.
9101         (ultrix*): Likewise.
9102         (newsos*): Likewise.
9103         (dynix*): Likewise.
9104         (*bsd*): Likewise.
9105         (sysv*): Likewise.
9106         (isc*): Likewise.
9107         (esix*): Likewise.
9108         (sco*): Likewise.
9109         (minix*): Likewise.
9110         (irix4*): Likewise.
9111         (irix6*): Likewise.
9112         (solaris[2-9]*): Likewise.
9113         (none): Likewise.
9114         * configure: Regenerated.
9115
9116 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9117
9118         [BZ #11521]
9119         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9120         overflow or cancellation in calculating denominator.
9121         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9122         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9123         down expression to avoid unexpected rounding in newer GCCs.
9124         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9125
9126 2012-04-26  David S. Miller  <davem@davemloft.net>
9127
9128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9129         long-double compat symbols.
9130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9137         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9138         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9139         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9141         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9142         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9143
9144 2012-04-25  David S. Miller  <davem@davemloft.net>
9145
9146         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9147         HWCAP_* values only after the memory barriers have been defined.
9148         (atomic_full_barrier): Define.
9149         (atomic_read_barrier): Define.
9150         (atomic_write_barrier): Define.
9151
9152 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9153
9154         * shlib-versions: Add libgcc_s version information.
9155         * sysdeps/generic/libgcc_s.h: Remove.
9156         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9157         libgcc_s.h.
9158         * sysdeps/gnu/unwind-resume.c: Likewise.
9159         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9160
9161 2012-04-25  David S. Miller  <davem@davemloft.net>
9162
9163         * sysdeps/unix/sparc/brk.S: Delete.
9164         * sysdeps/unix/sparc/dl-brk.S: Delete.
9165         * sysdeps/unix/sparc/pipe.S: Delete.
9166         * sysdeps/unix/sparc/sysdep.S: Delete.
9167         * sysdeps/unix/sparc/sysdep.h: Delete.
9168         * sysdeps/unix/sparc/vfork.S: Delete.
9169         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9170         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9171         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9172         ret_ERRVAL, r0, r1, MOVE): Define.
9173         (JUMPTARGET): Remove.
9174         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9175         sysdeps/unix/sparc/sysdep.h
9176         (ENTRY, END): Remove.
9177         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9178
9179 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9180
9181         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9182         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9183         -DIS_IN_build.
9184
9185         * timezone/README: Update upstream location and email address for
9186         tzcode and tzdata.
9187         * timezone/zdump.c: Update from tzcode 2012b.
9188         * timezone/zic.c: Likewise.
9189
9190         * configure.in (libc_cv_as_needed): Remove test.
9191         * configure: Regenerated.
9192         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9193         conditional definition.
9194         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9195         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9196         * config.make.in (have-as-needed): Remove variable.
9197
9198 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9199             Paul Pluzhnikov  <ppluzhnikov@google.com>
9200
9201         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9202         strings correctly.
9203
9204 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9205
9206         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9207         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9208         * sysdeps/sh/strlen.S: Likewise.
9209
9210 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9211
9212         * sysdeps/unix/fork.S: Remove file.
9213         * sysdeps/unix/i386/fork.S: Likewise.
9214         * sysdeps/unix/sparc/fork.S: Likewise.
9215
9216         * sysdeps/unix/system.c: Remove file.
9217         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9218
9219         * sysdeps/unix/getegid.S: Remove file.
9220         * sysdeps/unix/geteuid.S: Likewise.
9221
9222 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9223
9224         * scripts/check-localplt.awk: New file.
9225         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9226         of diff.
9227         * scripts/data/localplt-generic.data: Add a comment.
9228
9229         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9230         NODE when __dir_mkfile failed.
9231         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9232         Reported by Ludovic Courtès <ludo@gnu.org>.
9233
9234 2012-04-24  Andreas Jaeger  <aj@suse.de>
9235
9236         * Makerules (common-clean): Also remove gen-as-const-headers
9237         files.
9238
9239 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9240
9241         * Makerules (native-compile): Do not change working directory for
9242         build.  Use $(OUTPUT_OPTION) in command.
9243         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9244
9245 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9246
9247         [BZ #13886]
9248         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9249         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9250         * math/libm-test.inc (floor_test): Add more tests.
9251         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9252
9253 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9254
9255         * sysdeps/unix/getdents.c: Remove file.
9256         * sysdeps/unix/sysv/getdents.c: Likewise.
9257         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9258
9259         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9260         sysdeps/unix/mman/syscalls.list.
9261         (mmap): Likewise.
9262         (mprotect): Likewise.
9263         (msync): Likewise.
9264         (munmap): Likewise.
9265         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9266         * sysdeps/unix/mman/syscalls.list: Remove.
9267         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9268
9269         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9270         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9271         * configure: Regenerated.
9272         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9273         $(libgcc_s_suffix).
9274         * config.make.in (libgcc_s_suffix): Remove variable.
9275
9276 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9277
9278         * sysdeps/unix/sysv/gethostname.c: Move to ...
9279         * sysdeps/posix/gethostname.c: ... here.
9280
9281         * sysdeps/unix/execve.S: Remove file.
9282
9283         * sysdeps/unix/_exit.S: Remove file.
9284
9285 2012-04-23  Andreas Jaeger  <aj@suse.de>
9286
9287         [BZ #13739]
9288         * manual/Makefile: Remove make dist support, there's no
9289         need for a stand-alone documentation tar ball.
9290         (TEXI2DVI): Define always, it's not in Makeconfig.
9291         (dist): Removed.
9292         (tar-it): Removed.
9293         (edition): Removed.
9294         (glibc-doc-$(edition).tar): Removed
9295         (%.Z): Removed.
9296         (%.gz): Removed.
9297         (%.uu): Removed.
9298         (ETAGS): Remove, it's in Makeconfig.
9299         (move-if-change): Remove, it's in Makeconfig.
9300
9301 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9302
9303         [BZ #13970]
9304         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9305         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9306         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9307         (strtod_l, strtof_l, strtold_l): Remove __wur.
9308         It is not necessarily an error to ignore strtol's return value.
9309         One can reliably look at the stored endptr to decide whether
9310         the number had valid syntax.
9311
9312 2012-04-21  Andreas Jaeger  <aj@suse.de>
9313
9314         [BZ #13739]
9315         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9316
9317 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9318
9319         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9320         * sysdeps/unix/sysv/Versions: Remove file.
9321
9322 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9323
9324         [BZ #13927]
9325         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9326
9327 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9328
9329         [BZ #7064]
9330         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9331         version from __vm86.
9332
9333 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9334
9335         * sysdeps/unix/common/lxstat.c: Remove file.
9336         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9337
9338         * sysdeps/unix/sysv/Makefile: Remove file.
9339
9340         * sysdeps/unix/sysv/direct.h: Remove file.
9341
9342         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9343         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9344         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9345         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9346         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9347         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9348         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9349
9350         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9351
9352         * sysdeps/unix/xmknod.c: Remove file.
9353         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9354
9355         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9356
9357         * sysdeps/unix/sysv/i386/time.S: Remove file.
9358
9359         * sysdeps/unix/fxstat.c: Remove file.
9360         * sysdeps/unix/xstat.c: Likewise.
9361         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9362
9363         * sysdeps/unix/sysv/sigaction.c: Remove file.
9364
9365         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9366         (sysdep_headers): Remove variable.
9367         [termio.h not in sysdep_headers] (generated): Likewise.
9368         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9369         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9370         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9371         * sysdeps/unix/sysv/tcflow.c: Likewise.
9372         * sysdeps/unix/sysv/tcflush.c: Likewise.
9373         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9374         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9375         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9376         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9377         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9378
9379         * sysdeps/unix/siglist.c: Remove file.
9380
9381         * sysdeps/unix/getppid.S: Remove file.
9382
9383         * sysdeps/unix/mkdir.c: Remove file.
9384         * sysdeps/unix/rmdir.c: Likewise.
9385
9386 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9387
9388         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9389         ERR_MAX value.
9390         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9391         errlist-compat value.
9392
9393 2012-04-18  David S. Miller  <davem@davemloft.net>
9394
9395         * sysdeps/generic/memcopy.h (reg_char): Delete.
9396         * debug/strcat_chk.c: Use char, not reg_char.
9397         * debug/strcpy_chk.c: Likewise.
9398         * debug/strncat_chk.c: Likewise.
9399         * debug/strncpy_chk.c: Likewise.
9400         * string/memchr.c: Likewise.
9401         * string/memrchr.c: Likewise.
9402         * string/rawmemchr.c: Likewise.
9403         * string/strcat.c: Likewise.
9404         * string/strchr.c: Likewise.
9405         * string/strchrnul.c: Likewise.
9406         * string/strcmp.c: Likewise.
9407         * string/strcpy.c: Likewise.
9408         * string/strncat.c: Likewise.
9409         * string/strncmp.c: Likewise.
9410         * string/strncpy.c: Likewise.
9411
9412 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9413
9414         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9415         __builtin_memcopy is called when src and dest ranges are known to not
9416         overlap.
9417
9418 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9419
9420         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9421         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9422         fwd_align_merge macro call.
9423         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9424         bwd_align_merge macro call.
9425         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9426
9427 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9428
9429         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9430         bwd_align_merge macros.
9431         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9432         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9433         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9434
9435 2012-04-18  David S. Miller  <davem@davemloft.net>
9436
9437         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9438
9439 2012-04-18  Andreas Jaeger  <aj@suse.de>
9440
9441         [BZ# 6794]
9442         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9443         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9444         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9445
9446         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9447         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9448         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9449
9450         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9451         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9452         Adjust for changed ldbl-128 files.
9453
9454         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9455         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9456         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9457
9458 2012-04-17  David S. Miller  <davem@davemloft.net>
9459
9460         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9461
9462 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9463
9464         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9465         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9466         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9467         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9468         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9469         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9470
9471 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9472
9473         [BZ #6794]
9474         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9475         * math/libm-test.inc: Add ilogb errno and exception tests.
9476         * math/w_ilogb.c: New file: ilogb wrapper.
9477         * math/w_ilogbf.c: New file: ilogbf wrapper.
9478         * math/w_ilogbl.c: New file: ilogbl wrapper.
9479         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9480         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9481         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9482         exception being thrown with 0.0 as argument.
9483         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9484         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9485         exception being thrown with 0.0 as argument.
9486         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9487         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9488         exception being thrown with 0.0 as argument.
9489         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9490         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9491         exception being thrown with 0.0 as argument.
9492         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9493         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9494         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9495         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9496         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9497         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9498         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9499         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9500         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9501
9502 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9503
9504         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9505         with altivec.
9506
9507 2012-04-16  Marek Polacek  <polacek@redhat.com>
9508
9509         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9510
9511 2012-04-16  Marek Polacek  <polacek@redhat.com>
9512
9513         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9514         operands of fdivp instruction.
9515
9516 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9517
9518         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9519         * elf/tst-auditmod3b.c: Likewise.
9520         * elf/tst-auditmod4b.c: Likewise.
9521         * elf/tst-auditmod5b.c: Likewise.
9522         * elf/tst-auditmod6b.c: Likewise.
9523         * elf/tst-auditmod6c.c: Likewise.
9524         * elf/tst-auditmod7b.c: Likewise.
9525         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9526         * sysdeps/x86_64/preconfigure.in: Likewise.
9527         * sysdeps/x86_64/preconfigure: Regenerated.
9528
9529 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9530
9531         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9532         __ILP32__.
9533
9534 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9535
9536         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9537         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9538
9539 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9540
9541         [BZ #13973]
9542         * locale/iso-639.def: Fix gl language name. Spotted by
9543         Yaron Shahrabani.
9544
9545 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9546
9547         [BZ #2074]
9548         * libio/libio.h (__io_write_fn): Update comment.
9549
9550 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9551
9552         [BZ #2074]
9553         * stdio.texi (Hook Functions): The user provided writer function
9554         is not allowed to return -1.
9555
9556 2012-04-11  David S. Miller  <davem@davemloft.net>
9557
9558         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9559
9560 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9561
9562         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9563         Add a leading slash to rtkaio.
9564
9565 2012-04-11  Jim Meyering  <meyering@redhat.com>
9566
9567         [BZ #11959]
9568         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9569         It is not necessarily an error to ignore fwrite's return
9570         value.  One can reliably use ferror to test for errors after
9571         the fact.
9572
9573 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9574
9575         * bits/types.h (__snseconds_t): New type.
9576         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9577
9578         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9579         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9580         (__SNSECONDS_T_TYPE): Likewise.
9581         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9582         (__SNSECONDS_T_TYPE): Likewise.
9583         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9584         (__SNSECONDS_T_TYPE): Likewise.
9585
9586 2012-04-10  Andreas Jaeger  <aj@suse.de>
9587
9588         [BZ #2636]
9589         * manual/time.texi (Processor Time): Return type of times is
9590         elapsed real time since an arbitrary point in the past.
9591         (CPU Time): Move CLK_TCK from here...
9592         (Processor Time): ...to here.  Correct description.
9593         * manual/conf.texi (Constants for Sysconf): Correct description of
9594         _SC_CLK_TCK.
9595
9596 2012-04-10  David S. Miller  <davem@davemloft.net>
9597
9598         [BZ #13967]
9599         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9600         where the is a gap between DT_REL(A) and DT_JMPREL.
9601
9602 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9603
9604         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9605         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9606         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9607
9608 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9609
9610         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9611         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9612         (dl_main): Handle --inhibit-cache.
9613         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9614         _dl_inhibit_cache.
9615         * elf/dl-load.c (_dl_map_object): Use it.
9616         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9617
9618 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9619
9620         [BZ #13872]
9621         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9622         (__ieee754_powl): Saturate large exponents rather than testing for
9623         overflow of y*log2(x).
9624         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9625         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9626         exceptions.
9627
9628         [BZ #11521]
9629         * math/s_ctan.c: Include <float.h>.
9630         (__ctan): Avoid internal overflow or cancellation in calculating
9631         denominator.
9632         * math/s_ctanf.c: Likewise.
9633         * math/s_ctanl.c: Likewise.
9634         * math/s_ctanh.c: Likewise.
9635         * math/s_ctanhf.c: Likewise.
9636         * math/s_ctanhl.c: Likewise.
9637         * math/libm-test.inc (ctan_test): Add more tests.
9638         (ctanh_test): Likewise.
9639         * sysdeps/i386/fpu/libm-test-ulps: Update.
9640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9641
9642 2012-04-09  Andreas Jaeger  <aj@suse.de>
9643
9644         [BZ #6894]
9645         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9646         is an optional BSD extension.
9647
9648         [BZ #10254]
9649         * manual/stdio.texi (Opening Streams): Document additional fopen
9650         parameters.
9651
9652 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9653
9654         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9655         %eax without telling the compiler.
9656
9657 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9658
9659         [BZ # 13963]
9660         * manual/install.texi: Use sourceware.org.
9661
9662 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9663
9664         [BZ #13873]
9665         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9666         (__ieee754_pow): Generate overflow and underflow using huge*huge
9667         and tiny*tiny rather than just returning constant infinity or zero
9668         for large exponents.
9669         * math/libm-test.inc (pow_test): Require overflow exceptions for
9670         applicable cases of large exponents.
9671
9672         [BZ #706]
9673         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9674         (__ieee754_pow): Use iterative multiplication algorithm only for
9675         integer exponents with absolute value below 1024.  Check for odd
9676         integer exponents when using algorithm for real exponents.
9677         * math/libm-test.inc (pow_test): Add more tests.
9678         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9679
9680 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9681
9682         [BZ #13705]
9683         * math/libm-test.inc (exp_test): Do not allow overflow exception
9684         on underflow test.
9685
9686 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9687
9688         [BZ #13705]
9689         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9690         instead of __kernel_standard_f.
9691
9692 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9693
9694         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9695         * sysdeps/x86_64/memset_chk.S: Likewise.
9696
9697 2012-04-08  Andreas Jaeger  <aj@suse.de>
9698
9699         [BZ #10153]
9700         * manual/startup.texi (Environment Access): Describe return value
9701         for putenv and setenv.
9702
9703         [BZ #6895]
9704         * manual/filesys.texi (Directory Entries): Add description for
9705         DT_LNK.
9706
9707         [BZ #6890]
9708         * manual/filesys.texi (Directory Entries): Clarify that it's file
9709         system not operating system in the description of DT_UNKNOWN.
9710
9711         [BZ #6578]
9712         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9713
9714 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9715
9716         [BZ #6649]
9717         * manual/llio.texi (Opening and Closing Files): Add cross
9718         reference to explain mode argument.
9719
9720 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9721
9722         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9723         * sysdeps/x86_64/memset_chk.S: Likewise.
9724
9725 2012-04-07  David S. Miller  <davem@davemloft.net>
9726
9727         * elf/elf.h (R_SPARC_WDISP10): Define.
9728         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9729         R_SPARC_SIZE32.
9730         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9731         R_SPARC_SIZE64 and R_SPARC_H34.
9732
9733 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9734
9735         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9736         conditions and remove no longer applicable assertion.
9737
9738 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9739
9740         * bits/byteswap.h: Include <features.h>.
9741         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9742         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9743
9744 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9745
9746         * bits/byteswap.h (__bswap_16): Removed.
9747         Include <bits/byteswap-16.h> to get __bswap_16.
9748         * sysdeps/i386/bits/byteswap.h: Likewise.
9749         * sysdeps/s390/bits/byteswap.h: Likewise.
9750         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9751         * bits/byteswap-16.h: New file.
9752         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9753         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9754         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9755         * string/Makefile (headers): Add bits/byteswap-16.h.
9756
9757 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9758
9759         [BZ #13895]
9760         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9761         extra indirection.
9762         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9763         * nss/tst-nss-static.c: New.
9764
9765 2012-04-06  Robert Millan  <rmh@gnu.org>
9766
9767         [BZ #6486]
9768         * manual/llio.texi (File Position Primitive): lseek
9769         refers to WHENCE when it really means OFFSET.
9770
9771 2012-04-06  Andreas Jaeger  <aj@suse.de>
9772
9773         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9774         strncmp declarations.
9775
9776         * abilist/libc.abilist: Add __poll and __ppoll.
9777
9778 2012-04-05  David S. Miller  <davem@davemloft.net>
9779
9780         * scripts/check-local-headers.sh: Accept a host triplet in the
9781         path matched by the exclude regexp.
9782
9783         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9784         definition.
9785         * sysdeps/powerpc/powerpc32/dl-machine.h
9786         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9787         * sysdeps/s390/s390-32/dl-machine.h
9788         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9789         * sysdeps/sparc/sparc32/dl-machine.h
9790         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9791         * sysdeps/sparc/sparc64/dl-machine.h
9792         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9793
9794         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9795         lazy binding.
9796         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9797         undefined symbol errors.
9798
9799         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9800         DT_NEEDED entries.
9801
9802 2012-04-05  Michael Matz  <matz@suse.de>
9803
9804         [BZ #13592]
9805         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9806
9807 2012-04-05  Andreas Jaeger  <aj@suse.de>
9808
9809         [BZ #13908]
9810         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9811         comment.
9812
9813 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9814
9815         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9816         which ROUND is no valid rounding mode.
9817
9818 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9819
9820         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9821         read again.
9822         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9823
9824 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9825
9826         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9827         an exception using FPU order intentionally.
9828
9829 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9830
9831         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9832         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9833         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9834         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9835
9836 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9837
9838         [BZ #12340]
9839         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9840         EINVAL when BUFLEN is too smal.
9841
9842 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9843
9844         [BZ #13553]
9845         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9846         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9847
9848 2012-04-03  Andreas Jaeger  <aj@suse.de>
9849
9850         [BZ #13938]
9851         * manual/setjmp.texi (System V contexts): Fix sentence.
9852
9853         [BZ #13926]
9854         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9855         New macro for this case.
9856         [!__GNUC__] (__bswap_64): New inline function for this case.
9857         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9858         * bits/byteswap.h: Likewise.
9859         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9860         ull, guard with __GLIBC_HAVE_LONG_LONG.
9861
9862         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9863         __GLIBC_HAVE_LONG_LONG.
9864
9865         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9866         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9867
9868 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9869
9870         [BZ #13691]
9871         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9872         inptr and inend, rather than using last_ch.
9873
9874 2012-04-02  David S. Miller  <davem@davemloft.net>
9875
9876         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9877         * stdio-common/printf-parse.h (read_int): Change return type to
9878         'int', return -1 on INT_MAX overflow.
9879         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9880         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9881         overflows INT_MAX.  Check for overflow of in-format-string precision
9882         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9883         SIZE_MAX not INT_MAX for integer overflow test.
9884         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9885         skip the construct in the format string but do not record anything.
9886         * stdio-common/bug22.c: Adjust to test both width/prevision
9887         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9888         explicitly for proper errno values.
9889
9890 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9891
9892         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9893         CHAR_MAX.
9894         * string/test-strcmp.c [! WIDE]: Likewise.
9895         * time/tst-mktime2.c: Likewise for INT_MAX.
9896         * string/test-string.h: #include <sys/param.h> for MIN.
9897
9898         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9899         * sysdeps/i386/init-first.c (init): Likewise.
9900         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9901         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9902         * sysdeps/sh/init-first.c (init): Likewise.
9903
9904 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9905
9906         * po/ru.po: Update from translation team.
9907         * po/vi.po: Likewise.
9908
9909 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9910
9911         * resolv/nss_dns/dns-host.c: Merge copyright years.
9912
9913 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9914
9915         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9916         Optimize memcpy with prefetch if
9917         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9918         src, dst pointers have unequal 16 byte alignments.
9919
9920 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9921
9922         [BZ #13928]
9923         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9924         from a CNAME entry and return the minimum ttl for the query.
9925         (gaih_getanswer_slice): Likewise.
9926
9927 2012-03-30  Jeff Law  <law@redhat.com>
9928
9929         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9930         due to long keys.
9931         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9932         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9933
9934         * resolv/nss_dns/dns-host.c: Update copyright year.
9935
9936 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9937
9938         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9939         requests to save a system call.  Fix check that all bytes are sent.
9940
9941         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9942         comments for sendmmsg.
9943
9944 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9945
9946         [BZ #13691]
9947         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9948         with only 1 character between 0x0041 and 0x01b0.
9949         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9950         * wcsmbs/tst-mbsnrtowcs.c: New file.
9951
9952 2012-03-29  David S. Miller  <davem@davemloft.net>
9953
9954         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9955         small copies by hand.
9956
9957 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9958
9959         [BZ #13761]
9960         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9961         _nss_compat_initgroups_dyn): Fall back to malloc/free
9962         for large group memberships.
9963
9964 2012-03-28  David S. Miller  <davem@davemloft.net>
9965
9966         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9967         that branches into memcpy.
9968         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9969         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9970         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9971         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9972         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9973         bits.
9974         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9975         implementation too.
9976         * sysdeps/sparc/mempcpy.S: New file.
9977
9978         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9979         the IFUNC routine in the libc case.
9980         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9981
9982         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9983         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9984         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9985         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9986         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9987         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9988         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9989         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9990
9991         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9992         loop to 256 bytes instead of 64 bytes and fix test signedness.
9993
9994         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9995         * sysdeps/sparc/sparc32/Makefile: rather than here...
9996         * sysdeps/sparc/sparc64/Makefile: and here.
9997
9998 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9999
10000         * malloc/mallocbug.c: Avoid warnings about unused variables.
10001
10002 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10003
10004         [BZ #13760]
10005         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10006         in the right place. Discard and retry query if response is
10007         larger than input buffer size.
10008
10009 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10010
10011         [BZ #369]
10012         [BZ #2678]
10013         [BZ #3866]
10014         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10015         x for large integer exponent.
10016         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10017         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10018         sign of result as needed afterwards.
10019         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10020         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10021         result for underflowing pow the same as for overflow.
10022         (__kernel_standard_l): Handle powl overflow and underflow here
10023         rather than calling __kernel_standard.
10024         * math/libm-test.inc (pow_test): Add more tests.
10025
10026         [BZ #3868]
10027         [BZ #13879]
10028         [BZ #13910]
10029         [BZ #13911]
10030         [BZ #13912]
10031         [BZ #13913]
10032         [BZ #13915]
10033         [BZ #13916]
10034         [BZ #13917]
10035         [BZ #13918]
10036         [BZ #13919]
10037         [BZ #13920]
10038         [BZ #13921]
10039         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10040         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10041         (__kernel_standard_l): New function.
10042         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10043         __kernel_standard.
10044         * math/w_acosl.c (__acosl): Likewise.
10045         * math/w_asinl.c (__asinl): Likewise.
10046         * math/w_atan2l.c (__atan2l): Likewise.
10047         * math/w_atanhl.c (__atanhl): Likewise.
10048         * math/w_coshl.c (__coshl): Likewise.
10049         * math/w_exp10l.c (__exp10l): Likewise.
10050         * math/w_exp2l.c (__exp2l): Likewise.
10051         * math/w_fmodl.c (__fmodl): Likewise.
10052         * math/w_hypotl.c (__hypotl): Likewise.
10053         * math/w_j0l.c (__j0l, __y0l): Likewise.
10054         * math/w_j1l.c (__j1l, __y1l): Likewise.
10055         * math/w_jnl.c (__jnl, __ynl): Likewise.
10056         * math/w_lgammal.c (__lgammal): Likewise.
10057         * math/w_log10l.c (__log10l): Likewise.
10058         * math/w_log2l.c (__log2l): Likewise.
10059         * math/w_logl.c (__logl): Likewise.
10060         * math/w_powl.c (__powl): Likewise.
10061         * math/w_remainderl.c (__remainderl): Likewise.
10062         * math/w_scalbl.c (sysv_scalbl): Likewise.
10063         * math/w_sinhl.c (__sinhl): Likewise.
10064         * math/w_sqrtl.c (__sqrtl): Likewise.
10065         * math/w_tgammal.c (__tgammal): Likewise.
10066         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10067         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10068         * math/libm-test.inc (acos_test): Add more tests.
10069         (acosh_test): Likewise.
10070         (asin_test): Likewise.
10071         (atanh_test): Likewise.
10072         (exp_test): Likewise.
10073         (exp10_test): Likewise.
10074         (exp2_test): Likewise.
10075         (expm1_test): Likewise.
10076         (lgamma_test): Likewise.
10077         (log_test): Likewise.
10078         (log10_test): Likewise.
10079         (log1p_test): Likewise.
10080         (log2_test): Likewise.
10081         (pow_test): Do not allow some spurious overflow exceptions.
10082         (sqrt_test): Add more tests.
10083         (tgamma_test): Likewise.
10084         (y0_test): Likewise.
10085         (y1_test): Likewise.
10086         (yn_test): Likewise.
10087
10088 2012-03-27  Anton Blanchard  <anton@samba.org>
10089
10090         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10091         MAP_HUGETLB.
10092         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10093         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10094         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10095
10096 2012-03-27  David S. Miller  <davem@davemloft.net>
10097
10098         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10099
10100         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10101         have-as-vis3 check.
10102
10103 2012-03-27  Andreas Jaeger  <aj@suse.de>
10104
10105         * sysdeps/x86_64/elf/configure.in: Moved to ...
10106         * sysdeps/x86_64/configure.in: ... here.
10107         * sysdeps/x86_64/elf/start.S: Moved to ...
10108         * sysdeps/x86_64/start.S: ... here.
10109         * sysdeps/x86_64/elf/configure: Delete.
10110
10111         * sysdeps/x86_64/configure.in: Merge contents from
10112         sysdeps/i386/configure.in (without i686 check).
10113
10114         * sysdeps/i386/elf/Versions: Merge into ...
10115         * sysdeps/i386/Versions: ... this.
10116         * sysdeps/i386/elf/Versions: Delete file.
10117         * sysdeps/i386/elf/start.S: Moved to ...
10118         * sysdeps/i386/start.S: ...here.
10119         * sysdeps/i386/elf/configure.in: Merge into...
10120         * sysdeps/i386/configure.in: ...here.
10121         * sysdeps/i386/elf/configure.in: Delete file.
10122         * sysdeps/i386/elf/configure: Delete file.
10123
10124         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10125         * debug/backtracesyms.c: ... here.
10126         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10127         * debug/backtracesymsfd.c: ... here.
10128         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10129         * sysdeps/generic/ifunc-sel.h: ... here.
10130
10131         * sysdeps/unix/i386/start.c: Delete file.
10132         * sysdeps/unix/sparc/start.c: Delete file.
10133         * sysdeps/unix/start.c: Delete file.
10134
10135         * sysdeps/sh/elf/configure.in: Moved to ...
10136         * sysdeps/sh/configure.in: ... here.
10137         * sysdeps/sh/elf/start.S: Moved to ...
10138         * sysdeps/sh/start.S: ... here.
10139         * sysdeps/sh/elf/configure: Delete file.
10140
10141         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10142         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10143         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10144         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10145         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10146         * sysdeps/powerpc/powerpc64/start.S: here.
10147         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10148         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10149         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10150         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10151         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10152
10153         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10154         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10155         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10156         * sysdeps/powerpc/powerpc32/start.S: ... here.
10157         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10158         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10159         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10160
10161         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10162         * sysdeps/powerpc/ifunc-sel.h: ... here.
10163         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10164         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10165
10166         * sysdeps/sparc/elf/configure.in: Moved to ...
10167         * sysdeps/sparc/configure.in: ... here.
10168         * sysdeps/sparc/elf/configure: Delete file.
10169         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10170         * sysdeps/sparc/sparc32/start.S: ... here.
10171         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10172         * sysdeps/sparc/sparc64/start.S: ... here.
10173         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10174         * sysdeps/sparc/sparc32/Makefile: ... this.
10175         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10176         * sysdeps/sparc/sparc64/Makefile: ... this.
10177
10178         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10179         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10180         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10181         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10182         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10183         * sysdeps/s390/s390-32/setjmp.S: ... here.
10184         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10185         * sysdeps/s390/s390-32/configure.in: ... here.
10186         * sysdeps/s390/s390-32/elf/configure: Delete file.
10187         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10188         * sysdeps/s390/s390-32/start.S: ... here.
10189
10190         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10191         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10192         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10193         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10194         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10195         * sysdeps/s390/s390-64/setjmp.S: ... here.
10196         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10197         * sysdeps/s390/s390-64/configure.in: ... here
10198         * sysdeps/s390/s390-64/elf/configure: Delete file.
10199         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10200         * sysdeps/s390/s390-64/start.S: ... here.
10201         * sysdeps/s390/s390-64/elf/configure: Delete.
10202
10203         * configure.in: Remove support for elf directories in sysdeps.
10204
10205         * configure: Regenerated.
10206         * sysdeps/i386/configure: Regenerated.
10207         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10208         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10209         * sysdeps/s390/s390-32/configure: Regenerated.
10210         * sysdeps/s390/s390-64/configure: Regenerated.
10211         * sysdeps/sh/configure: Regenerated.
10212         * sysdeps/sparc/configure: Regenerated.
10213         * sysdeps/x86_64/configure: Regenerated.
10214
10215 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10216
10217         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10218
10219         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10220         denormal result into account.
10221
10222 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10223
10224         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10225         Reported by Allan McRae <allan@archlinux.org>.
10226
10227 2012-03-23  Jeff Law  <law@redhat.com>
10228
10229         * nss/getnssent.c (__nss_getent): Fix typo.
10230
10231 2012-03-23  David S. Miller  <davem@davemloft.net>
10232
10233         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10234
10235 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10236
10237         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10238         to pad to uint64_t for each field.
10239         (dl_tls_index): Replace unsigned long with uint64_t.
10240
10241 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10242         Paul Pluzhnikov  <ppluzhnikov@google.com>
10243
10244         [BZ #6528]
10245         * grp/Makefile (otherlibs): Don't set it.
10246         * inet/Makefile (otherlibs): Likewise.
10247         * login/Makefile (otherlibs): Likewise.
10248         * nscd/Makefile (otherlibs): Likewise.
10249         * posix/Makefile (otherlibs): Likewise.
10250         * pwd/Makefile (otherlibs): Likewise.
10251         * rt/Makefile (otherlibs): Likewise.
10252         * sunrpc/Makefile (otherlibs): Likewise.
10253         * nss/Makefile (otherlibs): Likewise.
10254         Add libnss_files to routines and static-only-routines.
10255         ($(objpfx)getent): Remove rule.
10256         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10257         static-only-routines.
10258
10259 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10260
10261         [BZ #13892]
10262         * math/s_cexp.c: Include <float.h>.
10263         (__cexp): Handle exp result overflowing not necessarily
10264         overflowing both real and imaginary parts of result.
10265         * math/s_cexpf.c: Likewise.
10266         * math/s_cexpl.c: Likewise.
10267         * math/libm-test.inc (cexp_test): Add more tests.
10268         * sysdeps/i386/fpu/libm-test-ulps: Update.
10269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10270
10271 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10272
10273         * include/link.h (ELFW): New macro.
10274         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10275         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10276
10277 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10278
10279         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10280         with uint64_t.
10281
10282 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10283
10284         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10285         declaration.
10286         (struct La_x32_retval): Likewise.
10287
10288 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10289
10290         * sysdeps/x86_64/preconfigure.in: New file.
10291         * sysdeps/x86_64/preconfigure: New generated file.
10292
10293 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10294
10295         [BZ #13824]
10296         * math/e_exp2l.c: Include <float.h>.
10297         (__ieee754_exp2l): Handle overflow and underflow cases
10298         separately.  Only pass fractional part of argument to
10299         __ieee754_expl.
10300         * math/libm-test.inc (exp2_test): Add more tests.
10301
10302         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10303         negating x to take absolute value.
10304         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10305         Likewise.
10306         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10307         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10308         Likewise.
10309         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10310         computing low part if x was negated.
10311         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10312
10313 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10314
10315         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10316         la_x32_gnu_pltexit.
10317         (pltexit): Cast int_retval to ptrdiff_t.
10318         * elf/tst-auditmod3b.c: Likewise.
10319         * elf/tst-auditmod4b.c: Likewise.
10320         * elf/tst-auditmod5b.c: Likewise.
10321         * elf/tst-auditmod6b.c: Likewise.
10322         * elf/tst-auditmod6c.c: Likewise.
10323         * elf/tst-auditmod7b.c: Likewise.
10324
10325         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10326         and x32_gnu_pltexit.
10327
10328         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10329         __ELF_NATIVE_CLASS.
10330         (La_x32_regs): New macro.
10331         (La_x32_retval): Likewise.
10332         (la_x32_gnu_pltenter): New function prototype.
10333         (la_x32_gnu_pltexit): Likewise.
10334
10335 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10336
10337         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10338         exponent.
10339
10340         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10341
10342         * configure.in (libc_cv_cc_nofma): Check for option to disable
10343         generation of FMA instructions.
10344         * configure: Regenerate.
10345         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10346         * sysdeps/ieee754/dbl-64/Makefile: New file.
10347         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10348         Remove brandred-fma4.
10349         (CFLAGS-brandred-fma4.c): Remove.
10350         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10351         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10352         define.
10353         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10354         define.
10355
10356 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10357
10358         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10359         LLONG_MAX != LONG_MAX.
10360         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10361         (_fitoa_word): Likewise.
10362         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10363         LLONG_MAX != LONG_MAX.
10364         * stdio-common/_itowa.h: Include <_itoa.h>.
10365         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10366         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10367         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10368         only if not defined.
10369         (_ITOA_WORD_TYPE): Likewise.
10370         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10371         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10372
10373 2012-03-21  David S. Miller  <davem@davemloft.net>
10374
10375         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10376
10377 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10378
10379         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10380         of x86_64 when setting libc_cv_slibdir, libdir and
10381         libc_cv_localedir.
10382         * sysdeps/unix/sysv/linux/configure: Regenerated.
10383
10384 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10385
10386         * manual/lang.texi (Old Varargs): Remove section.
10387         (How Variadic): Update menu.
10388         (va_start): Do not mention varargs.h.
10389
10390 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10391             Joseph Myers  <joseph@codesourcery.com>
10392
10393         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10394         link test.
10395         * configure: Regenerated.
10396
10397 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10398
10399         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10400         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10401         conformtest.pl
10402
10403 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10404
10405         * NOTES: Remove.
10406         * Makefile (files-for-dist): Remove NOTES.
10407         (NOTES): Remove rule.
10408         * README: Don't refer to NOTES.
10409         * manual/creature.texi: Don't include macros.texi.
10410         * manual/intro.texi (creature.texi): Remove comment referring to
10411         NOTES.
10412
10413         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10414         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10415         * configure: Regenerated.
10416         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10417         LIBC_TRY_CC_OPTION.
10418         (libc_cv_as_i686): Likewise.
10419         (libc_cv_cc_avx): Likewise.
10420         (libc_cv_cc_sse2avx): Likewise.
10421         (libc_cv_cc_fma4): Likewise.
10422         (libc_cv_cc_novzeroupper): Likewise.
10423         * sysdeps/i386/configure: Regenerated.
10424
10425         [BZ #13883]
10426         * sysdeps/i386/fpu/s_cexp.S: Remove.
10427         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10428         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10429         * math/libm-test.inc (cexp_test): Add more tests.
10430         * sysdeps/i386/fpu/libm-test-ulps: Update.
10431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10432
10433 2012-03-21  Allan McRae  <allan@archlinux.org>
10434
10435         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10436
10437 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10438
10439         [BZ #13871]
10440         * math/w_exp2.c: Do not include <float.h>.
10441         (o_threshold, u_threshold): Remove.
10442         (__exp2): Calculate result before checking finiteness and calling
10443         __kernel_standard.
10444         * math/w_exp2f.c: Likewise.
10445         * math/w_exp2l.c: Likewise.
10446         * math/libm-test.inc (exp2_test): Require overflow exception for
10447         1e6 input.
10448
10449         [BZ #3866]
10450         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10451         range of signed 64-bit integers before using fistpll.  Remove
10452         checks for whether integers fit in mantissa bits.
10453         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10454         the range of signed 32-bit integers before using fistpl.  Remove
10455         checks for whether integers fit in mantissa bits.
10456         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10457         (__ieee754_powl): Test for y outside the range of signed 64-bit
10458         integers before using fistpll.  Reduce 64-bit values to 63-bit
10459         ones as needed.
10460         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10461         divide-by-zero is raised for zero to large negative powers.
10462         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10463         (__ieee754_powl): Test for y outside the range of signed 64-bit
10464         integers before using fistpll.  Reduce 64-bit values to 63-bit
10465         ones as needed.
10466         * math/libm-test.inc (pow_test): Add more tests.
10467
10468 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10469
10470         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10471         <stdio-common/_itoa.h>.
10472         * debug/segfault.c: Likewise.
10473         * elf/dl-cache.c: Likewise.
10474         * elf/dl-minimal.c: Likewise.
10475         * elf/dl-misc.c: Likewise.
10476         * elf/dl-sysdep.c: Likewise.
10477         * elf/dl-version.c: Likewise.
10478         * elf/rtld.c: Likewise.
10479         * hurd/hurdsock.c: Likewise.
10480         * hurd/lookup-retry.c: Likewise.
10481         * malloc/malloc.c: Likewise.
10482         * malloc/mtrace.c: Likewise.
10483         * nscd/nscd_getgr_r.c: Likewise.
10484         * nscd/nscd_getpw_r.c: Likewise.
10485         * nscd/nscd_getserv_r.c: Likewise.
10486         * posix/getopt_init.c: Likewise.
10487         * posix/wordexp.c: Likewise.
10488         * stdio-common/_itoa.c: Likewise.
10489         * stdio-common/printf_fphex.c: Likewise.
10490         * stdio-common/vfprintf.c: Likewise.
10491         * string/_strerror.c: Likewise.
10492         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10493         * sysdeps/i386/i686/hp-timing.h: Likewise.
10494         * sysdeps/mach/_strerror.c: Likewise.
10495         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10496         * sysdeps/mach/hurd/sethostid.c: Likewise.
10497         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10498         * sysdeps/mach/xpg-strerror.c: Likewise.
10499         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10500         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10501         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10502         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10503         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10504         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10505         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10506         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10507         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10508         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10509         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10510         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10511         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10512         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10513         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10514         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10515         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10516         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10517         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10518         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10519         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10520
10521         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10522
10523         * stdio-common/_itoa.h: Moved to ...
10524         * sysdeps/generic/_itoa.h: Here.
10525
10526         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10527
10528         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10529         instead of "_itoa.h" and "_itowa.h".
10530         * stdio-common/vfprintf.: Likewise.
10531
10532 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10533
10534         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10535         <bits/wordsize.h>.
10536         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10537         (__signbit): Likwise.
10538         (llrintf): Likwise.
10539         (llrint): Likwise.
10540
10541 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10542
10543         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10544         __WORDSIZE != 64.
10545
10546 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10547
10548         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10549         OVERFLOW_EXCEPTION_OK.
10550         * math/libm-test.inc ("Philosophy"): Update comment about
10551         exception testing.
10552         (OVERFLOW_EXCEPTION): Define.
10553         (OVERFLOW_EXCEPTION_OK): Likewise.
10554         (INVALID_EXCEPTION_OK): Renumber.
10555         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10556         (IGNORE_ZERO_INF_SIGN): Likewise.
10557         (test_exceptions): Handle FE_OVERFLOW.
10558         (exp10_test): Expect overflow exceptions.
10559         (exp2_test): Likewise.
10560         (expm1_test): Likewise.
10561         (nextafter_test): Likewise.
10562         (pow_test): Likewise.
10563         (scalbn_test): Likewise.
10564         (scalbln_test): Likewise.
10565
10566 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10567
10568         * sysdeps/x86_64/bits/atomic.h
10569         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10570         64bit integer.
10571         (atomic_exchange_acq): Likewise.
10572         (__arch_exchange_and_add_body): Likewise.
10573         (__arch_add_body): Likewise.
10574         (atomic_add_negative): Likewise.
10575         (atomic_add_zero): Likewise.
10576
10577 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10578
10579         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10580         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10581
10582 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10583
10584         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10585         Check __x86_64__ instead of __WORDSIZE.
10586
10587 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10588
10589         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10590
10591 2012-03-19  David S. Miller  <davem@davemloft.net>
10592
10593         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10594
10595         * sysdeps/sparc/fpu/fenv_private.h: New file.
10596         * sysdeps/sparc/fpu/math_private.h: Use it.
10597         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10598         Remove.
10599         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10600         (libc_feholdexcept_setroundl): Remove.
10601         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10602         Remove.
10603         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10604         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10605
10606 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10607
10608         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10609         int64_t instead of long int.
10610         (INSERT_WORDS64): Likwise.
10611
10612 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10613
10614         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10615         _Unwind_GetCFA return to _Unwind_Ptr first.
10616
10617 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10618
10619         [BZ #13629]
10620         * math/s_clog.c: Include <float.h>.
10621         (__clog): Scale large or subnormal inputs.
10622         * math/s_clogf.c: Likewise.
10623         * math/s_clogl.c: Likewise.
10624         * math/s_clog10.c: Include <float.h>.
10625         (M_LOG10_2): Define.
10626         (__clog10): Scale large or subnormal inputs.
10627         * math/s_clog10f.c: Likewise.
10628         * math/s_clog10l.c: Likewise.
10629         * math/libm-test.inc (clog_test): Add more tests.
10630         (clog10_test): Likewise.
10631         * sysdeps/i386/fpu/libm-test-ulps: Update.
10632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10633
10634         [BZ #11451]
10635         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10636         x and y.
10637         * math/libm-test.inc (atan2_test): Add another test.
10638
10639         * Makerules (common-objdir-compile): Remove.
10640         * sysdeps/unix/Makefile (config-generated): Do not add
10641         $(unix-generated) to variable.
10642         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10643         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10644         Remove rule.
10645         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10646         Likewise.
10647         [generic bits/local_lim.h] (before-compile): Do not append to
10648         variable.
10649         [generic bits/local_lim.h] (common-generated): Likewise.
10650         [generic sys/param.h] (before-compile): Do not append to variable.
10651         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10652         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10653         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10654         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10655         include.
10656         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10657         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10658         [generic sys/param.h] ($(addprefix
10659         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10660         [generic sys/param.h] (common-generated): Do not append to
10661         variable.
10662         [generic sys/param.h] (sysdep_headers): Likewise.
10663         [generic bits/errno.h] (before-compile): Do not append to
10664         variable.
10665         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10666         rule.
10667         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10668         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10669         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10670         [generic bits/errno.h] (common-generated): Do not append to
10671         variable.
10672         [generic bits/ioctls.h] (before-compile): Do not append to
10673         variable.
10674         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10675         rule.
10676         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10677         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10678         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10679         rule.
10680         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10681         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10682         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10683         [generic bits/ioctls.h] (common-generated): Do not append to
10684         variable.
10685         [generic sys/syscall.h] (syscall.h): Remove variable.
10686         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10687         rule.
10688         [generic sys/syscall.h] (before-compile): Do not append to
10689         variable.
10690         [generic sys/syscall.h] (common-generated): Likewise.
10691         * sysdeps/unix/errnos-tmpl.c: Remove file.
10692         * sysdeps/unix/errnos.awk: Likewise.
10693         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10694         * sysdeps/unix/ioctls.awk: Likewise.
10695         * sysdeps/unix/mk-local_lim.c: Likewise.
10696         * sysdeps/unix/snarf-ioctls: Likewise.
10697
10698 2012-03-19  Richard Henderson  <rth@twiddle.net>
10699
10700         * sysdeps/i386/fpu/fenv_private.h: New file.
10701         * sysdeps/i386/fpu/math_private.h: Use it.
10702         (math_opt_barrier, math_force_eval): Remove.
10703         (libc_feholdexcept_setround_53bit): Remove.
10704         (libc_feupdateenv_53bit): Remove.
10705         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10706         (math_opt_barrier, math_force_eval): Remove.
10707         (libc_feholdexcept): Remove.
10708         (libc_feholdexcept_setround): Remove.
10709         (libc_fetestexcept, libc_fesetenv): Remove.
10710         (libc_feupdateenv_test): Remove.
10711         (libc_feupdateenv, libc_feholdsetround): Remove.
10712         (libc_feresetround): Remove.
10713
10714         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10715         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10716
10717         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10718         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10719         (libc_feupdateenv_testl): New.
10720         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10721         (libc_feupdateenv_testf): New.
10722         (libc_feupdateenv): Use libc_feupdateenv_test.
10723         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10724         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10725
10726         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10727         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10728         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10729         (libc_feresetround_noex): New.
10730         (libc_feresetround_noexf): New.
10731         (libc_feresetround_noexl): New.
10732         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10733         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10734         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10735         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10736         SET_RESTORE_ROUND.
10737         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10738         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10739         (__cos): Likewise.
10740         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10741         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10742         SET_RESTORE_ROUND_NOEX.
10743         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10744         SET_RESTORE_ROUND_NOEXF.
10745         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10746         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10747         (libc_feholdsetroundf): New.
10748         (libc_feresetround, libc_feresetroundf): New.
10749
10750         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10751         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10752         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10753
10754         * sysdeps/generic/math_private.h: Include <fenv.h>.
10755         (default_libc_feholdexcept): New.
10756         (default_libc_feholdexcept_setround): New.
10757         (default_libc_fesetenv, default_libc_feupdateenv): New.
10758         (libc_feholdexcept): Only define if undefined.
10759         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10760         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10761         (libc_feholdexcept_setroundl): Likewise.
10762         (libc_feholdexcept_setround_53bit): Likewise.
10763         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10764         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10765         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10766         (libc_feupdateenv_53bit): Likewise.
10767         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10768         (libc_feholdexcept): Convert from macro to inline function.
10769         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10770         (libc_fesetenv, libc_feupdateenv): Likewise.
10771
10772         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10773         not previously defined.
10774         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10775         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10776         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10777         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10778         * sysdeps/ieee754/flt-32/math_private.h: New file.
10779         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10780         math_private.h below SET_FLOAT_WORD.
10781         (__isnan, __isinf_ns, __finite): Remove.
10782         (__isnanf, __isinf_nsf, __finitef): Remove.
10783
10784 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10785
10786         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10787
10788 2012-03-17  David S. Miller  <davem@davemloft.net>
10789
10790         [BZ #6471]
10791         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10792         for 2.16.
10793
10794 2012-03-16  David S. Miller  <davem@davemloft.net>
10795
10796         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10797         warnings.
10798
10799         [BZ #6471]
10800         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10801         properly.
10802         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10803         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10804         sysdep_routines when subdir is sysvipc.
10805         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10806         __getshmlba helper.
10807
10808         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10809
10810 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10811
10812         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10813         [__LP64__].
10814
10815 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10816
10817         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10818         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10819         (__lround): Renamed to ...
10820         (__llround): This.  Replace long int with long long int.
10821         Define lround functions as aliases of llround functions.
10822         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10823
10824 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10825
10826         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10827         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10828         adresses to uintptr_t.  Replace "long int" and "unsigned long
10829         int" with "greg_t" on va_arg.
10830
10831 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10832
10833         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10834         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10835
10836         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10837         Move e_machine check before EI_CLASS check.  Handle x32
10838         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10839         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10840         SKIP_EM_IA_64 and include
10841         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10842
10843         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10844         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10845         (add_system_dir): New macro.
10846
10847         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10848         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10849
10850 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10851
10852         [BZ #2551]
10853         [BZ #2552]
10854         [BZ #2553]
10855         [BZ #2554]
10856         [BZ #2562]
10857         [BZ #2563]
10858         [BZ #2565]
10859         [BZ #2566]
10860         [BZ #2576]
10861         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10862         (y0): Likewise.
10863         * math/w_j0f.c (j0f): Likewise.
10864         (y0f): Likewise.
10865         * math/w_j0l.c (__j0l): Likewise.
10866         (__y0l): Likewise.
10867         * math/w_j1.c (j1): Likewise.
10868         (y1): Likewise.
10869         * math/w_j1f.c (j1f): Likewise.
10870         (y1f): Likewise.
10871         * math/w_j1l.c (__j1l): Likewise.
10872         (__y1l): Likewise.
10873         * math/w_jn.c (jn): Likewise.
10874         (yn): Likewise.
10875         * math/w_jnf.c (jnf): Likewise.
10876         (ynf): Likewise.
10877         * math/w_jnl.c (__jnl): Likewise.
10878         (__ynl): Likewise.
10879         * math/libm-test.inc (j0_test): Add more tests.
10880         (j1_test): Likewise.
10881         (jn_test): Likewise.  Add trailing semicolon to existing test.
10882         (y0_test): Likewise.
10883         (y1_test): Likewise.
10884         * sysdeps/i386/fpu/libm-test-ulps: Update.
10885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10886
10887         [BZ #13851]
10888         [BZ #13854]
10889         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10890         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10891         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10892         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10893         (__tanl): Set errno for infinite argument.
10894         * sysdeps/i386/fpu/mptan.c: Remove.
10895         * sysdeps/i386/fpu/s_tan.S: Likewise.
10896         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10897         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10898         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10899         * math/libm-test.inc (tan_test): Add more tests and enable more
10900         tests for double and long double.
10901         * sysdeps/i386/fpu/libm-test-ulps: Update.
10902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10903
10904 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10905
10906         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10907         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10908
10909 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10910
10911         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10912         * configure.in: Use it for both main tree and add-ons.
10913         * configure: Regenerated.
10914
10915 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10916
10917         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10918
10919 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10920
10921         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10922         in comment.
10923
10924         [BZ #13851]
10925         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10926         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10927         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10928         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10929         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10930         infinite argument.
10931         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10932         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10933         != 0 for prec == 2.
10934         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10935         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10936         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10937         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10938         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10939         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10940         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10941         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10942         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10943         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10944         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10945         * math/libm-test.inc (cos_test): Add more tests and enable more
10946         tests for long double.
10947         (sin_test): Likewise.
10948         (sincos_test): Likewise.
10949         * sysdeps/i386/fpu/libm-test-ulps: Update.
10950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10951
10952 2012-03-16  David S. Miller  <davem@davemloft.net>
10953
10954         * sysdeps/sparc/fpu/math_private.h: New file.
10955
10956 2012-03-15  David S. Miller  <davem@davemloft.net>
10957
10958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10959         file.
10960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10962         file.
10963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10964         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10965         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10967         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10968         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10969         sysdep routines.
10970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10971
10972         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10973         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10974
10975         * sysdeps/sparc/sparc-ifunc.h: New file.
10976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10977         sparc-ifunc.h
10978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10980         Likewise.
10981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10982         Likewise.
10983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10987         Likewise.
10988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10993         Likewise.
10994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10995         Likewise.
10996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11000         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11001         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11002         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11003         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11004         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11005         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11006         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11007         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11008         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11009         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11010         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11011         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11012         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11013         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11014         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11015         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11016         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11017         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11018         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11019         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11020
11021 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11022
11023         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11024         scaling.
11025         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11026
11027 2012-03-15  Andreas Jaeger  <aj@suse.de>
11028
11029         [BZ #13852]
11030         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11031         ieee754/flt-32 implementation for sin, cos and sincos.
11032         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11033         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11034         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11035         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11036         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11037         ieee754/flt-32 implementation for tan.
11038
11039         * math/libm-test.inc (cos_test): Enable some large input tests for
11040         float as well
11041         (sin_test): Likewise.
11042         (sincos_test): Likewise.
11043         (tan_test): Add tests for large input.
11044
11045         * sysdeps/i386/fpu/libm-test-ulps: Update.
11046
11047 2012-03-15  Andreas Jaeger  <aj@suse.de>
11048
11049         [BZ #13658]
11050         * math/libm-test.inc (cos_test): Add more test cases.
11051         (sin_test): Likewise.
11052         (sincos_test): Likewise.
11053
11054 2012-03-15  Andreas Jaeger  <aj@suse.de>
11055
11056         [BZ #13837]
11057         * math/libm-test.inc (cos_test): Add a test case for large input
11058         value.
11059         (sin_test): Likewise.
11060         (sincos_test): Likewise.
11061
11062 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11063         Joseph Myers  <joseph@codesourcery.com>
11064
11065         [BZ #13658]
11066         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11067         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11068         * sysdeps/i386/fpu/branred.c: Likewise.
11069         * sysdeps/i386/fpu/dosincos.c: Likewise.
11070         * sysdeps/i386/fpu/mpa.c: Likewise.
11071         * sysdeps/i386/fpu/s_cos.S: Likewise.
11072         * sysdeps/i386/fpu/s_sin.S: Likewise.
11073         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11074         * sysdeps/i386/fpu/sincos32.c: Likewise.
11075
11076         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11077         Define.
11078         (libc_feupdateenv_53bit): Define.
11079         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11080         Define.
11081         (libc_feupdateenv_53bit): Define.
11082
11083         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11084         53 bit (without extend i386 double precision).
11085
11086         * math/libm-test.inc (sincos_test): Add tests for large input.
11087         (sin): Likewise.
11088         (cos): Likewise.
11089
11090         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11091
11092 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11093
11094         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11095
11096 2012-03-15  David S. Miller  <davem@davemloft.net>
11097
11098         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11099         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11100         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11101         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11102         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11103         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11106         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11107         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11108         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11109         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11110         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11111         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11112         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11114         file.
11115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11117         file.
11118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11120         file.
11121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11123         file.
11124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11125         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11126         fmin/fmax sysdep routines.
11127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11128
11129 2012-03-14  David S. Miller  <davem@davemloft.net>
11130
11131         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11132         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11133         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11134         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11135         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11136         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11137         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11138         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11139         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11140         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11141         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11142         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11143         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11144         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11145         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11146         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11147         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11148         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11149         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11150         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11151         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11152         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11153         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11154         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11155         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11156         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11157         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11158         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11159         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11160         routines.
11161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11162         file.
11163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11165         file.
11166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11168         file.
11169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11171         file.
11172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11174         file.
11175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11177         file.
11178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11179         file.
11180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11181         file.
11182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11183         file.
11184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11185         New file.
11186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11187         file.
11188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11189         file.
11190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11192         file.
11193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11195         file.
11196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11198         file.
11199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11201         VIS3 routines.
11202
11203         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11204         New file.
11205
11206         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11207
11208         * sysdeps/sparc/configure.in: New file.
11209         * sysdeps/sparc/configure: Generate.
11210         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11211         * configure: Regenerate.
11212         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11213         * config.make.in (have-as-vis3): New.
11214         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11215         available use -Av9d instead of -Av9a.
11216         * sysdeps/sparc/sparc64/Makefile: Likewise.
11217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11219         New file.
11220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11221         file.
11222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11223         New file.
11224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11225         file.
11226         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11227         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11228         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11229         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11230         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11231
11232         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11233         fzeros/fnegs to load 0x80000000 into a float register instead of
11234         using the stack.
11235         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11236
11237 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11238
11239         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11240         bits/syscall.h.
11241         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11242         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11243         ($(inst_includedir)/bits/syscall.h): Remove rule.
11244         ($(objpfx)bits/syscall.d): Include instead of
11245         $(objpfx)syscall-list.d.
11246         (generated): Change syscall-list.h and syscall-list.d to
11247         bits/syscall.h and bits/syscall.d.
11248
11249 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11250
11251         [BZ #13846]
11252         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11253
11254 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11255
11256         [BZ #13841]
11257         * math/s_csqrt.c: Include <float.h>.
11258         (__csqrt): Scale large or subnormal inputs.
11259         * math/s_csqrtf.c: Likewise.
11260         * math/s_csqrtl.c: Likewise.
11261         * math/libm-test.inc (csqrt_test): Add more tests.
11262         * sysdeps/i386/fpu/libm-test-ulps: Update.
11263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11264
11265         [BZ #13840]
11266         * math/libm-test.inc (hypot_test): Add more tests.
11267
11268 2012-03-13  David S. Miller  <davem@davemloft.net>
11269
11270         [BZ #13840]
11271         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11272         double-precision for the calculation instead of scaling.
11273
11274 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11275
11276         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11277         manipulate bits before adding and subtracting TWO52[sx].
11278         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11279         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11280         Likewise.
11281         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11282
11283 2012-03-13  David S. Miller  <davem@davemloft.net>
11284
11285         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11286         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11287         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11288         rtld-global-offsets.h
11289         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11290
11291         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11292         large parameters.
11293
11294         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11295
11296         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11297         'err' in the ifdef scope in which it is actually used.
11298
11299         * nss/nss_db/db-init.c: Include string.h
11300
11301 2012-03-12  David S. Miller  <davem@davemloft.net>
11302
11303         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11304         masking out of the most significant byte of random value used.
11305         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11306         Fix coding style in previous change.
11307
11308         * sysdeps/unix/sysv/linux/kernel-features.h
11309         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11310         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11311         expression.
11312         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11313         later.
11314
11315 2012-03-11  David S. Miller  <davem@davemloft.net>
11316
11317         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11318         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11319         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11320         for 'resultvar' otherwise things get truncated on 64-bit.
11321
11322         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11323         Fix masking out of the most significant byte of random value used.
11324
11325         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11326
11327 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11328
11329         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11330
11331 2012-03-09  David S. Miller  <davem@davemloft.net>
11332
11333         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11334         variables with appropriate CPP guards.
11335         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11336         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11337         on resulting framesize and the management of the outregs buffer for pltexit.
11338         Preserve floating point return values across _dl_call_pltexit call.
11339         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11340         framesize and the management of the outregs buffer for pltexit.
11341         Preserve floating point return values across _dl_call_pltexit
11342         call.
11343         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11344         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11345         (print_exit): Fix format string for return register value.
11346
11347 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11348
11349         * sunrpc/Makefile (others): Add rpcgen.
11350         ($(objpfx)rpcgen): Remove special build rule and dependency on
11351         libc.
11352         * sunrpc/rpcgen.c: New file.
11353
11354 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11355
11356         [BZ #13673]
11357         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11358         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11359         * sysdeps/i386/crti.S: Likewise.
11360         * sysdeps/i386/crtn.S: Likewise.
11361         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11362         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11363         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11364         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11365         * sysdeps/sh/crti.S: Likewise.
11366         * sysdeps/sh/crtn.S: Likewise.
11367         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11368
11369         [BZ #13673]
11370         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11371         with URL.
11372         * locale/programs/locfile-kw.gperf: Likewise.
11373         * locale/programs/charmap-kw.h: Regenerated.
11374         * locale/programs/locfile-kw.h: Likewise.
11375
11376         [BZ #13673]
11377         * intl/plural.y: Replace FSF snail mail address with URL.
11378         * intl/plural.c: Regenerated.
11379
11380 2012-03-09  Richard Henderson  <rth@twiddle.net>
11381
11382         * include/math_private.h: Remove file.
11383         * math/math_private.h: Move file ...
11384         * sysdeps/generic/math_private.h: ... here.
11385
11386         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11387         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11388         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11389
11390         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11391         and <math_private.h>.
11392         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11393         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11394         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11395         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11396         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11397         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11398         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11399         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11400         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11401         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11402         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11403         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11404         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11405         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11406         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11407         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11408         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11409         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11410         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11411         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11412         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11413         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11414         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11415         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11416         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11417         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11418         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11419         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11420         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11421         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11422         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11423         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11424         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11425         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11426         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11427         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11428         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11429         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11430         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11431         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11432         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11433         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11434         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11435         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11436         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11437         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11438         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11439         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11440         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11441         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11442         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11443         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11444         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11445         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11446         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11447         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11448         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11449         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11450         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11451         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11452         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11453         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11454         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11455         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11456         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11457         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11458         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11459         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11460         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11461         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11462         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11463         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11464         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11465         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11466         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11467         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11468         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11469         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11470         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11471         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11472         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11473         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11474         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11475         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11476         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11477         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11478         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11479         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11480         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11481         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11482         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11483         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11484         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11485         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11486         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11487         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11488         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11489         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11490         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11491         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11492         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11493         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11494         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11495         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11496         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11497         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11498         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11499         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11500         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11501         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11502         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11503         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11504         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11505         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11506         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11507         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11508         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11509         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11510         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11511         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11512         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11513         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11514         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11515         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11516         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11517         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11518         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11519         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11520         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11521         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11522         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11523         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11524         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11525         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11526         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11527         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11528         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11529         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11530         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11531         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11532         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11533         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11534         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11535         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11536         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11537         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11538         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11539         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11540         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11541         * sysdeps/ieee754/k_standard.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11575         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11592         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11593         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11594         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11599         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11604         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11609         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11615         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11616         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11619         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11622         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11624         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11625         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11626         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11627         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11629         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11633         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11635         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11636         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11638         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11639         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11640         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11641         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11642         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11643         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11644         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11645         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11646         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11647         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11649         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11651         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11657         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11661         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11662         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11664         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11666         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11669         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11676         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11678         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11679         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11680         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11681         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11683         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11685         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11686         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11687         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11688         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11689         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11690         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11691         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11692         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11693         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11694         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11695         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11696         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11697         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11698         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11699         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11700         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11701         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11702         * sysdeps/ieee754/s_lib_version.c: Likewise.
11703         * sysdeps/ieee754/s_matherr.c: Likewise.
11704         * sysdeps/ieee754/s_signgam.c: Likewise.
11705         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11706         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11707         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11708         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11709         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11710         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11711         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11712         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11713         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11714         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11715         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11716         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11717         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11718         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11719         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11720         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11721         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11722         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11723         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11724         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11725         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11726
11727 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11730         * sunrpc/rpc_main.c: Likewise.
11731         * sunrpc/rpc_svcout.c: Likewise.
11732
11733 2012-03-09  David S. Miller  <davem@davemloft.net>
11734
11735         * include/math_private.h: New file.
11736
11737 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11738
11739         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11740         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11741         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11742         from <bits/socket_type.h>.
11743         (enum __socket_type): Don't define here.
11744         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11745         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11746         bits/socket_type.h.
11747
11748         [BZ #13566]
11749         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11750         checking __USE_GNU.
11751
11752         * Makerules ($(inst_includedir)/%.h): New rule.
11753         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11754         (install-others): Remove variable setting.
11755         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11756
11757 2012-03-08  Richard Henderson  <rth@twiddle.net>
11758
11759         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11760         from macro to inline function; merge with the
11761         !__LIBC_INTERNAL_MATH_INLINES version.
11762         (__ieee754_sqrtf): Likewise.
11763
11764         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11765         to inline function.
11766         (__rintf, __floor, __floorf): Likewise.
11767
11768         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11769         macro to inline function.
11770         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11771
11772         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11773         not <math/math_private.h>.
11774
11775 2012-03-08  David S. Miller  <davem@davemloft.net>
11776
11777         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11778         copyright year.
11779         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11780
11781 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11782
11783         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11784         normalization.
11785         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11786         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11787
11788 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11789
11790         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11791         be defined individually, they must be defined as a block.  Define
11792         S for printing a string instead of hidint the different by using a
11793         macro for adding the 'l'.
11794         * stdio-common/tst-fphex-wide.c: Adjust.
11795
11796 2012-03-07  Marek Polacek  <polacek@redhat.com>
11797
11798         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11799
11800 2012-03-08  Marek Polacek  <polacek@redhat.com>
11801
11802         [BZ #13806]
11803         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11804         * stdio-common/tst-fphex.c: Define a few macros to make the
11805         test reusable.  Use them.
11806         * stdio-common/tst-fphex-wide.c: New file.
11807
11808 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11809
11810         [BZ #6911]
11811         * manual/macros.texi (gnusystems): New macro.
11812         (nongnusystems): Likewise.
11813         (gnulinuxhurdsystems): Likewise.
11814         (gnuhurdsystems): Likewise..
11815         (gnulinuxsystems): Likewise.
11816         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11817         variants of the GNU system, not "GNU system".
11818         * manual/conf.texi: Likewise.
11819         * manual/errno.texi: Likewise.  Update example of errno macro
11820         expansion.
11821         * manual/filesys.texi: Likewise.
11822         (getumask): Document as specific to GNU/Hurd.
11823         * manual/install.texi: Likewise.  Reword some references to
11824         GNU/Linux.
11825         * manual/intro.texi: Likewise.
11826         * manual/io.texi: Likewise.
11827         (File Name Portability): Detail which constraints are inapplicable
11828         to all GNU systems and which are only inapplicable to GNU/Hurd.
11829         * manual/job.texi: Likewise.
11830         * manual/llio.texi: Likewise.
11831         (O_NOCTTY): Document as present on GNU/Linux.
11832         * manual/maint.texi: Likewise.
11833         * manual/memory.texi: Likewise.
11834         * manual/pattern.texi: Likewise.
11835         * manual/pipe.texi: Likewise.
11836         * manual/process.texi: Likewise.
11837         * manual/resource.texi: Likewise.
11838         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11839         child on GNU/Hurd.
11840         * manual/setjmp.texi: Likewise.
11841         * manual/signal.texi: Likewise.
11842         * manual/startup.texi: Likewise.
11843         * manual/stdio.texi: Likewise.
11844         * manual/terminal.texi: Likewise.
11845         (ONLCR): Document as POSIX.
11846         (OXTABS): Document availability on GNU/Linux as XTABS.
11847         (ONOEOT): Document availability separately from other bits.
11848         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11849         * manual/time.texi: Likewise.
11850         * manual/users.texi: Likewise.
11851         * INSTALL: Regenerated.
11852         * sysdeps/gnu/errlist.c: Regenerated.
11853
11854         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11855         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11856         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11857         puts.
11858         * configure: Regenerated.
11859
11860 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11861
11862         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11863         default includes instead of AC_HEADER_CHECK.
11864         * sysdeps/i386/configure: Regenerated.
11865
11866         [BZ #10716]
11867         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11868         * math/s_cacoshf.c (__cacoshf): Likewise.
11869         * math/s_cacoshl.c (__cacoshl): Likewise.
11870         * math/s_casinh.c (__casinh): Set signs of result from argument.
11871         * math/s_casinhf.c (__casinhf): Likewise.
11872         * math/s_casinhl.c (__casinhl): Likewise.
11873         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11874         (casinh_test): Add more tests.
11875         * sysdeps/i386/fpu/libm-test-ulps: Update.
11876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11877
11878 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11879
11880         * po/zh_TW.po: Update from translation team.
11881
11882         * login/Makefile (distribute): Remove variable.
11883         * catgets/Makefile: Likewise.
11884         * mach/Makefile: Likewise.
11885         * malloc/Makefile: Likewise.
11886         * misc/Makefile: Likewise.
11887         * iconv/Makefile: Likewise.
11888         * nscd/Makefile: Likewise.
11889         * hurd/Makefile: Likewise.
11890         * manual/Makefile: Likewise.
11891         * locale/Makefile: Likewise.
11892         * intl/Makefile: Likewise.
11893         * conform/Makefile: Likewise.
11894         * nss/Makefile: Likewise.
11895         * time/Makefile: Likewise.
11896         * soft-fp/Makefile: Likewise.
11897         * dirent/Makefile: Likewise.
11898         * gmon/Makefile: Likewise.
11899         * po/Makefile: Likewise.
11900         * rt/Makefile: Likewise.
11901         * socket/Makefile: Likewise.
11902         * math/Makefile: Likewise.
11903         * signal/Makefile: Likewise.
11904         * debug/Makefile: Likewise.
11905         * elf/Makefile: Likewise.
11906         * timezone/Makefile: Likewise.
11907         * stdlib/Makefile: Likewise.
11908         * iconvdata/Makefile: Likewise.
11909         * sunrpc/Makefile: Likewise.
11910         * io/Makefile: Likewise.
11911         * argp/Makefile: Likewise.
11912         * inet/Makefile: Likewise.
11913         * hesiod/Makefile: Likewise.
11914         * grp/Makefile: Likewise.
11915         * csu/Makefile: Likewise.
11916         * wctype/Makefile: Likewise.
11917         * crypt/Makefile: Likewise.
11918         * libio/Makefile: Likewise.
11919         * string/Makefile: Likewise.
11920         * nis/Makefile: Likewise.
11921         * resolv/Makefile: Likewise.
11922         * stdio-common/Makefile: Likewise.
11923         * wcsmbs/Makefile: Likewise.
11924         * dlfcn/Makefile: Likewise.
11925         * posix/Makefile: Likewise.
11926
11927         [BZ #6959]
11928         * timezone/Makefile: Don't install timezone files, just the programs
11929         and scripts.
11930
11931 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11932
11933         * nss/databases.def: Add missing gshadow entry.
11934
11935         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11936
11937 2012-03-06  Marek Polacek  <polacek@redhat.com>
11938
11939         [BZ #13726]
11940         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11941         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11942         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11943         * stdio-common/tst-long-dbl-fphex.c: New file.
11944
11945 2012-03-06  David S. Miller  <davem@davemloft.net>
11946
11947         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11948         (set_obp_int): New function.
11949         (get_obp_int): New function.
11950         (__get_clockfreq_via_dev_openprom): Likewise.
11951         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11952         Avoid unused variable warnings on 'val' and use builtin_expect.
11953         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11954         __builtin_expect.
11955         (INLINE_CLONE_SYSCALL): Likewise.
11956
11957 2012-03-05  David S. Miller  <davem@davemloft.net>
11958
11959         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11960
11961 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11962
11963         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11964
11965         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11966         only for |x| >= 40.
11967         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11968
11969 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11970
11971         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11972         Replace gettimeofday with __vdso_gettimeofday.
11973
11974         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11975         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11976         __vdso_clock_gettime and __vdso_getcpu.
11977
11978         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11979         time with __vdso_time.
11980
11981 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11982
11983         * manual/lang.texi (size_t): Note types to which size_t may be
11984         equivalent with the GNU C Library, but do not describe when
11985         differences between them are significant.
11986
11987 2012-03-05  Andreas Jaeger  <aj@suse.de>
11988
11989         * sysdeps/i386/fpu/libm-test-ulps: Update.
11990
11991 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11992
11993         [BZ #3976]
11994         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11995         (__ieee754_pow): Save and restore rounding mode and use
11996         round-to-nearest for main computations.
11997         * math/libm-test.inc (pow_test_tonearest): New function.
11998         (pow_test_towardzero): Likewise.
11999         (pow_test_downward): Likewise.
12000         (pow_test_upward): Likewise.
12001         (main): Call the new functions.
12002         * sysdeps/i386/fpu/libm-test-ulps: Update.
12003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12004
12005         [BZ #3976]
12006         * math/libm-test.inc (cosh_test_tonearest): New function.
12007         (cosh_test_towardzero): Likewise.
12008         (cosh_test_downward): Likewise.
12009         (cosh_test_upward): Likewise.
12010         (sinh_test_tonearest): Likewise.
12011         (sinh_test_towardzero): Likewise.
12012         (sinh_test_downward): Likewise.
12013         (sinh_test_upward): Likewise.
12014         (main): Call the new functions.
12015         * sysdeps/i386/fpu/libm-test-ulps: Update.
12016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12017
12018 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12019
12020         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12021         default stack guard is set in last bytes.
12022         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12023
12024 2012-03-05  Kees Cook  <keescook@chromium.org>
12025
12026         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12027
12028         [BZ #13656]
12029         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12030         possibly allocate from heap instead of stack.
12031         * stdio-common/bug-vfprintf-nargs.c: New file.
12032         * stdio-common/Makefile (tests): Add nargs overflow test.
12033
12034 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12035
12036         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12037
12038 2012-03-03  Marek Polacek  <polacek@redhat.com>
12039
12040         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12041         * math/math_private.h: Likewise.
12042         * stdlib/tst-strtod.c: Likewise.
12043         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12044         * sysdeps/x86_64/bits/atomic.h: Likewise.
12045
12046 2012-03-02  David S. Miller  <davem@davemloft.net>
12047
12048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12052         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12053         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12054         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12055         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12056
12057 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12058
12059         [BZ #13792]
12060         * manual/examples/README: New file, says the example source files
12061         can be used under GPL>=2.
12062         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12063         line containing just "*/".
12064         * manual/examples/add.c: Add copyright header (GPL>=2).
12065         * manual/examples/argp-ex1.c: Likewise.
12066         * manual/examples/argp-ex2.c: Likewise.
12067         * manual/examples/argp-ex3.c: Likewise.
12068         * manual/examples/argp-ex4.c: Likewise.
12069         * manual/examples/atexit.c: Likewise.
12070         * manual/examples/db.c: Likewise.
12071         * manual/examples/dir.c: Likewise.
12072         * manual/examples/dir2.c: Likewise.
12073         * manual/examples/execinfo.c: Likewise.
12074         * manual/examples/filecli.c: Likewise.
12075         * manual/examples/filesrv.c: Likewise.
12076         * manual/examples/fmtmsgexpl.c: Likewise.
12077         * manual/examples/genpass.c: Likewise.
12078         * manual/examples/inetcli.c: Likewise.
12079         * manual/examples/inetsrv.c: Likewise.
12080         * manual/examples/isockad.c: Likewise.
12081         * manual/examples/longopt.c: Likewise.
12082         * manual/examples/memopen.c: Likewise.
12083         * manual/examples/memstrm.c: Likewise.
12084         * manual/examples/mkfsock.c: Likewise.
12085         * manual/examples/mkisock.c: Likewise.
12086         * manual/examples/mygetpass.c: Likewise.
12087         * manual/examples/pipe.c: Likewise.
12088         * manual/examples/popen.c: Likewise.
12089         * manual/examples/rprintf.c: Likewise.
12090         * manual/examples/search.c: Likewise.
12091         * manual/examples/select.c: Likewise.
12092         * manual/examples/setjmp.c: Likewise.
12093         * manual/examples/sigh1.c: Likewise.
12094         * manual/examples/sigusr.c: Likewise.
12095         * manual/examples/stpcpy.c: Likewise.
12096         * manual/examples/strdupa.c: Likewise.
12097         * manual/examples/strftim.c: Likewise.
12098         * manual/examples/strncat.c: Likewise.
12099         * manual/examples/subopt.c: Likewise.
12100         * manual/examples/swapcontext.c: Likewise.
12101         * manual/examples/termios.c: Likewise.
12102         * manual/examples/testopt.c: Likewise.
12103         * manual/examples/testpass.c: Likewise.
12104         * manual/examples/timeval_subtract.c: Likewise.
12105
12106         [BZ #13792]
12107         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12108         function to ...
12109         * manual/timeval_subtract.c.texi: ... here, new file.
12110
12111 2012-03-02  David S. Miller  <davem@davemloft.net>
12112
12113         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12114
12115 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12116
12117         [BZ #3976]
12118         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12119         (__sin): Save and restore rounding mode and use round-to-nearest
12120         for all computations.
12121         (__cos): Save and restore rounding mode and use round-to-nearest
12122         for all computations.
12123         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12124         <fenv.h>.
12125         (tan): Save and restore rounding mode and use round-to-nearest for
12126         all computations.
12127         * math/libm-test.inc (cos_test_tonearest): New function.
12128         (cos_test_towardzero): Likewise.
12129         (cos_test_downward): Likewise.
12130         (cos_test_upward): Likewise.
12131         (sin_test_tonearest): Likewise.
12132         (sin_test_towardzero): Likewise.
12133         (sin_test_downward): Likewise.
12134         (sin_test_upward): Likewise.
12135         (tan_test_tonearest): Likewise.
12136         (tan_test_towardzero): Likewise.
12137         (tan_test_downward): Likewise.
12138         (tan_test_upward): Likewise.
12139         (main): Call the new functions.
12140         * sysdeps/i386/fpu/libm-test-ulps: Update.
12141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12142
12143         [BZ #10135]
12144         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12145         small n, then large n, before computing and testing k+n.
12146         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12147         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12148         Likewise.
12149         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12150         Likewise.
12151         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12152         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12153         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12154         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12155         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12156         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12157         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12158         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12159         * math/libm-test.inc (scalbn_test): Add more tests.
12160         (scalbln_test): Likewise.
12161
12162         * manual/filesys.texi (mode_t): Describe constraints on size and
12163         signedness, not exact equivalence to a particular type.
12164         (ino_t): Likewise.
12165         (ino64_t): Likewise.
12166         (dev_t): Likewise.
12167         (nlink_t): Likewise.
12168         (blkcnt_t): Likewise.
12169         (blkcnt64_t): Likewise.
12170         * manual/llio.texi (off_t): Likewise.
12171
12172         [BZ #3976]
12173         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12174         (__ieee754_exp): Save and restore rounding mode and use
12175         round-to-nearest for all computations.
12176         * math/libm-test.inc (exp_test_tonearest): New function.
12177         (exp_test_towardzero): Likewise.
12178         (exp_test_downward): Likewise.
12179         (exp_test_upward): Likewise.
12180         (main): Call the new functions.
12181         * sysdeps/i386/fpu/libm-test-ulps: Update.
12182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12183
12184 2012-03-01  Chris Demetriou  <cgd@google.com>
12185
12186         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12187         have predictable order.
12188
12189 2012-03-01  David S. Miller  <davem@davemloft.net>
12190
12191         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12192
12193         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12194         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12195         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12196         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12197
12198         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12199         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12200         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12201         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12202         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12203         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12204         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12205         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12206         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12207
12208         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12209
12210         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12211         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12212         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12213
12214         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12215         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12216         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12217         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12218         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12219         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12220         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12221         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12222         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12223         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12224         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12225         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12226         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12227         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12228         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12229         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12230         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12231         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12232         * sysdeps/sparc/elf/configure: Regenerated.
12233
12234 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12235
12236         * configure.in (AS, LD): Require binutils 2.20 or later.
12237         * configure: Regenerated.
12238         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12239         as required minimum version.
12240         * INSTALL: Regenerated.
12241
12242         [BZ #2541]
12243         [BZ #4108]
12244         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12245         before squaring exponent.
12246         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12247         bottom long double and 27 bits of top long double before squaring
12248         exponent.
12249         * math/libm-test.inc (erfc_test): Add more tests.
12250         * sysdeps/i386/fpu/libm-test-ulps: Update.
12251         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12253
12254 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12255
12256         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12257         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12258         containing bit-fields.
12259         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12260         * soft-fp/single.h (_FP_UNION_S): Likewise.
12261         * soft-fp/double.h (_FP_UNION_D): Likewise.
12262
12263 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12264
12265         [BZ #13786]
12266         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12267         not include ../strcmp.S.
12268         [USE_AS_STRNCASECMP_L]: Likewise.
12269         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12270         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12271         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12272         (__strncasecmp_l_ia32): Define as alias to
12273         __strncasecmp_l_nonascii.
12274
12275         [BZ #5794]
12276         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12277         * sysdeps/i386/fpu/libm-test-ulps: Update.
12278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12279
12280         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12282
12283 2012-02-29  Jeff Law  <law@redhat.com>
12284
12285         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12286         out of bounds read.
12287
12288 2012-02-29  Marek Polacek  <polacek@redhat.com>
12289
12290         [BZ #13706]
12291         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12292         * elf/Makefile: Add rules to run tst-unused-dep.out.
12293
12294 2012-02-28  David S. Miller  <davem@davemloft.net>
12295
12296         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12297         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12298         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12299         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12300         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12301         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12302
12303 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12304
12305         * math/libm-test.inc (llround_test): Move one test from
12306         lround_test.  Use TEST_f_L in moved test.
12307         (lround_test): Move misplaced test to llround_test.  Add testcase
12308         from bug 2561.
12309
12310 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12311
12312         * sysdeps/x86_64/fpu/e_expf.S: New file.
12313         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12314
12315 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12316
12317         [BZ #13637]
12318         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12319         of remain_len that may cause incomplete multi-byte character and
12320         false match.
12321         * posix/bug-regex33.c: New file.
12322         * posix/Makefile (tests): Add bug-regex33.
12323
12324 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12325
12326         * manual/macros.texi: New file.
12327         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12328         * manual/libc.texinfo: Include macros.texi.
12329         * manual/creatute.texi: Likewise.
12330         * manual/install.texi: Likewise.
12331         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12332         @glibcadj{} in references to the GNU C Library.
12333         * manual/charset.texi: Likewise.
12334         * manual/conf.texi: Likewise.
12335         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12336         when not using those macros.
12337         * manual/creature.texi: Likewise.
12338         * manual/crypt.texi: Likewise.
12339         * manual/errno.texi: Likewise.
12340         * manual/filesys.texi: Likewise.
12341         * manual/header.texi: Likewise.
12342         * manual/install.texi: Likewise.
12343         * manual/intro.texi: Likewise.
12344         * manual/io.texi: Likewise.
12345         * manual/job.texi: Likewise.
12346         * manual/lang.texi: Likewise.
12347         * manual/libc.texiinfo: Likewise.
12348         * manual/llio.texi: Likewise.
12349         * manual/locale.texi: Likewise.
12350         * manual/maint.texi: Likewise.
12351         * manual/math.texi: Likewise.
12352         * manual/memory.texi: Likewise.
12353         * manual/message.texi: Likewise.
12354         * manual/nss.texi: Likewise.
12355         * manual/pattern.texi: Likewise.
12356         * manual/process.texi: Likewise.
12357         * manual/resource.texi: Likewise.
12358         * manual/search.texi: Likewise.
12359         * manual/setjmp.texi: Likewise.
12360         * manual/signal.texi: Likewise.
12361         * manual/socket.texi: Likewise.
12362         * manual/startup.texi: Likewise.
12363         * manual/stdio.texi: Likewise.
12364         * manual/string.texi: Likewise.
12365         * manual/sysinfo.texi: Likewise.
12366         * manual/syslog.texi: Likewise.
12367         * manual/terminal.texi: Likewise.
12368         * manual/time.texi: Likewise.
12369         * manual/users.texi: Likewise.
12370         * INSTALL: Regenerated.
12371         * NOTES: Regenerated.
12372         * sysdeps/gnu/errlist.c: Regenerated.
12373
12374 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12375
12376         * include/dirent.h: Include <dirstream.h> before
12377         <dirent/dirent.h>.
12378
12379 2012-02-28  David S. Miller  <davem@davemloft.net>
12380
12381         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12382         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12383         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12384         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12385
12386 2012-02-27  David S. Miller  <davem@davemloft.net>
12387
12388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12390         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12391         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12392
12393         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12394         frame pointer instead of stack pointer relative arg slot.
12395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12396         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12397         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12398
12399 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12400
12401         [BZ #3992]
12402         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12403
12404 2012-02-27  David S. Miller  <davem@davemloft.net>
12405
12406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12408         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12409         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12410         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12411         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12412         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12413         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12414
12415 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12416
12417         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12418         later.  Allow versions 5-9.
12419         * configure: Regenerated.
12420         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12421         required minimum version and 4.6 as recommended version.  Do not
12422         mention bugs in GCC 2.7 and 2.8.
12423         * INSTALL: Regenerated.
12424
12425 2012-02-27  David S. Miller  <davem@davemloft.net>
12426
12427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12428         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12429         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12430         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12431         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12432         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12433         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12434         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12435
12436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12437         manipulate bits before adding and subtracting TWO112[sx].
12438         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12439
12440 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12441
12442         [BZ #13775]
12443         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12444         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12445         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12446         being in POSIX, because they are in 1003.1-2008.
12447
12448         * rt/tst-aio.c: Include <fcntl.h>.
12449         * rt/tst-aio7.c: Likewise.
12450         * rt/tst-aio64.c: Likewise.
12451
12452         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12453
12454 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12455
12456         * manual/install.texi (--with-headers): Describe headers as
12457         interface headers, not private headers.
12458         (Specific advice for GNU/Linux systems): Describe use of headers
12459         from "make headers_install", not private headers from older
12460         kernels.
12461         * INSTALL: Regenerated.
12462         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12463         Change to 2.6.19.
12464         * sysdeps/unix/sysv/linux/configure: Regenerated.
12465
12466         * manual/llio.texi (fclean): Remove documentation.
12467
12468         * manual/Makefile (libc-texi-generated): New variable.  Include
12469         version.texi.
12470         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12471         $(libc-texi-generated), not duplicated list of files.
12472         (version.texi, stamp-version): New rules.
12473         (realclean): Remove $(libc-texi-generated), not individual files
12474         from that list.  Do not remove dir-add.texinfo.
12475         * manual/libc.texinfo: Comment out uses of edition numbers and
12476         references to printed manual.  Remove last-updated dates.
12477         (EDITION): Comment out.
12478         (ISBN): Likewise.
12479         (VERSION, UPDATED): Remove.
12480         (version.texi): Include.
12481
12482 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12483
12484         * sysdeps/posix/spawni.c: Include <signal.h>.
12485         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12486         * sysdeps/pthread/aio_fsync.c: Likewise.
12487
12488 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12489
12490         * conform/Makefile (tests): Run only when not cross-compiling and
12491         when fast-check is not defined.
12492
12493         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12494         * conform/data/limits.h-data: Fixes for POSIX2008.
12495         * conform/run-conformtest.sh: Run all tests.
12496         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12497         headers.
12498         * include/bits/dlfcn.h: Likewise.
12499         * include/langinfo.h: Likewise.
12500         * include/monetary.h: Likewise.
12501         * include/sys/poll.h: Likewise.
12502
12503         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12504         for __USE_GNU.
12505         * posix/spawn.h: Define __need_sigset_t.
12506         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12507         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12508         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12509         to get sigevent_t only.
12510         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12511         only for __USE_GNU.
12512         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12513         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12514         process_vm_writev only for __USE_GNU.
12515         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12516
12517         * conform/Makefile: For now ignore errors from run-conformtest.
12518         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12519         POSIX to avoid namespace pollution.  Don't prepend headers.
12520         * conform/data/aio.h-data: Fixes for POSIX testing.
12521         * conform/data/fcntl.h-data: Likewise.
12522         * conform/data/glob.h-data: Likewise.
12523         * conform/data/grp.h-data: Likewise.
12524         * conform/data/pthread.h-data: Likewise.
12525         * conform/data/pwd.h-data: Likewise.
12526         * conform/data/signal.h-data: Likewise.
12527         * conform/data/spawn.h-data: Likewise.
12528         * conform/data/stdio.h-data: Likewise.
12529         * conform/data/stdlib.h-data: Likewise.
12530         * conform/data/stropts.h-data: Likewise.
12531         * conform/data/sys/mman.h-data: Likewise.
12532         * conform/data/sys/stat.h-data: Likewise.
12533         * conform/data/sys/types.h-data: Likewise.
12534         * conform/data/sys/wait.h-data: Likewise.
12535         * conform/data/time.h-data: Likewise.
12536         * conform/data/unistd.h-data: Likewise.
12537         * conform/data/utime.h-data: Likewise.
12538
12539         * io/sys/stat.h: fchmod was always in POSIX.
12540         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12541         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12542         * rt/aio.h: Define __need_timespec before including <time.h>.
12543         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12544         struct.  Add forward declaration of pthread_attr_t and use it in
12545         sigevent.
12546         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12547         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12548         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12549         always remove CLK_TCK definition.
12550
12551 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12552
12553         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12554
12555 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12556
12557         * conform/run-conformtest.sh: New file.
12558         * conform/Makefile: Run run-conformtest for tests.
12559         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12560         support.
12561
12562         * conform/data/uchar.h-data: New file.
12563         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12564         * conform/data/arpa/inet.h-data: Likewise.
12565         * conform/data/assert.h-data: Likewise.
12566         * conform/data/complex.h-data: Likewise.
12567         * conform/data/cpio.h-data: Likewise.
12568         * conform/data/ctype.h-data: Likewise.
12569         * conform/data/dirent.h-data: Likewise.
12570         * conform/data/dlfcn.h-data: Likewise.
12571         * conform/data/errno.h-data: Likewise.
12572         * conform/data/fcntl.h-data: Likewise.
12573         * conform/data/float.h-data: Likewise.
12574         * conform/data/fmtmsg.h-data: Likewise.
12575         * conform/data/fnmatch.h-data: Likewise.
12576         * conform/data/ftw.h-data: Likewise.
12577         * conform/data/glob.h-data: Likewise.
12578         * conform/data/grp.h-data: Likewise.
12579         * conform/data/iconv.h-data: Likewise.
12580         * conform/data/inttypes.h-data: Likewise.
12581         * conform/data/langinfo.h-data: Likewise.
12582         * conform/data/libgen.h-data: Likewise.
12583         * conform/data/limits.h-data: Likewise.
12584         * conform/data/locale.h-data: Likewise.
12585         * conform/data/math.h-data: Likewise.
12586         * conform/data/monetary.h-data: Likewise.
12587         * conform/data/mqueue.h-data: Likewise.
12588         * conform/data/ndbm.h-data: Likewise.
12589         * conform/data/net/if.h-data: Likewise.
12590         * conform/data/netdb.h-data: Likewise.
12591         * conform/data/netinet/in.h-data: Likewise.
12592         * conform/data/nl_types.h-data: Likewise.
12593         * conform/data/poll.h-data: Likewise.
12594         * conform/data/pthread.h-data: Likewise.
12595         * conform/data/pwd.h-data: Likewise.
12596         * conform/data/regex.h-data: Likewise.
12597         * conform/data/sched.h-data: Likewise.
12598         * conform/data/search.h-data: Likewise.
12599         * conform/data/semaphore.h-data: Likewise.
12600         * conform/data/setjmp.h-data: Likewise.
12601         * conform/data/signal.h-data: Likewise.
12602         * conform/data/spawn.h-data: Likewise.
12603         * conform/data/stdarg.h-data: Likewise.
12604         * conform/data/stdio.h-data: Likewise.
12605         * conform/data/stdlib.h-data: Likewise.
12606         * conform/data/string.h-data: Likewise.
12607         * conform/data/strings.h-data: Likewise.
12608         * conform/data/stropts.h-data: Likewise.
12609         * conform/data/sys/ipc.h-data: Likewise.
12610         * conform/data/sys/mman.h-data: Likewise.
12611         * conform/data/sys/msg.h-data: Likewise.
12612         * conform/data/sys/resource.h-data: Likewise.
12613         * conform/data/sys/select.h-data: Likewise.
12614         * conform/data/sys/sem.h-data: Likewise.
12615         * conform/data/sys/shm.h-data: Likewise.
12616         * conform/data/sys/socket.h-data: Likewise.
12617         * conform/data/sys/stat.h-data: Likewise.
12618         * conform/data/sys/statvfs.h-data: Likewise.
12619         * conform/data/sys/time.h-data: Likewise.
12620         * conform/data/sys/timeb.h-data: Likewise.
12621         * conform/data/sys/times.h-data: Likewise.
12622         * conform/data/sys/types.h-data: Likewise.
12623         * conform/data/sys/uio.h-data: Likewise.
12624         * conform/data/sys/un.h-data: Likewise.
12625         * conform/data/sys/utsname.h-data: Likewise.
12626         * conform/data/sys/wait.h-data: Likewise.
12627         * conform/data/syslog.h-data: Likewise.
12628         * conform/data/tar.h-data: Likewise.
12629         * conform/data/termios.h-data: Likewise.
12630         * conform/data/utime.h-data: Likewise.
12631         * conform/data/utmpx.h-data: Likewise.
12632         * conform/data/varargs.h-data: Likewise.
12633         * conform/data/wchar.h-data: Likewise.
12634         * conform/data/wctype.h-data: Likewise.
12635         * conform/data/wordexp.h-data: Likewise.
12636
12637         * include/stropts.h: New file.
12638         * include/uchar.h: New file.
12639         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12640         * include/assert.h: Likewise.
12641         * include/ctype.h: Likewise.
12642         * include/dirent.h: Likewise.
12643         * include/dlfcn.h: Likewise.
12644         * include/fcntl.h: Likewise.
12645         * include/fnmatch.h: Likewise.
12646         * include/glob.h: Likewise.
12647         * include/grp.h: Likewise.
12648         * include/libio.h: Likewise.
12649         * include/locale.h: Likewise.
12650         * include/math.h: Likewise.
12651         * include/net/if.h: Likewise.
12652         * include/netdb.h: Likewise.
12653         * include/netinet/in.h: Likewise.
12654         * include/pthread.h: Likewise.
12655         * include/pwd.h: Likewise.
12656         * include/regex.h: Likewise.
12657         * include/sched.h: Likewise.
12658         * include/search.h: Likewise.
12659         * include/setjmp.h: Likewise.
12660         * include/signal.h: Likewise.
12661         * include/stdio.h: Likewise.
12662         * include/stdlib.h: Likewise.
12663         * include/string.h: Likewise.
12664         * include/sys/cdefs.h: Likewise.
12665         * include/sys/mman.h: Likewise.
12666         * include/sys/msg.h: Likewise.
12667         * include/sys/resource.h: Likewise.
12668         * include/sys/select.h: Likewise.
12669         * include/sys/socket.h: Likewise.
12670         * include/sys/stat.h: Likewise.
12671         * include/sys/statvfs.h: Likewise.
12672         * include/sys/time.h: Likewise.
12673         * include/sys/times.h: Likewise.
12674         * include/sys/uio.h: Likewise.
12675         * include/sys/utsname.h: Likewise.
12676         * include/sys/wait.h: Likewise.
12677         * include/termios.h: Likewise.
12678         * include/time.h: Likewise.
12679         * include/ulimit.h: Likewise.
12680         * include/unistd.h: Likewise.
12681         * include/utime.h: Likewise.
12682         * include/wchar.h: Likewise.
12683         * include/wctype.h: Likewise.
12684         * include/wordexp.h: Likewise.
12685
12686         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12687
12688         * time/time.h: TIME_UTC must be a macro.
12689         Make timespec_get available for ISO C11 only as well.
12690
12691 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12692
12693         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12694         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12695
12696 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12697
12698         * configure.in: Use -o not -a in test for unsupported multi-arch.
12699
12700 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12701
12702         * manual/texinfo.tex: Update to version 2012-01-19.16.
12703
12704 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12705
12706         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12707
12708 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12709
12710         [BZ #13738]
12711         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12712         * manual/fdl-1.3.texi: New file.
12713         * manual/fdl-1.1.texi: File removed.
12714
12715         [BZ #13738]
12716         * manual/libc.texinfo (FDL_VERSION): New @set.
12717         Use it for mention of FDL in cover text.
12718         (Documentation License): Use it in @include file name.
12719
12720 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12721             Roland McGrath  <roland@hack.frob.com>
12722
12723         [BZ #5461]
12724         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12725         not LONG_LONG_MAX and LONG_LONG_MIN.
12726         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12727         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12728         name.
12729         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12730
12731 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12732
12733         [BZ #2547]
12734         [BZ #11365]
12735         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12736         manipulate bits before adding and subtracting TWO23[sx].
12737         * math/libm-test.inc (nearbyint_test): Add more tests.
12738
12739 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12740
12741         [BZ #2548]
12742         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12743         bits before adding and subtracting TWO23[sx].
12744         * math/libm-test.inc (rint_test): Add more tests.
12745         (rint_test_tonearest): Likewise.
12746         (rint_test_towardzero): Likewise.
12747         (rint_test_downward): Likewise.
12748         (rint_test_upward: Likewise.
12749
12750 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12751
12752         [BZ #10110]
12753         * include/stdc-predef.h: New file.  Extracted from features.h.
12754         * include/features.h: Include stdc-predef.h.
12755         * Makefile (headers): Add stdc-predef.h.
12756         * CONFORMANCE (Compiler limitations): Update.
12757
12758 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12759
12760         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12761
12762 2012-02-21  David S. Miller  <davem@davemloft.net>
12763
12764         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12765         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12766
12767 2012-02-20  David S. Miller  <davem@davemloft.net>
12768
12769         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12770         using a normal save/restore sequence, rather than allocating a
12771         dummy stack frame just to store a frame pointer and restore.
12772         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12773
12774 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12775
12776         * manual/install.texi: Fix stray word in line-wrapped comment.
12777
12778 2012-02-20  David S. Miller  <davem@davemloft.net>
12779
12780         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12781         both binutils and gcc support GOTDATA.
12782
12783         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12784         "rd %pc" in the PIC register setup sequences.
12785
12786         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12787         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12788         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12789         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12790         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12791         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12792         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12793         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12794         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12795         (SYSCALL_ERROR_HANDLER): Likewise.
12796         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12797         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12798         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12799         (SYSCALL_ERROR_HANDLER): Likewise.
12800
12801         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12802         (HAVE_GCC_GOTDATA): New.
12803         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12804         relocation support in both binutils and gcc.
12805         * sysdeps/sparc/elf/configure: Regenerate.
12806
12807         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12808         * sysdeps/sparc/sparc32/elf/configure: Delete.
12809         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12810         * sysdeps/sparc/sparc64/elf/configure: Delete.
12811         * sysdeps/sparc/elf/configure.in: New file.
12812         * sysdeps/sparc/elf/configure: Generate.
12813
12814         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12815         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12816         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12817         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12818         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12819
12820 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12821
12822         * manual/install.texi: Do not mention specific glibc version
12823         numbers.
12824         * manual/libc.texinfo (VERSION, UPDATED): Update.
12825         (@copying): Use @copyright{} and range of years.
12826
12827 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12828
12829         [BZ #13695]
12830         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12831         [crti.S not in sysdirs] (generated): Do not append.
12832         [crti.S not in sysdirs] (omit-deps): Likewise.
12833         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12834         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12835         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12836         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12837         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12838         Likewise.
12839         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12840         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12841         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12842         * csu/defs.awk: Remove file.
12843         * sysdeps/generic/initfini.c: Likewise.
12844         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12845         variable.
12846         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12847         Likewise.
12848
12849 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12850
12851         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12852         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12853         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12854         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12855         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12856         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12857         <bits/epoll.h>.
12858         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12859         (__EPOLL_PACKED): Define to empty if not defined by
12860         <bits/epoll.h>.
12861         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12862         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12863         bits/epoll.h.
12864
12865 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12866
12867         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12868         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12869         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12870         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12871         <bits/timerfd.h>.
12872         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12873         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12874         bits/timerfd.h.
12875
12876 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12877
12878         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12879         in C locale.
12880         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12881         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12882         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12884
12885 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12886
12887         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12888         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12889
12890 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12891
12892         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12893         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12894         defined.
12895         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12896         Likewise.
12897         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12898         entry for 2.16.
12899
12900 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12901
12902         * math/w_acos.c: Use non-signaling floating-point comparisons.
12903         * math/w_acosf.c: Likewise.
12904         * math/w_acosh.c: Likewise.
12905         * math/w_acoshf.c: Likewise.
12906         * math/w_acoshl.c: Likewise.
12907         * math/w_acosl.c: Likewise.
12908         * math/w_asin.c: Likewise.
12909         * math/w_asinf.c: Likewise.
12910         * math/w_asinl.c: Likewise.
12911         * math/w_atanh.c: Likewise.
12912         * math/w_atanhf.c: Likewise.
12913         * math/w_atanhl.c: Likewise.
12914         * math/w_exp2.c: Likewise.
12915         * math/w_exp2f.c: Likewise.
12916         * math/w_exp2l.c: Likewise.
12917         * math/w_j0.c: Likewise.
12918         * math/w_j0f.c: Likewise.
12919         * math/w_j0l.c: Likewise.
12920         * math/w_j1.c: Likewise.
12921         * math/w_j1f.c: Likewise.
12922         * math/w_j1l.c: Likewise.
12923         * math/w_jn.c: Likewise.
12924         * math/w_jnf.c: Likewise.
12925         * math/w_log.c: Likewise.
12926         * math/w_log10.c: Likewise.
12927         * math/w_log10f.c: Likewise.
12928         * math/w_log10l.c: Likewise.
12929         * math/w_log2.c: Likewise.
12930         * math/w_log2f.c: Likewise.
12931         * math/w_log2l.c: Likewise.
12932         * math/w_logf.c: Likewise.
12933         * math/w_logl.c: Likewise.
12934         * math/w_sqrt.c: Likewise.
12935         * math/w_sqrtf.c: Likewise.
12936         * math/w_sqrtl.c: Likewise.
12937         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12938         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12939         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12940         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12941         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12942
12943 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12944
12945         [BZ #9739]
12946         * manual/string.texi (strnlen): Use correct parameter name in
12947         equivalent expression.
12948
12949 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12950
12951         [BZ #11174]
12952         * manual/users.texi (seteuid): Consistently use neweuid for
12953         argument name.
12954
12955 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12956
12957         [BZ #13704]
12958         * manual/nss.texi (Services in the NSS configuration): Correct
12959         list of services in example configuration file.
12960
12961 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12962
12963         [BZ #11322]
12964         * manual/arith.texi: Remove statements about negative zero
12965         behaving identically to zero.
12966
12967 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12968
12969         [BZ #5993]
12970         * manual/install.texi: Do not document upgrading from libc5.
12971
12972 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12973
12974         [BZ #4596]
12975         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12976
12977 2012-02-18  David S. Miller  <davem@davemloft.net>
12978
12979         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12980         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12981         %o7 across the call.
12982         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12983         instead.
12984         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12985         SETUP_PIC_REG_LEAF.
12986         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12987         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12988         * sysdeps/sparc/crtn.S: Likewise.
12989
12990 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12991
12992         * aout/Makefile: Remove.
12993
12994 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12995
12996         [BZ #13058]
12997         * manual/examples/argp-ex1.c (main): Format definition in GNU
12998         style.
12999         * manual/examples/argp-ex2.c (main): Likewise.
13000         * manual/examples/argp-ex3.c (main): Likewise.
13001         * manual/examples/argp-ex4.c (main): Likewise.
13002         * manual/examples/longopt.c (main): Use new-style prototype
13003         definition.
13004         * manual/examples/strncat.c (main): Specify return type and use
13005         (void) for arguments.
13006         * manual/examples/subopt.c (main): Use char **argv argument.
13007
13008 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13009
13010         [BZ #5077]
13011         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13012         rounding modes.
13013
13014 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13015
13016         [BZ #6907]
13017         * manual/string.texi (strchr): Change when strchrnul is
13018         recommended.
13019
13020 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13021
13022         [BZ #174]
13023         * manual/locale.texi (setlocale): Document LOCPATH.
13024
13025 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13026
13027         [BZ #10210]
13028         * manual/process.texi (execle): Move @dots{} before last argument.
13029
13030 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13031
13032         [BZ #12047]
13033         * manual/charset.texi (Generic Charset Conversion): Fix typo
13034         (LC_TYPE -> LC_CTYPE).
13035
13036 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13037
13038         [BZ #5805]
13039         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13040         (scalbnf): Likewise.
13041         (scalbnl): Likewise.
13042         (scalbln): Likewise.
13043         (scalblnf): Likewise.
13044         (scalblnl): Likewise.
13045         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13046         (vwarnx): Likewise.
13047         (verr): Likewise.
13048         (verrx): Likewise.
13049         * manual/filesys.texi (telldir): Use braces around return type.
13050         * manual/llio.texi (mmap): Add space after comma.
13051         (mmap64): Likewise.
13052         * manual/math.texi (jn): Use @var{} on parameter names.
13053         (jnf): Likewise.
13054         (jnl): Likewise.
13055         (yn): Likewise.
13056         (ynf): Likewise.
13057         (ynl): Likewise.
13058         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13059         line.
13060         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13061         "...".
13062         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13063         (sched_get_priority_max): Likewise.
13064         * manual/signal.texi (sigvec): Add space after comma.
13065         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13066         names.
13067         (if_indextoname): Likewise.
13068         (if_freenameindex): Likewise.
13069         (sendto): Use ',' instead of '.' in prototype.
13070         * manual/startup.texi (syscall): Use @dots{} instead of literal
13071         "...".
13072         * manual/stdio.texi (__fpending): Separate initial words of
13073         paragraph from @deftypefun line.
13074         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13075         "...".
13076         (vsyslog): Use @var{} on parameter names.
13077         * manual/terminal.texi (stty): Use @var{} on parameter names.
13078         * manual/users.texi (getutmp): Use @var{} on parameter names.
13079         (getutmpx): Likewise.
13080
13081 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13082
13083         [BZ #6884]
13084         * manual/stdio.texi (fopen): Fix typos in description of
13085         ",ccs=STRING".
13086
13087 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13088
13089         [BZ #4026]
13090         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13091         get clock_id definition.
13092
13093 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13094
13095         [BZ #4822]
13096         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13097         (madvise): Cast every argument to void on its own.
13098
13099 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13100
13101         [BZ #9902]
13102         * manual/startup.texi (Exit Status): Fix typo.
13103
13104 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13105
13106         [BZ #10140]
13107         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13108         * manual/examples/argp-ex2.c: Likewise.
13109         * manual/examples/argp-ex3.c: Likewise.
13110
13111 2012-02-16  Richard Henderson  <rth@redhat.com>
13112
13113         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13114         * sysdeps/s390/s390-32/initfini.c: Remove.
13115         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13116         * sysdeps/s390/s390-64/initfini.c: Remove.
13117
13118 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13119
13120         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13121         compiler output for sysdeps/generic/initfini.c.
13122         * sysdeps/sh/elf/initfini.c: Remove file.
13123
13124 2012-02-16  David S. Miller  <davem@davemloft.net>
13125
13126         [BZ #11494]
13127         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13128
13129         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13130         * sysdeps/sparc/crti.S: New file.
13131         * sysdeps/sparc/crtn.S: New file.
13132         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13133         * sysdeps/sparc/sparc64/Makefile: Likewise.
13134
13135 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13136
13137         [BZ #3335]
13138         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13139
13140 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13141
13142         [BZ #4822]
13143         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13144
13145         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13146         (write, read, close): Likewise.
13147         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13148
13149 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13150
13151         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13152         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13153         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13154         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13155         <bits/signalfd.h>.
13156         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13157         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13158         bits/signalfd.h.
13159
13160 2012-02-14  Marek Polacek  <polacek@redhat.com>
13161
13162         * sysdeps/x86_64/crti.S: New file.
13163         * sysdeps/x86_64/crtn.S: New file.
13164         * sysdeps/x86_64/elf/initfini.c: Remove file.
13165
13166 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13167
13168         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13169         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13170         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13171         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13172         <bits/inotify.h>.
13173         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13174         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13175         bits/inotify.h.
13176
13177 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13178
13179         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13180         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13181         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13182         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13183         <bits/eventfd.h>.
13184         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13185         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13186         bits/eventfd.h.
13187
13188 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13189
13190         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13191         __feraiseexcept instead of feraiseexcept.
13192
13193         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13194         nanosleep invocations.
13195         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13196         strings, and add error checking for a nanosleep invocations.
13197
13198 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         Replace FSF snail mail address with URLs, as per GNU coding standards.
13201         Most of the snail mail addresses were wrong anyway, and omitting
13202         them makes the source code easier to maintain.  Almost all of the
13203         changes are to license notices and to locale LC_IDENTIFICATION
13204         addresses, except for this one:
13205         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13206         not its snail mail address.
13207
13208 2012-02-09  Richard Henderson  <rth@twiddle.net>
13209
13210         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13211         of kernel-features.h.
13212
13213         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13214
13215 2012-02-08  Marek Polacek  <polacek@redhat.com>
13216
13217         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13218         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13219         * sysdeps/gnu/_G_config.h: Likewise.
13220         * sysdeps/generic/_G_config.h: Likewise.
13221
13222 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13223
13224         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13225         tests.
13226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13227
13228         * sysdeps/powerpc/powerpc32/crti.S: New file.
13229         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13230         * sysdeps/powerpc/powerpc64/crti.S: New file.
13231         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13232
13233         * Makeconfig (have-initfini): Don't set.
13234         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13235         * configure.in (nopic_initfini): Don't substitute.
13236         * config.h.in (HAVE_INITFINI): Don't #undef.
13237         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13238         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13239
13240 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13241
13242         Support crti.S and crtn.S provided directly by architectures.
13243         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13244         [crti.S in sysdirs] (omit-deps): Likewise.
13245         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13246         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13247         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13248         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13249         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13250         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13251         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13252         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13253         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13254         compiler output for sysdeps/generic/initfini.c.
13255         * sysdeps/i386/elf/Makefile: Remove file.
13256         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13257
13258 2012-02-07  Marek Polacek  <polacek@redhat.com>
13259
13260         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13261         * sysdeps/gnu/_G_config.h: Likewise.
13262         * sysdeps/mach/hurd/_G_config.h: Likewise.
13263
13264 2012-02-07  Marek Polacek  <polacek@redhat.com>
13265
13266         * math/Makefile (tests): Add tst-CMPLX2.
13267         * math/tst-CMPLX2.c: New file.
13268
13269 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13270
13271         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13272
13273         * math/libm-test.inc (jn_test): Add missing L suffix.
13274
13275 2012-02-06  Marek Polacek  <polacek@redhat.com>
13276
13277         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13278         * sysdeps/i386/fpu/e_powf.S: Likewise.
13279         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13280         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13281         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13282         * sysdeps/i386/fpu/e_pow.S: Likewise.
13283         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13284         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13285         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13286         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13287         * sysdeps/i386/fpu/e_log2.S: Likewise.
13288         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13289         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13290         * sysdeps/i386/fpu/e_powl.S: Likewise.
13291         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13292         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13293         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13294         * sysdeps/i386/fpu/e_logl.S: Likewise.
13295         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13296         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13297         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13298         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13299         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13300         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13301         * sysdeps/i386/fpu/e_log.S: Likewise.
13302         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13303         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13304         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13305         * sysdeps/i386/fpu/e_logf.S: Likewise.
13306         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13307         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13308         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13309         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13310         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13311         * sysdeps/i386/fpu/e_log10.S: Likewise.
13312         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13313         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13314         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13315         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13316         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13317         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13318         * sysdeps/i386/asm-syntax.h: Likewise.
13319         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13320         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13321         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13322         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13323         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13324         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13325         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13326         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13327         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13328         * sysdeps/powerpc/sysdep.h: Likewise.
13329         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13330         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13331
13332 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13333
13334         [BZ #411]
13335         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13336
13337 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13338
13339         * sysdeps/i386/sysdep.h: Include <features.h>.
13340         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13341         version.
13342
13343 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13344
13345         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13346         Define.
13347         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13348         LOAD_PIC_REG_STR.
13349
13350 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13351
13352         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13353         (SETUP_PIC_REG): Use GET_PC_THUNK.
13354         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13355         macro.
13356
13357 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13358
13359         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13360         for non-PIC compilation.
13361         (SETUP_PIC_REG): Add .p2align directive.
13362         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13363         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13364         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13365         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13366         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13367         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13368         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13369         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13370         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13371         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13372         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13373         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13374         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13375         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13376         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13377         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13378         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13379         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13380         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13381         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13382         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13383         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13384         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13385         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13386         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13387         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13388         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13389         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13390         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13391         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13392         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13393         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13394         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13395         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13396         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13397         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13398         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13399         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13400         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13401         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13402         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13403
13404 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13405
13406         * math/tst-CMPLX.c: Include <stdio.h>.
13407
13408 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13409
13410         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13411         float.
13412         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13413         * sysdeps/sparc/bits/mathdef.h: Likewise.
13414
13415 2012-01-31  Marek Polacek  <polacek@redhat.com>
13416
13417         * libio/libio.h: Don't define _PARAMS.
13418         * locale/programs/config.h: Don't define PARAMS.
13419         * stdlib/strtol_l.c: Likewise.
13420         (__strtol_l): Remove PARAMS from the prototype.
13421
13422 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13423
13424         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13425         names.  Just use the correct names.  Remove unnecessary wrapper
13426         functions.
13427         * malloc/arena.c: Likewise.
13428         * malloc/hooks.c: Likewise.
13429
13430         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13431         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13432         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13433
13434 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13435
13436         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13437         into tail calls.
13438         (update_get_addr): New function.
13439         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13440         GET_ADDR_MODULE parameter.
13441
13442 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13443
13444         * crypt/cert.c: Remove __STDC__ conditionals.
13445         * crypt/crypt-entry.c: Likewise.
13446         * crypt/crypt_util.c: Likewise.
13447         * libio/filedoalloc.c: Likewise.
13448         * libio/fileops.c: Likewise.
13449         * libio/genops.c: Likewise.
13450         * libio/iofclose.c: Likewise.
13451         * libio/iofdopen.c: Likewise.
13452         * libio/iofopen.c: Likewise.
13453         * libio/iofopen64.c: Likewise.
13454         * libio/iogetdelim.c: Likewise.
13455         * libio/iopopen.c: Likewise.
13456         * libio/obprintf.c: Likewise.
13457         * libio/oldfileops.c: Likewise.
13458         * libio/oldiofclose.c: Likewise.
13459         * libio/oldiofdopen.c: Likewise.
13460         * libio/oldiofopen.c: Likewise.
13461         * libio/oldiopopen.c: Likewise.
13462         * libio/wfiledoalloc.c: Likewise.
13463         * libio/wgenops.c: Likewise.
13464         * locale/programs/xmalloc.c: Likewise.
13465         * misc/syslog.c: Likewise.
13466         * stdio-common/xbug.c: Likewise.
13467         * string/memchr.c: Likewise.
13468         * string/memcmp.c: Likewise.
13469         * string/memrchr.c: Likewise.
13470         * string/rawmemchr.c: Likewise.
13471         * sysdeps/posix/getcwd.c: Likewise.
13472         * time/strftime_l.c: Likewise.
13473
13474 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13475
13476         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13477         * config.make.in (config-cflags-sse2avx): Define.
13478         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13479         Fix typo.
13480
13481 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13482
13483         * scripts/config.guess: Update from upstream config git repository.
13484         * scripts/config.sub: Likewise.
13485
13486 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13487
13488         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13489         (EM_NUM): Update.
13490         (R_TILEPRO_*, R_TILEGX_*): New macros.
13491
13492         * scripts/firstversions.awk: Fix bug in version range handling.
13493
13494         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13495
13496         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13497
13498         * include/sys/epoll.h: New file.
13499         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13500         libc_hidden_def.
13501
13502 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13503
13504         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13505         Avoid unnecessary __WORDSIZE == 64 test.
13506         (fmaxf): Use VEX format if possible.
13507         (fmax): Likewise.
13508         (fminf): Likewise.
13509         (fmin): Likewise.
13510
13511         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13512         * math/math_private.h: Remove libc_fegetround* and
13513         libc_fesetround*.
13514         * sysdeps/i386/configure.in: Check for -msse2avx.
13515         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13516         also if SSE2AVX is defined.
13517         Remove libc_fegetround* and libc_fesetround*.
13518         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13519         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13520         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13521         of HAS_YMM_USABLE.
13522         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13523         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13524         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13525         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13526         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13527
13528         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13529
13530 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13531
13532         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13533         size is not set.
13534         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13535
13536 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13537
13538         [BZ #13618]
13539         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13540         relocation.
13541         * Makeconfig (libm): Define.
13542         * elf/Makefile: Add rules to build and run tst-relsort1.
13543         * elf/tst-relsort1.c: New file.
13544         * elf/tst-relsort1mod1.c: New file.
13545         * elf/tst-relsort1mod2.c: New file.
13546
13547 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13548
13549         * math/s_ldexp.c: Remove __STDC__ conditionals.
13550         * math/s_ldexpf.c: Likewise.
13551         * math/s_ldexpl.c: Likewise.
13552         * math/s_nextafter.c: Likewise.
13553         * math/s_nexttowardf.c: Likewise.
13554         * math/s_significand.c: Likewise.
13555         * math/s_significandf.c: Likewise.
13556         * math/s_significandl.c: Likewise.
13557         * math/w_jnl.c: Likewise.
13558         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13559         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13560         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13561         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13562         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13563         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13564         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13569         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13571         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13572         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13573         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13574         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13575         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13576         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13577         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13578         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13579         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13580         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13581         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13582         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13583         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13584         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13585         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13586         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13587         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13588         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13589         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13590         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13591         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13592         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13593         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13594         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13595         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13596         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13597         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13598         * sysdeps/ieee754/k_standard.c: Likewise.
13599         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13600         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13601         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13602         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13603         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13604         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13605         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13606         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13607         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13608         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13609         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13610         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13611         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13612         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13613         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13614         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13615         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13616         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13617         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13618         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13619         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13620         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13621         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13622         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13623         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13624         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13625         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13626         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13627         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13628         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13629         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13630         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13631         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13632         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13633         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13634         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13635         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13636         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13637         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13638         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13639         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13640         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13641         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13642         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13643         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13644         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13645         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13646         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13647         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13648         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13649         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13650         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13651         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13652         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13653         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13654         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13655         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13656         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13657         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13658         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13659         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13660         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13661         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13662         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13663         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13664         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13665         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13666         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13667         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13668         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13669         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13670         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13671         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13672         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13673         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13674         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13675         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13676         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13677         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13678         * sysdeps/ieee754/s_matherr.c: Likewise.
13679         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13680         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13681         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13682         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13683
13684 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13685
13686         * crypt/md5.h: Remove __STDC__ conditionals.
13687         * libio/libioP.h: Likewise.
13688         * locale/programs/config.h: Likewise.
13689         * sysdeps/generic/sysdep.h: Likewise.
13690         * sysdeps/i386/asm-syntax.h: Likewise.
13691         * sysdeps/s390/asm-syntax.h: Likewise.
13692         * sysdeps/unix/sysdep.h: Likewise.
13693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13695
13696 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13697
13698         * libio/libio.h: Remove __STDC__ conditionals.
13699         * malloc/obstack.h: Likewise.
13700         * math/complex.h: Likewise.
13701         * math/math.h: Likewise.
13702         * sysdeps/generic/_G_config.h: Likewise.
13703         * sysdeps/gnu/_G_config.h: Likewise.
13704         * sysdeps/mach/hurd/_G_config.h: Likewise.
13705         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13706         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13707         * sysdeps/sparc/bits/mathdef.h: Likewise.
13708
13709 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13710
13711         [BZ #13583]
13712         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13713         Clean up HAS_* macros.
13714         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13715         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13716         possible.
13717         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13718         HAS_AVX.
13719         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13720         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13721         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13722         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13723         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13724
13725 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13726
13727         * elf/tst-unique3.cc (gets): Remove declaration.
13728         * elf/tst-unique3lib.cc (gets): Likewise.
13729         * elf/tst-unique3lib2.cc (gets): Likewise.
13730         * elf/tst-unique4.cc (gets): Likewise.
13731
13732 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13733
13734         * include/stdio.h: Add C++ protection.  Add gets declarations and
13735         definitions.
13736         * debug/tst-chk1.c: Don't declare gets here.
13737         * stdio-common/tst-gets.c: Likewise.
13738
13739 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13740
13741         * posix/glob: Remove directory.
13742
13743 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13744
13745         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13746
13747 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13748
13749         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13750         of the non-standard EPFNOSUPPORT.
13751
13752 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13753
13754         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13755         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13756         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13757
13758 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13759
13760         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13761
13762 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13763
13764         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13765         transient errors.
13766         * nscd/grpcache.c (cache_addgr): Likewise.
13767         * nscd/hstcache.c (cache_addhst): Likewise.
13768         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13769         * nscd/pwdcache.c (cache_addpw): Likewise.
13770         * nscd/servicescache.c (cache_addserv): Likewise.
13771
13772 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13773
13774         * malloc/malloc.c: Various cleanups.
13775         * malloc/hooks.c: Likewise.
13776
13777         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13778         * stdlib/bug-fmtmsg1.c: New file.
13779
13780         * stdlib/fmtmsg.c (init): Add missing unlock.
13781         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13782
13783 2012-01-12  Marek Polacek  <polacek@redhat.com>
13784
13785         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13786         and _GNU_SOURCE.
13787
13788 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13789
13790         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13791         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13792         macro to ensure uniqueness of label name.
13793         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13794         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13795
13796 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13797
13798         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13799
13800         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13801         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13802         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13803         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13804
13805 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13806
13807         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13808
13809         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13810         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13811         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13812
13813         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13814
13815         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13816         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13817         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13818         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13819
13820         * math/bits/math-finite.h: Add ldexp support.
13821
13822 2012-01-10  Marek Polacek  <polacek@redhat.com>
13823
13824         * locale/programs/localedef.h (show_archive_content): Add noreturn
13825         attribute.
13826
13827 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13828
13829         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13830
13831 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13832
13833         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13834
13835         * io/Makefile (headers): Add bits/poll2.h.
13836
13837 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13838
13839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13840         typo #include statement.
13841
13842 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13843
13844         * include/sys/cdefs.h: Define __attribute_alloc_size.
13845         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13846         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13847         * elf/pldd.c: Likewise.
13848         * iconv/iconv_charmap.c: Likewise.
13849         * iconv/iconvconfig.c: Likewise.
13850         * iconv/strtab.c: Likewise.
13851         * locale/programs/locale.c: Likewise.
13852         * locale/programs/localedef.h: Likewise.
13853         * locale/programs/simple-hash.c: Likewise.
13854         * nscd/nscd.h: Likewise.
13855         * nss/makedb.c: Likewise.
13856         * sysdeps/generic/ldconfig.h: Likewise.
13857         * locale/programs/localedef.c: Remove xmalloc prototype.
13858         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13859
13860 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13861
13862         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13863         appropriate.
13864
13865 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13866
13867         * math/Makefile (tests): Add tst-CMPLX.
13868         * math/tst-CMPLX.c: New file.
13869
13870         * math/complex.h (CMPLXL): Fix typo.
13871
13872         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13873         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13874         GLIBC_2.16.
13875         * debug/tst-chk1.c: Add poll and ppoll tests.
13876         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13877         * include/sys/poll.h: Add hidden proto for ppoll.
13878         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13879         * sysdeps/mach/hurd/ppoll.c: Likewise.
13880         * io/ppoll.c: Likewise.
13881         * debug/poll_chk.c: New file.
13882         * debug/ppoll_chk.c: New file.
13883         * include/bits/poll2.h: New file.
13884         * io/bits/poll2.h: New file.
13885
13886         [BZ #1350]
13887         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13888
13889         * configure.in: static is always set to yes.  Remove.
13890         * config.make.in: Don't set build-static.
13891         * Makeconfig: Remove use of build-static.
13892         * dlfcn/Makefile: Likewise.
13893         * elf/Makefile: Likewise.
13894         * math/Makefile: Likewise.
13895         * misc/Makefile: Likewise.
13896         * nptl/Makefile: Likewise.
13897         * sysdeps/mach/hurd/Makefile: Likewise.
13898
13899         * configure.in: PWD_P is not used anymore.
13900         * config.make.in: Remove PWD_P entry.
13901
13902         * configure.in: Remove last remnants of RANLIB.
13903         No need to check for signed size_t anymore.
13904         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13905         and IA-64.
13906         Remove __builtin_expect test because we require at least gcc 3.4.
13907         * aclocal.m4: Likewise.
13908
13909         * wcsmbs/mbrtoc16.c: Implement using towc function.
13910         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13911         * wcsmbs/wcsmbsload.c: Likewise.
13912         * iconv/gconv_simple.c: Likewise.
13913         * iconv/gconv_int.h: Likewise.
13914         * iconv/gconv_builtin.h: Likewise.
13915         * iconv/iconv_prog.c: Remove CHAR16 handling.
13916
13917         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13918
13919         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13920
13921         * configure.in: Remove --with-elf and --enable-bounded options.
13922         Dont set base_machine for ia64.  More non-ELF conditions removed.
13923         Remove testing and setting of leading underscore information.
13924         * config.make.in (build-bounded): Set to no.
13925         * config.h.in: Remove NO_UNDERSCORES entry.
13926         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13927         them.
13928         * csu/start.c: Remove !NO_UNDERSCORE code.
13929         * locale/localeinfo.h: Likewise.
13930         * sysdeps/generic/machine-gmon.h: Likewise.
13931         * sysdeps/generic/sysdep.h: Likewise.
13932         * sysdeps/i386/sysdep.h: Likewise.
13933         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13934         * sysdeps/mach/sysdep.h: Likewise.
13935         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13936         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13937         * sysdeps/sh/sysdep.h: Likewise.
13938         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13939         * sysdeps/unix/i386/sysdep.S: Likewise.
13940         * sysdeps/unix/sparc/start.c: Likewise.
13941         * sysdeps/unix/sparc/sysdep.S: Likewise.
13942         * sysdeps/unix/sparc/sysdep.h: Likewise.
13943         * sysdeps/unix/start.c: Likewise.
13944         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13945         * sysdeps/x86_64/sysdep.h: Likewise.
13946
13947 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13948
13949         [BZ #13553]
13950         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13951         for non-gcc.
13952         * argp/argp-fmtstream.h: Use const instead __const.
13953         * argp/argp.h: Likewise.
13954         * assert/assert.h: Likewise.
13955         * bits/fenv.h: Likewise.
13956         * bits/sched.h: Likewise.
13957         * bits/sigset.h: Likewise.
13958         * bits/sigthread.h: Likewise.
13959         * catgets/nl_types.h: Likewise.
13960         * conform/data/pthread.h-data: Likewise.
13961         * crypt/crypt-private.h: Likewise.
13962         * crypt/crypt.h: Likewise.
13963         * crypt/crypt_util.c: Likewise.
13964         * ctype/ctype.h: Likewise.
13965         * debug/execinfo.h: Likewise.
13966         * debug/mbsnrtowcs_chk.c: Likewise.
13967         * debug/mbsrtowcs_chk.c: Likewise.
13968         * debug/wcsnrtombs_chk.c: Likewise.
13969         * debug/wcsrtombs_chk.c: Likewise.
13970         * debug/wcstombs_chk.c: Likewise.
13971         * dirent/dirent.h: Likewise.
13972         * dlfcn/dlfcn.h: Likewise.
13973         * elf/neededtest4.c: Likewise.
13974         * grp/grp.h: Likewise.
13975         * gshadow/gshadow.h: Likewise.
13976         * iconv/gconv.h: Likewise.
13977         * iconv/gconv_int.h: Likewise.
13978         * iconv/gconv_simple.c: Likewise.
13979         * iconv/iconv.h: Likewise.
13980         * iconv/loop.c: Likewise.
13981         * iconv/skeleton.c: Likewise.
13982         * include/aio.h: Likewise.
13983         * include/aliases.h: Likewise.
13984         * include/argz.h: Likewise.
13985         * include/arpa/inet.h: Likewise.
13986         * include/assert.h: Likewise.
13987         * include/dirent.h: Likewise.
13988         * include/dlfcn.h: Likewise.
13989         * include/execinfo.h: Likewise.
13990         * include/fcntl.h: Likewise.
13991         * include/fenv.h: Likewise.
13992         * include/glob.h: Likewise.
13993         * include/grp.h: Likewise.
13994         * include/libintl.h: Likewise.
13995         * include/mntent.h: Likewise.
13996         * include/netdb.h: Likewise.
13997         * include/pwd.h: Likewise.
13998         * include/rpc/netdb.h: Likewise.
13999         * include/sched.h: Likewise.
14000         * include/search.h: Likewise.
14001         * include/shadow.h: Likewise.
14002         * include/signal.h: Likewise.
14003         * include/stdio.h: Likewise.
14004         * include/stdlib.h: Likewise.
14005         * include/string.h: Likewise.
14006         * include/sys/socket.h: Likewise.
14007         * include/sys/stat.h: Likewise.
14008         * include/sys/statfs.h: Likewise.
14009         * include/sys/statvfs.h: Likewise.
14010         * include/sys/syslog.h: Likewise.
14011         * include/sys/time.h: Likewise.
14012         * include/sys/uio.h: Likewise.
14013         * include/time.h: Likewise.
14014         * include/unistd.h: Likewise.
14015         * include/utmp.h: Likewise.
14016         * include/wchar.h: Likewise.
14017         * include/wctype.h: Likewise.
14018         * inet/aliases.h: Likewise.
14019         * inet/arpa/inet.h: Likewise.
14020         * inet/netinet/ether.h: Likewise.
14021         * inet/netinet/in.h: Likewise.
14022         * intl/libintl.h: Likewise.
14023         * io/bits/fcntl2.h: Likewise.
14024         * io/fcntl.h: Likewise.
14025         * io/ftw.h: Likewise.
14026         * io/sys/poll.h: Likewise.
14027         * io/sys/stat.h: Likewise.
14028         * io/sys/statfs.h: Likewise.
14029         * io/sys/statvfs.h: Likewise.
14030         * io/utime.h: Likewise.
14031         * libio/bits/stdio.h: Likewise.
14032         * libio/bits/stdio2.h: Likewise.
14033         * libio/libio.h: Likewise.
14034         * libio/libioP.h: Likewise.
14035         * libio/stdio.h: Likewise.
14036         * locale/lc-ctype.c: Likewise.
14037         * locale/locale.h: Likewise.
14038         * login/utmp.h: Likewise.
14039         * malloc/arena.c: Likewise.
14040         * malloc/malloc.c: Likewise.
14041         * malloc/malloc.h: Likewise.
14042         * malloc/mcheck.c: Likewise.
14043         * malloc/mtrace.c: Likewise.
14044         * math/bits/mathcalls.h: Likewise.
14045         * math/fenv.h: Likewise.
14046         * math/math_private.h: Likewise.
14047         * misc/bits/error.h: Likewise.
14048         * misc/bits/syslog.h: Likewise.
14049         * misc/err.h: Likewise.
14050         * misc/error.h: Likewise.
14051         * misc/fstab.h: Likewise.
14052         * misc/mntent.h: Likewise.
14053         * misc/regexp.h: Likewise.
14054         * misc/search.h: Likewise.
14055         * misc/sgtty.h: Likewise.
14056         * misc/sys/mman.h: Likewise.
14057         * misc/sys/syslog.h: Likewise.
14058         * misc/sys/uio.h: Likewise.
14059         * misc/sys/xattr.h: Likewise.
14060         * misc/ttyent.h: Likewise.
14061         * nis/rpcsvc/ypclnt.h: Likewise.
14062         * nss/nss.h: Likewise.
14063         * posix/bits/unistd.h: Likewise.
14064         * posix/fnmatch.h: Likewise.
14065         * posix/glob.h: Likewise.
14066         * posix/sched.h: Likewise.
14067         * posix/spawn.h: Likewise.
14068         * posix/sys/wait.h: Likewise.
14069         * posix/unistd.h: Likewise.
14070         * posix/wordexp.h: Likewise.
14071         * pwd/pwd.h: Likewise.
14072         * resolv/netdb.h: Likewise.
14073         * resource/sys/resource.h: Likewise.
14074         * rt/aio.h: Likewise.
14075         * rt/bits/mqueue2.h: Likewise.
14076         * rt/mqueue.h: Likewise.
14077         * shadow/shadow.h: Likewise.
14078         * signal/signal.h: Likewise.
14079         * socket/send.c: Likewise.
14080         * socket/sendto.c: Likewise.
14081         * socket/sys/socket.h: Likewise.
14082         * stdio-common/printf.h: Likewise.
14083         * stdlib/bits/stdlib.h: Likewise.
14084         * stdlib/fmtmsg.h: Likewise.
14085         * stdlib/monetary.h: Likewise.
14086         * stdlib/stdlib.h: Likewise.
14087         * stdlib/ucontext.h: Likewise.
14088         * streams/stropts.h: Likewise.
14089         * string/argz.h: Likewise.
14090         * string/bits/string2.h: Likewise.
14091         * string/string.h: Likewise.
14092         * string/strings.h: Likewise.
14093         * sunrpc/rpc/auth.h: Likewise.
14094         * sunrpc/rpc/auth_des.h: Likewise.
14095         * sunrpc/rpc/clnt.h: Likewise.
14096         * sunrpc/rpc/netdb.h: Likewise.
14097         * sunrpc/rpc/pmap_clnt.h: Likewise.
14098         * sunrpc/rpc/xdr.h: Likewise.
14099         * sysdeps/generic/inttypes.h: Likewise.
14100         * sysdeps/generic/net/if.h: Likewise.
14101         * sysdeps/generic/sys/swap.h: Likewise.
14102         * sysdeps/gnu/net/if.h: Likewise.
14103         * sysdeps/gnu/utmpx.h: Likewise.
14104         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14105         * sysdeps/i386/i486/bits/string.h: Likewise.
14106         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14107         * sysdeps/s390/bits/string.h: Likewise.
14108         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14109         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14110         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14111         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14112         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14113         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14114         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14115         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14116         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14117         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14118         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14119         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14120         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14121         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14122         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14123         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14124         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14125         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14126         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14127         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14128         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14129         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14130         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14131         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14132         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14133         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14134         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14135         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14136         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14137         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14138         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14139         * sysvipc/sys/ipc.h: Likewise.
14140         * sysvipc/sys/msg.h: Likewise.
14141         * sysvipc/sys/sem.h: Likewise.
14142         * sysvipc/sys/shm.h: Likewise.
14143         * termios/termios.h: Likewise.
14144         * time/sys/time.h: Likewise.
14145         * time/time.h: Likewise.
14146         * wcsmbs/bits/wchar2.h: Likewise.
14147         * wcsmbs/uchar.h: Likewise.
14148         * wcsmbs/wchar.h: Likewise.
14149         * wctype/wctype.h: Likewise.
14150
14151         [BZ #13551]
14152         * Makeconfig: Remove all but ELF support including AIX support.
14153         * Makerules: Likewise.
14154         * config.h.in: Likewise.
14155         * config.make.in: Likewise.
14156         * configure: Likewise.
14157         * configure.in: Likewise.
14158         * csu/Makefile: Likewise.
14159         * csu/version.c: Likewise.
14160         * debug/Makefile: Likewise.
14161         * dlfcn/Makefile: Likewise.
14162         * elf/Makefile: Likewise.
14163         * extra-lib.mk: Likewise.
14164         * iconv/Makefile: Likewise.
14165         * include/libc-symbols.h: Likewise.
14166         * include/shlib-compat.h: Likewise.
14167         * resolv/Makefile: Likewise.
14168         * resolv/res_libc.c: Likewise.
14169         * rt/Makefile: Likewise.
14170         * sysdeps/i386/asm-syntax.h: Likewise.
14171         * sysdeps/i386/sysdep.h: Likewise.
14172         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14173         * sysdeps/mach/sysdep.h: Likewise.
14174         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14175         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14176         * sysdeps/s390/asm-syntax.h: Likewise.
14177         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14178         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14179         * sysdeps/sh/sysdep.h: Likewise.
14180         * sysdeps/unix/sparc/sysdep.h: Likewise.
14181         * sysdeps/wordsize-32/divdi3.c: Likewise.
14182         * sysdeps/x86_64/sysdep.h: Likewise.
14183
14184         * argp/Versions: Remove _argp_unlock_xxx.
14185
14186         [BZ #13559]
14187         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14188         * abilist/libBrokenLocale.abilist: Likewise.
14189         * abilist/libanl.abilist: Likewise.
14190         * abilist/libc.abilist: Likewise.
14191         * abilist/libcrypt.abilist: Likewise.
14192         * abilist/libdl.abilist: Likewise.
14193         * abilist/libm.abilist: Likewise.
14194         * abilist/libnsl.abilist: Likewise.
14195         * abilist/libpthread.abilist: Likewise.
14196         * abilist/libresolv.abilist: Likewise.
14197         * abilist/librt.abilist: Likewise.
14198         * abilist/libthread_db.abilist: Likewise.
14199         * abilist/libutil.abilist: Likewise.
14200         * abilist/libnss_db.abilist: New file.
14201
14202         * scripts/abilist.awk: Add support for indirect functions.
14203
14204         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14205
14206         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14207
14208         * shlib-versions: Remove entries for ports architectures.
14209
14210         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14211         files in ports.
14212         * elf/stackguard-macros.h: Remove support for IA-64.
14213         * elf/tst-auditmod1.c: Likewise.
14214         * sysdeps/generic/ldsodefs.h: Likewise.
14215
14216         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14217         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14218         configure files.
14219
14220         [BZ #13552]
14221         * configure.in: Remove --enable-omitfp support.
14222         * FAQ.in: Adjust.
14223         * config.make.in: Likewise.
14224         * Makeconfig: Likewise.
14225         * manual/install.texi: Likewise.
14226
14227         In case anyone cares, the IA-64 architecture could move to ports.
14228         * sysdeps/ia64/*: Removed.
14229         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14230         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14231
14232         [BZ #13555]
14233         * configure.in: Remove entries for unsupported architectures.
14234
14235         [BZ #13533]
14236         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14237         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14238         routines.
14239         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14240         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14241         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14242         fall back to using wcrtomb.
14243         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14244         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14245         renaming.
14246         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14247         * wcsmbs/tst-c16c32-1.c: New file.
14248
14249         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14250         local variable.
14251
14252         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14253
14254         * elf/tst-unique3.cc: Add explicit declaration of gets.
14255         * elf/tst-unique3lib.cc: Likewise.
14256         * elf/tst-unique3lib2.cc: Likewise.
14257         * elf/tst-unique4.cc: Likewise.
14258
14259         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14260
14261 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14262
14263         [BZ #13566]
14264         * assert/assert.h (static_assert): Don't define for C++.
14265         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14266         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14267
14268 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14269
14270         * iconv/loop.c (single loop): Fix assertion in storing of
14271         remaining bytes.
14272
14273         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14274
14275 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14276
14277         * posix/getconf.c: Update copyright year.
14278         * nss/getent.c: Likewise.
14279         * nss/makedb.c: Likewise.
14280         * iconv/iconvconfig.c: Likewise.
14281         * iconv/iconv_prog.c: Likewise.
14282         * elf/ldconfig.c: Likewise.
14283         * elf/pldd.c: Likewise.
14284         * elf/sotruss.ksh: Likewise.
14285         * catgets/gencat.c: Likewise.
14286         * csu/version.c: Likewise.
14287         * elf/ldd.bash.in: Likewise.
14288         * elf/sprof.c (print_version): Likewise.
14289         * locale/programs/locale.c: Likewise.
14290         * locale/programs/localedef.c: Likewise.
14291         * login/programs/pt_chown.c: Likewise.
14292         * nscd/nscd.c (print_version): Likewise.
14293         * debug/xtrace.sh: Likewise.
14294         * malloc/memusage.sh: Likewise.
14295         * malloc/mtrace.pl: Likewise.
14296         * debug/catchsegv.sh: Likewise.
14297
14298 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14299
14300         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14301         pure attribute.
14302
14303 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14304
14305         [BZ #13533]
14306         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14307         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14308         transformations.
14309         * iconv/gconv_int.h: Likewise.
14310         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14311         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14312         from libc for GLIBC_2.16.
14313         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14314         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14315         * wcsmbs/uchar.h: Really define mbstate_t.
14316         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14317         * wcsmbs/c16rtomb.c: New file.
14318         * wcsmbs/mbrtoc16.c: New file.
14319         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14320         for C/POSIX locale.
14321         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14322         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14323
14324         * wcsmbs/wchar.h: Add missing __restrict.
14325
14326 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14327
14328         [BZ #13532]
14329         * time/Makefile (routines): Add timespec_get.
14330         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14331         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14332         timespec for ISO C11.
14333         * time/timespec_get.c: New file.
14334         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14335         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14336
14337         [BZ #13531]
14338         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14339         * stdlib/stdlib.h: Declare aligned_alloc.
14340         * Versions.def: Add GLIBC_2.16 for libc.
14341         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14342
14343         [BZ 13527]
14344         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14345         ISO C11.
14346
14347         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14348         code.
14349
14350         [BZ #13528]
14351         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14352
14353         [BZ #13529]
14354         * assert/assert.h (static_assert): Define.
14355
14356         * version.h: Update for 2.16 development version.
14357
14358         [BZ #13526]
14359         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14360         _ISOC11_SOURCE.
14361
14362         * version.h (RELEASE): Bump for 2.15 release.
14363         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14364
14365         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14366         Patch by Marek Polacek <mpolacek@redhat.com>.
14367
14368         * bits/byteswap.h: Protect long long constants with __extension__.
14369         * sysdeps/i386/bits/byteswap.h: Likewise.
14370         * sysdeps/ia64/bits/byteswap.h: Likewise.
14371         * sysdeps/s390/bits/byteswap.h: Likewise.
14372         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14373
14374 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14375
14376         [BZ #13540]
14377         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14378         destination buffer.
14379         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14380
14381 2011-12-23  Marek Polacek  <polacek@redhat.com>
14382
14383         * elf/dl-addr.c (determine_info): Add inline keyword.
14384         * elf/tst-auditmod4b.c (check_avx): Likewise.
14385         * elf/tst-auditmod6b.c (check_avx): Likewise.
14386         * elf/tst-auditmod6c.c (check_avx): Likewise.
14387         * elf/tst-auditmod7b.c (check_avx): Likewise.
14388
14389 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14390
14391         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14392         !__SSE_MATH__.
14393
14394 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14395
14396         [BZ #13540]
14397         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14398         processing for last bytes.
14399
14400 2011-08-06  Bruno Haible  <bruno@clisp.org>
14401
14402         [BZ #13061]
14403         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14404         U+0385, not to U+1FEE.
14405
14406         [BZ #13062]
14407         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14408         entry for U+00A5 U+0301.
14409
14410 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14411
14412         [BZ #13166]
14413         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14414         buffer for the output is too small.
14415
14416         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14417         optimization.
14418
14419         [BZ #13185]
14420         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14421         SSE flags if possible.
14422
14423 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14424
14425         [BZ #13540]
14426         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14427         processing for last bytes.
14428
14429 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14430
14431         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14432         (syscall-list-default-options, syscall-list-default-condition)
14433         (syscall-list-includes): Define.
14434         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14435         list of ABIs and options and #if conditions for each ABI.  Do not
14436         handle common syscalls between ABIs specially.
14437         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14438         Remove.
14439         (syscall-list-variants, syscall-list-32bit-options)
14440         (syscall-list-32bit-condition, syscall-list-64bit-options)
14441         (syscall-list-64bit-condition): Define.
14442         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14443         (syscall-list-variants, syscall-list-32bit-options)
14444         (syscall-list-32bit-condition, syscall-list-64bit-options)
14445         (syscall-list-64bit-condition): Define.
14446         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14447         Remove.
14448         (syscall-list-variants, syscall-list-32bit-options)
14449         (syscall-list-32bit-condition, syscall-list-64bit-options)
14450         (syscall-list-64bit-condition): Define.
14451         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14452         Remove.
14453         (syscall-list-variants, syscall-list-32bit-options)
14454         (syscall-list-32bit-condition, syscall-list-64bit-options)
14455         (syscall-list-64bit-condition): Define.
14456
14457 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14458
14459         * locale/iso-639.def: Add brx entry.
14460
14461         [BZ #13328]
14462         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14463         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14464
14465         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14466         __feraiseexcept_renamed.
14467
14468 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14469
14470         [BZ #13538]
14471         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14472         EPOLLET with unsigned values.
14473         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14474         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14475
14476         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14477         to large cancellation.
14478         * math/s_cacoshf.c: Likewise.
14479         * math/s_cacoshl.c: Likewise.
14480
14481 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14482
14483         [BZ #13305]
14484         [BZ #12786]
14485         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14486         * math/s_cacoshf.c: Likewise.
14487         * math/s_cacoshl.c: Likewise.
14488
14489 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14490
14491         [BZ #13439]
14492         * iconv/gconv.h: Define __GCONV_SWAP.
14493         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14494         * iconvdata/utf-16.c: Likewise.
14495         * iconvdata/utf-32.c: Likewise.
14496
14497 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14498
14499         [BZ #13524]
14500         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14501         numerator after shifting it by one limb.
14502
14503 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14504
14505         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14506         under [__USE_EXTERN_INLINES].
14507
14508 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14509
14510         [BZ #13446]
14511         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14512
14513 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14514
14515         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14516         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14517         optimized code.
14518         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14519         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14520         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14521         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14522         for strncasecmp/strncasecmp_l compilation.
14523         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14524         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14525
14526 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14527
14528         [BZ #13484]
14529         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14530         of __asm__.
14531
14532 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14533
14534         [BZ #13506]
14535         * time/tzfile.c (__tzfile_read): Check values from file header.
14536
14537 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14538
14539         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14540         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14541         * powerpc/powerpc32/dl-start.S: Likewise.
14542         * powerpc/powerpc32/elf/start.S: Likewise.
14543         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14544         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14545         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14546         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14547         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14548         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14549         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14550         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14551         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14552         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14553         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14554         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14555         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14556         * powerpc/powerpc32/memset.S: Likewise.
14557         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14558         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14559         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14560         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14561         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14562         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14563         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14564         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14565         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14566         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14567         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14568         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14569         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14570
14571 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14572
14573         * math/libm-test.inc: Added more nearbyint tests.
14574         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14575         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14576         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14577         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14578
14579 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14580
14581         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14582         FD_CLOEXEC.
14583
14584 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14585
14586         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14587         Add wcscpy-ssse3 wcscpy-c.
14588         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14589         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14590         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14591         * sysdeps/x86_64/wcschr.S: New file.
14592         * sysdeps/x86_64/wcsrchr.S: New file.
14593         * string/test-strcmp.c: Remove checking of wcscmp function for
14594         wrong alignments.
14595         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14596         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14597         wcsrchr-sse2 wcsrchr-c.
14598         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14599         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14600         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14601         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14602         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14603         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14604         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14605         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14606         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14607         * wcsmbc/wcschr.c (WCSCHR): New macro.
14608
14609 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14610
14611         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14612         * wcsmbs/test-wcsrchr.c: New file.
14613         * string/test-strrchr.c: Add wcsrchr support.
14614         (WIDE): New macro.
14615         * wcsmbs/test-wcscpy.c: New file.
14616         * string/test-strcpy.c: Add wcscpy support.
14617         (WIDE): New macro.
14618
14619 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14620
14621         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14622         the inner loop.
14623
14624 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14625
14626         [BZ #13472]
14627         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14628
14629 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14630
14631         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14632         Minor optimizations.
14633
14634         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14635         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14636         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14637
14638 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14639
14640         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14641         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14642         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14643         for gcc to avoid warnings.
14644         * inet/Makefile (tests): Add tst-checks.
14645         * inet/tst-checks.c: New file.
14646
14647         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14648         warning.
14649
14650         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14651         __wmemcmp_sse2.
14652
14653         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14654         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14655
14656         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14657
14658 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14659
14660         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14661         problem.
14662
14663         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14664
14665 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14666
14667         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14668         conditional on GCC version.
14669         (__arch_compare_and_exchange_val_8_acq)
14670         (__arch_compare_and_exchange_val_16_acq)
14671         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14672         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14673         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14674
14675 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14676
14677         * sysdeps/sh/backtrace.c: New file.
14678
14679 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14680
14681         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14682         parenthesis.
14683
14684 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14685
14686         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14687         falling back to utime.
14688
14689 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14690
14691         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14692         expectations for float.
14693
14694 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14695
14696         * locale/weight.h (findidx): Add parameter len.
14697         * locale/weightwc.h (findidx): Likewise.
14698         * posix/fnmatch_loop.c (FCT): Adjust caller.
14699         * posix/regcomp.c (build_equiv_class): Likewise.
14700         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14701         * posix/regexec.c (check_node_accept_bytes): Likewise.
14702         * string/strcoll_l.c (STRCOLL): Likewise.
14703         * string/strxfrm_l.c (STRXFRM): Likewise.
14704
14705 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14706
14707         * Makefile.in: Remove CVSOPT handling.
14708         * configure.in: Remove use of AC_REVISION.
14709         * iconvdata/Makefile (distribute): No need to filter out CVS.
14710         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14711         handling.
14712
14713 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14714
14715         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14716         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14717         [USE_AS_STRNCASECMP_L]: Likewise.
14718         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14719         NO_TLS_DIRECT_SEG_REFS.
14720         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14721         Fix argument offsets for non-PIC.
14722         [USE_AS_STRNCASECMP_L]: Likewise.
14723         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14724         NO_TLS_DIRECT_SEG_REFS.
14725
14726 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14727
14728         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14729         O_CLOEXEC.
14730         * locale/loadlocale.c (_nl_load_locale): Likewise.
14731
14732 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14733
14734         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14735         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14736         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14737         (SYSCALL_GETTIME): Set errno on error.
14738
14739         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14740         count references to noai6ai_cached.
14741
14742 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14743
14744         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14745
14746         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14747         FD_CLOEXEC for /proc/self/maps.
14748
14749         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14750         FD_CLOEXEC for /proc/meminfo.
14751
14752         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14753         gai.conf.
14754
14755         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14756         FD_CLOEXEC for given file.
14757
14758         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14759
14760         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14761         FD_CLOEXEC for /etc/hosts.
14762         (_gethtent): Likewise.
14763
14764         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14765
14766         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14767         cancellation and set FD_CLOEXEC for /etc/netgroup.
14768
14769         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14770         reading /etc/publickey.
14771
14772         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14773         allow cancellation when reading /etc/group.
14774
14775         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14776         cancellation.
14777         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14778
14779         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14780         when using data file.
14781
14782         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14783
14784         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14785         (write_nis_obj): Use "c" and "e" in fopen.
14786
14787         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14788
14789         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14790
14791         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14792
14793         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14794
14795         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14796         locale.alias.
14797
14798         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14799
14800         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14801
14802         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14803
14804         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14805         file parsing and set FD_CLOEXEC.
14806
14807 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14808
14809         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14810
14811 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14812
14813         * malloc/arena.c (arena_get2): Don't call reused_arena when
14814         _int_new_arena failed.
14815
14816 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14817
14818         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14819         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14820         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14821         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14822         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14823         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14824         to compile strcasecmp and strncasecmp.
14825         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14826         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14827
14828         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14829
14830 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14831
14832         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14833         locale-defines.sym to gen-as-const-headers.
14834         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14835         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14836         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14837         to compile strcasecmp and strncasecmp.
14838         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14839         strcasecmp_l and strncasecmp_l.
14840         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14841         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14842         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14843         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14844         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14845         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14846         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14847         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14848         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14849         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14850         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14851
14852 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14853
14854         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14855         result of SYSDEP_GETTIME_CPU to retval.
14856         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14857         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14858
14859         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14860         variable.
14861
14862         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14863         mantissa words.
14864         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14865
14866         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14867         from unused variable.
14868
14869         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14870         DWARF definitions.
14871         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14872         for assembling.
14873
14874         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14875         over namespaces.
14876
14877         * sunrpc/rpc_prot.c (rejected): Fix case value.
14878
14879         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14880         unsigned long long int to avoid warnings in shift.
14881
14882         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14883         of use of trans.
14884         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14885         variable tmp.
14886
14887         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14888         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14889         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14890
14891         * nis/nis_table.c (nis_list): Use variable of correct type for
14892         result of __follow_path call.
14893
14894 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14895
14896         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14897         of math functions ceil, trunc, floor, round, and sqrt, when
14898         avaliable on the platform.
14899         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14900         name clash.
14901         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14902         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14903         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14904
14905 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14906
14907         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14908         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14909
14910 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14911
14912         * include/unistd.h: Fix __readlink return type.
14913         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14914
14915 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14916
14917         * stdlib/ucontext.h: Undo last change for makecontext.
14918
14919 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14920
14921         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14922
14923         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14924         * setjmp/setjmp.h: Mark functions as non-leaf.
14925         * setjmp/bits/setjmp2.h: Likewise.
14926         * stdlib/ucontext.h: Likewise.
14927
14928 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14929
14930         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14931         (reused_arena): Don't check arena limit.
14932         (arena_get2): Atomically check arena limit.
14933
14934 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14935
14936         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14937         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14938
14939         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14940         instructions.
14941
14942 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14943
14944         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14945         handler when locking.
14946
14947         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14948         Fix size of allocated buffer.
14949
14950 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14951
14952         [BZ #10103]
14953         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14954         declarations for long double functions.
14955         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14956
14957         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14958
14959 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14960
14961         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14962         installed.
14963
14964         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14965         is disabled.
14966
14967 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14968
14969         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14970
14971 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14972
14973         * include/alloca.h (stackinfo_alloca_round): Define.
14974         (extend_alloca): Use it.
14975         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14976         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14977         here.
14978
14979         * scripts/check-local-headers.sh: Ignore libaudit.h.
14980
14981         * nscd/Makefile (extra-objs): Make recursively expanded.
14982
14983 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14984
14985         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14986         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14987
14988         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14989         * posix/tst-rfc3484-2.c: Likewise.
14990         * posix/tst-rfc3484-3.c: Likewise.
14991
14992         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14993         process_vm_writev.
14994         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14995         process_vm_writev.
14996         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14997         process_vm_writev from libc using GLIBC_2.15 version.
14998
14999         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15000
15001 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15002
15003         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15004         stack usage.
15005
15006 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15007
15008         [BZ #13367]
15009         * nss/getent.c (initgroups_keys): Show error message in case no group
15010         names are given.
15011
15012         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15013         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15014         __bump_nl_timestamp.
15015         * nscd/connections (nscd_init): When host database is served open
15016         netlink socket and request notification about configuration changes.
15017         (main_loop_poll): Track netlink file descriptor and bump timestamp
15018         in case data becomes available.
15019         (main_loop_epoll): Likewise.
15020         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15021         (database_pers_head): Add extra_data fileds.
15022         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15023         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15024         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15025         Adjust caller.
15026         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15027         in6ai data, call __free_in6ai.
15028         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15029         Add -DHAVE_NETLINK.
15030         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15031         interface information.  Reuse previous data if netlink timestamp
15032         is not changed.
15033         (__bump_nl_timestamp): New function.
15034         (__free_in6ai): New function.
15035
15036 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15037
15038         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15039         close_not_cancel_no_status here.
15040         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15041
15042 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15043
15044         [BZ #13276]
15045         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15046         return value.
15047
15048         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15049         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15050         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15051
15052 2011-07-03  Andreas Jaeger  <aj@suse.de>
15053
15054         [BZ #10709]
15055         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15056         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15057         * math/libm-test.inc (sin_test): Add test case.
15058
15059 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15060
15061         [BZ #13337]
15062         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15063         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15064
15065         * elf/chroot_canon.c (chroot_canon): Cleanups.
15066
15067         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15068
15069         [BZ #13335]
15070         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15071         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15072
15073         * string/test-strchr.c: Make usable for strchrnul testing.
15074         * string/test-strchrnul.c: New file.
15075         * string/Makefile (strop-tests): Add strchrnul.
15076
15077         * po/it.po: Update from translation team.
15078         * po/es.po: Likewise.
15079
15080 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15081
15082         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15083         the three constants needed as parameters.  Drop the others.
15084         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15085         __m128i_strloadu_tolower.
15086         Create and initialize variable zero and use it in all the places
15087         where _mm_setzero_si128 was used.
15088
15089         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15090         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15091         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15092         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15093         anymore.
15094         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15095         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15096         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15097         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15098         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15099         __mpranred, __mptan.
15100         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15101         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15102         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15103         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15104         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15105         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15106         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15107         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15108         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15109
15110 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15111
15112         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15113         redefine if SHARED.
15114         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15115
15116         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15117         wide char related routines to wcsmbs subdir.
15118
15119 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15120
15121         [BZ #13344]
15122         * misc/sys/cdefs.h (__THROWNL): Define.
15123         * posix/unistd.h: Use __THREADNL instead of __THREAD
15124         for memory synchronization functions.
15125
15126 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15127
15128         [BZ #13349]
15129         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15130         doesn't exist.
15131         * manual/stdio.texi (Obstack Streams): Node removed.
15132
15133 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15134
15135         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15136         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15137         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15138
15139         * math/math_private.h (math_force_eval): Allow non-addressable
15140         arguments.
15141         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15142
15143 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15144
15145         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15146         file is not needed.
15147
15148         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15149         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15150         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15151         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15152         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15153         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15154         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15155         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15156         Add AVX variants.
15157         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15158         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15159         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15160         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15161         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15162         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15163         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15164         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15165         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15166         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15167         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15168         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15169         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15170         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15171         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15172         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15173         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15174         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15175         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15176
15177         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15178         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15179
15180         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15181         place.  Use VEX encoding when compiling for AVX.
15182
15183 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15184
15185         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15186         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15187
15188         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15189
15190 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15191
15192         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15193         useless if() expression.
15194         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15195         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15196         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15197         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15198         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15199         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15200         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15201         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15202         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15203         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15204         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15205         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15206         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15207         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15208         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15209         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15210         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15211         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15212         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15213
15214         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15215
15216 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15217
15218         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15219         condition.
15220         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15221
15222 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15223
15224         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15225         .text section.  Avoid duplicate constants.
15226         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15227         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15228         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15229         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15230         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15231         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15232         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15233         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15234         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15235         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15236         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15237         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15238         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15239         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15240         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15241         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15242         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15243         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15244         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15245         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15246         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15247         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15248         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15249         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15250         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15251         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15252         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15253         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15254         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15255         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15256         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15257         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15258         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15259         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15260         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15261         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15262         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15263         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15264         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15265         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15266         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15267         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15268         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15269         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15270         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15271
15272 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15273
15274         * sysdeps/x86_64/dla.h: Move to ...
15275         * sysdeps/x86_64/fpu/dla.h: ...here.
15276         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15277         situations.  Use __builtin_fma only for gcc 4.6 and up.
15278
15279         * config.make.in: Add have-mfma4 entry.
15280         * configure.in: Substitute libc_cv_cc_fma4.
15281         * math/Makefile (dbl-only-routines): Add sincostab.
15282         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15283         Use __sincostab not sincos.
15284         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15285         name is a macro.
15286         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15287         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15288         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15289         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15290         using __copysign.
15291         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15292         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15293         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15294         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15295         and __inv.
15296         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15297         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15298         __copysign.
15299         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15300         define aliases when function name is a macro.
15301         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15302         sysdeps/ieee754/dbl-64/sincos.tbl.
15303         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15304         fma4-enabled routines.
15305         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15306         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15307         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15308         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15309         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15310         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15311         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15312         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15313         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15314         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15315         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15316         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15317         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15318         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15319         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15320         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15321         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15322         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15323         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15324         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15325         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15326         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15327         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15328         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15329         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15330         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15331         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15332         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15333         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15334         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15335
15336         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15337         rename.
15338         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15339         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15340         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15341         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15342         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15345         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15346
15347 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15348
15349         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15350
15351 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15352
15353         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15354
15355         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15356         prediction.
15357         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15358
15359         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15360         Remove unused variable magic_bits.
15361         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15362
15363         * string/strnlen.c: Define and use STRNLEN macro.
15364         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15365         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15366         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15367         * wcsmbs/wcslen.c: Define and use WCSLEN.
15368         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15369         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15370         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15371         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15372         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15373         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15374         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15375
15376 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15377
15378         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15379         strnlen-sse2-no-bsf.
15380         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15381         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15382         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15383         Add strnlen support.
15384         (USE_AS_STRNLEN): New macro.
15385         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15386         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15387         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15388         * sysdeps/x86_64/wcslen.S: New file.
15389
15390 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15391
15392         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15393         XMM-moves are used for copying on small sizes.
15394
15395 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15396
15397         * wcsmbs/Makefile (strop-tests): Add wcschr.
15398         * wcsmbs/test-wcschr.c: New file.
15399         * string/test-strchr.c: Update.
15400         Add wcschr support.
15401         (WIDE): New macro.
15402
15403 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15404
15405         * wcsmbs/Makefile (strop-tests): Add wcslen.
15406         * wcsmbs/test-wcslen.c: New file.
15407         * string/test-strlen.c: Update.
15408         Add wcslen support.
15409         (WIDE): New macro.
15410
15411 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15412
15413         * po/it.po: Update from translation team.
15414
15415 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15416
15417         * sysdeps/x86_64/wcscmp.S: Update.
15418         Fix wrong comparison semantics.
15419         wcscmp shall use signed comparison not unsigned.
15420         Don't use substraction to avoid overflow bug.
15421         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15422         * wcsmbc/wcscmp.c: Likewise.
15423         * string/test-strcmp.c: Likewise.
15424         Add new tests to check cases with negative values.
15425
15426 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15427
15428         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15429         * sysdeps/x86_64/dla.h: ...here.  New file.
15430         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15431         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15432         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15433         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15434         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15435         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15436         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15437         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15438         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15439
15440 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15441
15442         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15443         __ynl_finite aliases.
15444
15445 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15446
15447         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15448
15449         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15450         define DLA_FMA.
15451         [DLA_FMA] (EMULV): Use DLA_FMA.
15452         [DLA_FMA] (MUL12): Use EMULV.
15453         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15454         that are not needed.
15455         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15456         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15457         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15458         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15459         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15460         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15461         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15462
15463 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15464
15465         * math/s_nan.c: Undef __nan.
15466         * math/s_nanf.c: Undef __nanf.
15467         * math/s_nanl.c: Undef __nanl.
15468         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15469         "math_private.h".
15470
15471 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15472
15473         * math/s_catan.c: Add branch predictions.
15474         * math/s_catanf.c: Likewise.
15475         * math/s_catanh.c: Likewise.
15476         * math/s_catanhf.c: Likewise.
15477         * math/s_catanhl.c: Likewise.
15478         * math/s_catanl.c: Likewise.
15479         * math/s_cexp.c: Likewise.
15480         * math/s_cexpf.c: Likewise.
15481         * math/s_cexpl.c: Likewise.
15482         * math/s_clog.c: Likewise.
15483         * math/s_clog10.c: Likewise.
15484         * math/s_clog10f.c: Likewise.
15485         * math/s_clog10l.c: Likewise.
15486         * math/s_clogf.c: Likewise.
15487         * math/s_clogl.c: Likewise.
15488         * math/s_csqrt.c: Likewise.
15489         * math/s_csqrtf.c: Likewise.
15490         * math/s_csqrtl.c: Likewise.
15491         * math/s_ctanf.c: Likewise.
15492         * math/s_ctanh.c: Likewise.
15493         * math/s_ctanhf.c: Likewise.
15494         * math/s_ctanhl.c: Likewise.
15495         * math/s_ctanl.c: Likewise.
15496
15497         * math/math_private.h: Define __nan, __nanf, __nanl.
15498         * math/s_cacosh.c: Include <math_private.h>.
15499         * math/s_cacoshl.c: Likewise.
15500         * math/s_casinh.c: Likewise.
15501         * math/s_casinhf.c: Likewise.
15502         * math/s_casinhl.c: Likewise.
15503         * math/s_ccos.c: Rely entire on ccosh.
15504         * math/s_ccosf.c: Rely entire on ccoshf.
15505         * math/s_ccosl.c: Rely entirely on ccoshl.
15506         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15507         Remove tests for FE_INVALID.
15508         * math/s_ccoshf.c: Likewise.
15509         * math/s_ccoshl.c: Likewise.
15510         * math/s_csin.c: Likewise.
15511         * math/s_csinf.c: Likewise.
15512         * math/s_csinh.c Likewise.
15513         * math/s_csinhf.c: Likewise.
15514         * math/s_csinhl.c: Likewise.
15515         * math/s_csinl.c: Likewise.
15516         * math/s_ctan.c: Likewise.
15517         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15518         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15519         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15520
15521 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15522
15523         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15524         compilation problems.
15525
15526         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15527         __builtin_expect.
15528
15529 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15530
15531         * sysdeps/i386/configure.in: Test for -mfma4 option.
15532         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15533         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15534         COMMON_CPUID_INDEX_80000001.
15535         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15536         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15537         use it if FMA3 is not supported.
15538         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15539
15540         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15541         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15542
15543 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15544
15545         [BZ #12892]
15546         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15547         it would create a cycle with a link time dependency.
15548
15549 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15550
15551         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15552         instruction.
15553         * string/Makefile (strop-tests): Add rawmemchr.
15554         * string/test-rawmemchr.c: New file.
15555
15556         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15557         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15558         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15559         when compiling str{,n}casecmp and when AVX is available.  Hook up
15560         new optimized code in initializers.
15561
15562 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15563
15564         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15565         __feraiseexcept instead of feraiseexcept.
15566
15567 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15568
15569         * math/math_private.h: Define defaults for libc_fetestexcept and
15570         libc_feupdateenv.
15571         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15572         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15573         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15574         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15575         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15576         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15577         libc_fetestexcept and libc_feupdateenv.
15578
15579         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15580         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15581         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15582         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15583         libc_feholdexcept_setround.
15584
15585         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15586         Add s_nearbyint-c and s_nearbyintf-c.
15587         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15588         nearbyintf inlines.
15589         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15590         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15591         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15592         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15593
15594         * math/math_private.h: Define defaults for libc_fegetround,
15595         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15596         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15597         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15598         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15599         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15600         standard functions.
15601         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15602         Remove comments and hacks for old compiler versions.
15603         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15604         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15605         libc_feholdexceptl.
15606
15607 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15608
15609         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15610         (__feraiseexcept_renamed): Add __NTH.
15611         (feraiseexcept): Add __NTH.  Rename local variables to fix
15612         namespace violations.
15613
15614 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15615
15616         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15617
15618         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15619
15620         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15621         recently added interfaces.
15622         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15623
15624         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15625         about macro parameter expansion.
15626
15627         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15628         __NO_MATH_INLINES is defined.  Cleanups.
15629
15630         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15631         and __floorf is target has SSE4.1.
15632         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15633         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15634         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15635         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15636
15637         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15638         name.
15639         (floorf): Likewise.
15640
15641         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15642
15643 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15644
15645         * misc/sys/cdefs.h: Fix last change.
15646
15647         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15648         database lookup.
15649
15650 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15651
15652         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15653
15654         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15655         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15656         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15657         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15658         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15659         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15660         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15661         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15662         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15663         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15664         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15665         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15666         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15667         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15668         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15669         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15670         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15671         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15672         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15673         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15674         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15675         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15676
15677         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15678         ceil, ceilf, floor, floorf.
15679
15680         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15681         Perform IRELATIVE relocations last.
15682
15683         * elf/do-rel.h: Add another parameter nrelative, replacing the
15684         local variable with the same name.  Change name of the function
15685         to end in Rel or Rela (uppercase).
15686         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15687         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15688         elf_dynamic_do_##reloc function.
15689
15690 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15691
15692         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15693         is sufficient, at least on modern CPUs.
15694
15695         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15696
15697         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15698         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15699
15700         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15701         __expl_finite.
15702         * math/bits/math-finite.h: Add entries for exp.
15703         * math/e_expl.c: Add __*_finite alias.
15704         * sysdeps/i386/fpu/e_exp.S: Likewise.
15705         * sysdeps/i386/fpu/e_expf.S: Likewise.
15706         * sysdeps/i386/fpu/e_expl.c: Likewise.
15707         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15708         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15709         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15710         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15711         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15712         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15713         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15714
15715         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15716         is sufficient, at least on modern CPUs.
15717
15718         * ctype/ctype-info.c (__ctype_init): Define.
15719         * include/ctype.h (__ctype_init): Declare.
15720         (__ctype_b_loc): The variable is always initialized.
15721         (__ctype_toupper_loc): Likewise.
15722         (__ctype_tolower_loc): Likewise.
15723         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15724         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15725
15726 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15727
15728         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15729
15730         * configure.in: Also look in $cxxmachine/include for C++ system
15731         headers.
15732
15733 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15734
15735         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15736         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15737         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15738         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15739         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15740         (USE_AS_WMEMCMP): New macro.
15741         Fixing indents.
15742         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15743         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15744         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15745         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15746         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15747         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15748         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15749         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15750         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15751         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15752         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15753         (USE_AS_WMEMCMP): New macro.
15754         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15755         * sysdeps/string/test-memcmp.c: Update.
15756         Fix simple_wmemcmp.
15757         Add new tests.
15758         * wcsmbs/wmemcmp.c: Update.
15759         (WMEMCMP): New macro.
15760         Fix overflow bug.
15761
15762 2011-10-12  Andreas Jaeger  <aj@suse.de>
15763
15764         [BZ #13268]
15765         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15766
15767 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15768
15769         * libio/iofwide.c (do_length): Avoid warning.
15770
15771         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15772
15773 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15774
15775         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15776
15777         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15778         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15779         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15780         * sysdeps/i386/i686/fpu/e_log.S: New file.
15781         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15782         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15783
15784         * ctype/ctype.h: Add support for inlined isXXX functions when
15785         compiling C++ code.
15786
15787 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15788
15789         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15790
15791         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15792
15793 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15794
15795         [BZ #13291]
15796         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15797
15798 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15799
15800         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15801         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15802         feraiseexcept.
15803
15804         * sysdeps/x86_64/memrchr.S: Check for zero size.
15805
15806         * string/stratcliff.c: Add memrchr tests.
15807
15808 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15809
15810         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15811         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15812         rawmemchr-sse2 rawmemchr-sse2-bsf.
15813         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15814         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15815         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15816         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15817         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15818         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15819         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15820         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15821         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15822         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15823         * string/memrchr.c (MEMRCHR): New macro.
15824
15825 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15826
15827         Add integration with gcc's -ffinite-math-only and optimize wrapper
15828         functions in libm.
15829         * Versions.def: Define GLIBC_2.15 version for libm.
15830         * math/Makefile (headers): Add bits/math-finite.h.
15831         * math/bits/math-finite.h: New file.
15832         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15833         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15834         * math/e_acoshl.c: Add __*_finite alias.
15835         * math/e_acosl.c: Likewise.
15836         * math/e_asinl.c: Likewise.
15837         * math/e_atan2l.c: Likewise.
15838         * math/e_atanhl.c: Likewise.
15839         * math/e_coshl.c: Likewise.
15840         * math/e_exp10.c: Likewise.
15841         * math/e_exp10f.c: Likewise.
15842         * math/e_exp10l.c: Likewise.
15843         * math/e_exp2l.c: Likewise.
15844         * math/e_fmodl.c: Likewise.
15845         * math/e_gammal_r.c: Likewise.
15846         * math/e_hypotl.c: Likewise.
15847         * math/e_j0l.c: Likewise.
15848         * math/e_j1l.c: Likewise.
15849         * math/e_jnl.c: Likewise.
15850         * math/e_lgammal_r.c: Likewise.
15851         * math/e_log10l.c: Likewise.
15852         * math/e_log2l.c: Likewise.
15853         * math/e_logl.c: Likewise.
15854         * math/e_powl.c: Likewise.
15855         * math/e_sinhl.c: Likewise.
15856         * math/e_sqrtl.c: Likewise.
15857         * math/e_scalb.c: Completely rewritten and optimized.
15858         * math/e_scalbf.c: Likewise.
15859         * math/e_scalbl.c: Likewise.
15860         * math/w_acos.c: Likewise.
15861         * math/w_acosf.c: Likewise.
15862         * math/w_acosl.c: Likewise.
15863         * math/w_acosh.c: Likewise.
15864         * math/w_acoshf.c: Likewise.
15865         * math/w_acoshl.c: Likewise.
15866         * math/w_asin.c: Likewise.
15867         * math/w_asinf.c: Likewise.
15868         * math/w_asinl.c: Likewise.
15869         * math/w_atan2.c: Likewise.
15870         * math/w_atan2f.c: Likewise.
15871         * math/w_atan2l.c: Likewise.
15872         * math/w_atanh.c: Likewise.
15873         * math/w_atanhf.c: Likewise.
15874         * math/w_atanhl.c: Likewise.
15875         * math/w_exp10.c: Likewise.
15876         * math/w_exp10f.c: Likewise.
15877         * math/w_exp10l.c: Likewise.
15878         * math/w_fmod.c: Likewise.
15879         * math/w_fmodf.c: Likewise.
15880         * math/w_fmodl.c: Likewise.
15881         * math/w_j0.c: Likewise.
15882         * math/w_j0f.c: Likewise.
15883         * math/w_j0l.c: Likewise.
15884         * math/w_j1.c: Likewise.
15885         * math/w_j1f.c: Likewise.
15886         * math/w_j1l.c: Likewise.
15887         * math/w_jn.c: Likewise.
15888         * math/w_jnf.c: Likewise.
15889         * math/w_log.c: Likewise.
15890         * math/w_logf.c: Likewise.
15891         * math/w_logl.c: Likewise.
15892         * math/w_log10.c: Likewise.
15893         * math/w_log10f.c: Likewise.
15894         * math/w_log10l.c: Likewise.
15895         * math/w_log2.c: Likewise.
15896         * math/w_log2f.c: Likewise.
15897         * math/w_log2l.c: Likewise.
15898         * math/w_pow.c: Likewise.
15899         * math/w_powf.c: Likewise.
15900         * math/w_powl.c: Likewise.
15901         * math/w_remainder.c: Likewise.
15902         * math/w_remainderf.c: Likewise.
15903         * math/w_remainderl.c: Likewise.
15904         * math/w_scalb.c: Likewise.
15905         * math/w_scalbf.c: Likewise.
15906         * math/w_scalbl.c: Likewise.
15907         * math/w_sqrt.c: Likewise.
15908         * math/w_sqrtf.c: Likewise.
15909         * math/w_sqrtl.c: Likewise.
15910         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15911         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15912         used.
15913         * math/math_private.h: Declare __kernel_standard_f.
15914         * math/w_cosh.c: Remove cruft and optimize a bit.
15915         * math/w_coshf.c: Likewise.
15916         * math/w_coshl.c: Likewise.
15917         * math/w_exp2.c: Likewise.
15918         * math/w_exp2f.c: Likewise.
15919         * math/w_exp2l.c: Likewise.
15920         * math/w_hypot.c: Likewise.
15921         * math/w_hypotf.c: Likewise.
15922         * math/w_hypotl.c: Likewise.
15923         * math/w_lgamma.c: Likewise.
15924         * math/w_lgamma_r.c: Likewise.
15925         * math/w_lgammaf.c: Likewise.
15926         * math/w_lgammaf_r.c: Likewise.
15927         * math/w_lgammal.c: Likewise.
15928         * math/w_lgammal_r.c: Likewise.
15929         * math/w_sinh.c: Likewise.
15930         * math/w_sinhf.c: Likewise.
15931         * math/w_sinhl.c: Likewise.
15932         * math/w_tgamma.c: Likewise.
15933         * math/w_tgammaf.c: Likewise.
15934         * math/w_tgammal.c: Likewise.
15935         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15936         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15937         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15938         Minor optimizations.  Pretty printing.  Remove cruft.
15939         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15940         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15941         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15942         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15943         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15944         * sysdeps/i386/fpu/e_asin.S: Likewise.
15945         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15946         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15947         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15948         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15949         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15950         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15951         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15952         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15953         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15954         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15955         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15956         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15957         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15958         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15959         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15960         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15961         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15962         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15963         * sysdeps/i386/fpu/e_log.S: Likewise.
15964         * sysdeps/i386/fpu/e_log10.S: Likewise.
15965         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15966         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15967         * sysdeps/i386/fpu/e_log2.S: Likewise.
15968         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15969         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15970         * sysdeps/i386/fpu/e_logf.S: Likewise.
15971         * sysdeps/i386/fpu/e_logl.S: Likewise.
15972         * sysdeps/i386/fpu/e_pow.S: Likewise.
15973         * sysdeps/i386/fpu/e_powf.S: Likewise.
15974         * sysdeps/i386/fpu/e_powl.S: Likewise.
15975         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15976         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15977         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15978         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15979         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15980         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15981         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15982         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15983         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15984         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15985         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15986         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15987         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15988         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15989         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15990         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15991         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15992         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15993         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15994         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15995         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15996         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15997         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15998         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15999         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16000         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16001         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16002         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16003         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16004         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16005         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16006         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16007         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16008         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16009         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16010         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16011         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16012         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16013         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16014         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16015         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16016         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16017         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16018         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16019         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16020         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16021         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16022         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16023         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16024         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16025         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16026         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16027         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16028         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16029         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16030         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16031         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16032         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16033         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16034         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16035         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16036         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16037         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16038         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16039         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16040         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16041         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16042         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16043         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16044         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16045         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16046         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16047         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16048         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16049         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16050         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16051         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16052         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16053         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16054         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16055         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16056         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16057         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16058         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16059         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16060         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16061         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16062         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16063         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16064         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16065         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16066         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16067         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16068         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16069         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16070         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16071         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16072         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16073         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16074         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16075         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16076         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16077         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16078         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16079         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16080         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16081         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16082         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16083         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16084         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16085         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16086         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16087         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16088         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16089         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16090         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16091         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16092         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16093         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16094         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16095         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16096         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16097         (__isnanf): Likewise.
16098         (__isinf_ns): Likewise.
16099         (__isinf_nsf): Likewise.
16100         (__finite): Likewise.
16101         (__finitef): Likewise.
16102         (__ieee754_sqrt): Define as macro.
16103         (__ieee754_sqrtf): Define as macro.
16104         (__ieee754_sqrtl): Define as macro.
16105         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16106         inlined copy.
16107         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16108         __FINITE_MATH_ONLY__ consistent.
16109         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16110
16111 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16112
16113         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16114         of rawmemchr.
16115
16116         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16117
16118 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16119
16120         * po/ja.po: Update from translation team.
16121
16122 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16123
16124         * locale/programs/locarchive.c (prepare_address_space): New function.
16125         (create_archive, enlarge_archive, open_archive): Use it.
16126
16127         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16128         inside [SHARED], where it is used.
16129
16130         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16131
16132         * nss/getent.c (netgroup_keys): Remove unused variable.
16133         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16134
16135 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16136
16137         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16138         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16139         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16140         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16141         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16142         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16143         * math/Makefile (libm-calls): Add s_isinf_ns.
16144         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16145         * math/multc3.c: Likewise.
16146         * math/s_casin.c: Likewise.
16147         * math/s_casinf.c: Likewise.
16148         * math/s_casinl.c: Likewise.
16149         * math/s_ccos.c: Likewise.
16150         * math/s_ccosf.c: Likewise.
16151         * math/s_ccosl.c: Likewise.
16152         * math/s_ctan.c: Likewise.
16153         * math/s_ctanf.c: Likewise.
16154         * math/s_ctanh.c: Likewise.
16155         * math/s_ctanhf.c: Likewise.
16156         * math/s_ctanhl.c: Likewise.
16157         * math/s_ctanl.c: Likewise.
16158         * math/w_fmod.c: Likewise.
16159         * math/w_fmodf.c: Likewise.
16160         * math/w_fmodl.c: Likewise.
16161         * math/w_remainder.c: Likewise.
16162         * math/w_remainderf.c: Likewise.
16163         * math/w_remainderl.c: Likewise.
16164         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16165         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16166         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16167         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16168         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16169         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16170         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16171         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16172
16173         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16174         of the number.
16175         * stdio-common/printf_fphex.c: Likewise.
16176         * stdio-common/printf_size.c: Likewise.
16177
16178         * math/e_exp10.c: Include math_private.h using <...> not "...".
16179         * math/e_exp10f.c: Likewise.
16180         * math/e_exp10l.c: Likewise.
16181         * math/e_exp2l.c: Likewise.
16182         * math/e_j0l.c: Likewise.
16183         * math/e_j1l.c: Likewise.
16184         * math/e_jnl.c: Likewise.
16185         * math/e_lgammal_r.c: Likewise.
16186         * math/e_rem_pio2l.c: Likewise.
16187         * math/e_scalb.c: Likewise.
16188         * math/e_scalbf.c: Likewise.
16189         * math/e_scalbl.c: Likewise.
16190         * math/k_cosl.c: Likewise.
16191         * math/k_sinl.c: Likewise.
16192         * math/k_tanl.c: Likewise.
16193         * math/s_cacoshf.c: Likewise.
16194         * math/s_catan.c: Likewise.
16195         * math/s_catanf.c: Likewise.
16196         * math/s_catanh.c: Likewise.
16197         * math/s_catanhf.c: Likewise.
16198         * math/s_catanhl.c: Likewise.
16199         * math/s_catanl.c: Likewise.
16200         * math/s_ccosh.c: Likewise.
16201         * math/s_ccoshf.c: Likewise.
16202         * math/s_ccoshl.c: Likewise.
16203         * math/s_cexp.c: Likewise.
16204         * math/s_cexpf.c: Likewise.
16205         * math/s_cexpl.c: Likewise.
16206         * math/s_clog.c: Likewise.
16207         * math/s_clog10.c: Likewise.
16208         * math/s_clog10f.c: Likewise.
16209         * math/s_clog10l.c: Likewise.
16210         * math/s_clogf.c: Likewise.
16211         * math/s_clogl.c: Likewise.
16212         * math/s_csin.c: Likewise.
16213         * math/s_csinf.c: Likewise.
16214         * math/s_csinh.c: Likewise.
16215         * math/s_csinhf.c: Likewise.
16216         * math/s_csinhl.c: Likewise.
16217         * math/s_csinl.c: Likewise.
16218         * math/s_csqrt.c: Likewise.
16219         * math/s_csqrtf.c: Likewise.
16220         * math/s_csqrtl.c: Likewise.
16221         * math/s_ctan.c: Likewise.
16222         * math/s_ctanf.c: Likewise.
16223         * math/s_ctanh.c: Likewise.
16224         * math/s_ctanhf.c: Likewise.
16225         * math/s_ctanhl.c: Likewise.
16226         * math/s_ctanl.c: Likewise.
16227         * math/s_ldexp.c: Likewise.
16228         * math/s_ldexpf.c: Likewise.
16229         * math/s_ldexpl.c: Likewise.
16230         * math/s_significand.c: Likewise.
16231         * math/s_significandf.c: Likewise.
16232         * math/s_significandl.c: Likewise.
16233         * math/w_acos.c: Likewise.
16234         * math/w_acosf.c: Likewise.
16235         * math/w_acosh.c: Likewise.
16236         * math/w_acoshf.c: Likewise.
16237         * math/w_acoshl.c: Likewise.
16238         * math/w_acosl.c: Likewise.
16239         * math/w_asin.c: Likewise.
16240         * math/w_asinf.c: Likewise.
16241         * math/w_asinl.c: Likewise.
16242         * math/w_atan2.c: Likewise.
16243         * math/w_atan2f.c: Likewise.
16244         * math/w_atan2l.c: Likewise.
16245         * math/w_atanh.c: Likewise.
16246         * math/w_atanhf.c: Likewise.
16247         * math/w_atanhl.c: Likewise.
16248         * math/w_cosh.c: Likewise.
16249         * math/w_coshf.c: Likewise.
16250         * math/w_coshl.c: Likewise.
16251         * math/w_dremf.c: Likewise.
16252         * math/w_exp10.c: Likewise.
16253         * math/w_exp10f.c: Likewise.
16254         * math/w_exp10l.c: Likewise.
16255         * math/w_exp2.c: Likewise.
16256         * math/w_exp2f.c: Likewise.
16257         * math/w_fmod.c: Likewise.
16258         * math/w_fmodf.c: Likewise.
16259         * math/w_fmodl.c: Likewise.
16260         * math/w_hypot.c: Likewise.
16261         * math/w_hypotf.c: Likewise.
16262         * math/w_hypotl.c: Likewise.
16263         * math/w_j0.c: Likewise.
16264         * math/w_j0f.c: Likewise.
16265         * math/w_j0l.c: Likewise.
16266         * math/w_j1.c: Likewise.
16267         * math/w_j1f.c: Likewise.
16268         * math/w_j1l.c: Likewise.
16269         * math/w_jn.c: Likewise.
16270         * math/w_jnf.c: Likewise.
16271         * math/w_jnl.c: Likewise.
16272         * math/w_lgamma.c: Likewise.
16273         * math/w_lgamma_r.c: Likewise.
16274         * math/w_lgammaf.c: Likewise.
16275         * math/w_lgammaf_r.c: Likewise.
16276         * math/w_lgammal.c: Likewise.
16277         * math/w_lgammal_r.c: Likewise.
16278         * math/w_log.c: Likewise.
16279         * math/w_log10.c: Likewise.
16280         * math/w_log10f.c: Likewise.
16281         * math/w_log10l.c: Likewise.
16282         * math/w_log2.c: Likewise.
16283         * math/w_log2f.c: Likewise.
16284         * math/w_log2l.c: Likewise.
16285         * math/w_logf.c: Likewise.
16286         * math/w_logl.c: Likewise.
16287         * math/w_pow.c: Likewise.
16288         * math/w_powf.c: Likewise.
16289         * math/w_powl.c: Likewise.
16290         * math/w_remainder.c: Likewise.
16291         * math/w_remainderf.c: Likewise.
16292         * math/w_remainderl.c: Likewise.
16293         * math/w_scalb.c: Likewise.
16294         * math/w_scalbf.c: Likewise.
16295         * math/w_scalbl.c: Likewise.
16296         * math/w_sinh.c: Likewise.
16297         * math/w_sinhf.c: Likewise.
16298         * math/w_sinhl.c: Likewise.
16299         * math/w_sqrt.c: Likewise.
16300         * math/w_sqrtf.c: Likewise.
16301         * math/w_sqrtl.c: Likewise.
16302         * math/w_tgamma.c: Likewise.
16303         * math/w_tgammaf.c: Likewise.
16304         * math/w_tgammal.c: Likewise.
16305
16306         * po/ja.po: Update from translation team.
16307
16308 2011-09-29  Andreas Jaeger  <aj@suse.de>
16309
16310         [BZ #13179]
16311         * sunrpc/netname.c (netname2host): Fix logic.
16312
16313         [BZ #6779]
16314         [BZ #6783]
16315         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16316         correctly.
16317         * math/w_remainder.c (__remainder): Likewise.
16318         * math/w_remainderf.c (__remainderf): Likewise.
16319         * math/libm-test.inc (remainder_test): Add test cases.
16320
16321 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16322
16323         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16324         sdiv_qrnnd.
16325
16326 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16327
16328         * string/test-memcmp.c: Avoid unncessary #defines.
16329         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16330
16331 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16332
16333         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16334         Use new sse2 version for core i3 - i7 as it's faster
16335         than sse42 version.
16336         (bit_Prefer_PMINUB_for_stringop): New.
16337         * sysdeps/x86_64/rawmemchr.S: Update.
16338         Replace with faster SSE2 version.
16339         * sysdeps/x86_64/memrchr.S: New file.
16340         * sysdeps/x86_64/memchr.S: Update.
16341         Replace with faster SSE2 version.
16342
16343 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16344
16345         * elf/dl-load.c (lose): Add cast to avoid warning.
16346
16347 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16348
16349         * po/ca.po: Update from translation team.
16350
16351         * inet/getnetgrent_r.c: Hook up nscd.
16352         * nscd/Makefile (routines): Add nscd_netgroup.
16353         (nscd-modules): Add netgroupcache.
16354         (CFLAGS-netgroupcache.c): Define.
16355         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16356         (cache_search): Add const to second parameter.
16357         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16358         INNETGR.
16359         (dbs): Add netgrdb entry.
16360         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16361         (verify_persistent_db): Handle netgrdb.
16362         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16363         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16364         GETFDNETGR.
16365         (netgroup_response_header): Define.
16366         (innetgroup_response_header): Define.
16367         (datahead): Add netgroup_response_header and innetgroup_response_header
16368         elements.
16369         * nscd/nscd.conf: Add entries for netgroup cache.
16370         * nscd/nscd.h (dbtype): Add netgrdb.
16371         (_PATH_NSCD_NETGROUP_DB): Define.
16372         (netgroup_iov_disabled): Declare.
16373         (xmalloc, xcalloc, xrealloc): Move declarations here.
16374         (cache_search): Adjust prototype.
16375         Add netgroup-related prototypes.
16376         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16377         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16378         (__nscd_innetgr): Declare.
16379         * nscd/selinux.c (perms): Use access_vector_t as element type and
16380         add netgroup-related initializers.
16381         * nscd/netgroupcache.c: New file.
16382         * nscd/nscd_netgroup.c: New file.
16383         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16384         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16385         For four parameters use innetgr.
16386         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16387         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16388         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16389         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16390
16391         * nscd/connections.c (register_traced_file): Don't register file
16392         for disabled databases.
16393
16394 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16395
16396         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16397
16398         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16399         from tree and freeing node.
16400
16401 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16402
16403         * nss/nsswitch.c (__nss_database_lookup): Handle
16404         nss_parse_service_list out of memory case.
16405
16406 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16407
16408         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16409         out of memory case.
16410
16411 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16412
16413         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16414         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16415         pass it down.
16416         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16417         elf_machine_rela, elf_machine_lazy_rel.
16418         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16419         (ELF_DYNAMIC_DO_REL): Likewise.
16420         (ELF_DYNAMIC_DO_RELA): Likewise.
16421         (ELF_DYNAMIC_RELOCATE): Likewise.
16422         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16423         to ELF_DYNAMIC_DO_REL.
16424         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16425         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16426         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16427         elf_machine_rela.
16428         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16429         skip_ifunc, don't call ifunc function if non-zero.
16430         (elf_machine_rela): Likewise.
16431         (elf_machine_lazy_rel): Likewise.
16432         (elf_machine_lazy_rela): Likewise.
16433         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16434         (elf_machine_lazy_rel): Likewise.
16435         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16436         Likewise.
16437         (elf_machine_lazy_rel): Likewise.
16438         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16439         Likewise.
16440         (elf_machine_lazy_rel): Likewise.
16441         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16442         (elf_machine_lazy_rel): Likewise.
16443         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16444         (elf_machine_lazy_rel): Likewise.
16445         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16446         (elf_machine_lazy_rel): Likewise.
16447         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16448         (elf_machine_lazy_rel): Likewise.
16449         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16450         (elf_machine_lazy_rel): Likewise.
16451         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16452         (elf_machine_lazy_rel): Likewise.
16453
16454 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16455
16456         * nss/nss_files/files-init.c (_nss_files_init): Use static
16457         initialization for all the *_traced_file variables.
16458
16459 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16460
16461         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16462
16463 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16464
16465         [BZ #13226]
16466         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16467
16468 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16469
16470         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16471         Reread the line before reparsing it.
16472
16473 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16474
16475         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16476
16477 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16478             Maxim Kuvyrkov  <maxim@codesourcery.com>
16479             Joseph Myers  <joseph@codesourcery.com>
16480
16481         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16482         if needed for __stack_chk_guard.
16483
16484 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16485
16486         * sysdeps/posix/spawni.c (script_execute): Always define it.
16487         It will be optimized away if unused.
16488         (maybe_script_execute): New function.
16489         (__spawni): Call it.
16490
16491         * Makerules: Don't include tls.make.
16492         (config-tls): Always set to thread.
16493         * tls.make.c: File removed.
16494
16495 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16496
16497         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16498         * config.make.in (CPPFLAGS-config): New substituted variable.
16499
16500 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16501
16502         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16503
16504         [BZ #13192]
16505         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16506         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16507
16508 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16509
16510         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16511         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16512         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16513         (CALL_FAIL): Likewise.
16514         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16515         (CALL_FAIL): Macro removed.
16516         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16517
16518 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16519
16520         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16521         for __FINITE_MATH_ONLY__ == 1.
16522
16523 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16524
16525         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16526         __ieee754_sqrt instead of sqrt.
16527         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16528         __ieee754_sqrtf instead of sqrtf.
16529         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16530         __floorf instead of floorf.
16531         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16532         __floorf, __truncf instead of floorf, truncf.
16533
16534 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16535
16536         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16537
16538         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16539         __extern_always_inline.
16540         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16541         32-bit.
16542
16543 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16544
16545         * elf/rtld.c (dl_main): Also relocate in dependency order when
16546         doing symbol dependency testing.
16547
16548 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16549
16550         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16551         Always define `refsym'.
16552
16553 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16554
16555         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16556         (__FD_ELT): Renamed from __FDELT.
16557         * misc/bits/select2.h (__FD_ELT): Likewise.
16558         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16559         __FD_MASK instead of __FDELT, __FDMASK.
16560         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16561         Likewise.
16562         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16563         Likewise.
16564
16565         * elf/Makefile (gen-ldd): Fix pattern.
16566
16567         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16568         (init_tls): Likewise.
16569
16570 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16571
16572         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16573
16574 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16575
16576         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16577         `struct cmsghdr *' instead of `void *'.
16578         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16579         Likewise.
16580
16581 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16582
16583         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16584         if non-absolute.
16585         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16586         ldd_rewrite_script.
16587
16588 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16589
16590         * configure.in: Remove --with-tls option.
16591         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16592         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16593         out in case it is missing.
16594         * sysdeps/ia64/elf/configure.in: Likewise.
16595         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16596         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16597         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16598         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16599         * sysdeps/sh/elf/configure.in: Likewise.
16600         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16601         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16602         * sysdeps/x86_64/elf/configure.in: Likewise.
16603         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16604         * sysdeps/mach/hurd/tls.h: Likewise.
16605
16606         [BZ #13067]
16607         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16608
16609         [BZ #13090]
16610         * configure.in: Fix use of AC_INIT.
16611
16612         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16613
16614 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16615
16616         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16617         __set_errno.
16618         * malloc/hooks.c: Likewise.
16619
16620         [BZ #11929]
16621         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16622         variables statically.
16623         (narenas): Initialize.
16624         (list_lock): Initialize.
16625         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16626         initializtion of main_arena and list_lock.  Small cleanups.
16627         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16628         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16629         Add initializers to main_arena and mp_.
16630         (malloc_state): Remove pagesize member.  Change all users to use
16631         GLRO(dl_pagesize).
16632
16633         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16634         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16635         is always initialized.
16636
16637         * malloc/malloc.c: Removed unused configurations and dead code.
16638         * malloc/arena.c: Likewise.
16639         * malloc/hooks.c: Likewise.
16640         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16641
16642         * include/tls.h: Removed.  USE___THREAD must always be defined.
16643         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16644         * elf/dl-libc.c: Likewise.
16645         * elf/dl-tsd.c: Likewise.
16646         * include/errno.h: Likewise.
16647         * include/netdb.h: Likewise.
16648         * include/resolv.h: Likewise.
16649         * inet/herrno-loc.c: Likewise.
16650         * inet/herrno.c: Likewise.
16651         * malloc/arena.c: Likewise.
16652         * malloc/hooks.c: Likewise.
16653         * malloc/malloc.c: Likewise.
16654         * resolv/res-state.c: Likewise.
16655         * resolv/res_libc.c: Likewise.
16656         * sysdeps/i386/dl-machine.h: Likewise.
16657         * sysdeps/ia64/dl-machine.h: Likewise.
16658         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16659         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16660         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16661         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16662         * sysdeps/sh/dl-machine.h: Likewise.
16663         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16664         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16665         * sysdeps/unix/i386/sysdep.S: Likewise.
16666         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16667         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16668         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16669         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16670         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16671         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16672         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16673         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16674         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16675         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16676         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16677         * sysdeps/x86_64/dl-machine.h: Likewise.
16678         * tls.make.c: Likewise.
16679
16680         * configure.in: Remove --with-__thread option.  Make tests for
16681         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16682         tls_model attribute fail if no support is available.  Remove
16683         USE_IN_LIBIO.
16684         * Makeconfig: Adjust for dropped configure option.  All features are
16685         now mandatory.
16686         * Makerules: Likewise.
16687         * Versions.def: Likewise.
16688         * argp/argp-fmtstream.c: Likewise.
16689         * argp/argp-fmtstream.h: Likewise.
16690         * argp/argp-help.c: Likewise.
16691         * assert/assert.c: Likewise.
16692         * config.h.in: Likewise.
16693         * config.make.in: Likewise.
16694         * configure: Likewise.
16695         * configure.in: Likewise.
16696         * csu/Versions: Likewise.
16697         * csu/init.c: Likewise.
16698         * elf/tst-audit2.c: Likewise.
16699         * elf/tst-tls10.c: Likewise.
16700         * elf/tst-tls10.h: Likewise.
16701         * elf/tst-tls11.c: Likewise.
16702         * elf/tst-tls12.c: Likewise.
16703         * elf/tst-tls14.c: Likewise.
16704         * elf/tst-tlsmod11.c: Likewise.
16705         * elf/tst-tlsmod12.c: Likewise.
16706         * elf/tst-tlsmod13.c: Likewise.
16707         * elf/tst-tlsmod13a.c: Likewise.
16708         * elf/tst-tlsmod14a.c: Likewise.
16709         * elf/tst-tlsmod15b.c: Likewise.
16710         * elf/tst-tlsmod16a.c: Likewise.
16711         * elf/tst-tlsmod16b.c: Likewise.
16712         * elf/tst-tlsmod7.c: Likewise.
16713         * elf/tst-tlsmod8.c: Likewise.
16714         * elf/tst-tlsmod9.c: Likewise.
16715         * gmon/gmon.c: Likewise.
16716         * grp/fgetgrent_r.c: Likewise.
16717         * grp/putgrent.c: Likewise.
16718         * hurd/fopenport.c: Likewise.
16719         * include/libc-symbols.h: Likewise.
16720         * include/tls.h: Likewise.
16721         * intl/gettextP.h: Likewise.
16722         * intl/loadinfo.h: Likewise.
16723         * locale/global-locale.c: Likewise.
16724         * locale/localeinfo.h: Likewise.
16725         * mach/devstream.c: Likewise.
16726         * malloc/arena.c: Likewise.
16727         * malloc/set-freeres.c: Likewise.
16728         * misc/err.c: Likewise.
16729         * misc/getttyent.c: Likewise.
16730         * misc/mntent_r.c: Likewise.
16731         * posix/getopt.c: Likewise.
16732         * posix/wordexp.c: Likewise.
16733         * pwd/fgetpwent_r.c: Likewise.
16734         * resolv/Versions: Likewise.
16735         * resolv/res_hconf.c: Likewise.
16736         * shadow/fgetspent_r.c: Likewise.
16737         * shadow/putspent.c: Likewise.
16738         * stdio-common/printf_fphex.c: Likewise.
16739         * stdio-common/tmpfile.c: Likewise.
16740         * stdlib/abort.c: Likewise.
16741         * stdlib/fmtmsg.c: Likewise.
16742         * sunrpc/auth_unix.c: Likewise.
16743         * sunrpc/clnt_perr.c: Likewise.
16744         * sunrpc/clnt_tcp.c: Likewise.
16745         * sunrpc/clnt_udp.c: Likewise.
16746         * sunrpc/clnt_unix.c: Likewise.
16747         * sunrpc/openchild.c: Likewise.
16748         * sunrpc/svc_simple.c: Likewise.
16749         * sunrpc/svc_tcp.c: Likewise.
16750         * sunrpc/svc_udp.c: Likewise.
16751         * sunrpc/svc_unix.c: Likewise.
16752         * sunrpc/xdr.c: Likewise.
16753         * sunrpc/xdr_array.c: Likewise.
16754         * sunrpc/xdr_rec.c: Likewise.
16755         * sunrpc/xdr_ref.c: Likewise.
16756         * sunrpc/xdr_stdio.c: Likewise.
16757
16758 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16759
16760         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16761
16762 2011-07-03  Andreas Jaeger  <aj@suse.de>
16763
16764         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16765         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16766         regenerate with gen-libm-tests.pl.
16767
16768 2010-05-12  Petr Baudis  <pasky@suse.cz>
16769
16770         [BZ #11589]
16771         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16772         around j0() zero points by switching to j1().
16773         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16774         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16775         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16776         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16777
16778 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16779
16780         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16781         instead of 0.
16782         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16783         instead of 0.                              .
16784         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16785         Patch in part by Pavel Roskin <proski@gnu.org>.
16786
16787         [BZ #13138]
16788         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16789         realloc.
16790         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16791         Free memory block if necessary.
16792
16793         [BZ #12847]
16794         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16795         be NULL.  Don't lock in this case.
16796
16797 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16798
16799         * elf/elf.h (ELFOSABI_GNU): New macro.
16800         (ELFOSABI_LINUX): Define to that.
16801
16802 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16803
16804         * string/strncat.c (strncat): Undef the symbol in case it has been
16805         defined in bits/string.h.
16806
16807 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16808
16809         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16810
16811         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16812         link map.
16813
16814 2011-08-17  Andreas Jaeger  <aj@suse.de>
16815
16816         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16817
16818 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16819             Ian Lance Taylor  <iant@google.com>
16820
16821         * math/libm-test.inc (lround_test): New testcase.
16822         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16823
16824 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16825
16826         * Makefile: Remove support for automatic cvs check-ins.
16827         * Makerules: Likewise.
16828         * config.make.in: Likewise.
16829         * configure.in: Likewise.
16830         * intl/Makefile: Likewise.
16831         * locale/Makefile: Likewise.
16832         * po/Makefile: Likewise.
16833         * posix/Makefile: Likewise.
16834         * sysdeps/gnu/Makefile: Likewise.
16835         * sysdeps/mach/hurd/Makefile: Likewise.
16836         * sysdeps/sparc/sparc32/Makefile: Likewise.
16837
16838         [BZ #13118]
16839         * posix/Makefile (bug-regex32-ENV): Define.
16840         Patch by John Stanley <jpsinthemix@verizon.net>.
16841
16842         * misc/Makefile (headers): Add bits/select2.h.
16843         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16844         * misc/bits/select2.h: New file.
16845         * include/bits/select2.h: New file.
16846         * debug/Makefile (routines): Add fdelt_chk.
16847         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16848         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16849         FD_ISSET.
16850         * debug/fdelt_chk.c: New file.
16851
16852         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16853         * wcsmbs/test-wmemcmp.c: Likewise.
16854         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16855         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16856
16857 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16858
16859         * string/Makefile (strop-tests): Add memcmp.
16860         * string/test-wmemcmp.c: New file.
16861         * string/test-memcmp.c: Add wmemcmp support.
16862
16863 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16864
16865         [BZ #13153]
16866         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16867         2011-07-19 change.
16868
16869         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16870         garbage value in a __mach_port_mod_refs call in the cases of the
16871         task-self and thread-self ports.
16872
16873 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16874
16875         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16876
16877 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16878
16879         * elf/dl-load.c (lose): Check for non-null L.
16880
16881 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16882
16883         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16884
16885         * elf/dl-libc.c (dlerror_run): Pass back error code from
16886         dl_catch_error.
16887
16888         [BZ #13123]
16889         * elf/dl-load.c (lose): Free l_origin if it is valid.
16890
16891         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16892         names.
16893         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16894         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16895         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16896         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16897         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16898         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16899
16900 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16901
16902         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16903         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16904         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16905         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16906         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16907         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16908         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16909         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16910         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16911         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16912
16913 2011-08-15  Alan Modra  <amodra@gmail.com>
16914
16915         [BZ #13092]
16916         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16917         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16918         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16919         ppc_mcount to static-only-routines.
16920         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16921         __mcount_internal.
16922         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16923         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16924
16925 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16926
16927         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16928         for finite and infinity parameters.
16929
16930 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16931
16932         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16933         and add nop instructions for throughput optimization.
16934         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16935
16936 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16937
16938         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16939         aligned copy for power7 with vector-scalar instructions.
16940         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16941
16942 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16943
16944         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16945         AVX check.
16946
16947 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16948
16949         [BZ #13144]
16950         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16951         last change.
16952
16953 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16954
16955         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16956         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16957         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16958         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16959         clock_gettime.
16960
16961 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16962
16963         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16964         Forgot to demangle the pointer.
16965
16966         * sysdeps/i386/sysdep.h: Define atom_text_section.
16967         * sysdeps/x86_64/sysdep.h: Likewise.
16968         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16969         section with atom_text_section.
16970         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16971         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16972         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16973         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16974         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16975
16976         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16977         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16978         already be defined.  Change to take two parameters and don't assign
16979         result to variable.  Adjust all users.
16980         Define INTERNAL_GETTIME if not already defined.
16981         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16982         call.
16983         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16984         HAVE_CLOCK_GETTIME_VSYSCALL.
16985         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16986
16987         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16988         gettimeofday vsyscall, just use time.
16989
16990 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16991
16992         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16993         <errno.h>.
16994
16995 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16996
16997         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16998         syscall on x86-64.
16999         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17000         syscall.
17001         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17002         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17003         syscall if possible.
17004
17005 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17006
17007         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17008         e_ident.  Don't pass to find_mapsXX.
17009         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17010
17011 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17012
17013         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17014         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17015         * sysdeps/x86_64/multiarch/strchr.S: Update.
17016         Check bit_slow_BSF bit.
17017         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17018         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17019         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17020
17021 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17022
17023         [BZ #13134]
17024         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17025         before glibc 2.15.
17026         (tryshell): Define.
17027         (__spawni): Change last parameter to be flag.  Test
17028         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17029         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17030         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17031         * posix/spawni.c: Likewise.
17032         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17033         * posix/spawnp.c: Likewise.  Change normal version to use
17034         SPAWN_XFLAGS_USE_PATH.
17035         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17036         SPAWN_XFLAGS_TRY_SHELL.
17037
17038         [BZ #13150]
17039         * posix/glob.h: Remove gcc 1.x support.
17040
17041         [BZ #13068]
17042         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17043
17044 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17045
17046         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17047         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17048         strrchr-sse2-bsf
17049         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17050         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17051         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17052         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17053         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17054         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17055
17056 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17057
17058         * sysdeps/x86_64/wcscmp.S: New file.
17059
17060         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17061         wcscmp-c wcscmp-sse2
17062         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17063         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17064         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17065         * wcsmbs/wcscmp.c: Allow renaming.
17066
17067 2011-09-05  David S. Miller  <davem@davemloft.net>
17068
17069         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17070         stack slot, rather than the struct return pointer slot.
17071         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17072         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17074         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17075
17076 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17077
17078         * po/ja.po: Update from translation team.
17079
17080         [BZ #13144]
17081         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17082         kernel in 64-bit binaries.
17083
17084 2011-09-01  David S. Miller  <davem@davemloft.net>
17085
17086         * elf/elf.h (HWCAP_SPARC_*): Move to..
17087         * sysdeps/sparc/sysdep.h: this new file and add new values.
17088         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17089         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17090         _DL_HWCAP_COUNT to 24.
17091         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17092         entries.
17093         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17094         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17095         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17096         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17097         instead of magic constants.
17098         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17099
17100 2011-08-31  David S. Miller  <davem@davemloft.net>
17101
17102         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17103         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17104         Reimplement to do errno handling inline.
17105         (SYSCALL_ERROR_HANDLER): New macro.
17106         (__SYSCALL_STRING): Do not do errno handling in asm.
17107         (__CLONE_SYSCALL_STRING): Delete.
17108         (__INTERNAL_SYSCALL_STRING): Delete.
17109         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17110         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17111         (PSEUDO): Reimplement to do errno handling inline.
17112         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17113         (SYSCALL_ERROR_HANDLER): New macro.
17114         (__SYSCALL_STRING): Do not do errno handling in asm.
17115         (__CLONE_SYSCALL_STRING): Delete.
17116         (__INTERNAL_SYSCALL_STRING): Delete.
17117         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17118         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17119         i386.
17120         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17121         (inline_syscall*): Add 'err' argument.
17122         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17123         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17124         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17125         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17126
17127         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17128         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17129
17130 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17131
17132         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17133
17134 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17135
17136         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17137         directive.
17138
17139 2011-08-24  David S. Miller  <davem@davemloft.net>
17140
17141         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17142
17143 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17144
17145         * elf/Makefile: Add rules to build and run unload8 test.
17146         * elf/unload8.c: New file.
17147         * elf/unload8mod1.c: New file.
17148         * elf/unload8mod1x.c: New file.
17149         * elf/unload8mod2.c: New file.
17150         * elf/unload8mod3.c: New file.
17151
17152         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17153         it wasn't used.
17154
17155 2011-08-23  David S. Miller  <davem@davemloft.net>
17156
17157         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17158         subtract stack bias.
17159         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17160         %sp not %fp in calculations.
17161         (_JMPBUF_UNWINDS_ADJ): Likewise.
17162
17163         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17164         (aio_suspend): Call it to force an exception region around the
17165         AIO_MISC_WAIT() invocation.
17166
17167 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17168
17169         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17170         backslash.
17171
17172 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17173
17174         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17175         protection macro.
17176         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17177         and <dl-machine.h>.
17178         (Elf64_FuncDesc): Remove.
17179
17180 2011-08-22  David S. Miller  <davem@davemloft.net>
17181
17182         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17183         sigaltstack check, add missing cfi directives.
17184         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17185         missing cfi directives, and sigaltstack handling.
17186
17187 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17188
17189         [BZ #11724]
17190         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17191         object is seen twice.
17192         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17193
17194         * elf/Makefile (distribute): Add tst-initorder2.c.
17195         (tests): Add tst-initorder2.
17196         (modules-names): Add tst-initorder2a tst-initorder2b
17197         tst-initorder2c tst-initorder2d.  Add rules to build them.
17198         ($(objpfx)tst-initorder2.out): New rule.
17199         * elf/tst-initorder2.c: New file.
17200         * elf/tst-initorder2.exp: New file.
17201
17202 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17203
17204         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17205
17206         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17207         dependencies back to end of function.
17208
17209         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17210         $(elfobjdir)/ld.so.
17211
17212 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17213
17214         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17215         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17216         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17217         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17218         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17219         of __vdso_gettimeofday.
17220         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17221         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17222         attribute_hidden.
17223         (_libc_vdso_platform_setup): Remove initialization of
17224         __vdso_gettimeofday and __vdso_time.
17225
17226 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17227
17228         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17229         and fgetc_unlocked.
17230         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17231         getc_unlocked.
17232
17233         * elf/dl-open.c (add_to_global): Report additions to the global scope
17234         for LD_DEBUG=scopes.
17235         (dl_open_worker): Also print scope of newly loaded dependencies.
17236         (_dl_show_scope): Indicate if there is no scope.
17237
17238         [BZ #13114]
17239         * stdio-common/Makefile (tests): Add bug24.
17240         * stdio-common/bug24.c: New file.
17241
17242 2011-08-19  Andreas Jaeger  <aj@suse.de>
17243
17244         [BZ #13114]
17245         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17246         non-existant file when using close-on-exec mode.
17247
17248 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17249
17250         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17251         the very first instruction.
17252
17253         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17254         the CFI state in the end.
17255         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17256         inclusion of dl-trampoline.h.
17257         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17258
17259 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17260
17261         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17262         expectations for long double.
17263
17264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17265         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17266
17267 2011-08-14  David S. Miller  <davem@davemloft.net>
17268
17269         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17270         artificual limit depends upon the system page size.
17271
17272 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17273
17274         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17275         * resolv/Makefile: Define CFLAGS-libresolv.
17276
17277 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17278
17279         * nss/makedb.c (compute_tables): Make variables used in nested
17280         function static.
17281
17282 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17283
17284         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17285         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17286         if buffer was too small.
17287
17288         * elf/pldd.c (main): Attach to all threads in the process.
17289         Rewrite /proc handling to use *at functions.
17290
17291 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17292
17293         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17294         specifies first scope to show.
17295         (dl_open_worker): Update callers.  Move printing scope of new
17296         object to before the relocation.
17297         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17298         * sysdeps/generic/ldsodefs.h: Update declaration.
17299
17300         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17301         string for the scope number.
17302
17303 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17304
17305         * nscd/servicescache.c (cache_addserv): Make sure written is always
17306         initialized.
17307
17308 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17309
17310         * sysdeps/i386/i486/bits/atomic.h
17311         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17312         statement expression, so as to suppress "set but not used" warning.
17313         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17314
17315         * string/strncat.c (STRNCAT): Use prototype definition.
17316
17317         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17318         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17319         -Iprograms here.
17320         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17321         (localedef-modules): Add localedef.
17322         (locale-modules): Add locale.
17323
17324         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17325         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17326         to avoid a warning.
17327
17328 2011-08-14  David S. Miller  <davem@davemloft.net>
17329
17330         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17331         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17332
17333 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17334
17335         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17336         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17337         * elf/rtld.c (dl_main): Set l_name of vDSO.
17338         Call _dl_show_scope when DL_DEBUG_SCOPES.
17339         (process_dl_debug): Recognize scopes flag and also set it for all.
17340         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17341         Declare _dl_show_scope.
17342
17343         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17344         (do_dlopen): Pass caller_dlopen to dl_open.
17345         (__libc_dlopen_mode): Initialize caller_dlopen.
17346
17347         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17348         of libc.  Make tolower call locale-independent.  Optimize a bit by
17349         using isdigit instead of isalnum.
17350         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17351
17352 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17353
17354         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17355         was a dependency or dynamically loaded.
17356
17357 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17358
17359         * intl/l10nflist.c: Allow architecture-specific pop function.
17360         * sysdeps/x86_64/l10nflist.c: New file.
17361
17362         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17363         classification.
17364
17365 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17366
17367         * include/dirent.h: Add libc_hidden_proto for scandirat and
17368         scandirat64.  Don't declare __scandirat64.
17369         * dirent/scandirat.c: Add libc_hidden_def.
17370         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17371         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17372
17373 2011-08-10  David S. Miller  <davem@davemloft.net>
17374
17375         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17376         enum.
17377         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17378         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17379         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17380
17381 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17382
17383         * Versions.def [libc]: Add GLIBC_2.15.
17384         * dirent/Makefile (routines): Add scandirat and scandirat64.
17385         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17386         GLIBC_2.15.
17387         * dirent/dirent.h: Declare scandirat and scandirat64.
17388         * dirent/scandirat.c: New file.
17389         * dirent/scandirat64.c: New file.
17390         * sysdeps/wordsize-64/scandirat.c: New file.
17391         * sysdeps/wordsize-64/scandirat64.c: New file.
17392         * dirent/opendir.c: Define opendirat.
17393         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17394         using scandirat.
17395         * dirent/scandir64.c: Adjust for scandir.c change.
17396         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17397         __scandirat64, and __scandir_cancel_handler.
17398         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17399         additional parameter and use openat instead of open (outside of ld.so).
17400         Add new __opendir as wrapper around __opendirat.
17401         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17402         here without requiring old scandirat implementation.
17403
17404 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17405
17406         * dirent/scandir.c (cancel_handler): Renamed to
17407         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17408         defined.  Adjust users.
17409         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17410         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17411
17412 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17413
17414         * string/test-string.h (IMPL): Use __STRING to expand name and then
17415         stringify it.
17416
17417         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17418         of cleanups.
17419
17420 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17421
17422         * string/Makefile: Update.
17423         (strop-tests): Append strncat.
17424         * string/test-wcscmp.c: New file.
17425         New comprehensive test for wcscmp.
17426         * string/test-strcmp.c: Update.
17427         (WIDE): New define.
17428
17429 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17430
17431         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17432         line.
17433
17434 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17435
17436         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17437         encoding to ACE if AI_IDN.
17438
17439 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17440
17441         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17442         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17443
17444 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17445
17446         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17447         Fix overflow bug in strncat.
17448         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17449
17450         * string/test-strncat.c: Update.
17451         Add new tests for checking overflow bugs.
17452
17453 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17454
17455         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17456         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17457         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17458         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17459         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17460         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17461         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17462         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17463         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17464
17465         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17466         (USE_AS_STRCAT): Define.
17467         Add strcat and strncat support.
17468         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17469
17470 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17471
17472         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17473         __n bigger than INT_MAX+1.
17474         (__strncmp_g): Likewise.
17475
17476 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17477
17478         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17479         * libio/stido.h: Likewise.
17480
17481         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17482         (AF_NFC): Define.
17483         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17484         (AF_NFC): Define.
17485
17486         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17487         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17488         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17489         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17490         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17491
17492         [BZ #13021]
17493         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17494         installed.
17495
17496         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17497         typo.
17498         (_dl_x86_64_save_sse): Likewise.
17499
17500 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17501
17502         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17503         OSXSAVE.
17504         (_dl_x86_64_save_sse): Likewise.
17505
17506         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17507
17508         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17509
17510 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17511
17512         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17513         change.
17514         (_dl_x86_64_save_sse): Use correct AVX check.
17515
17516 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17517
17518         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17519         bug in strncpy/strncat.
17520         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17521
17522 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17523
17524         * string/tester.c (test_strcat): Add tests for different alignments
17525         of source and destination.
17526         (test_strncat): Likewise.
17527
17528 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17529
17530         [BZ #12852]
17531         * posix/glob.c (glob): Check passed in values before using them in
17532         expressions to avoid some overflows.
17533         (glob_in_dir): Likewise.
17534
17535         [BZ #13007]
17536         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17537         check for AVX enablement so that we don't crash with old kernels and
17538         new hardware.
17539         * elf/tst-audit4.c: Add same checks here.
17540         * elf/tst-audit6.c: Likewise.
17541
17542         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17543
17544 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17545
17546         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17547
17548 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17549
17550         * po/cs.po: Update from translation team.
17551         * po/bg.po: Likewise.
17552
17553 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17554
17555         * misc/sys/cdefs.h: Add support for const attribute.
17556         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17557         to gnu_dev_{major,minor,makedev} functions.
17558
17559 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17560
17561         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17562
17563 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17564
17565         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17566         strlen results.
17567
17568 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17569
17570         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17571         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17572         register in order to avoid conflicts with the soft frame pointer
17573         being held in r11 when necessary.
17574         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17575         (INTERNAL_VSYSCALL_NCS): Likewise.
17576
17577 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17578
17579         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17580         * elf/dl-fini.c (_dl_fini): Adjust caller.
17581         * elf/dl-close.c (_dl_close_worker): Likewise.
17582         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17583
17584 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17585
17586         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17587         "aux_cache->nlibs < 0".
17588
17589         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17590         in the reload-count case.
17591
17592 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17593
17594         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17595         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17596         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17597         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17598         * sysdeps/x86_64/multiarch/strcat.S: New file.
17599         * sysdeps/x86_64/multiarch/strncat.S: New file.
17600         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17601         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17602         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17603         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17604         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17605         (USE_AS_STRCAT): Define.
17606         Add strcat and strncat support.
17607         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17608         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17609         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17610         * string/strncat.c: Update.
17611         (USE_AS_STRNCAT): Define.
17612         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17613         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17614         and i7.
17615         * sysdeps/x86_64/multiarch/init-arch.h
17616         (bit_Prefer_PMINUB_for_stringop): New.
17617         (index_Prefer_PMINUB_for_stringop): Likewise.
17618         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17619         bit_Prefer_PMINUB_for_stringop.
17620
17621 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17622
17623         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17624         buffer64.
17625         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17626         of casting of buffer.
17627         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17628         buffer32 and buffer64.
17629         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17630         writes instead of casting of buffer.
17631         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17632         buffer32.
17633         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17634         casting of buffer.
17635
17636 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17637
17638         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17639
17640 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17641
17642         * nscd/nscd.c (termination_handler): Don't do anything for a database
17643         if it has not yet been initialized.
17644
17645 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17646
17647         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17648
17649 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17650
17651         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17652
17653 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17654
17655         * po/nl.po: Update from translation team.
17656         * po/sv.po: Likewise.
17657
17658 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17659
17660         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17661         now disallowed by GCC.
17662
17663         * configure.in (use-default-link): Default to yes if a test -shared
17664         link meets our qualifications.
17665         * configure: Regenerated.
17666
17667         * config.make.in (output-format): New variable.
17668         * configure.in: Check for ld --print-output-format support.
17669         * configure: Regenerated.
17670         * Makerules ($(common-objpfx)format.lds)
17671         [$(output-format) != unknown]: Just use $(output-format),
17672         instead of the linker-script munging.
17673
17674 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17675
17676         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17677         of $(common-objpfx)shlib.lds.
17678         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17679
17680         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17681         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17682
17683         * configure.in (-z relro check): Adjust test code to add a large
17684         writable data section after it.
17685         * configure: Regenerated.
17686
17687 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17688
17689         * configure.in (-z relro check): Fix test code to make the variable
17690         truly const.
17691         * configure: Regenerated.
17692
17693 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17694
17695         * nscd/nscd.h (struct traced_file): Define.
17696         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17697         elements.  Add traced_files.
17698         (inotify_fd): Declare.
17699         (register_traced_file): Declare.
17700         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17701         (inotify_fd): Export.
17702         (resolv_conf_descr): Remove.
17703         (nscd_init): Move inotify descriptor creation to main.
17704         Don't register files for notification here.
17705         (register_traced_file): New function.
17706         (invalidate_cache): Don't use reset_res to determine whether to call
17707         res_init, go through the list of registered files.
17708         (main_loop_poll): The inotify descriptors are now stored in the
17709         structures for the traced files.
17710         (main_loop_epoll): Likewise
17711         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17712         to __nss_disable_nscd.
17713         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17714         for a database anymore.  Check the records for all the registered
17715         files instead.
17716         * nss/Makefile (libnss_files-routines): Add files-init.
17717         (libnss_db-routines): Add db-init.
17718         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17719         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17720         * nss/nss_db/db-init.c: New file.
17721         * nss/nss_files/files-init.c: New file.
17722         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17723         __nss_lookup_function.
17724         (__nss_lookup_function): Call nss_load_library.
17725         (nss_load_all_libraries): New function.
17726         (__nss_disable_nscd): Take parameter with callback function for files
17727         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17728         used for the cached services.
17729         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17730         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17731         options for features to all the files in nscd.
17732
17733         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17734
17735 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17736
17737         * csu/elf-init.c (__libc_csu_init): Comment typo.
17738
17739 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17740
17741         * po/pl.po: Update from translation team.
17742         * po/ja.po: Likewise.
17743         * po/ru.po: Likewise.
17744         * po/ko.po: Likewise.
17745         * po/fr.po: Likewise.
17746
17747 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17748
17749         * configure.in (.ctors/.dtors header and trailer check):
17750         Use an empirical test on a built program.
17751         * configure: Regenerated.
17752
17753         * configure.in (-z relro check): Use an empirical test on a built DSO.
17754         Detect, but do not require, on ia64.
17755         * configure: Regenerated.
17756
17757         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17758         Update tests that use readelf to use $READELF instead.
17759         * configure: Regenerated.
17760
17761 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17762
17763         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17764         if the result is not used.
17765
17766 2011-07-05  Andreas Jaeger  <aj@suse.de>
17767
17768         [BZ#9696]
17769         * stdlib/tst-strtod.c: Add testcase.
17770
17771 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17772
17773         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17774         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17775         The latter has a higher limit.  Take additional parameter to pass to
17776         the new function.
17777         (__pathconf): Pass file to __statfs_link_max.
17778         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17779         __statfs_link_max.
17780         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17781         __statfs_link_max.
17782
17783         [BZ #12868]
17784         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17785         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17786         Handle Lustre.
17787         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17788         (__statfs_filesize_max): Likewise.
17789         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17790
17791 2011-07-05  Andreas Jaeger  <aj@suse.de>
17792
17793         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17794
17795 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17796
17797         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17798         `status' variable.
17799         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17800         Likewise.
17801
17802 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17803
17804         * Makefile (strop-tests): Add strncat.
17805         * string/test-strncat.c: New file.
17806
17807 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17808
17809         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17810
17811 2011-06-21  Andreas Jaeger  <aj@suse.de>
17812
17813         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17814         Copy rule from iconvdata/Makefile.
17815
17816 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17817
17818         [BZ #12922]
17819         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17820         but no long options are defined, just return 'W'.
17821
17822 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17823
17824         [BZ #9696]
17825         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17826
17827 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17828
17829         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17830         netgroups to read.
17831         (innetgr): Likewise.
17832
17833 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17834
17835         * config.make.in (install_root): Default to $(DESTDIR).
17836
17837 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17838
17839         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17840
17841 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17842
17843         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17844
17845         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17846         containing directory rather than embedding absolute directory names.
17847
17848         * scripts/check-local-headers.sh: Rewritten using awk.
17849         Match by word, not by line.  Print error messages for matches.
17850         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17851
17852         * Makerules [shlib-lds-flags empty]:
17853         ($(common-objpfx)libc_pic.opts): New target.
17854         ($(common-objpfx)libc_pic.os.clean): New target.
17855         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17856
17857         * config.make.in (OBJCOPY): New variable.
17858         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17859         * configure: Regenerated.
17860
17861         * config.make.in (use-default-link): New variable.
17862         * configure.in (use_default_link): Grok --with-default-link to set it.
17863         * configure: Regenerated.
17864         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17865         (shlib-lds, shlib-lds-flags): Define to empty.
17866
17867         * Makerules (shlib-lds): New variable.
17868         (shlib-lds-flags): New variable.
17869         (build-shlib, build-moduile, build-module-asneeded): Use it.
17870         ($(common-objpfx)libc.so): Use $(shlib-lds).
17871         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17872         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17873
17874         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17875         DT_FLAGS/DT_FLAGS_1 with zero flags.
17876
17877         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17878         linker script munging.
17879
17880 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17881
17882         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17883         as 128-bit value.
17884         * crypt/sha512.c (sha512_process_block): Perform total addition using
17885         128-bit if possible.
17886         (__sha512_finish_ctx): Likewise.
17887         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17888         as 64-bit value.
17889         * crypt/sha256.c (SWAP64): Define.
17890         (sha256_process_block): Perform total addition using 64-bit if
17891         possible.
17892         (__sha256_finish_ctx): Likewise.
17893
17894 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17895
17896         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17897         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17898         * nscd/hstcache.c (cache_addhst): Likewise.
17899         * nscd/grpcache.c (cache_addgr): Likewise.
17900         * nscd/aicache.c (addhstaiX): Likewise
17901         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17902
17903 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17904
17905         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17906         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17907         * nscd/hstcache.c (cache_addhst): Likewise.
17908         * nscd/grpcache.c (cache_addgr): Likewise.
17909         * nscd/aicache.c (addhstaiX): Likewise
17910
17911 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17912
17913         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17914         domain only when needed.
17915
17916 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17917
17918         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17919         is always restored.
17920
17921 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17922
17923         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17924         are re-adding the entry.
17925         * nscd/servicescache.c (cache_addserv): Likewise.
17926
17927 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17928
17929         * sysdeps/generic/dl-irel.h: fix protection against multiple
17930         inclusions.
17931         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17932
17933 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17934
17935         [BZ #12935]
17936         * malloc/memusage.sh: Fix quoting in message.
17937         * debug/xtrace.sh: Likewise.
17938
17939         * configure.in: Remove support for --experimental-malloc option, make
17940         it the default.
17941         * config.make.in: Likewise.
17942         * malloc/Makefile: Likewise.
17943
17944 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17945
17946         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17947         two-byte characters.
17948
17949 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17950
17951         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17952         AC_CACHE_CHECK invocation.
17953         * configure: Regenerated.
17954
17955         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17956
17957 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17958
17959         [BZ #12350]
17960         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17961         bit from old_res_options.
17962
17963         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17964
17965         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17966         value type for setfct.
17967
17968 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17969
17970         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17971         __gettimeofday instead of gettimeofday.
17972
17973 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17974
17975         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17976
17977 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17978
17979         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17980
17981         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17982         info.
17983
17984 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17985
17986         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17987         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17988         strcpy-sse2-unaligned strncpy-sse2-unaligned
17989         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17990         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17991         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17992         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17993         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17994         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17995         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17996         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17997         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17998         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17999         (STRCPY): Support SSE2 and SSSE3 versions.
18000
18001 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18002
18003         [BZ #12874]
18004         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18005         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18006         kernels which artificially limit size of requests.
18007
18008 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18009
18010         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18011         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18012         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18013         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18014         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18015         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18016         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18017         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18018         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18019         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18020         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18021         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18022         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18023         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18024         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18025         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18026         Enable unaligned load optimization for Intel Core i3, i5 and i7
18027         processors.
18028         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18029         Define.
18030         (index_Fast_Unaligned_Load): Define.
18031         (HAS_FAST_UNALIGNED_LOAD): Define.
18032
18033 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18034
18035         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18036
18037 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18038
18039         [BZ #12907]
18040         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18041         until it is clear that the information is realy needed.
18042         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18043
18044 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18045
18046         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18047
18048 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18049
18050         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18051         /sys/devices/system/cpu/online if it is usable.
18052
18053         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18054         reading the information from the /proc filesystem to once a second.
18055
18056 2011-06-21  Andreas Jaeger  <aj@suse.de>
18057
18058         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18059         NULL after inclusion of kernel headers.
18060
18061 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18062
18063         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18064         calls to internal_setent.
18065
18066         [BZ #12885]
18067         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18068         addresses using gethostbyname4_r ignore IPv4 addresses.
18069
18070         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18071         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18072
18073         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18074
18075 2011-06-20  David S. Miller  <davem@davemloft.net>
18076
18077         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18078         inclusions.
18079         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18080
18081         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18082         (elf_irel): Use it.
18083         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18084         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18085         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18086         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18087         * sysdeps/x86_64/dl-irel.h: Likewise.
18088
18089         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18090         * elf/dl-sym.c: Likewise.
18091
18092 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18093
18094         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18095         need to dereference resplen2.
18096
18097 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18098
18099         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18100
18101 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18102
18103         * Makeconfig: Define vardbdir and inst_vardbdir.
18104         * nss/Makefile: Add rules to install db-Makefile.
18105
18106         * nss/nss_db/db-XXX.c: Cleanup.
18107
18108         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18109         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18110         GLIBC_PRIVATE.
18111         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18112         * nss/makedb.c: Implement -g option to specify that value strings
18113         are generated and should not be added to table iterated over for
18114         get*ent calls.
18115         * nss/nss_db/db-initgroups.c: New file.
18116
18117         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18118         interface.
18119
18120         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18121         (internal_getgrouplist): Adjust to name change.
18122         Update use_initgroups_entry if this is not the first call.
18123         * nss/databases.def: Add initgroups entry.
18124
18125         * nss/makedb.c (compute_tables): Check result of multiple hash table
18126         sizes to minimize maximum chain length.
18127
18128 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18129
18130         * Versions.def: Add entry for libnss_db.
18131         * shlib-versions: Likewise.
18132         * nss/Makefile: Add rules to build libnss_db.
18133         * nss/Versions: Add libnss_db information.  Organize libnss_files
18134         entries better.
18135         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18136         makedb progra.  Some minor improvements to generate smaller files.
18137         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18138         here from...
18139         * nss/makedb.c: ...here.
18140         Improve database format to be smaller and require less memory at
18141         runtime.
18142         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18143         db anymore.
18144         * nss/nss_db/db-netgrp.c: Likewise.
18145         * nss/nss_db/db-open.c: Likewise.
18146         * nss/nss_files/flies-XXX.x: Adjust comments.
18147         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18148         * nss/nss_files/files-grp.c: Likewise.
18149         * nss/nss_files/files-hosts.c: Likewise.
18150         * nss/nss_files/files-network.c: Likewise.
18151         * nss/nss_files/files-proto.c: Likewise.
18152         * nss/nss_files/files-pwd.c: Likewise.
18153         * nss/nss_files/files-rpc.c: Likewise.
18154         * nss/nss_files/files-service.c: Likewise.
18155         * nss/nss_files/files-sgrp.c: Likewise.
18156         * nss/nss_files/files-spwd.c: Likewise.
18157         * nss/nss_db/db-alias.c: Removed.
18158         * nss/nss_db/dummy-db.h: Removed.
18159
18160 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18161
18162         * nss/makedb.c: Rewritten to not use database library.
18163         * nss/Makefile: Update to build new makedb program.
18164
18165 2011-06-14  Andreas Jaeger  <aj@suse.de>
18166
18167         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18168         memset declaration.
18169
18170 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18171
18172         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18173         tmpbuf.
18174
18175 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18176
18177         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18178         * elf/Makefile ($(objpfx)ld.so): Likewise.
18179
18180         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18181         Don't list ld.so twice in dependencies.
18182
18183         * posix/bug-regex31.c: Include <stdlib.h>.
18184
18185         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18186
18187         * nis/nss_compat/compat-spwd.c
18188         (getspent_next_nss_netgr): Remove unused variable.
18189         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18190
18191         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18192         nonmembers" output to use the right array.
18193
18194         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18195
18196         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18197
18198         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18199         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18200         * catgets/gencat.c (read_input_file): Likewise.
18201         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18202
18203         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18204         variable definition inside #if's controlling its use.
18205
18206         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18207
18208         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18209
18210         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18211
18212         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18213         unreachable code.
18214
18215         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18216
18217         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18218         * configure: Regenerated.
18219
18220         * Makerules: Revert last change.
18221         * elf/Makefile: Likewise.
18222
18223 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18224
18225         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18226         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18227         (reloc-link): Likewise.
18228
18229 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18230
18231         * elf/Makefile: Add rules to build pldd.
18232         * elf/pldd.c: New file.
18233         * elf/pldd-xx.c: New file.
18234
18235 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18236
18237         * version.h: Update for 2.15 development version.
18238
18239 2011-06-07  David S. Miller  <davem@davemloft.net>
18240
18241         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18242         ifuncs.
18243         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18244         elf_machine_lazy_rel): Likewise.
18245         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18246         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18247         elf_machine_lazy_rel): Likewise.
18248         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18249         dl_hwcap via passed in argument.
18250         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18251         Likewise.
18252
18253 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18254
18255         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18256
18257 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18258
18259         [BZ #12849]
18260         * manual/fdl-1.1.texi: New file, verbatim from:
18261         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18262         * manual/lgpl-2.1.texi: New file, verbatim from:
18263         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18264         * manual/Makefile (licenses): New variable, list those new file names.
18265         (texis): Use it.
18266         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18267
18268         * manual/fdl.texi: File removed.
18269         * manual/lesser.texi: File removed.
18270         * manual/libc.texinfo (Copying, Documentation License):
18271         Use new @include file names, put @appendix directive before @include.
18272
18273 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18274
18275         [BZ #12841]
18276         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18277         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18278         (mq_open): Add __NTH.
18279
18280 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18281
18282         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18283         Assume Intel Core i3/i5/i7 processor if AVX is available.
18284
18285 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18286
18287         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18288         typo.
18289
18290 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18291
18292         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18293         memory.  Use alloca_account.  Fix memory leak when retrying.
18294
18295 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18296
18297         * version.h (RELEASE): Bump for 2.14 release.
18298         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18299
18300         * config.make.in (RANLIB): Remove entry.
18301
18302 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18303
18304         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18305         (libc.pot): Work around missing support for .ksh extension in xgettext.
18306
18307         [BZ #12684]
18308         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18309         if both request failed.
18310         (send_dg): In case of server errors clear resplen or *resplen2.
18311
18312         [BZ #12454]
18313         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18314         when there are multiple maps.
18315         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18316         (_dl_fini): Remove test here.
18317
18318         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18319
18320 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18321
18322         [BZ #12350]
18323         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18324         bit from old_res_options.
18325         (gaih_inet): Likewise.
18326
18327         [BZ #11099]
18328         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18329         as signed.
18330
18331         * resolv/res_init.c (res_setoptions): Make the code more compact.
18332
18333         [BZ #11558]
18334         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18335         set RES_USEVC.
18336
18337         [BZ #11634]
18338         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18339
18340         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18341
18342         [BZ #11781]
18343         * malloc/malloc.h: Declare malloc hook variables as volatile.
18344
18345         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18346         in last patch.
18347
18348         [BZ #11799]
18349         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18350         raise in the comment.
18351         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18352         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18353         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18354
18355 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18356
18357         [BZ #12811]
18358         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18359         grow the buffers more if it already has to be sufficient.
18360         (build_wcs_upper_buffer): Likewise.
18361         * posix/regexec.c (check_matching): Likewise.
18362         (clean_state_log_if_needed): Likewise.
18363         (extend_buffers): Don't enlarge buffers beyond size of the input
18364         buffer.
18365         Patches mostly by Emil Wojak <emil@wojak.eu>.
18366         * posix/bug-regex32.c: New file.
18367         * posix/Makefile (tests): Add bug-regex32.
18368
18369         * locale/findlocale.c (_nl_find_locale): Return right away if
18370         _nl_explode_name failed.
18371         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18372
18373         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18374
18375         * debug/xtrace.sh: Unify messages.
18376         * malloc/memusage.sh: Likewise.
18377
18378         [BZ #12813]
18379         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18380         time symbol from vDSO.  Substitute with vsyscall if not available.
18381         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18382         __vdso_time.
18383
18384         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18385         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18386         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18387         Add sendmmsg and internal_sendmmsg.
18388         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18389         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18390         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18391
18392         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18393         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18394         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18395
18396 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18397
18398         [BZ #12813]
18399         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18400         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18401         available.
18402         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18403         __vdso_getcpu.
18404
18405         [BZ #12814]
18406         * iconvdata/Makefile (tests): Add bug-iconv9.
18407         * iconvdata/bug-iconv9.c: New file.
18408
18409 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18410
18411         [BZ #12814]
18412         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18413
18414 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18415
18416         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18417         (struct user_regs_struct): Change intcs field back to cs.
18418
18419 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18420
18421         * po/ja.po: Update from translation team.
18422
18423 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18424
18425         [BZ #12795]
18426         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18427         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18428
18429 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18430
18431         * stdlib/longlong.h: Update from GCC.
18432
18433 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18434
18435         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18436         parameter name.
18437         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18438         Add parameter name.
18439         (__sysconf): Pass it down.
18440
18441 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18442
18443         [BZ #12671]
18444         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18445         some situations.
18446         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18447         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18448         add in in __libc_use_alloca calls.  Adjust callers.
18449         (glob): Use malloc in some situations.
18450
18451         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18452         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18453         pltexit.
18454
18455 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18456
18457         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18458         and CLOCK_BOOTTIME_ALARM.
18459
18460         [BZ #12782]
18461         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18462         is returned.
18463
18464         * string/_strerror.c (__strerror_r): Print negative errors as signed
18465         numbers.
18466
18467         [BZ #12777]
18468         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18469         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18470         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18471
18472         * configure.in: Fix typo in redirection and correct removal of test
18473         files in two cases.
18474
18475         [BZ #12788]
18476         * locale/setlocale.c (new_composite_name): Fix test to check for
18477         identical name of all categories.
18478
18479         [BZ #12792]
18480         * libio/filedoalloc.c (local_isatty): New function.
18481         (_IO_file_doallocate): Use local_isatty.
18482         * stdio-common/perror.c (perror): In case a new stream is used
18483         forward the stream error.
18484         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18485         error flag.
18486
18487 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18488
18489         [BZ #11869]
18490         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18491         alloca.
18492         * include/alloca.h (extend_alloca_account): Define.
18493
18494         [BZ #11857]
18495         * posix/regex.h: Fix comments with documentation of user-accessible
18496         fields after compilation and describe correct free'ing of pattern
18497         after re_compile_pattern.
18498         Patch by Reuben Thomas <rrt@sc3d.org>.
18499
18500 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18501
18502         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18503         and -mno-altivec to prevent the compiler from using Altivec and/or
18504         VSX instructions when the corresponding registers are not available.
18505
18506 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18507
18508         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18509
18510 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18511
18512         * libio/freopen.c (freopen): Use __dup2, not dup2.
18513         * libio/freopen64.c (freopen64): Likewise.
18514
18515 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18516
18517         [BZ #12775]
18518         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18519         * math/Makefile (tests): Add test-powl.
18520         (CFLAGS-test-powl.c): Define.
18521         * math/test-powl.c: New file.
18522
18523 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18524
18525         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18526
18527 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18528
18529         [BZ #11837]
18530         * iconvdata/gb18030.c: Update to GB18020-2005.
18531
18532 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18533
18534         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18535         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18536         Patch by Aharon Robbins <arnold@skeeve.com>.
18537
18538         [BZ #11892]
18539         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18540         on the stack.
18541
18542         [BZ #11895]
18543         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18544         through underflows.
18545
18546         [BZ #12766]
18547         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18548         point to strings before performing equality test for error_one_per_line
18549         mode.
18550
18551         [BZ #11697]
18552         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18553
18554         [BZ #11820]
18555         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18556         (struct user_fpregs_struct): Avoid __uint*_t types.
18557
18558         [BZ #6420]
18559         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18560         symbol info.  Use it instead of calling _dl_addr locally.
18561         (lock_and_info): New function.
18562         (tr_freehook): Call lock_and_info and pass symbol info as additional
18563         parameter to tr_where.
18564         (tr_mallochook): Likewise.
18565         (tr_reallochook): Likewise.
18566         (tr_memalignhook): Likewise.
18567
18568         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18569         used and couldn't be at all thread-safe.
18570
18571 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18572
18573         * libio/freopen.c (freopen): Don't close old file descriptor
18574         before the new one is opened.  Instead dup the new file descriptor
18575         to the old one after the new stream is created.
18576         * libio/freopen64.c (freopen64): Likewise.
18577         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18578         * libio/fileops.c (_IO_new_file_close_it): Handle new
18579         _IO_FLAGS2_NOCLOSE flag.
18580         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18581         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18582         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18583         _IO_FLAGS2_NOCLOSE flag.
18584         * include/unistd.h: Add hidden_proto for dup3.
18585         Define __have_dup3.
18586         * io/dup3.c: Define hidden symbol.
18587         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18588
18589         [BZ #7101]
18590         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18591         when an incomplete long option is used.
18592         * posix/tst-getopt_long1.c: New file.
18593         * posix/Makefile (tests): Add tst-getopt_long1.
18594
18595         [BZ #10138]
18596         * scripts/config.guess: Update from autoconf-2.68.
18597         * scripts/config.sub: Likewise.
18598
18599         [BZ #10157]
18600         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18601         tests into ...
18602         (has_cpuclock): ...this.  New function.
18603         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18604         macro here based on has_cpuclock code.
18605
18606         [BZ #10149]
18607         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18608         First byte (not low byte) is now always NUL.
18609         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18610
18611         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18612         Use non-cancelable interfaces.
18613
18614         [BZ #9809]
18615         * locale/iso-639.def: Add entry for Sorani.
18616
18617         [BZ #11901]
18618         * include/stdlib.h: Move include protection to the right place.
18619         Define abort_msg_s.  Declare __abort_msg with it.
18620         * stdlib/abort.c (__abort_msg): Adjust type.
18621         * assert/assert.c (__assert_fail_base): New function.  Majority
18622         of code from __assert_fail.  Allocate memory for __abort_msg with
18623         mmap.
18624         (__assert_fail): Now call __assert_fail_base.
18625         * assert/assert-perr.c: Remove bulk of implementation.  Use
18626         __assert_fail_base.
18627         * include/assert.hL Declare __assert_fail_base.
18628         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18629         mmap.
18630         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18631
18632 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18633
18634         [BZ #11952]
18635         [BZ #12453]
18636         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18637         until all modules are registered in the DTV.
18638         * elf/Makefile: Add rules to build and run tst-tls19.
18639         * elf/tst-tls19.c: New file.
18640         * elf/tst-tls19mod1.c: New file.
18641         * elf/tst-tls19mod2.c: New file.
18642         * elf/tst-tls19mod3.c: New file.
18643         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18644
18645         [BZ #12083]
18646         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18647         correctly.
18648
18649         [BZ #12601]
18650         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18651         two-byte sequence errors.
18652         * iconvdata/Makefile (tests): Add bug-iconv8.
18653         * iconvdata/bug-iconv8.c: New file.
18654
18655         [BZ #12626]
18656         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18657         buf2 definition.
18658
18659         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18660
18661         [BZ #12432]
18662         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18663         (dummy_getcfa): New function.
18664         (init): Get _Unwind_GetCFA address, use dummy if not found.
18665         (backtrace_helper): In recursion check, also check whether CFA changes.
18666         (__backtrace): Completely initialize arg.
18667
18668         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18669         storing incomplete byte sequence in state object.  Avoid testing for
18670         guaranteed too small input if we know there is enough data available.
18671
18672 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18673
18674         * Makeconfig (+link-pie): Indent.
18675         * Rules (binaries-pie): Define if $(have-fpie) and
18676         $(build-shared).
18677         (binaries-shared): Also filter out $(binaries-pie).
18678         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18679         * nscd/Makefile (others-pie): Add nscd.
18680         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18681         ($(objpfx)nscd): Remove command override.
18682         * login/Makefile (others-pie): Add pt_chown.
18683         ($(objpfx)pt_chown): Remove command override.
18684         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18685         remove command overrides.
18686
18687 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18688
18689         * libio/tst_putwc.c: Fix error messages.
18690
18691         [BZ #12724]
18692         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18693         currently writing and seek to current position when not.
18694         * libio/Makefile (tests): Add bug-fclose1.
18695         * libio/bug-fclose1.c: New file.
18696
18697 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18698
18699         [BZ #12511]
18700         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18701         don't set DF_1_NODELETE here.
18702         (do_lookup_x): When entering new entry test for copy relocation
18703         and if necessary set DF_1_NODELETE flag.
18704         * elf/tst-unique4.cc: New file.
18705         * elf/tst-unique4.h: New file.
18706         * elf/tst-unique4lib.cc: New file.
18707         * elf/Makefile: Add rules to build and run tst-unique4.
18708         Patch by Piotr Bury <pbury@goahead.com>.
18709
18710 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18711
18712         [BZ #12052]
18713         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18714
18715         [BZ #12625]
18716         * misc/mntent_r.c (addmntent): Flush the stream after the output
18717
18718         [BZ #12393]
18719         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18720         (is_trusted_path_normalize): Skip initial colon.  Append slash
18721         to empty buffer.  Duplicate is_trusted_path code but allow
18722         constructed patch to be prefix.
18723         (is_dst): Allow $ORIGIN followed by /.
18724         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18725         Correct testing of result of is_trusted_path_normalize
18726         (decompose_rpath): Fix warning.
18727
18728 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18729
18730         [BZ #11257]
18731         * grp/initgroups.c (internal_getgrouplist): When we found the service
18732         list through the initgroups entry in nsswitch.conf do not always
18733         continue on a successful lookup.  Don't always use the
18734         __nss_group_database value if it is set.
18735         * nss/nsswitch.conf (initgroups): Change action for successful db
18736         lookup to continue for compatibility.
18737
18738 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18739
18740         [BZ #11532]
18741         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18742         and CP774 modules.
18743         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18744         and CP774 modules.
18745         * iconvdata/tst-tables.sh: Likewise.
18746         * iconvdata/cp770.c: New file.
18747         * iconvdata/cp771.c: New file.
18748         * iconvdata/cp772.c: New file.
18749         * iconvdata/cp773.c: New file.
18750         * iconvdata/cp774.c: New file.
18751         * iconvdata/testdata/CP770: New file.
18752         * iconvdata/testdata/CP770..UTF8: New file.
18753         * iconvdata/testdata/CP771: New file.
18754         * iconvdata/testdata/CP771..UTF8: New file.
18755         * iconvdata/testdata/CP772: New file.
18756         * iconvdata/testdata/CP772..UTF8: New file.
18757         * iconvdata/testdata/CP773: New file.
18758         * iconvdata/testdata/CP773..UTF8: New file.
18759         * iconvdata/testdata/CP774: New file.
18760         * iconvdata/testdata/CP774..UTF8: New file.
18761
18762         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18763         END CHARMAP line.
18764         * iconvdata/gen-8bit-gap.sh: Likewise.
18765         * iconvdata/gen-8bit.sh: Likewise.
18766
18767         * locale/iso-639.def: Add ary entry.
18768
18769         [BZ #11258]
18770         * locale/C-translit.h.in: Add U20A1 transliteration.
18771
18772         [BZ #12178]
18773         * locale/iso-639.def: Add wae entry.
18774         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18775
18776         [BZ #12545]
18777         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18778         for n.
18779
18780         [BZ #12711]
18781         * locale/C-translit.h.in: Add entry for U20B9.
18782         Patch by pravin.d.s@gmail.com.
18783
18784 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18785
18786         [BZ #12713]
18787         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18788         ENAMETOOLONG use generic getcwd.
18789         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18790         in rtld.  Use *stat64.
18791         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18792         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18793         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18794         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18795         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18796         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18797         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18798         __fstatat64 macros.
18799         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18800         * dirent/rewinddir.c: Add libc_hidden_def.
18801         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18802         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18803
18804         * include/dirent.h (__alloc_dir): Add flags parameter.
18805         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18806         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18807         __alloc_dir.
18808         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18809         from fdopendir if O_CLOEXEC is already set.
18810
18811 2011-03-15  Alan Modra  <amodra@gmail.com>
18812
18813         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18814         l_tls_firstbyte_offset non-zero.  Save padding offset in
18815         l_tls_firstbyte_offset for later use.
18816         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18817         freeing static tls block.
18818
18819 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18820
18821         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18822         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18823         being defined by the kernel headers.
18824
18825 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18826
18827         [BZ #12734]
18828         * resolv/resolv.h: Define RES_NOTLDQUERY.
18829         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18830         no-tld-query and set RES_NOTLDQUERY.
18831         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18832         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18833         modern BIND to search name as TLD unless forbidden.
18834
18835 2011-05-07  Petr Baudis  <pasky@suse.cz>
18836             Ulrich Drepper  <drepper@gmail.com>
18837
18838         [BZ #12393]
18839         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18840         (is_trusted_path): ...to here.
18841         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18842         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18843         using is_trusted_path_normalize() in setuid scripts.
18844
18845 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18846
18847         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18848         __BEGIN/__END_DECLS.
18849
18850 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18851
18852         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18853         NSS_STATUS_NOTFOUND if no record was found.
18854
18855 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18856
18857         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18858         (headers-not-in-tirpc): Remove rpc/netdb.h
18859         * resolv/netdb.h: Revert last change.
18860
18861 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18862
18863         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18864         circular dependency between libgcc.a and libc.a.
18865
18866 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18867
18868         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18869         * nis/Makefile: Don't install rpcsvc/*.
18870         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18871         instead of <rpc/types.h>.
18872         (MAXHOSTNAMELEN): Define.
18873
18874 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18875
18876         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18877
18878 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18879
18880         [BZ #12714]
18881         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18882         gethostbyname4_r when IPv6 results are possible.
18883
18884 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18885
18886         [BZ #12723]
18887         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18888         _PC_PIPE_BUF handling.
18889
18890 2011-04-30  Bruno Haible  <bruno@clisp.org>
18891
18892         [BZ #12717]
18893         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18894         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18895         to 'int'.
18896         * inet/getnameinfo.c (getnameinfo): Likewise.
18897
18898 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18899
18900         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18901         to groups setting in database lookup.
18902         * nss/nsswitch.conf: Add initgroups entry.
18903
18904 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18905
18906         [BZ #12685]
18907         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18908         mode string.
18909         Patch by Eric Blake <eblake@redhat.com>.
18910
18911 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18912
18913         * sunrpc/Makefile (need-export-routines): Add svc_run.
18914         (routines): Remove svc_run.
18915         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18916         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18917         * sunrpc/svc_run.c (svc_run): Likewise.
18918         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18919
18920 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18921
18922         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18923         problem in reallocation in last patch.
18924
18925 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18926
18927         * sunrpc/Makefile: Move inclusion of Rules.
18928
18929 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18930
18931         * nss/nss_files/files-initgroups.c: New file.
18932         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18933         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18934         _nss_files_initgroups_dyn.
18935
18936 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18937
18938         * elf/elf.h (R_ARM_IRELATIVE): Define.
18939
18940 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18941
18942         * po/ru.po: Update from translation team.
18943
18944 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18945
18946         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18947         dependencies.
18948
18949 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18950
18951         [BZ #12653]
18952         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18953         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18954         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18955         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18956         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18957
18958 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18959
18960         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18961         differing bytes.
18962         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18963         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18964         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18965
18966 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18967
18968         [BZ #12420]
18969         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18970         storing it.
18971         * stdlib/bug-getcontext.c: New file.
18972         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18973
18974 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18975
18976         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18977         instructions into .machine "z9-109".
18978         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18979         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18980
18981 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18982
18983         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18984         between environment variables and auxiliary vector.
18985
18986 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18987
18988         * Makefile: Add rules to build linkobj/libc.so.
18989         * include/libc-symbols.h: Define libc_hidden_nolink.
18990         * include/rpc/auth.h: Mark functions which are to be hidden.
18991         * include/rpc/auth_des.h: Likewise.
18992         * include/rpc/auth_unix.h: Likewise.
18993         * include/rpc/clnt.h: Likewise.
18994         * include/rpc/des_crypt.h: Likewise.
18995         * include/rpc/key_prot.h: Likewise.
18996         * include/rpc/pmap_clnt.h: Likewise.
18997         * include/rpc/pmap_prot.h: Likewise.
18998         * include/rpc/pmap_rmt.h: Likewise.
18999         * include/rpc/rpc_msg.h: Likewise.
19000         * include/rpc/svc.h: Likewise.
19001         * include/rpc/svc_auth.h: Likewise.
19002         * include/rpc/xdr.h: Likewise.
19003         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19004         * nss/Makefile: Likewise.
19005         * sunrpc/Makefile: Don't install headers.  Build library with normal
19006         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19007         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19008         for the compat linking library.  Remove use of INTDEF/INTUSE.
19009         * sunrpc/auth_none.c: Likewise.
19010         * sunrpc/auth_unix.c: Likewise.
19011         * sunrpc/authdes_prot.c: Likewise.
19012         * sunrpc/authuxprot.c: Likewise.
19013         * sunrpc/clnt_gen.c: Likewise.
19014         * sunrpc/clnt_perr.c: Likewise.
19015         * sunrpc/clnt_raw.c: Likewise.
19016         * sunrpc/clnt_simp.c: Likewise.
19017         * sunrpc/clnt_tcp.c: Likewise.
19018         * sunrpc/clnt_udp.c: Likewise.
19019         * sunrpc/clnt_unix.c: Likewise.
19020         * sunrpc/des_crypt.c: Likewise.
19021         * sunrpc/des_soft.c: Likewise.
19022         * sunrpc/get_myaddr.c: Likewise.
19023         * sunrpc/key_call.c: Likewise.
19024         * sunrpc/key_prot.c: Likewise.
19025         * sunrpc/netname.c: Likewise.
19026         * sunrpc/pm_getmaps.c: Likewise.
19027         * sunrpc/pm_getport.c: Likewise.
19028         * sunrpc/pmap_clnt.c: Likewise.
19029         * sunrpc/pmap_prot.c: Likewise.
19030         * sunrpc/pmap_prot2.c: Likewise.
19031         * sunrpc/pmap_rmt.c: Likewise.
19032         * sunrpc/publickey.c: Likewise.
19033         * sunrpc/rpc_cmsg.c: Likewise.
19034         * sunrpc/rpc_common.c: Likewise.
19035         * sunrpc/rpc_dtable.c: Likewise.
19036         * sunrpc/rpc_prot.c: Likewise.
19037         * sunrpc/rpc_thread.c: Likewise.
19038         * sunrpc/rtime.c: Likewise.
19039         * sunrpc/svc.c: Likewise.
19040         * sunrpc/svc_auth.c: Likewise.
19041         * sunrpc/svc_authux.c: Likewise.
19042         * sunrpc/svc_raw.c: Likewise.
19043         * sunrpc/svc_run.c: Likewise.
19044         * sunrpc/svc_simple.c: Likewise.
19045         * sunrpc/svc_tcp.c: Likewise.
19046         * sunrpc/svc_udp.c: Likewise.
19047         * sunrpc/svc_unix.c: Likewise.
19048         * sunrpc/svcauth_des.c: Likewise.
19049         * sunrpc/xcrypt.c: Likewise.
19050         * sunrpc/xdr.c: Likewise.
19051         * sunrpc/xdr_array.c: Likewise.
19052         * sunrpc/xdr_float.c: Likewise.
19053         * sunrpc/xdr_intXX_t.c: Likewise.
19054         * sunrpc/xdr_mem.c: Likewise.
19055         * sunrpc/xdr_rec.c: Likewise.
19056         * sunrpc/xdr_ref.c: Likewise.
19057         * sunrpc/xdr_sizeof.c: Likewise.
19058         * sunrpc/xdr_stdio.c: Likewise.
19059
19060 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19061
19062         [BZ #12650]
19063         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19064         * sysdeps/ia64/dl-tls.h: Likewise.
19065         * sysdeps/powerpc/dl-tls.h: Likewise.
19066         * sysdeps/s390/dl-tls.h: Likewise.
19067         * sysdeps/sh/dl-tls.h: Likewise.
19068         * sysdeps/sparc/dl-tls.h: Likewise.
19069         * sysdeps/x86_64/dl-tls.h: Likewise.
19070         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19071
19072 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19073
19074         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19075         rpath element also skip the following colon.
19076         (expand_dynamic_string_token): Add is_path parameter and pass
19077         down to DL_DST_REQUIRED and _dl_dst_substitute.
19078         (decompose_rpath): Call expand_dynamic_string_token with
19079         non-zero is_path.  Ignore empty rpaths.
19080         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19081         with zero is_path.
19082
19083 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19084
19085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19086         Make cancelable.
19087
19088 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19089
19090         [BZ #12655]
19091         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19092         Patch by Filipe David Manana <fdmanana@apache.org>.
19093
19094 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19095
19096         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19097         Maintain aligned stack.
19098         (CHECK_RSP): Remove unused macro.
19099
19100 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19101
19102         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19103         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19104
19105 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19106
19107         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19108
19109         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19110
19111 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19112
19113         [BZ #12518]
19114         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19115         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19116         * sysdeps/x86_64/memmove.c: New file.
19117         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19118         (memcpy): Renamed to ...
19119         (__new_memcpy): This.
19120         (memcpy): Provide GLIBC_2_14 memcpy.
19121         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19122         (memcpy): Provide GLIBC_2_2_5 memcpy.
19123
19124 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19125
19126         [BZ #12631]
19127         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19128
19129 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19130
19131         * misc/syncfs.c: New file.
19132         * misc/Makefile (routines): Add syncfs.
19133         * posix/unistd.h: Declare syncfs.
19134         * sysdeps/unix/syscalls.list: Add syncfs.
19135
19136 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19137
19138         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19139         open_by_handle_at.
19140         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19141         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19142         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19143         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19144         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19145         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19146         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19147
19148 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19149
19150         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19151         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19152         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19155         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19157
19158         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19159         sync_file_range.c with -fexceptions.
19160         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19161         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19162         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19163         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19164         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19165         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19166         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19167         sync_file_range as cancellation point
19168         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19169         now a wrapper around __call_sync_file_range with cancellation handling.
19170         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19171         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19172         function name to __call_sync_file_range.
19173         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19174         Add call_sync_file_range.
19175
19176 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19177
19178         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19179         bits/timex.h.
19180
19181 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19182
19183         * iconv/iconv.h: Fix typo in comment.
19184         * io/fcntl.h: Likewise.
19185         * libio/stdio.h: Likewise.
19186         * posix/spawn.h: Likewise.
19187         * posix/unistd.h: Likewise.
19188         * stdlib/stdlib.h: Likewise.
19189         * time/time.h: Likewise.
19190         * wcsmbs/wchar.h: Likewise.
19191
19192         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19193         open_by_handle): Add.
19194         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19195         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19196         Augment a few comments.
19197         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19198         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19199         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19200         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19201         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19202         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19203         open_by_handle.
19204
19205         * io/fcntl.h (AT_EMPTY_PATH): Define.
19206
19207 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19208
19209         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19210         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19211         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19212         to...
19213         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19214         * Versions.def: Add GLIBC_2.14.
19215         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19216         Export.
19217
19218 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19219
19220         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19221         round counter.
19222         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19223
19224 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19225
19226         [BZ #12597]
19227         * string/test-strncmp.c (do_page_test): New function.
19228         (check2): Likewise.
19229         (test_main): Call check2.
19230         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19231
19232 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19233
19234         [BZ #12587]
19235         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19236         Handle cache information in CPU leaf 4.
19237         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19238
19239 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19240
19241         [BZ #12583]
19242         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19243         character representation.
19244         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19245
19246 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19247
19248         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19249         END(__isnan) to END(__isnanf) to match function entry point/label
19250         EALIGN(__isnanf,...).
19251
19252 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19253
19254         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19255
19256 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19257
19258         [BZ #12510]
19259         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19260         copy from the symbol referenced in the relocation to initialize the
19261         used variable.
19262         Patch by Piotr Bury <pbury@goahead.com>.
19263         * elf/Makefile: Add rules to build and tst-unique3.
19264         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19265         * elf/tst-unique3.cc: New file.
19266         * elf/tst-unique3.h: New file.
19267         * elf/tst-unique3lib.cc: New file.
19268         * elf/tst-unique3lib2.cc: New file.
19269
19270         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19271
19272 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19273
19274         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19275         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19276         to _start.
19277
19278 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19279
19280         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19281         to-be-loaded object along a path to loader is ld.so.
19282
19283 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19284             Ulrich Drepper  <drepper@gmail.com>
19285
19286         * sysdeps/x86_64/memset.S: After aligning destination, code
19287         branches to different locations depending on the value of
19288         misalignment, when multiarch is enabled. Fix this.
19289
19290 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19291
19292         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19293         Set _x86_64_preferred_memory_instruction for AMD processsors.
19294         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19295         Set bit_Prefer_SSE_for_memop for AMD processors.
19296
19297 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19298
19299         * libio/fmemopen.c (fmemopen): Optimize a bit.
19300
19301 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19302
19303         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19304
19305 2011-03-03  Roland McGrath  <roland@redhat.com>
19306
19307         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19308
19309 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19310
19311         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19312         __bzero_ultra1 instead of __memset_ultra1.
19313
19314 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19315             Ulrich Drepper  <drepper@gmail.com>
19316
19317         [BZ #12509]
19318         * include/link.h (struct link_map): Add l_orig_initfini.
19319         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19320         returning unsuccessfully.
19321         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19322         close of a file loaded at startup, restore the original l_initfini
19323         list.
19324         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19325         list, store the pointer.
19326         * elf/Makefile ($(objpfx)noload-mem): New rule.
19327         (noload-ENV): Define.
19328         (tests): Add $(objpfx)noload-mem.
19329         * elf/noload.c: Include <memcheck.h>.
19330         (main): Call mtrace.  Close all opened handles.
19331
19332 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19333
19334         [BZ #12454]
19335         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19336         dependencies are missing.
19337
19338 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19339
19340         Fix __if_freereq crash: Unlike the generic version which uses free,
19341         Hurd needs munmap.
19342         * sysdeps/mach/hurd/ifreq.h: New file.
19343
19344 2011-01-27  Petr Baudis  <pasky@suse.cz>
19345             Ulrich Drepper  <drepper@gmail.com>
19346
19347         [BZ 12445]#
19348         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19349         to extend_alloca().
19350         * stdio-common/bug23.c: New file.
19351         * stdio-common/Makefile (tests): Add bug23.
19352
19353 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19354             Ulrich Drepper  <drepper@gmail.com>
19355
19356         [BZ #12489]
19357         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19358         before performing relro protection.  At old place add assertion
19359         to make sure nothing changed.
19360
19361 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19362             Glauber de Oliveira Costa  <glommer@gmail.com>
19363
19364         * elf/elf.h: Add new ARM TLS relocs.
19365
19366 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19367
19368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19369         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19370         cast from r3.
19371         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19372         'tests' variable.
19373         * sysdeps/wordsize-64/tst-writev.c: New file.
19374
19375 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19376
19377         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19378         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19379         insns in _dl_start to prevent a TOC reference before relocs are
19380         resolved.
19381
19382 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19383
19384         [BZ #12469]
19385         * Makeconfig: Remove RANLIB definition.
19386         * Makerules: Don't use RANLIB.
19387         * aclocal.m4: Remove ranlib test.
19388         * configure.in: No need to check for ranlib.
19389         * elf/rtld-Rules: Don't use RANLIB.
19390
19391 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19392
19393         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19394         protection macro.
19395         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19396         inclusion protection macro.
19397
19398         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19399         SIGRTMIN and SIGRTMAX and print information in that case only when
19400         SIGRTMIN is defined.
19401
19402 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19403
19404         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19405         arginfo fn returning -1.
19406
19407         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19408         and thousands string is zero terminated.
19409
19410 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19411
19412         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19413         sysdeps/unix/sysv/linux/bits/socket.h.
19414
19415 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19416
19417         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19418         (__CPU_COUNT): Remove old macros.
19419         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19420         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19421         (__CPU_ALLOC, __CPU_FREE): Add macros.
19422         (__sched_cpualloc, __sched_cpufree): Add declarations.
19423
19424 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19425
19426         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19427         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19428         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19429         (readdhstai): Return value of addhstaiX call.
19430         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19431         (addgrbyX): Return value returned by cache_addgr.
19432         (readdgrbyname): Return value returned by addgrbyX.
19433         (readdgrbygid): Likewise.
19434         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19435         (addpwbyX): Return value returned by cache_addpw.
19436         (readdpwbyname): Return value returned by addhstbyX.
19437         (readdpwbyuid): Likewise.
19438         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19439         (addservbyX): Return value returned by cache_addserv.
19440         (readdservbyname): Return value returned by addservbyX:
19441         (readdservbyport): Likewise.
19442         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19443         (addhstbyX): Return value returned by cache_addhst.
19444         (readdhstbyname): Return value returned by addhstbyX.
19445         (readdhstbyaddr): Likewise.
19446         (readdhstbynamev6): Likewise.
19447         (readdhstbyaddrv6): Likewise.
19448         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19449         (readdinitgroups): Return value returned by addinitgroupsX.
19450         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19451         (prune_cache): Keep track of timeout value of re-added entries.
19452         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19453         * nscd/nscd.h: Adjust prototypes of readd* functions.
19454
19455 2011-02-04  Roland McGrath  <roland@redhat.com>
19456
19457         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19458         (nis_stats): Likewise.
19459         * nis/nis_modify.c (nis_modify): Likewise.
19460         * nis/nis_remove.c (nis_remove): Likewise.
19461         * nis/nis_add.c (nis_add): Likewise.
19462
19463         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19464
19465         * posix/fnmatch_loop.c: Add some consts.
19466
19467         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19468
19469 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19470
19471         [BZ #12460]
19472         * config.make.in (config-cflags-novzeroupper): Define.
19473         * configure.in: Substitute libc_cv_cc_novzeroupper.
19474         * elf/Makefile (AVX-CFLAGS): Define.
19475         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19476         (CFLAGS-tst-auditmod4a.c): Likewise.
19477         (CFLAGS-tst-auditmod4b.c): Likewise.
19478         (CFLAGS-tst-auditmod6b.c): Likewise.
19479         (CFLAGS-tst-auditmod6c.c): Likewise.
19480         (CFLAGS-tst-auditmod7b.c): Likewise.
19481         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19482
19483 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19484
19485         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19486         function to the callback.
19487         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19488
19489 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19490
19491         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19492         of errno.
19493
19494 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19495
19496         [BZ #11724]
19497         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19498         of constructors.
19499         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19500         of destructors.
19501         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19502
19503         [BZ #11724]
19504         * elf/Makefile: Add rules to build and run new test.
19505         * elf/tst-initorder.c: New file.
19506         * elf/tst-initorder.exp: New file.
19507         * elf/tst-initordera1.c: New file.
19508         * elf/tst-initordera2.c: New file.
19509         * elf/tst-initordera3.c: New file.
19510         * elf/tst-initordera4.c: New file.
19511         * elf/tst-initorderb1.c: New file.
19512         * elf/tst-initorderb2.c: New file.
19513         * elf/tst-order-a1.c: New file.
19514         * elf/tst-order-a2.c: New file.
19515         * elf/tst-order-a3.c: New file.
19516         * elf/tst-order-a4.c: New file.
19517         * elf/tst-order-b1.c: New file.
19518         * elf/tst-order-b2.c: New file.
19519         * elf/tst-order-main.c: New file.
19520         New test case by George Gensure <werkt0@gmail.com>.
19521
19522 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19523
19524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19525         decoding ACE if AI_CANONIDN.
19526
19527 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19528
19529         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19530
19531 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19532
19533         * version.h (RELEASE): Bump for 2.13 release.
19534         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19535
19536         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19537
19538         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19539         MADV_NOHUGEPAGE.
19540         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19541         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19542         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19543         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19544         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19545         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19546
19547         * posix/getconf.c: Update copyright year.
19548         * catgets/gencat.c: Likewise.
19549         * csu/version.c: Likewise.
19550         * debug/catchsegv.sh: Likewise.
19551         * debug/xtrace.sh: Likewise.
19552         * elf/ldconfig.c: Likewise.
19553         * elf/ldd.bash.in: Likewise.
19554         * elf/sprof.c (print_version): Likewise.
19555         * iconv/iconv_prog.c: Likewise.
19556         * iconv/iconvconfig.c: Likewise.
19557         * locale/programs/locale.c: Likewise.
19558         * locale/programs/localedef.c: Likewise.
19559         * malloc/memusage.sh: Likewise.
19560         * malloc/mtrace.pl: Likewise.
19561         * nscd/nscd.c (print_version): Likewise.
19562         * nss/getent.c: Likewise.
19563
19564         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19565         PF_CAIF, and PF_ALG.
19566         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19567
19568 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19569
19570         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19571         (modules-names): Use them.
19572         (ifunc-test-modules, ifunc-pie-tests): Define.
19573         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19574         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19575         (test-extras): Likewise.
19576         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19577         $(compile-command.c).
19578         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19579         (all-built-dso): Define.
19580         (check-textrel.out, check-execstack.out): Depend on it.
19581
19582         * configure.in: Don't override --enable-multi-arch.
19583
19584 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19585
19586         [BZ #6812]
19587         * nscd/hstcache.c (tryagain): Define.
19588         (cache_addhst): Return tryagain not notfound for temporary errors.
19589         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19590         failed.
19591
19592 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19593
19594         [BZ #10563]
19595         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19596         to make the syscall.
19597         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19598
19599         [BZ #12378]
19600         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19601         and fall back to matching as normal character if the string ends before
19602         the matching ']' is found.  This is what POSIX requires.
19603         * posix/testfnm.c: Adjust test result.
19604         * posix/globtest.sh: Adjust test result.  Add new test.
19605         * posix/tst-fnmatch.input: Likewise.
19606         * posix/tst-fnmatch2.c: Add new test.
19607
19608 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19609
19610         * elf/Makefile (check-execstack): Revert last change.  Depend on
19611         check-execstack.h.
19612         (check-execstack.h): New target.
19613         (generated): Add check-execstack.h.
19614         * elf/check-execstack.c: Include "check-execstack.h".
19615         (main): Revert last change.
19616         (handle_file): Return zero if GNU_STACK is absent and
19617         DEFAULT_STACK_PERMS doesn't include PF_X.
19618
19619 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19620
19621         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19622         in child fails because the descriptor is already closed.
19623         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19624         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19625         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19626
19627         [BZ #12397]
19628         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19629         syscall.
19630
19631         [BZ #10484]
19632         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19633         temporary buffer used to handle multi lookups locally.
19634         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19635
19636 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19637
19638         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19639         loader is ld.so.
19640
19641 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19642
19643         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19644         alignment for SSE2.
19645
19646 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19647
19648         [BZ #12394]
19649         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19650         characters.  When rounding increased number of integer digits recompute
19651         number of groups.
19652         * stdio-common/tst-grouping.c: New file.
19653         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19654
19655 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19656
19657         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19658         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19659
19660         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19661         void.
19662         * bits/select.h: Likewise.
19663
19664 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19665
19666         * po/ja.po: Update from translation team.
19667
19668 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19669
19670         [BZ #11155]
19671         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19672         implementation just like for lxstat, fxstatat, et al.
19673
19674 2010-12-27  Jim Meyering  <meyering@redhat.com>
19675
19676         [BZ #12348]
19677         * posix/regexec.c (build_trtable): Return failure indication upon
19678         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19679
19680 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19681
19682         [BZ #12201]
19683         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19684         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19685         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19686         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19687
19688         [BZ #12207]
19689         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19690
19691         [BZ #12204]
19692         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19693         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19694
19695 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19696
19697         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19698         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19699         script has SORT_BY_INIT_PRIORITY.
19700         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19701         NO_CTORS_DTORS_SECTIONS is defined.
19702         * elf/soinit.c: Likewise.
19703         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19704         NO_CTORS_DTORS_SECTIONS is defined.
19705         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19706         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19707         * sysdeps/sh/init-first.c: Likewise.
19708         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19709
19710 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19711
19712         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19713         always use the slow path.
19714
19715 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19716
19717         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19718         similar rule which adds the sysdep directories to the header search in
19719         order to pick up the correct platform stackinfo.h.
19720         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19721         perform test if it is, otherwise return successfully without testing.
19722         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19723         DEFAULT_STACK_PERMS define in stackinfo.h.
19724         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19725         defined in stackinfo.h.
19726         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19727         DEFAULT_STACK_PERMS defined in stackinfo.h.
19728         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19729         * sysdeps/ia64/stackinfo.h: Likewise.
19730         * sysdeps/s390/stackinfo.h: Likewise.
19731         * sysdeps/sh/stackinfo.h: Likewise.
19732         * sysdeps/sparc/stackinfo.h: Likewise.
19733         * sysdeps/x86_64/stackinfo.h: Likewise.
19734         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19735         PF_X for powerpc64.  Retain PF_X for powerpc32.
19736
19737 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19738
19739         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19740         accurately.
19741         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19742         GETDENTS_64BIT_ALIGNED.
19743
19744 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19745
19746         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19747
19748 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19749
19750         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19751         _GNU_SOURCE.
19752
19753         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19754         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19755         Remove __restrict.
19756         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19757         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19758
19759 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19760
19761         [BZ #11655]
19762         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19763         are initialized.
19764
19765 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19766
19767         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19768
19769 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19770
19771         * po/it.po: Update from translation team.
19772
19773 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19774
19775         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19776         unused codes.
19777
19778 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19779
19780         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19781
19782 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19783
19784         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19785         specially.
19786         (gaih_getanswer_slice): Likewise.
19787
19788 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19789
19790         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19791
19792 2010-05-31  Petr Baudis  <pasky@suse.cz>
19793
19794         [BZ #11149]
19795         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19796         silently even in the chroot mode.
19797
19798 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19799
19800         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19801         last patch a bit.  Pretty printing
19802
19803 2010-05-31  Petr Baudis <pasky@suse.cz>
19804
19805         [BZ #10085]
19806         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19807         initialization of skip_initgroups_dyn.
19808
19809 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19810
19811         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19812         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19813
19814 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19815
19816         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19817
19818 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19819
19820         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19821         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19822         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19823         ($(objpfx)tst-fnmatch-mem): New rule.
19824         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19825         * posix/tst-fnmatch.c (main): Call mtrace.
19826
19827 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19828
19829         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19830         Support Intel processor model 6 and model 0x2c.
19831
19832 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19833
19834         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19835           signed comparison.
19836
19837 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19838
19839         [BZ #12205]
19840         * string/test-strncasecmp.c (check_result): New function.
19841         (do_one_test): Use it.
19842         (check1): New function.
19843         (test_main): Use it.
19844         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19845         Support strcasecmp and strncasecmp.
19846
19847 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19848
19849         [BZ #12194]
19850         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19851         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19852
19853 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19856         IFUNC support.
19857         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19858         memset-x86-64.
19859         * sysdeps/x86_64/multiarch/bzero.S: New file.
19860         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19861         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19862         * sysdeps/x86_64/multiarch/memset.S: New file.
19863         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19864         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19865         Set bit_Prefer_SSE_for_memop for Intel processors.
19866         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19867         Define.
19868         (index_Prefer_SSE_for_memop): Define.
19869         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19870
19871 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19872
19873         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19874         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19875
19876 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19877
19878         [BZ #12191]
19879         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19880         (__x86_64_raw_data_cache_size_half): Likewise.
19881         (__x86_64_raw_shared_cache_size): Likewise.
19882         (__x86_64_raw_shared_cache_size_half): Likewise.
19883
19884         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19885         (__x86_64_raw_data_cache_size_half): Likewise.
19886         (__x86_64_raw_shared_cache_size): Likewise.
19887         (__x86_64_raw_shared_cache_size_half): Likewise.
19888         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19889         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19890         and __x86_64_raw_shared_cache_size_half.  Round
19891         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19892         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19893         to multiple of 256 bytes.
19894
19895 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19896
19897         [BZ #12167]
19898         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19899         of inacessible symlinks.  Verify result of symlink before returning it.
19900         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19901         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19902
19903 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19904
19905         * math/math.h (isinf): Fix typo in comment.
19906
19907 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19908
19909         * po/da.po: Update from translation team.
19910
19911 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19912
19913         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19914         is added to the list.
19915
19916 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19917             Ulrich Drepper  <drepper@gmail.com>
19918
19919         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19920         the global list here.  Move code to...
19921         (_dl_add_to_namespace_list): ...here.  New function.
19922         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19923         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19924         * elf/dl-load.c (lose): Don't remove the element from the list.
19925         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19926         (_dl_map_object): Likewise.
19927
19928 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19929
19930         [BZ #12159]
19931         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19932         into all bytes of SSE register.
19933         Patch by Richard Li <richardpku@gmail.com>.
19934
19935 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19936
19937         [BZ #12140]
19938         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19939         perturbing.
19940
19941 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19942
19943         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19944         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19945         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19946         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19948         submachine.
19949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19950
19951 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19952
19953         * include/dlfcn.h (__RTLD_SECURE): Define.
19954         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19955         mode & __RTLD_SECURE instead.
19956         (open_path): Rename preloaded parameter to secure.
19957         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19958         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19959         * elf/dl-deps.c (openaux): Likewise.
19960         * elf/rtld.c (struct map_args): Remove is_preloaded.
19961         (map_doit): Don't use it.
19962         (dl_main): Likewise.
19963         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19964         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19965
19966 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19967
19968         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19969         (sysd-rules-targets): Remove duplicates.
19970         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19971         rtld-%.$o dependency.
19972
19973 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19974
19975         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19976         _dl_map_object do it.
19977
19978 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19979
19980         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19981         fast fma builtins, define the macros in the C99 standard.
19982         (FP_FAST_FMAF): Likewise.
19983         (FP_FAST_FMAL): Likewise.
19984         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19985
19986         * bits/mathdef.h: Update copyright year.
19987         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19988
19989 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19990
19991         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19992         builtins, define the macros in the C99 standard.
19993         (FP_FAST_FMAF): Likewise.
19994         (FP_FAST_FMAL): Likewise.
19995         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19996         multiply/add.
19997         (FP_FAST_FMAF): Likewise.
19998
19999 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20000
20001         [BZ #3268]
20002         * math/libm-test.inc (fma_test): Some new testcases.
20003         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20004         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20005         y and infinite z.  Do multiplication by C already in long double.
20006         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20007         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20008         y and infinite z.  Do bitwise or of inexact bit into u.d.
20009         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20010         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20011         * sysdeps/i386/fpu/s_fma.S: Removed.
20012         * sysdeps/i386/fpu/s_fmal.S: Removed.
20013
20014 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20015
20016         [BZ #3268]
20017         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20018         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20019         computation is not scheduled after fetestexcept.  Fix value
20020         of minimum denormal long double.
20021
20022 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20023
20024         [BZ #3268]
20025         * math/libm-test.inc (fma_test): Add some more tests.
20026         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20027         correctly.
20028
20029 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20030
20031         * scripts/data/localplt-s390-linux-gnu.data: New file.
20032         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20033
20034 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20035
20036         [BZ #3268]
20037         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20038         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20039         instead of dbl-64.
20040         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20041         inlines.
20042         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20043         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20044         if one of x and y is very large and the other is subnormal.
20045         * sysdeps/s390/fpu/s_fmaf.c: New file.
20046         * sysdeps/s390/fpu/s_fma.c: New file.
20047         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20048         * sysdeps/powerpc/fpu/s_fma.S: New file.
20049         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20050         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20051         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20052
20053 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20054
20055         [BZ #3268]
20056         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20057         fma tests.
20058         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20059         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20060         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20061         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20062         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20063         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20064         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20065
20066 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20067
20068         [BZ #12078]
20069         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20070         * posix/bug-regex31.input: Add test case.
20071
20072 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20073
20074         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20075         * posix/bug-regex31.input: New file.
20076
20077         [BZ #12078]
20078         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20079         (parse_sub_exp): Fix last change, use postorder.
20080
20081         * posix/bug-regex31.c: New file.
20082         * posix/Makefile: Add rules to build and run bug-regex31.
20083
20084         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20085
20086         [BZ #12078]
20087         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20088
20089         [BZ #12108]
20090         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20091         to have entries in sys_siglist.
20092
20093         [BZ #12093]
20094         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20095         be NULL.
20096
20097 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20098
20099         [BZ #3268]
20100         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20101         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20102         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20103         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20104         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20105         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20106         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20107         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20108         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20109         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20110         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20111         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20112         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20113         * math/ftestexcept.c (fetestexcept): Likewise.
20114         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20115         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20116         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20117         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20118         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20119         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20120         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20121
20122 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20123
20124         [BZ #12107]
20125         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20126         newline.
20127
20128 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20129
20130         * string/bug-strstr1.c: New file.
20131         * string/Makefile: Add rules to build and run bug-strstr1.
20132
20133 2010-10-05  Eric Blake  <eblake@redhat.com>
20134
20135         [BZ #12092]
20136         * string/str-two-way.h (two_way_long_needle): Always clear memory
20137         when skipping input due to the shift table.
20138
20139 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20140
20141         [BZ #12005]
20142         * malloc/mcheck.c: Handle large requests.
20143
20144         [BZ #12077]
20145         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20146         for strncmp and strncasecmp.
20147         * string/stratcliff.c: Add tests for strcmp and strncmp.
20148         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20149
20150 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20151
20152         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20153         __set_fpscr.
20154
20155 2010-09-30  Andreas Jaeger  <aj@suse.de>
20156
20157         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20158         (CGROUP_SUPER_MAGIC): Define.
20159         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20160         Handle btrfs and cgroup file systems.
20161         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20162         Likewise.
20163
20164 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20165
20166         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20167         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20168
20169 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20170
20171         [BZ #12067]
20172         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20173         trying to locate the ELF header.
20174
20175 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20176
20177         [BZ #11611]
20178         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20179         Mask out sign-bit copies when constructing f_fsid.
20180
20181 2010-09-24  Petr Baudis <pasky@suse.cz>
20182
20183         * debug/stack_chk_fail_local.c: Add missing licence exception.
20184         * debug/warning-nop.c: Likewise.
20185
20186 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20187
20188         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20189         implementing getdents64 using getdents syscall, set d_type if
20190         __ASSUME_GETDENTS32_D_TYPE.
20191
20192 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20193
20194         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20195         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20196
20197 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20198
20199         [BZ #12037]
20200         * posix/unistd.h: Undo change of feature selection for ftruncate from
20201         2010-01-11.
20202
20203 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20204
20205         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20206         detection.
20207
20208 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20209
20210         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20211         fanotify_mark.
20212         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20213
20214 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20215
20216         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20217         variables after CHECK_SP call.
20218         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20219
20220 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20221             Ulrich Drepper  <drepper@redhat.com>
20222
20223         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20224         re-relocationg ld.so.
20225         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20226         _dl_init_paths call.
20227         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20228         here anymore.
20229
20230 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20231
20232         * resolv/res_init.c (__res_vinit): Count the default server we added.
20233
20234 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20235             Ulrich Drepper  <drepper@redhat.com>
20236
20237         [BZ #11968]
20238         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20239         (____longjmp_chk): Use %ebx for saving value across system call.
20240         Add unwind info.
20241
20242 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20243
20244         * manual/Makefile: Don't mix pattern rules with normal rules.
20245
20246 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20247
20248         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20249         operation.
20250         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20251         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20252         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20253         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20254         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20255         Likewise.
20256
20257 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20258
20259         [BZ #11979]
20260         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20261         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20262
20263 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20264
20265         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20266         * sysdeps/x86_64/addmul_1.S: Likewise.
20267         * sysdeps/x86_64/lshift.S: Likewise.
20268         * sysdeps/x86_64/mul_1.S: Likewise.
20269         * sysdeps/x86_64/rshift.S: Likewise.
20270         * sysdeps/x86_64/sub_n.S: Likewise.
20271         * sysdeps/x86_64/submul_1.S: Likewise.
20272
20273 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20274
20275         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20276         Define __sched_param instead of SCHED_* and sched_param when
20277         <bits/sched.h> is included with __need_schedparam defined.
20278         * bits/sched.h [__need_schedparam]
20279         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20280         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20281         (__defined_schedparam): Define to 1.
20282         (__sched_param): New structure, identical to sched_param.
20283         (__need_schedparam): Undefine.
20284
20285 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20286
20287         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20288         (epoll_create1): Declare.
20289
20290         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20291
20292 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20293
20294         [BZ #7066]
20295         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20296         shifting retval into place.
20297
20298 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20299
20300         * nis/rpcsvc/nis.h: Update copyright notice.
20301         * nis/rpcsvc/nis.x: Likewise.
20302         * nis/rpcsvc/nis_callback.h: Likewise.
20303         * nis/rpcsvc/nis_callback.x: Likewise.
20304         * nis/rpcsvc/nis_object.x: Likewise.
20305         * nis/rpcsvc/nis_tags.h: Likewise.
20306         * nis/rpcsvc/yp.h: Likewise.
20307         * nis/rpcsvc/yp.x: Likewise.
20308         * nis/rpcsvc/ypupd.h: Likewise.
20309         * nis/yp_xdr.c: Likewise.
20310         * nis/ypupdate_xdr.c: Likewise.
20311
20312         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20313         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20314         (pmap_getport): Use __libc_rpc_getport.
20315         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20316         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20317         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20318
20319 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20320
20321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20322         fanotify_mark.
20323
20324 2010-08-27  Roland McGrath  <roland@redhat.com>
20325
20326         * sysdeps/i386/i686/multiarch/Makefile
20327         (CFLAGS-varshift.c): New variable.
20328
20329 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20330
20331         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20332         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20333
20334         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20335
20336         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20337
20338 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20339
20340         * sysdeps/x86_64/strlen.S: Unroll the loop.
20341         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20342         strlen-sse2 strlen-sse2-bsf.
20343         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20344         __strlen_no_bsf if bit_Slow_BSF is set.
20345         (__strlen_sse42): Removed.
20346         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20347         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20348
20349 2010-08-25  Roland McGrath  <roland@redhat.com>
20350
20351         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20352         * sysdeps/x86_64/multiarch/varshift.c: New file.
20353         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20354         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20355         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20356         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20357
20358 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20359
20360         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20361         strlen-sse2 strlen-sse2-bsf.
20362         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20363         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20364         (__strlen_sse2): Removed.
20365         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20366         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20367         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20368         bit_Slow_BSF for Atom.
20369         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20370         (index_Slow_BSF): Define.
20371         (HAS_SLOW_BSF): Define.
20372
20373 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20374
20375         [BZ #10851]
20376         * resolv/res_init.c (__res_vinit): When no server address at all
20377         is given default to loopback.
20378
20379 2010-08-24  Roland McGrath  <roland@redhat.com>
20380
20381         * configure.in: Remove config-name.h generation.
20382         * configure: Regenerated.
20383         * config-name.in: File removed.
20384         * scripts/config-uname.sh: New file.
20385         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20386         ($(objdir)config-name.h): New target.
20387
20388         * sunrpc/rpc_parse.h: Avoid nested comment.
20389
20390 2010-08-24  Richard Henderson  <rth@redhat.com>
20391             Ulrich Drepper  <drepper@redhat.com>
20392             H.J. Lu  <hongjiu.lu@intel.com>
20393
20394         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20395         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20396         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20397         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20398         _mm_alignr_epi8 with _mm_loadu_si128.
20399         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20400         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20401         (__m128i_shift_right): Removed.
20402         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20403         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20404         * sysdeps/x86_64/multiarch/varshift.h: New file.
20405         * sysdeps/x86_64/multiarch/varshift.S: New file.
20406
20407 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20408
20409         * configure.in: Move assembler checks to before sysdep dir checking.
20410
20411 2010-08-20  Petr Baudis  <pasky@suse.cz>
20412
20413         * LICENSES: Sync the sunrpc license.
20414
20415 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20416
20417         * sunrpc/auth_des.c: Update copyright notice once again.
20418         * sunrpc/auth_none.c: Likewise.
20419         * sunrpc/auth_unix.c: Likewise.
20420         * sunrpc/authdes_prot.c: Likewise.
20421         * sunrpc/authuxprot.c: Likewise.
20422         * sunrpc/bindrsvprt.c: Likewise.
20423         * sunrpc/clnt_gen.c: Likewise.
20424         * sunrpc/clnt_perr.c: Likewise.
20425         * sunrpc/clnt_raw.c: Likewise.
20426         * sunrpc/clnt_simp.c: Likewise.
20427         * sunrpc/clnt_tcp.c: Likewise.
20428         * sunrpc/clnt_udp.c: Likewise.
20429         * sunrpc/clnt_unix.c: Likewise.
20430         * sunrpc/des_crypt.c: Likewise.
20431         * sunrpc/des_soft.c: Likewise.
20432         * sunrpc/get_myaddr.c: Likewise.
20433         * sunrpc/getrpcport.c: Likewise.
20434         * sunrpc/key_call.c: Likewise.
20435         * sunrpc/key_prot.c: Likewise.
20436         * sunrpc/openchild.c: Likewise.
20437         * sunrpc/pm_getmaps.c: Likewise.
20438         * sunrpc/pm_getport.c: Likewise.
20439         * sunrpc/pmap_clnt.c: Likewise.
20440         * sunrpc/pmap_prot.c: Likewise.
20441         * sunrpc/pmap_prot2.c: Likewise.
20442         * sunrpc/pmap_rmt.c: Likewise.
20443         * sunrpc/rpc/auth.h: Likewise.
20444         * sunrpc/rpc/auth_unix.h: Likewise.
20445         * sunrpc/rpc/clnt.h: Likewise.
20446         * sunrpc/rpc/des_crypt.h: Likewise.
20447         * sunrpc/rpc/key_prot.h: Likewise.
20448         * sunrpc/rpc/netdb.h: Likewise.
20449         * sunrpc/rpc/pmap_clnt.h: Likewise.
20450         * sunrpc/rpc/pmap_prot.h: Likewise.
20451         * sunrpc/rpc/pmap_rmt.h: Likewise.
20452         * sunrpc/rpc/rpc.h: Likewise.
20453         * sunrpc/rpc/rpc_des.h: Likewise.
20454         * sunrpc/rpc/rpc_msg.h: Likewise.
20455         * sunrpc/rpc/svc.h: Likewise.
20456         * sunrpc/rpc/svc_auth.h: Likewise.
20457         * sunrpc/rpc/types.h: Likewise.
20458         * sunrpc/rpc/xdr.h: Likewise.
20459         * sunrpc/rpc_clntout.c: Likewise.
20460         * sunrpc/rpc_cmsg.c: Likewise.
20461         * sunrpc/rpc_common.c: Likewise.
20462         * sunrpc/rpc_cout.c: Likewise.
20463         * sunrpc/rpc_dtable.c: Likewise.
20464         * sunrpc/rpc_hout.c: Likewise.
20465         * sunrpc/rpc_main.c: Likewise.
20466         * sunrpc/rpc_parse.c: Likewise.
20467         * sunrpc/rpc_parse.h: Likewise.
20468         * sunrpc/rpc_prot.c: Likewise.
20469         * sunrpc/rpc_sample.c: Likewise.
20470         * sunrpc/rpc_scan.c: Likewise.
20471         * sunrpc/rpc_scan.h: Likewise.
20472         * sunrpc/rpc_svcout.c: Likewise.
20473         * sunrpc/rpc_tblout.c: Likewise.
20474         * sunrpc/rpc_util.c: Likewise.
20475         * sunrpc/rpc_util.h: Likewise.
20476         * sunrpc/rpcinfo.c: Likewise.
20477         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20478         * sunrpc/rpcsvc/key_prot.x: Likewise.
20479         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20480         * sunrpc/rpcsvc/mount.x: Likewise.
20481         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20482         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20483         * sunrpc/rpcsvc/rex.x: Likewise.
20484         * sunrpc/rpcsvc/rstat.x: Likewise.
20485         * sunrpc/rpcsvc/rusers.x: Likewise.
20486         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20487         * sunrpc/rpcsvc/spray.x: Likewise.
20488         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20489         * sunrpc/rtime.c: Likewise.
20490         * sunrpc/svc.c: Likewise.
20491         * sunrpc/svc_auth.c: Likewise.
20492         * sunrpc/svc_authux.c: Likewise.
20493         * sunrpc/svc_raw.c: Likewise.
20494         * sunrpc/svc_run.c: Likewise.
20495         * sunrpc/svc_simple.c: Likewise.
20496         * sunrpc/svc_tcp.c: Likewise.
20497         * sunrpc/svc_udp.c: Likewise.
20498         * sunrpc/svc_unix.c: Likewise.
20499         * sunrpc/svcauth_des.c: Likewise.
20500         * sunrpc/xcrypt.c: Likewise.
20501         * sunrpc/xdr.c: Likewise.
20502         * sunrpc/xdr_array.c: Likewise.
20503         * sunrpc/xdr_float.c: Likewise.
20504         * sunrpc/xdr_mem.c: Likewise.
20505         * sunrpc/xdr_rec.c: Likewise.
20506         * sunrpc/xdr_ref.c: Likewise.
20507         * sunrpc/xdr_sizeof.c: Likewise.
20508         * sunrpc/xdr_stdio.c: Likewise.
20509
20510         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20511         handling.
20512
20513 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20514
20515         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20516
20517 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20518
20519         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20520         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20521         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20522         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20523         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20524         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20525         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20526         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20527         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20528         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20529         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20530         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20531         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20532         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20533
20534 2010-07-26  Anton Blanchard  <anton@samba.org>
20535
20536         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20537         * malloc/arena.c (heap_trim): Likewise.
20538
20539 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20540
20541         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20542         here.  Not...
20543         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20544         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20545
20546 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20547
20548         * sysdeps/i386/elf/Makefile: New file.
20549
20550 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20551
20552         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20553         from fanotify_init.
20554         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20555         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20556
20557 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20558
20559         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20560         of strncasecmp_l.
20561         * sysdeps/multiarch/strcmp.S: Likewise.
20562
20563 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20564
20565         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20566         strncase_l-nonascii.
20567         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20568         Add strncase_l-ssse3.
20569         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20570         * sysdeps/x86_64/strcmp.S: Likewise.
20571         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20572         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20573         * sysdeps/x86_64/strncase.S: New file.
20574         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20575         * sysdeps/x86_64/strncase_l.S: New file.
20576         * string/Makefile (strop-tests): Add strncasecmp.
20577         * string/test-strncasecmp.c: New file.
20578
20579         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20580         warning.
20581
20582         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20583         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20584
20585 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20586
20587         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20588
20589 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20590
20591         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20592         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20593         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20594
20595 2010-05-01  Alan Modra  <amodra@gmail.com>
20596
20597         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20598         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20599         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20600         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20601         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20602         tidying.  Don't tail-call __sigjmp_save for static lib.
20603         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20604         save location.
20605         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20606         (CALL_MCOUNT): Add eh info, and nop after bl.
20607         (TAIL_CALL_SYSCALL_ERROR): New macro.
20608         (PSEUDO_RET): Use it.
20609         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20610         Correct save location of integer regs and cr.
20611         (_dl_profile_resolve): Correct cr save location.  Delete nops
20612         after bl when SHARED.  Reduce cfi size a little by better
20613         placement of cfi directives.
20614         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20615         make a stack frame.  Instead use parm save area as a temp.
20616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20617         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20619         Don't make a stack frame for parent, use parm save area.
20620         Increase child stack frame to 112 bytes.  Don't save unused reg,
20621         and adjust reg usage.  Set up cfi on error recovery and
20622         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20624         (__makecontext): Add dummy nop after jump to exit.
20625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20626         Use correct parm save area and cr save, reduce stack frame.
20627         Correct cfi for possible PSEUDO_RET frame setup.
20628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20629         Branch to local label emitted by PSEUDO_RET rather than
20630         __syscall_error.
20631
20632 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20633
20634         [BZ #11904]
20635         * locale/programs/locale.c (print_assignment): New function.
20636         (show_locale_vars): Use it.
20637
20638 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20639
20640         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20641         field.
20642         (struct statfs64): Likewise.
20643         (_STATFS_F_FLAGS): Define.
20644         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20645         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20646         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20647         (ST_VALID): Define locally.
20648         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20649         __statvfs_getflags, use the provided value.
20650         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20651         __ASSUME_STATFS_F_FLAGS.
20652
20653         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20654
20655         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20656         Add sys/fanotify.h.
20657         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20658         fanotify_mask for GLIBC_2.13.
20659         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20660         fanotify_init and fanotify_mark.
20661         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20662         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20663
20664         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20665         Add prlimit.
20666         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20667         prlimit64 for GLIBC_2.13.
20668         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20669         prlimit64.
20670         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20671         syscall.
20672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20673         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20674         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20675         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20676         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20677         add prlimit alias.
20678         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20679
20680         [BZ #11903]
20681         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20682         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20683
20684         * nss/Makefile: Add rules to build and run tst-nss-test1.
20685         * shlib-versions: Add entry for libnss_test1.
20686         * nss/nss_test1.c: New file.
20687         * nss/tst-nss-test1.c: New file.
20688
20689         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20690         (__nss_configure_lookup): Set appropriate entry in
20691         __nss_configure_lookup to true.
20692         * nss/nsswitch.h: Define enum with indeces of databases in
20693         databases and __nss_database_custom arrays.  Declare
20694         __nss_database_custom.
20695         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20696         to avoid using nscd when custom rules are installed.
20697         * nss/getXXbyYY_r.c: Likewise.
20698         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20699
20700         * nss/nss_files/files-parse.c: Whitespace fixes.
20701
20702 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20703
20704         [BZ #11883]
20705         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20706         * posix/fnmatch_loop.c: Likewise.
20707
20708 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20709
20710         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20711         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20712         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20713         * Versions.def [GLIBC_2.13]: Add.
20714
20715 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20716
20717         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20718         Also fail if tpwd after pwuid call is NULL.
20719
20720 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20721
20722         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20723         when converting to ms.
20724
20725 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20726
20727         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20728         EOPNOTSUPP errors with ENOTTY.
20729         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20730         EOPNOTSUPP errors with ENOTTY.
20731
20732 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20733
20734         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20735         Add strcasecmp_l-ssse3.
20736         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20737         strcasecmp.
20738         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20739         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20740         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20741
20742 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20743
20744         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20745
20746         * string/Makefile (strop-tests): Add strcasecmp.
20747         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20748         strcasecmp_l-nonascii.
20749         (gen-as-const-headers): Add locale-defines.sym.
20750         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20751         * sysdeps/x86_64/strcasecmp.S: New file.
20752         * sysdeps/x86_64/strcasecmp_l.S: New file.
20753         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20754         * sysdeps/x86_64/locale-defines.sym: New file.
20755         * string/test-strcasecmp.c: New file.
20756
20757         * string/test-strcasestr.c: Test both ends of the range of characters.
20758         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20759
20760 2010-07-29  Roland McGrath  <roland@redhat.com>
20761
20762         [BZ #11856]
20763         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20764
20765 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20766
20767         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20768         for ld.so.
20769
20770 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20771
20772         * manual/memory.texi (Malloc Tunable Parameters): Document
20773         M_PERTURB.
20774
20775 2010-07-26  Roland McGrath  <roland@redhat.com>
20776
20777         [BZ #11840]
20778         * configure.in (-fgnu89-inline check): Set and substitute
20779         gnu89_inline, not libc_cv_gnu89_inline.
20780         * configure: Regenerated.
20781         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20782
20783 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20784
20785         * string/test-strnlen.c: New file.
20786         * string/Makefile (strop-tests): Add strnlen.
20787         * string/tester.c (test_strnlen): Add a few more test cases.
20788         * string/tst-strlen.c: Better error reporting.
20789
20790         * sysdeps/x86_64/strnlen.S: New file.
20791
20792 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20793
20794         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20795         lower-latency instructions.
20796
20797 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20798
20799         * string/test-strcasestr.c: New file.
20800         * string/test-strstr.c: New file.
20801         * string/Makefile (strop-tests): Add strstr and strcasestr.
20802         * string/str-two-way.h: Don't undefine MAX.
20803         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20804
20805 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20806
20807         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20808         strcasestr-nonascii.
20809         (CFLAGS-strcasestr-nonascii.c): Define.
20810         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20811         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20812         Remove unused attribute.
20813
20814 2010-07-20  Roland McGrath  <roland@redhat.com>
20815
20816         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20817         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20818         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20819         like LD_HWCAP_MASK can disable hwcaps.
20820
20821 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20822
20823         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20824
20825 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20826
20827         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20828         call in strcasestr.
20829         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20830         __strcasestr_sse42_nonascii.
20831         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20832         strcasestr-nonascii.c.
20833         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20834
20835 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20836
20837         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20838         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20839         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20840         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20841
20842 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20843
20844         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20845         fcntl.
20846
20847 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20848
20849         [BZ #11577]
20850         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20851         dl_signal_cerror.
20852
20853 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20854
20855         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20856         _PC_PIPE_BUF using F_GETPIPE_SZ.
20857
20858 2010-07-05  Roland McGrath  <roland@redhat.com>
20859
20860         * manual/arith.texi (Rounding Functions): Fix rint description
20861         implicit in round description.
20862
20863 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20864
20865         * elf/Makefile: Fix linking for a few tests to make recent linker
20866         happy.
20867
20868 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20869
20870         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20871         $(common-objpfx)libc_nonshared.a.
20872
20873 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20874
20875         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20876         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20877         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20878         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20879         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20880         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20881         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20882         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20897         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20898         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20899         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20900         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20901         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20902         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20903         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20904         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20905         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20906         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20907         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20908         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20911         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20923
20924 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20925
20926         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20927         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20928         * string/memmove.c (memmove): Renamed to ...
20929         (MEMMOVE): ...this.  Default to memmove.
20930         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20931         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20932         (END_CHK): Define.
20933         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20934         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20935         mempcpy-ssse3-back memmove-ssse3-back.
20936         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20937         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20938         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20939         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20940         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20941         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20942         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20943         * sysdeps/x86_64/multiarch/memmove.c: New file.
20944         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20945         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20946         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20947         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20948         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20949         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20950         Define.
20951         (index_Fast_Copy_Backward): Define.
20952         (HAS_ARCH_FEATURE): Define.
20953         (HAS_FAST_REP_STRING): Define.
20954         (HAS_FAST_COPY_BACKWARD): Define.
20955
20956 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20957
20958         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20959         Restore proper fallback handling.
20960
20961 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20962
20963         [BZ #11701]
20964         * posix/group_member.c (__group_member): Correct checking loop.
20965
20966         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20967         OOM in getpwuid_r correctly.  Return error number when the caller
20968         should return, otherwise -1.
20969         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20970         call returning > 0 value.
20971         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20972
20973 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20974
20975         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20976         libc_nonshared.a from targets in modules-names.
20977
20978 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20979
20980         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20981         requires it.
20982
20983 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20984
20985         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20986         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20987         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20988         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20989
20990 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20991
20992         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20993
20994 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20995
20996         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20997         and F_GETPIPE_SZ.
20998         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20999         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21000         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21001         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21002         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21003         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21004
21005 2010-06-14  Roland McGrath  <roland@redhat.com>
21006
21007         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21008
21009 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21010
21011         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21012         __REDIRECT followed by __THROW.
21013         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21014         * posix/getopt.h (getopt): Likewise.
21015
21016 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21017
21018         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21019         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21020         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21021         in AT_FLAGS.
21022         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21023         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21024
21025 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21026
21027         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21028
21029 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21030
21031         [BZ #11640]
21032         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21033         Properly check family and model.
21034
21035 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21036
21037         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21038
21039 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21040
21041         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21042
21043 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21044
21045         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21046         symbol reference.
21047
21048 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21049
21050         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21051         symbol reference.
21052
21053 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21054
21055         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21056         and internal_recvmmsg.
21057         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21058         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21059         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21060         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21061
21062         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21063         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21064         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21065
21066 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21067
21068         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21069
21070 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21071
21072         POWER7 optimizations.
21073         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21074         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21075
21076 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21077
21078         * version.h: Update for 2.13 development version.
21079
21080 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21081
21082         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21083         exceptions.  Return 0.
21084
21085 2010-05-07  Roland McGrath  <roland@redhat.com>
21086
21087         * elf/ldconfig.c (main): Add a const.
21088
21089 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21090
21091         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21092         (args_options): Add no-idn option.
21093         (ahosts_keys_int): Add idn_flags to ai_flags.
21094         (parse_option): Handle 'i' option to clear idn_flags.
21095
21096         * malloc/malloc.c (_int_free): Possible race in the most recently
21097         added check.  Only act on the data if no current modification
21098         happened.
21099
21100 See ChangeLog.17 for earlier changes.