elf.h: add new tilegx relocations (copy from binutils trunk)
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
2
3         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
4
5 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
6
7         * scripts/cross-test-ssh.sh (command): Use newlines to separate
8         commands.  Quote $PWD.
9         (blacklist_exports): Don't use remove_newlines.  Replace "declare
10         -x" by "export".
11         (remove_newlines): Remove.
12
13 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
14
15         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
16         * stdlib/stdlib.h (atof): Moved to ...
17         * include/bits/stdlib-float.h: Here.  New file.
18         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
19         * stdlib/bits/stdlib-float.h: New file.
20         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
21         -mno-sse -mno-mmx.
22         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
23         <xmmintrin.h>.
24
25 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26
27         * conform/conformtest.pl (@headers): Add fenv.h.
28         * conform/data/fenv.h-data: New file.
29         * include/fenv.h [_ISOMAC]: Disable all contents of file except
30         include of <math/fenv.h>.
31
32         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
33         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
34         && !UNIX98].  Enables tests for XOPEN2K8.
35         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
36         POSIX2008]: Likewise.
37
38         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
39         (struct rusage): Do not expect type or its members.
40
41         [BZ #3439]
42         * math/math.h (FP_NAN): Define macro to integer constant usable in
43         #if and use that to give value to enum constant.
44         (FP_INFINITE): Likewise.
45         (FP_ZERO): Likewise.
46         (FP_SUBNORMAL): Likewise.
47         (FP_NORMAL): Likewise.
48
49 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
50
51         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
52         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
53         arguments.
54
55 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56
57         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
58         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
59         autoconf-time if not.
60         * configure.in: Remove AC_PREREQ.
61
62 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
63
64         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
65         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
66         of the internal implementation.
67
68 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69
70         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
71         except include of <misc/sys/syslog.h>.
72
73 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
74
75         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
76         function returns with a NULL context exit with zero.
77
78 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79
80         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
81
82 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
83
84         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
85         (run_program_cmd): This.
86         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
87         (tst_langinfo): New variable.  Use it.
88
89 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
90
91         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
92         floating point opcodes.
93
94 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
95
96         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
97         variable.
98
99         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
100
101         * sysdeps/mach/hurd/powerpc: Remove directory.
102         * sysdeps/mach/powerpc: Likewise.
103
104 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
105
106         * scripts/check-local-headers.sh: Ignore c++ headers.
107
108 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
109
110         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
111         __libc_cleanup_region_start argument.
112
113 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
114
115         [BZ #14784]
116         [BZ #14785]
117         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
118         x * y using scaling, not as x * y + z.
119         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
120         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
121         * math/libm-test.inc (fma_test): Add more tests.
122         (fma_test_towardzero): Likewise.
123         (fma_test_downward): Likewise.
124         (fma_test_upward): Likewise.
125
126 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
127
128         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
129
130 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
131
132         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
133         New variable.
134
135 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
136
137         * rt/tst-shm.c (worker): Correct checking for mmap failure.
138
139 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
140
141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
142         Fix sort order.
143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
144         Likewise.
145
146 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
147
148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
149         Fix the order of the list for glibc 2.17.
150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
151         Likewise.
152
153 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
154
155         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
156
157 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
158
159         [BZ #14610]
160         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
161         for low part of x being zero before using __atanl (y).
162         * math/libm-test.inc (atan2_test): Add another test.
163
164         * manual/install.texi (Configuring and compiling): Document
165         general use of test-wrapper and test-wrapper-env.
166         * INSTALL: Regenerated.
167
168         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
169         (__fma): Do not extract and scale down low bits on after-rounding
170         systems when result rounded to normal precision would have normal
171         exponent.
172         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
173         (__fmal): Do not extract and scale down low bits on after-rounding
174         systems when result rounded to normal precision would have normal
175         exponent.
176         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
177         (__fmal): Do not extract and scale down low bits on after-rounding
178         systems when result rounded to normal precision would have normal
179         exponent.
180         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
181         macro.
182         (fma_test): Add more tests.
183         (fma_test_towardzero): Likewise.
184         (fma_test_downward): Likewise.
185         (fma_test_upward): Likewise.
186
187 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
188
189         * sysdeps/i386/tininess.h: Renamed to ...
190         * sysdeps/x86/tininess.h: This.
191         * sysdeps/x86_64/tininess.h: Removed.
192
193 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
194
195         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
196         input.  Use $(build-program-cmd).
197         ($(objpfx)tst-array1-static.out): Likewise.
198         ($(objpfx)tst-array2.out): Likewise.
199         ($(objpfx)tst-array3.out): Likewise.
200         ($(objpfx)tst-array4.out): Likewise.
201         ($(objpfx)tst-array5.out): Likewise.
202         ($(objpfx)tst-array5-static.out): Likewise.
203
204 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
205
206         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
207         if defined.
208
209         * nss/nsswitch.h (nss_interface_function): Provide new
210         macro for use with NSS functions.
211         * grp/initgroups.c: Use new macro.
212         * nss/getXXbyYY.c: Likewise.
213         * nss/getXXbyYY_r.c: Likewise.
214         * nss/getXXent.c: Likewise.
215         * nss/getXXent_r.c: Likewise.
216         * sysdeps/posix/getaddrinfo.c: Likewise.
217
218 2012-10-30  Andreas Jaeger  <aj@suse.de>
219
220         * po/ru.po: Update Russion translation from translation project.
221
222 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
223
224         [BZ #14152]
225         [BZ #14783]
226         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
227         result and shift together with sticky bit instead of replicating
228         round-to-nearest rounding.
229         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
231         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
232         missing underflow exceptions.
233         (fma_test_towardzero): Add more tests.
234         (fma_test_downward): Likewise.
235         (fma_test_upward): Likewise.
236
237         [BZ #14047]
238         * sysdeps/generic/tininess.h: New file.
239         * sysdeps/i386/tininess.h: Likewise.
240         * sysdeps/sh/tininess.h: Likewise.
241         * sysdeps/x86_64/tininess.h: Likewise.
242         * stdlib/tst-strtod-underflow.c: Likewise.
243         * stdlib/tst-tininess.c: Likewise.
244         * stdlib/strtod_l.c: Include <tininess.h>.
245         (round_and_return): Do not set errno for exact underflow cases.
246         Force an underflow exception when setting errno for underflow.
247         Determine underflow based on rounding to normal precision if
248         TININESS_AFTER_ROUNDING.
249         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
250         ERANGE for exact underflow cases.
251         * stdlib/Makefile (tests): Add tst-tininess and
252         tst-strtod-underflow.
253         ($(objpfx)tst-tininess): Use $(link-libm).
254         ($(objpfx)tst-strtod-underflow): Likewise.
255
256 2012-10-30  Andreas Jaeger  <aj@suse.de>
257
258         [BZ#14767]
259         * elf/Makefile (tests): Remove conditional for have-initfini-array
260         since this is now always required and the variable does not exist
261         anymore.
262         (tests-static): Likewise.
263         (modules-names): Likewise.
264
265         * po/eo.po: Add Esperanto translation from translation project.
266
267         * elf/tst-array1.c (fini_array): Make writeable so that it can be
268         merged with constructor/destructor.
269         (init_array): Likewise.
270         * elf/tst-array2dep.c (fini_array): Likewise.
271         (init_array): Likewise.
272
273 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
274
275         * manual/message.texi: Delete @cartouche tags.
276
277 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
278
279         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
280         EOPNOTSUPP.
281         * sysdeps/mach/hurd/fsync.c: Likewise.
282
283         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
284         [_POSIX_REALTIME_SIGNALS]: Change condition to
285         [_POSIX_REALTIME_SIGNALS > 0].
286
287 2012-10-27  Andreas Jaeger  <aj@suse.de>
288
289         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
290         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
291         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
292         [__WORDSIZE != 64]: Likewise.
293
294 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
295
296         *  iconvdata/tst-table.sh: Remove ${SHELL}.
297         *  iconvdata/tst-tables.sh: Likewise.
298
299 2012-10-25  David S. Miller  <davem@davemloft.net>
300
301         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
302         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
303         of strtoull.
304
305         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
306         ifunc-impl-list.c
307         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
308         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
309         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
310         file.
311
312 2012-10-25  Roland McGrath  <roland@hack.frob.com>
313
314         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
315         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
316         __getdirentries.
317
318 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
319             Jim Blandy  <jimb@codesourcery.com>
320
321         * scripts/cross-test-ssh.sh: New file.
322         * manual/install.texi (Configuring and compiling): Document use of
323         cross-test-ssh.sh.
324         * INSTALL: Regenerated.
325
326 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
327
328         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
329         EOPNOTSUPP.
330
331 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
332
333         * Makeconfig (run-program-prefix): Fix comment.
334
335 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
336             Jim Blandy  <jimb@codesourcery.com>
337
338         * Makeconfig (test-wrapper): New variable,
339         (test-wrapper-env): Likewise.
340         [$(cross-compiling) = yes && $(test-wrapper) != ""]
341         (run-built-tests): Define to yes.
342         (run-program-prefix): Use $(test-wrapper).
343         (built-program-cmd): Likewise.
344         * Rules (make-test-out): Use $(test-wrapper-env) and
345         $(host-built-program-cmd).
346         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
347         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
348         tst-pathopt.sh.
349         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
350         $(test-wrapper-env) to tst-rtld-load-self.sh.
351         ($(objpfx)order2.out): Use $(test-wrapper).
352         ($(objpfx)tst-initorder.out): Likewise.
353         ($(objpfx)tst-initorder2.out): Likewise.
354         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
355         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
356         (test_wrapper_env): New variable.  Use it to run ld.so.
357         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
358         Use it to run ld.so.
359         (test_wrapper_env): Likewise.
360         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
361         $(test-wrapper) to run-iconv-test.sh.
362         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
363         (ICONV): Use $test_wrapper.
364         * posix/Makefile ($(objpfx)globtest.out): Pass
365         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
366         globtest.sh, not $(run-program-prefix).
367         * posix/globtest.sh (run_via_rtld_prefix): New variable.
368         (test_wrapper): Likewise.
369         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
370         set together with run_via_rtld_prefix.
371         (run_program_prefix): Define in terms of test_wrapper and
372         run_via_rtld_prefix.
373
374 2012-10-24  Roland McGrath  <roland@hack.frob.com>
375
376         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
377         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
378         Targets removed.
379
380         [BZ #14743]
381         * include/time.h: Remove librt_hidden_proto (clock_gettime).
382         Declare __clock_getres, __clock_gettime, __clock_settime,
383         __clock_nanosleep, and __clock_getcpuclockid.
384         * rt/clock_gettime.c: Define __clock_gettime as an alias.
385         Remove librt_hidden_def (clock_gettime).
386         * sysdeps/unix/clock_gettime.c: Likewise.
387         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
388         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
389         * rt/clock_getres.c: Define __clock_getres as an alias.
390         * sysdeps/posix/clock_getres.c: Likewise.
391         * rt/clock_settime.c: Define __clock_settime as an alias.
392         * sysdeps/unix/clock_settime.c: Likewise.
393         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
394         * sysdeps/unix/clock_nanosleep.c: Likewise.
395         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
396         * rt/clock-compat.c: New file.
397         * rt/Makefile (librt-routines): Add clock-compat and move
398         $(clock-routines) to ...
399         (routines): ... here, new variable.
400         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
401         Don't add get_clockfreq here.
402         * rt/Versions (libc: GLIBC_2.17): New version set.
403         Add clock_* symbols here.
404         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
405         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
406         (GLIBC_2.17): Add clock_* symbols.
407         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
409         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
411         Likewise.
412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
413         Likewise.
414         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
415         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
416         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
417         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
418         * NEWS: Mention the move.
419
420         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
421         Use __open, __read, __close rather than their public counterparts.
422         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
423         (__get_clockfreq_via_cpuinfo): Likewise.
424         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
425         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
426
427         * config.h.in (HAVE_IFUNC): New #undef.
428         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
429         was successful.
430         * configure: Regenerated.
431
432 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
433
434         * configure.in: Move READELF check to start of file.
435         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
436         libc_cv_asm_gnu_indirect_function in the process.
437         * configure: Regenerated.
438
439 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
440
441         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
442         send the output to /dev/null.
443         (libc_cv_cc_with_libunwind): Likewise.
444         (libc_cv_as_noexecstack): Likewise.
445         * configure: Regenerate.
446
447 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
448
449         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
450
451         * posix/globtest.sh (TMPDIR): Do not set.
452         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
453         (testout): Likewise.
454
455 2012-10-24  Andreas Jaeger  <aj@suse.de>
456
457         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
458         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
459         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
460         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
461         posix_fadvise64, posix_fallocate64.
462
463         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
464         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
465         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
466         Likewise.
467         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
468         Likewise.
469         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
470
471         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
472         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
473         <bits/fcntl-linux.h>.
474         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
475
476         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
477         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
478         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
479         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
480         [__WORDSIZE != 64]: Likewise.
481
482 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
483
484         * Makeconfig (run-built-tests): New variable.
485         * Rules [$(cross-compiling) = yes]: Change condition to
486         [$(run-built-tests) = no].
487         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
488         to [$(run-built-tests) = yes].
489         * elf/Makefile [$(cross-compiling) = no]: Likewise
490         * grp/Makefile [$(cross-compiling) = no]: Likewise.
491         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
492         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
493         * intl/Makefile [$(cross-compiling) = no]: Likewise.
494         * io/Makefile [$(cross-compiling) = no]: Likewise.
495         * libio/Makefile [$(cross-compiling) = no]: Likewise.
496         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
497         * misc/Makefile [$(cross-compiling) = no]: Likewise.
498         * posix/Makefile [$(cross-compiling) = no]: Likewise.
499         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
500         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
501         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
502         * string/Makefile [$(cross-compiling) = no]: Likewise.
503
504         * posix/Makefile ($(objpfx)globtest.out): Pass
505         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
506         $(rtld-installed-name).
507         * posix/globtest.sh (elf_objpfx): Remove variable.
508         (rtld_installed_name): Likewise.
509         (library_path): Likewise.
510         (run_program_prefix): New variable.  Use for running globtest
511         binary.
512
513 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
514             Joseph Myers  <joseph@codesourcery.com>
515
516         * Makeconfig (host-built-program-cmd): New variable.
517         * elf/Makefile (tst-stackguard1-ARGS): Use
518         $(host-built-program-cmd).
519         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
520         (tst-spawn-ARGS): Likewise.
521         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
522
523 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
524             Jim Blandy  <jimb@codesourcery.com>
525
526         * Makeconfig (run-via-rtld-prefix): New variable.
527         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
528         (built-program-cmd): Likewise.
529
530 2012-10-22  Andreas Jaeger  <aj@suse.de>
531
532         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
533         __O_RSYNC if it exists, otherwise to O_SYNC.
534
535 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
536             Joseph Myers  <joseph@codesourcery.com>
537
538         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
539         /dev/null.
540         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
541         from /dev/null
542         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
543         /dev/null.
544
545 2012-10-22  Andreas Jaeger  <aj@suse.de>
546
547         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
548         Define always.
549         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
550
551         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
552         bits/fcntl-linux.h.
553
554         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
555         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
556
557         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
558         to __O_LARGEFILE.
559         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
560         to __O_LARGEFILE.
561
562 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
563             Joseph Myers  <joseph@codesourcery.com>
564
565         * config.make.in (NM): New variable.
566
567 2012-10-21  Andreas Jaeger  <aj@suse.de>
568
569         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
570         definitions and declarations that are provided by
571         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
572
573 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
574
575         [BZ #14683]
576         * elf/Makefile (tests-static): Add tst-leaks1-static.
577         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
578         ($(objpfx)tst-leaks1-static): New rule.
579         ($(objpfx)tst-leaks1-static-mem): Likewise.
580         (tst-leaks1-static-ENV): New macro.
581         * elf/dl-open.c (dl_open_worker): Check the main application
582         only if SHARED is defined.
583         * elf/tst-leaks1-static.c: New file.
584
585 2012-10-20  Andreas Jaeger  <aj@suse.de>
586
587         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
588         generic values for Linux.
589         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
590         and declarations that are provided by <bits/fcntl-linux.h> and
591         include <bits/fcntl-linux.h>.
592         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
593         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
594
595 2012-10-20  Roland McGrath  <roland@hack.frob.com>
596
597         * io/fcntl.h: Move include of <bits/types.h> to the top and
598         include it unconditionally.
599
600 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
601
602         * wcsmbs/Makefile (tests-ifunc): New variable.
603         (tests): Add $(tests-ifunc).
604         * wcsmbs/test-wcschr-ifunc.c: New file.
605         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
606         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
607         * wcsmbs/test-wcslen-ifunc.c: Likewise.
608         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
609         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
610
611         * string/Makefile (tests-ifunc): New variable.
612         (tests): Add $(tests-ifunc).
613         * string/test-memccpy.c (TEST_NAME): New macro.
614         * string/test-memchr.c (TEST_NAME): Likewise.
615         * string/test-memcmp.c (TEST_NAME): Likewise.
616         * string/test-memcpy.c (TEST_NAME): Likewise.
617         * string/test-memmem.c (TEST_NAME): Likewise.
618         * string/test-memmove.c (TEST_NAME): Likewise.
619         * string/test-memset.c (TEST_NAME): Likewise.
620         * string/test-rawmemchr.c (TEST_NAME): Likewise.
621         * string/test-stpcpy.c (TEST_NAME): Likewise.
622         * string/test-stpncpy.c (TEST_NAME): Likewise.
623         * string/test-strcasecmp.c (TEST_NAME): Likewise.
624         * string/test-strcasestr.c (TEST_NAME): Likewise.
625         * string/test-strcat.c (TEST_NAME): Likewise.
626         * string/test-strchr.c (TEST_NAME): Likewise.
627         * string/test-strcmp.c(TEST_NAME): Likewise.
628         * string/test-strcpy.c (TEST_NAME): Likewise.
629         * string/test-strcspn.c (TEST_NAME): Likewise.
630         * string/test-strlen.c (TEST_NAME): Likewise.
631         * string/test-strncasecmp.c (TEST_NAME): Likewise.
632         * string/test-strncmp.c (TEST_NAME): Likewise.
633         * string/test-strncpy.c (TEST_NAME): Likewise.
634         * string/test-strnlen.c (TEST_NAME): Likewise.
635         * string/test-strpbrk.c (TEST_NAME): Likewise.
636         * string/test-strrchr.c (TEST_NAME): Likewise.
637         * string/test-strspn.c (TEST_NAME): Likewise.
638         * string/test-strstr.c (TEST_NAME): Likewise.
639         * string/test-bcopy-ifunc.c: New file.
640         * string/test-bzero-ifunc.c: Likewise.
641         * string/test-memccpy-ifunc.c: Likewise.
642         * string/test-memchr-ifunc.c: Likewise.
643         * string/test-memcmp-ifunc.c: Likewise.
644         * string/test-memcpy-ifunc.c: Likewise.
645         * string/test-memmem-ifunc.c: Likewise.
646         * string/test-memmove-ifunc.c: Likewise.
647         * string/test-mempcpy-ifunc.c: Likewise.
648         * string/test-memset-ifunc.c: Likewise.
649         * string/test-rawmemchr-ifunc.c: Likewise.
650         * string/test-stpcpy-ifunc.c: Likewise.
651         * string/test-stpncpy-ifunc.c: Likewise.
652         * string/test-strcasecmp-ifunc.c: Likewise.
653         * string/test-strcasestr-ifunc.c: Likewise.
654         * string/test-strcat-ifunc.c: Likewise.
655         * string/test-strchr-ifunc.c: Likewise.
656         * string/test-strchrnul-ifunc.c: Likewise.
657         * string/test-strcmp-ifunc.c: Likewise.
658         * string/test-strcpy-ifunc.c: Likewise.
659         * string/test-strcspn-ifunc.c: Likewise.
660         * string/test-strlen-ifunc.c: Likewise.
661         * string/test-strncasecmp-ifunc.c: Likewise.
662         * string/test-strncat-ifunc.c: Likewise.
663         * string/test-strncmp-ifunc.c: Likewise.
664         * string/test-strncpy-ifunc.c: Likewise.
665         * string/test-strnlen-ifunc.c: Likewise.
666         * string/test-strpbrk-ifunc.c: Likewise.
667         * string/test-strrchr-ifunc.c: Likewise.
668         * string/test-strspn-ifunc.c: Likewise.
669         * string/test-strstr-ifunc.c: Likewise.
670
671         * debug/Makefile (tests-ifunc): New variable.
672         (tests): Add $(tests-ifunc).
673         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
674         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
675         * debug/test-stpcpy_chk-ifunc.c: New file.
676         * debug/test-strcpy_chk-ifunc.c: Likewise.
677
678 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
679
680         [BZ #13601]
681         * elf/dl-load.c (open_verify): Retry read if the entire ELF
682         header is not read in.
683
684 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
685
686         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
687         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
688         directly.  Pass built executable to script as
689         $(built-program-cmd).
690         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
691         $testprogram without using LD_LIBRARY_PATH and $ldso.
692
693         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
694         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
695         $(rtld-installed-name).
696         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
697         (rtld_installed_name): Likewise.
698         (library_path): Likewise.
699         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
700         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
701         $(run-program-prefix) to tst-tables.sh.
702         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
703         it to run tst-table-from and tst-table-to.
704         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
705         Pass it to tst-table.sh.
706         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
707         $(run-program-prefix) to tst-gettext.sh.
708         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
709         tst-translit.sh.
710         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
711         tst-gettext2.sh.
712         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
713         to run tst-gettext.
714         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
715         to run tst-gettext2.
716         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
717         to run tst-translit.
718         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
719         $(run-program-prefix) to tst-mtrace.sh.
720         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
721         to run tst-mtrace.
722         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
723         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
724         $(rtld-installed-name).
725         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
726         (rtld_installed_name): Likewise.
727         (run_program_prefix): New variable.  Use it to run wordexp-test.
728
729         * Makeconfig (ARCH): Remove all definitions.
730         (machine): Likewise.
731         [ARCH]: Remove conditional code.
732         [!objdir]: Give error.
733         [!objdir] (objpfx): Remove.
734         [!objdir] (common-objpfx): Likewise.
735         [!objdir] (common-objdir): Likewise.
736         * configure.in (config_makefile): Remove.  Hardcode Makefile in
737         AC_CONFIG_FILES call.
738         * configure: Regenerated.
739
740         [BZ #13888]
741         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
742         or TMPDIR.
743         (testout): Likewise.
744
745         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
746         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
747         $(rtld-installed-name).
748         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
749         (rtld_installed_name): Likwise.
750         (runit): Remove function.
751         (run_getconf): New variable,  Use it for running getconf binary.
752
753 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
754
755         [BZ #14716]
756         * string/test-memmem.c (check_result): New function.
757         (do_one_test): Use it.
758         (check1): New function.
759         (test_main): Use it.
760
761 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
762
763         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
764
765 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
766
767         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
768         (_G_LSEEK64): Likewise.
769         (_G_MMAP64): Likewise.
770         (_G_FSTAT64): Likewise.
771         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
772         (_G_LSEEK64): Likewise.
773         (_G_MMAP64): Likewise.
774         (_G_FSTAT64): Likewise.
775         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
776         unconditional.  Call __mmap64 directly.
777         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
778         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
779         __lseek64 directly.
780         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
781         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
782         __mmap64 directly.
783         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
784         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
785         __lseek64 directly.
786         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
787         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
788         __lseek64 directly.
789         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
790         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
791         __lseek64 directly.
792         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
793         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
794         __fxstat64 directly.
795         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
796         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
797         unconditional.
798         (freopen64) [!_G_OPEN64]: Remove conditional code.
799         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
800         unconditional.
801         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
802         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
803         unconditional.
804         (ftello64) [!_G_LSEEK64]: Remove conditional code.
805         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
806         unconditional.
807         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
808         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
809         unconditional.
810         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
811         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
812         unconditional.
813         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
814         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
815         unconditional.
816         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
817         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
818         unconditional.
819         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
820
821 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
822
823         [BZ #12140]
824         * manual/memory.texi (Malloc Tunable Parameters): Add note
825         about free list pointers overwriting some perturb bytes.
826         Wording suggested by Roland McGrath.
827
828 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
829
830         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
831         (lgamma_test): Likewise.
832         (tgamma_test): Likewise.
833
834 2012-10-16  Florian Weimer  <fweimer@redhat.com>
835
836         [BZ #14700]
837         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
838         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
839
840 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
841
842         * NEWS: Mention BZ #14716.
843         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
844         when removing AVAILABLE1_USES_J macro.
845
846 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
847
848         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
849         (__bswap_64): __uint64_t for unsigned 64-bit int.
850
851 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
852
853         * include/string.h (memmem): Declare libc hidden alias.
854         * string/memmem.c (memmem): Define libc hidden alias.
855         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
856         __read, __close instead of open, read, close.
857
858 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
859
860         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
861         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
862         global and hidden.
863         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
864         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
865         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
866         Likewise.
867         (__rawmemchr_sse2): Likewise.
868         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
869         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
870         (__strchr_sse2): Likewise.
871         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
872         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
873         (__strcasecmp_sse2): Likewise.
874         (__strncasecmp_sse2): Likewise.
875         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
876         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
877         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
878         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
879         (__strrchr_sse2): Likewise.
880         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
881         ifunc-impl-list.c.
882         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
883         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
884         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
885         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
886         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
887         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
888         * sysdeps/x86_64/multiarch/memset.S: Likewise.
889         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
890         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
891         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
892         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
893         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
894         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
895         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
896         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
897         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
898         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
899         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
900         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
901         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
902         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
903         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
904         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
905         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
906         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
907         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
908         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
909         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
910         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
911         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
912
913         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
914         global and hidden.
915         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
916         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
917         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
918         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
919         Likewise.
920         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
921         Likewise.
922         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
923         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
924         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
925         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
926         ifunc-impl-list.c.
927         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
928         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
929         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
930         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
931         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
932         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
933         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
934         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
935         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
936         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
937         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
938         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
939         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
940         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
941         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
942         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
943         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
944         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
945         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
946         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
947         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
948         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
949         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
950         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
951         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
952         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
953         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
954         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
955         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
956         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
957         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
958         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
959         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
960         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
961         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
962         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
963         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
964         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
965         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
966         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
967         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
968
969         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
970         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
971         * include/ifunc-impl-list.h: New file.
972         * misc/ifunc-impl-list.c: Likewise.
973         * misc/Makefile (routines): Add ifunc-impl-list.
974         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
975         * string/test-string.h: Include <ifunc-impl-list.h>.
976         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
977         impl_array): New variables.
978         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
979         are defined.
980         (test_init): Call __libc_ifunc_impl_list to initialize
981         func_list if TEST_IFUNC and TEST_NAME are defined.
982
983         * string/Makefile (strop-tests): Add bcopy and bzero.
984         * string/test-bcopy.c: New file.
985         * string/test-bzero.c: Likewise.
986         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
987         defined.
988         * string/test-memset.c: Support bzero test if TEST_BZERO is
989         defined.
990         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
991         __libc_memmove.
992         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
993         __libc_memset.
994         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
995         of memset.
996
997 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
998
999         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
1000         * configure: Regenerated.
1001
1002         * Makeconfig (+link-static-before-libc): Don't include
1003         $(link-static-libc).
1004
1005         * libio/libio.h (_IO_pos_t): Remove.
1006
1007 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1008
1009         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
1010         McGrath.
1011
1012 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1013
1014         * crypt/crypt-entry.c: Include fips-private.h.
1015         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
1016         * crypt/md5c-test.c (main): Tolerate disabled MD5.
1017         * sysdeps/unix/sysv/linux/fips-private.h: New file.
1018         * sysdeps/generic/fips-private.h: New file, dummy fallback.
1019
1020 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
1021
1022         * crypt/crypt-private.h: Include stdbool.h.
1023         (_ufc_setup_salt_r): Return bool.
1024         * crypt/crypt-entry.c: Include errno.h.
1025         (__crypt_r): Return NULL with EINVAL for bad salt.
1026         * crypt/crypt_util.c (bad_for_salt): New.
1027         (_ufc_setup_salt_r): Check that salt is long enough and within
1028         the specified alphabet.
1029         * crypt/badsalttest.c: New file.
1030         * crypt/Makefile (tests): Add it.
1031         ($(objpfx)badsalttest): New.
1032
1033 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1034
1035         * NEWS: Add entry for BZ #14602.
1036
1037 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1038
1039         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1040         type-generic.
1041         * math/libm-test.inc: Update comment listing what functions and
1042         macros are tested.
1043         (isgreater_test): New function.
1044         (isgreaterequal_test): Likewise.
1045         (isless_test): Likewise.
1046         (islessequal_test): Likewise.
1047         (islessgreater_test): Likewise.
1048         (isunordered_test): Likewise.
1049         (main): Call the new functions.
1050
1051 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1052
1053         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1054         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1055         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1056         * sysdeps/i386/configure: Regenerated.
1057         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1058         * sysdeps/mach/configure: Regenerated.
1059         * sysdeps/mach/hurd/configure: Regenerated.
1060         * sysdeps/powerpc/configure: Regenerated.
1061         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1062         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1063         * sysdeps/s390/s390-32/configure: Regenerated.
1064         * sysdeps/s390/s390-64/configure: Regenerated.
1065         * sysdeps/sh/configure: Regenerated.
1066         * sysdeps/sparc/configure: Regenerated.
1067         * sysdeps/unix/sysv/linux/configure: Regenerated.
1068         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1069         * sysdeps/x86_64/configure: Regenerated.
1070
1071         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1072         defined.  Don't check if MAP is NULL.
1073
1074 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1075
1076         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1077         (_G_stat64): Likewise.
1078         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1079         (_G_stat64): Likewise.
1080         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1081         instead of struct _G_stat64.
1082         * libio/fileops.c (mmap_remap_check): Likewise.
1083         (decide_maybe_mmap): Likewise.
1084         (_IO_new_file_seekoff): Likewise.
1085         (_IO_file_stat): Likewise.
1086         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1087         _G_off64_t.
1088         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1089         instead of struct _G_stat64.
1090         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1091
1092 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1093
1094         [BZ #14602]
1095         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1096         Replace with ...
1097         (CHECK_EOL): New macro.
1098         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1099         CHECK_EOL.
1100         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1101         Replace with CHECK_EOL.
1102         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1103         Replace with CHECK_EOL.
1104
1105 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1106
1107         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1108         type-generic.
1109         * math/libm-test.inc: Update comment listing what functions and
1110         macros are tested.
1111         (finite_test): New function.
1112         (isinf_test): Likewise.
1113         (isnan_test): Likewise.
1114         (fpclassify_test): Test subnormal input.
1115         (isfinite_test): Likewise.
1116         (isnormal_test): Likewise.
1117         (main): Call the new functions.
1118
1119 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1120
1121         [BZ #14660]
1122         * Makerules (%.dynsym): Force C locale when running
1123         $(OBJDUMP) --dynamic-syms.
1124
1125 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1126
1127         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1128         <stdint.h>.
1129
1130 2012-10-06  David S. Miller  <davem@davemloft.net>
1131
1132         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1133         upper 32-bits of the length value in %o2 since we use branch-on-register
1134         tests which consider the entire 64-bit register.
1135
1136 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         * string/test-strstr.c (check2): Add a test for page boundary.
1139
1140 2012-10-05  David S. Miller  <davem@davemloft.net>
1141
1142         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1143         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1144         file.
1145         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1146         sysdep_routines.
1147         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1148         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1149         and bzero when HWCAP_SPARC_CRYPTO is present.
1150
1151 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1152
1153         [BZ #14602]
1154         * string/test-strstr.c (check2): New function.
1155         (test_main): Call check2.
1156
1157         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1158         and bug-strchr1.
1159         * string/bug-strcasestr1.c (do_test): Moved to ...
1160         * string/test-strcasestr.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-strchr1.c (do_test): Moved to ...
1166         * string/test-strchr.c (check1): Here.  New function.
1167         (do_one_test): Break out result checking code into ...
1168         (check_result): This.  New function.
1169         (do_one_test): Call check_result.
1170         (test_main): Call check1.
1171         * string/bug-strstr1.c (main): Moved to ...
1172         * string/test-strchr.c (check1): Here.  New function.
1173         (do_one_test): Break out result checking code into ...
1174         (check_result): This.  New function.
1175         (do_one_test): Call check_result.
1176         (test_main): Call check1.
1177         * string/bug-strcasestr1.c: Removed.
1178         * string/bug-strchr1.c: Likewise.
1179         * string/bug-strstr1.c: Likewise.
1180
1181         * elf/Makefile (dl-routines): Add hwcaps.
1182         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1183         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1184         (_dl_important_hwcaps): Moved to ...
1185         * elf/dl-hwcaps.c: Here.  New file.
1186         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1187
1188         [BZ #14557]
1189         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1190         if IS_IN_rtld isn't defined.
1191
1192         * elf/dl-support.c (_dl_sysinfo_map): New.
1193         Include "get-dynamic-info.h" and "setup-vdso.h".
1194         (_dl_non_dynamic_init): Call setup_vdso.
1195         * elf/dynamic-link.h: Don't include <assert.h>.
1196         (elf_get_dynamic_info): Moved to ...
1197         * elf/get-dynamic-info.h: Here.  New file.
1198         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1199         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1200         * elf/setup-vdso.h: Here.  New file.
1201         * elf/rtld.c: Include "setup-vdso.h".
1202         (dl_main): Call setup_vdso.
1203
1204 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1205
1206         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1207         creal in comment listing functions tested.  List finite, isinf,
1208         isnan, isless, islessequal, isgreater, isgreaterequal,
1209         islessgreater, isunordered, lgamma_r and pow10 as functions and
1210         macros not tested.  Mention which functions not tested are aliases
1211         for other functions.  Fix typo.  Note that signs of NaNs are not
1212         tested.
1213
1214         * scripts/config.guess: Update from config.git.
1215         * scripts/config.sub: Likewise.
1216
1217 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1218
1219         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1220         * misc/madvise.c (madvise): Renamed to __madvise.
1221         Make madvise a weak alias.
1222         * include/sys/mman.h: Declare __madvise.
1223         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1224         * sysdeps/unix/syscalls.list
1225         (madvise): Make __madvise the strong name, and madvise a weak alias.
1226         * sysdeps/unix/sysv/linux/syscalls.list
1227         (madvise, mmap): Remove redundant entries.
1228         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1229         * malloc/malloc.c (mtrim): Likewise.
1230         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1231
1232 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1233
1234         * sysdeps/mach/hurd/dl-cache.c: File removed.
1235         * config.h.in (USE_LDCONFIG): New #undef.
1236         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1237         * configure: Regenerated.
1238         * elf/Makefile (dl-routines): Add dl-cache only under
1239         [$(use-ldconfig) = yes].
1240         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1241         cache on [USE_LDCONFIG].
1242         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1243         [USE_LDCONFIG].
1244         * elf/rtld.c (dl_main): Likewise.
1245
1246 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1247
1248         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1249         _SC_LEVEL4_CACHE_LINESIZE.
1250
1251 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1252
1253         * sysdeps/unix/bsd/confstr.h: File removed.
1254
1255 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1256
1257         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1258         sys/sdt-config.h.
1259
1260 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1261
1262         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1263         Make 'mapoff' field ElfW(Off) rather than off_t.
1264
1265 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1266
1267         * nscd/Makefile: Remove nscd-cflags and all its users.
1268         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1269         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1270
1271         [BZ #10631]
1272         * malloc.c (malloc_printerr): Clarify error message.
1273
1274 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1275
1276         [BZ #14648]
1277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1278         Set bit_FMA_Usable if FMA is supported.
1279         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1280         macro.
1281         (bit_FMA4_Usable): Updated.
1282         (index_FMA_Usable): New macro.
1283         (CPUID_FMA): Likewise
1284         (HAS_FMA): Defined with bit_FMA_Usable.
1285
1286 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1287
1288         * bits/types.h (__swblk_t): Type removed.
1289         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1290         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1291         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1292         (__SWBLK_T_TYPE): Likewise.
1293         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1294         (__SWBLK_T_TYPE): Likewise.
1295         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1296         (__SWBLK_T_TYPE): Likewise.
1297         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1298         (__SWBLK_T_TYPE): Likewise.
1299
1300 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1301             Honza Horak <hhorak@redhat.com>
1302
1303         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1304         (xdr_mapname): Use YPMAXMAP as maxsize.
1305         (xdr_peername): Use YPMAXPEER as maxsize.
1306         (xdr_keydat): Use YPAXRECORD as maxsize.
1307         (xdr_valdat): Use YPMAXRECORD as maxsize.
1308
1309 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1310
1311         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1312
1313         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1314         * csu/init-first.c: ... here.
1315         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1316         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1317         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1318         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1319         * sysdeps/i386/init-first.c: File removed.
1320         * sysdeps/sh/init-first.c: File removed.
1321
1322 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1323
1324         [BZ #14645]
1325         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1326         if x * y might underflow to zero and z is zero.
1327         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1328         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1329         * math/libm-test.inc (min_subnorm_value): New variable.
1330         (fma_test): Add more tests.
1331         (fma_test_towardzero): Likewise.
1332         (fma_test_downward): Likewise
1333         (fma_test_upward): Likewise.
1334         (initialize): Set min_subnorm_value.
1335
1336 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1337
1338         [BZ #14638]
1339         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1340         0 + 0.
1341         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1342         mode for addition resulting in exact zero.
1343         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1344         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1345         exact 0 + 0.
1346         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1347         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1348         * math/libm-test.inc (fma_test): Add more tests.
1349         (fma_test_towardzero): New function.
1350         (fma_test_downward): Likewise.
1351         (fma_test_upward): Likewise.
1352         (main): Call the new functions.
1353
1354 2012-09-28  David S. Miller  <davem@davemloft.net>
1355
1356         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1357
1358 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1359
1360         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1361         instead of SIGALRM.
1362
1363         * sysdeps/gnu/_G_config.h: Moved to ...
1364         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1365         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1366         * sysdeps/generic/_G_config.h: ... here.
1367
1368         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1369
1370         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1371
1372         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1373         Conditionalize target on [libnss_test1.so-version].
1374
1375         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1376
1377         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1378         (elfobjdir): Move out of conditionals.
1379
1380         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1381         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1382         (__nss_lookup_function): Conditionalize label remove_from_tree on
1383         [!DO_STATIC_NSS || SHARED], matching its only use.
1384
1385 2012-09-28  David S. Miller  <davem@davemloft.net>
1386
1387         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1388         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1389         file.
1390         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1391         sysdep_routines.
1392         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1393         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1394         when HWCAP_SPARC_CRYPTO is present.
1395
1396 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1397
1398         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1399
1400 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1401
1402         [BZ #6530]
1403         * stdio-common/vfprintf.c (process_string_arg): Revert
1404         2000-07-22 change.
1405
1406 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1407
1408         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1409         for testcase.
1410         * stdio-common/tst-sprintf.c: Include <locale.h>
1411         (main): Test sprintf's handling of incomplete multibyte
1412         characters.
1413
1414 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1415
1416         * elf/dl-runtime.c (VERSYMIDX): Removed.
1417         * elf/dl-version.c (VERSYMIDX): Likewise.
1418         * elf/do-rel.h (VERSYMIDX): Likewise.
1419         (VALIDX): Likewise.
1420         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1421         * elf/rtld.c (VALIDX): Likewise.
1422         (ADDRIDX): Likewise.
1423         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1424         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1425         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1426         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1427         (VALIDX): Likewise.
1428         (ADDRIDX): Likewise.
1429
1430 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1431
1432         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1433
1434 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1435
1436         [BZ #11438]
1437         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1438         to global scope.
1439         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1440         addresses are in the same scope as 192.0.2/24.
1441         * posix/gai.conf: Document new scope table defaults.
1442
1443 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1444
1445         [BZ #5298]
1446         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1447         for ftell.  Compute offsets from write pointers instead.
1448         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1449
1450 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1451
1452         [BZ #14543]
1453         * libio/Makefile (tests): New test case tst-fseek.
1454         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1455         combination works in wide mode.
1456         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1457         state when the external buffer state changes.
1458
1459 2012-09-27  David S. Miller  <davem@davemloft.net>
1460
1461         [BZ #14376]
1462         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1463         pass reloc->r_addend in as the 'high' argument to
1464         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1465
1466         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1467
1468 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1469
1470         * rt/tst-aio2.c: Include <pthread.h>.
1471         * rt/tst-aio3.c: Likewise.
1472
1473 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1474
1475         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1476
1477 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1478
1479         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1480         contents on [SHARED].
1481
1482 2012-09-26  Marek Polacek  <polacek@redhat.com>
1483
1484         [BZ #14530]
1485         [BZ #13741]
1486         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1487         for C++ and GCC <4.3 as well as for non GCC compilers.
1488
1489 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1490
1491         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1492
1493 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1494
1495         * Makefile.in (all, install): Declare with .PHONY.
1496         Reported by Michael Hope <michael.hope@linaro.org>.
1497
1498 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1499
1500         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1501         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1502         system header.
1503         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1504         Likewise.
1505         (sydep_routines): Add the new and the internal functions.
1506         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1507         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1509         (GLIBC_2.17): Add the new function.
1510         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1511         (GLIBC_2.17): Likewise.
1512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1513         (GLIBC_2.17): Likewise.
1514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1515         (GLIBC_2.17): Likewise.
1516         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1517
1518 2012-09-25  Alan Modra  <amodra@gmail.com>
1519
1520         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1521         Add release barrier before setting once_control to say
1522         initialisation is done.  Add hints on lwarx.  Use macro in
1523         place of isync.
1524         (clear_once_control): Add release barrier.
1525
1526 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1527
1528         [BZ #13629]
1529         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1530         specially.
1531         * math/s_clog10.c (__clog10): Likewise.
1532         * math/s_clog10f.c (__clog10f): Likewise.
1533         * math/s_clog10l.c (__clog10l): Likewise.
1534         * math/s_clogf.c (__clogf): Likewise.
1535         * math/s_clogl.c (__clogl): Likewise.
1536         * math/Makefile (libm-calls): Add x2y2m1.
1537         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1538         (__x2y2m1): Likewise.
1539         (__x2y2m1l): Likewise.
1540         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1541         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1542         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1543         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1544         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1545         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1546         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1547         * sysdeps/i386/fpu/libm-test-ulps: Update.
1548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1549
1550         [BZ #14621]
1551         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1552         int as type of variable DEPTH.
1553         (glob): Use size_t instead of int as type of variables NEWCOUNT
1554         and OLD_PATHC.
1555
1556 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1557
1558         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1559         Add s_sincosf-sse2.
1560         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1561         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1562         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1563         macros for using routine as __sincosf_ia32.
1564         Use macro for function declaration and weak_alias.
1565         * sysdeps/i386/fpu/libm-test-ulps: Update.
1566
1567         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1568         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1569
1570         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1571         subnormal argument.
1572         * math/s_cexpf.c (__cexpf): Likewise.
1573         * math/s_csinf.c (__csinf): Likewise.
1574         * math/s_csinhf.c (__csinhf): Likewise.
1575         * math/s_ctanf.c (__ctanf): Likewise.
1576         * math/s_ctanhf.c (__ctanhf): Likewise.
1577         * math/s_ccosh.c (__ccoshf): Likewise.
1578         * math/s_cexp.c (__cexpl): Likewise.
1579         * math/s_csin.c (__csin): Likewise.
1580         * math/s_csinh.c (__csinh): Likewise.
1581         * math/s_ctan.c (__ctan): Likewise.
1582         * math/s_ctanh.c (ctanh): Likewise.
1583         * math/s_ccoshl.c (__ccoshl): Likewise.
1584         * math/s_cexpl.c (__cexpl): Likewise.
1585         * math/s_csinl.c (__csinl): Likewise.
1586         * math/s_csinhl.c (__csinhl): Likewise.
1587         * math/s_ctanl.c (__ctanl): Likewise.
1588         * math/s_ctanhl.c (__ctanhl): Likewise.
1589
1590 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1591
1592         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1593         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1594         (_IO_off_t): Define to __off_t, not _G_off_t.
1595         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1596         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1597         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1598         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1599         type of __dummy and __dummy2 fields.
1600         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1601         (_G_ssize_t): Likewise.
1602         (_G_off_t): Likewise.
1603         (_G_pid_t): Likewise.
1604         (_G_uid_t): Likewise.
1605         (_G_wchar_t): Likewise.
1606         (_G_wint_t): Likewise.
1607         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1608         (_G_ssize_t): Likewise.
1609         (_G_off_t): Likewise.
1610         (_G_pid_t): Likewise.
1611         (_G_uid_t): Likewise.
1612         (_G_wchar_t): Likewise.
1613         (_G_wint_t): Likewise.
1614         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1615         (_G_ssize_t): Likewise.
1616         (_G_off_t): Likewise.
1617         (_G_pid_t): Likewise.
1618         (_G_uid_t): Likewise.
1619         (_G_wchar_t): Likewise.
1620         (_G_wint_t): Likewise.
1621
1622 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1623
1624         * malloc/arena.c: Include malloc-sysdep.h.
1625         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1626         is sufficient to shrink the heap or an unmap is needed.
1627         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1628         new function check_may_shrink_heap.
1629         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1630         new function check_may_shrink_heap.
1631
1632 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1633
1634         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1635         comments.
1636
1637 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1638
1639         * catgets/test-gencat.sh: Add "set -e".
1640         * elf/tst-pathopt.sh: Likewise.
1641         * grp/tst_fgetgrent.sh: Likewise.
1642         * iconvdata/run-iconv-test.sh: Likewise.
1643         * intl/tst-gettext.sh: Likewise.
1644         * intl/tst-gettext2.sh: Likewise.
1645         * intl/tst-gettext4.sh: Likewise.
1646         * intl/tst-gettext6.sh: Likewise.
1647         * intl/tst-translit.sh: Likewise.
1648         * io/ftwtest-sh: Likewise.
1649         * libio/test-freopen.sh: Likewise.
1650         * malloc/tst-mtrace.sh: Likewise.
1651         * posix/globtest.sh: Likewise.
1652         * posix/tst-getconf.sh: Likewise.
1653         * posix/wordexp-tst.sh: Likewise.
1654         * stdio-common/tst-printf.sh: Likewise.
1655         * stdio-common/tst-unbputc.sh: Likewise.
1656         * stdlib/tst-fmtmsg.sh: Likewise.
1657         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1658         * catgets/Makefile: Do not specify -e option when running
1659         testsuite shell scripts.
1660         * elf/Makefile: Likewise.
1661         * grp/Makefile: Likewise.
1662         * iconvdata/Makefile: Likewise.
1663         * intl/Makefile: Likewise.
1664         * io/Makefile: Likewise.
1665         * libio/Makefile: Likewise.
1666         * malloc/Makefile: Likewise.
1667         * posix/Makefile: Likewise.
1668         * stdio-common/Makefile: Likewise.
1669         * stdlib/Makefile: Likewise.
1670         * sysdeps/x86_64/Makefile: Likewise.
1671
1672         * io/ftwtest-sh: Add copyright header.
1673         * posix/globtest.sh: Likewise.
1674         * posix/tst-getconf.sh: Likewise.
1675         * posix/wordexp-tst.sh: Likewise.
1676         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1677
1678 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1679
1680         [BZ #13679]
1681         * Makeconfig (+link): Defined as $(+link-static) if
1682         $(build-shared) isn't yes.
1683         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1684         isn't yes.
1685         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1686
1687         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1688
1689         [BZ #14562]
1690         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1691         new chunk size with MALLOC_ALIGN_MASK.
1692
1693 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1694
1695         [BZ #5044]
1696         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1697         <rounding-mode.h>.
1698         (__printf_fphex): Determine rounding using get_rounding_mode and
1699         round_away.
1700         * stdio-common/tst-printf-round.c (struct hex_test): New
1701         structure.
1702         (hex_tests): New variable.
1703         (test_hex_in_one_mode): New function.
1704         (do_test): Also run tests for hex float output.
1705
1706 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1707
1708         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1709         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1710         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1711         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1712         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1713         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1714         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1715         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1716
1717 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1720         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1721         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1722         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1723
1724 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1725
1726         [BZ #14579]
1727         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1728         mode only.
1729         * elf/tst-rtld-load-self.sh: New test.
1730         * elf/Makefile: Run it.
1731
1732 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1733
1734         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1735         (tst-writev-ENV): Remove.
1736         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1737
1738 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1739
1740         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1741
1742 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1743
1744         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1745         unconditional.
1746         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1747         Likewise.
1748         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1749         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1750         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1751         Likewise.
1752
1753 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1754
1755         [BZ #14587]
1756         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1757         * config.make.in (have-cpp-asm-debuginfo): Removed.
1758         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1759         * configure: Regenerated.
1760
1761 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1762
1763         [BZ #5044]
1764         * stdio-common/printf_fp.c: Include <stdbool.h> and
1765         <rounding-mode.h>.
1766         (___printf_fp): Determine rounding using get_rounding_mode and
1767         round_away.
1768         * stdio-common/tst-printf-round.c: New file.
1769         * stdio-common/Makefile (tests): Add tst-printf-round.
1770         (link-libm): New variable.
1771         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1772
1773 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1774
1775         [BZ #14576]
1776         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1777         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1778         Likewise.
1779         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1780         Likewise.
1781
1782 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1783
1784         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1785         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1786         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1787         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1788
1789 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1790
1791         [BZ #14518]
1792         * include/rounding-mode.h: New file.
1793         * sysdeps/generic/get-rounding-mode.h: Likewise.
1794         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1795         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1796         (MAX_VALUE): New macro.
1797         (MIN_VALUE): Likewise.
1798         (overflow_value): New function.
1799         (underflow_value): Likewise.
1800         (round_and_return): Use overflow_value and underflow_value to
1801         determine return values in overflow and underflow cases.  Use
1802         round_away to determine rounding depending on rounding mode.
1803         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1804         determine return values in overflow and underflow cases.
1805         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1806         (struct test_results): New structure.
1807         (struct test): Use struct test_results to store expected results
1808         for all rounding modes.
1809         (TEST): Include expected results for all rounding modes.
1810         (test_in_one_mode): New function.
1811         (do_test): Use test_in_one_mode to compute and check results.
1812         Check results for all rounding modes.
1813         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1814         $(link-libm).
1815
1816 2012-12-09  Allan McRae  <allan@archlinux.org>
1817
1818         * sysdeps/i386/fpu/libm-test-ulps: Update
1819
1820 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1821
1822         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1823         (_G_int32_t): Likewise.
1824         (_G_uint16_t): Likewise.
1825         (_G_uint32_t): Likewise.
1826         (_G_HAVE_BOOL): Likewise.
1827         (_G_HAVE_ATEXIT): Likewise.
1828         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1829         (_G_HAVE_IO_FILE_OPEN): Likewise.
1830         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1831         (_G_int32_t): Likewise.
1832         (_G_uint16_t): Likewise.
1833         (_G_uint32_t): Likewise.
1834         (_G_HAVE_BOOL): Likewise.
1835         (_G_HAVE_ATEXIT): Likewise.
1836         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1837         (_G_HAVE_IO_FILE_OPEN): Likewise.
1838         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1839         (_G_int32_t): Likewise.
1840         (_G_uint16_t): Likewise.
1841         (_G_uint32_t): Likewise.
1842         (_G_HAVE_BOOL): Likewise.
1843         (_G_HAVE_ATEXIT): Likewise.
1844         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1845         (_G_HAVE_IO_FILE_OPEN): Likewise.
1846
1847 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1848
1849         * csu/libc-tls.c: Update copyright years.
1850
1851 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1852
1853         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1854         [!_G_USING_THUNKS]: Remove conditional code.
1855         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1856         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1857
1858         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1859         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1860         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1861         (_G_VTABLE_LABEL_PREFIX): Likewise.
1862         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1863         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1864         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1865         (_G_VTABLE_LABEL_PREFIX): Likewise.
1866         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1867         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1868         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1869         (_G_VTABLE_LABEL_PREFIX): Likewise.
1870         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1871
1872 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1873
1874         * libio/Makefile: Include ../Makeconfig before tests.
1875         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1876         only if $(build-shared) is yes.
1877
1878         * iconv/gconv_db.c: Update copyright years.
1879
1880 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1881
1882         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1883         unwind info if defined PIC. Fix special cases description.
1884         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1885
1886         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1887         DP_HI_MASK entry.
1888         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1889
1890 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1891
1892         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1893
1894         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1895         is NULL.
1896
1897         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1898         (LDLIBS-tst-chk4): This.
1899         (LDFLAGS-tst-chk5): Renamed to ...
1900         (LDLIBS-tst-chk5): This.
1901         (LDFLAGS-tst-chk6): Renamed to ...
1902         (LDLIBS-tst-chk6): This.
1903         (LDFLAGS-tst-lfschk4): Renamed to ...
1904         (LDLIBS-tst-lfschk4): This.
1905         (LDFLAGS-tst-lfschk5): Renamed to ...
1906         (LDLIBS-tst-lfschk5): This.
1907         (LDFLAGS-tst-lfschk6): Renamed to ...
1908         (LDLIBS-tst-lfschk6): This.
1909
1910         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1911         on $(common-objpfx)soversions.mk.
1912
1913 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1914
1915         [BZ #10014]
1916         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1917         example host name.
1918
1919 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1920
1921         * malloc/arena.c (arena_get_retry): New function that gets
1922         another arena for the caller to try its request on.
1923         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1924         current arena cannot fulfill the request.
1925         (__libc_memalign): Likewise.
1926         (__libc_memalign): Likewise.
1927         (__libc_pvalloc): Likewise.
1928         (__libc_calloc): Likewise.
1929
1930 2012-09-05  John Tobey  <john.tobey@gmail.com>
1931
1932         [BZ #13542]
1933         * manual/arith.texi (Operations on Complex): Fix description
1934         of carg branch cut.
1935
1936 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1937
1938         [BZ #10014]
1939         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1940         host name.
1941
1942         [BZ #10038]
1943         * manual/memory.texi (Memory): Make order of menu items match
1944         order of sections.
1945
1946 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1947
1948         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1949         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1950         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1951
1952 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1953
1954         * csu/libc-tls.c (static_dtv): Renamed to ...
1955         (_dl_static_dtv): This.  Make it global.
1956         (_dl_initial_dtv): Removed.
1957         (__libc_setup_tls): Updated.
1958         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1959         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1960         DL_INITIAL_DTV.
1961
1962 2012-09-06  Petr Machata  <pmachata@redhat.com>
1963
1964         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1965         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1966         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1967         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1968
1969 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1970
1971         [BZ #14545]
1972         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1973         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1974         freeing dtv[-1].
1975
1976 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1977
1978         [BZ #14544]
1979         * Makeconfig (link-static-before-libc): Replace $(+prector)
1980         with $(+prectorT).
1981         (link-static-after-libc): Replace $(+postctor) with
1982         $(+postctorT).
1983         (link-bounded): Replace $(+prector)/$(+postctor) with
1984         $(+prectorT)/$(+postctorT).
1985         (+prectorT): New macro.
1986         (+postctorT): Likewise.
1987
1988 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1989
1990         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1991         (round_str): Handle values above the maximum for IBM long double
1992         as inexact.
1993         * stdlib/tst-strtod-round.c (tests): Regenerated.
1994
1995 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1996
1997         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1998         assembler flag.
1999         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
2000         zarch_nohighgprs around the zarch optimized routines.
2001         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
2002         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
2003         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
2004         for zarch.
2005
2006 2012-09-05  David S. Miller  <davem@davemloft.net>
2007
2008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2009
2010         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
2011         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
2012         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
2013         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
2014         entries.
2015
2016 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2017
2018         * malloc/arena.c: Fold copyright years.
2019         * malloc/mcheck.c, malloc/memusage.c: Likewise.
2020
2021 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2022
2023         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
2024
2025 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2026
2027         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
2028
2029 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2030
2031         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2032         change internal state upon failure.
2033
2034 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2035
2036         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2037         * malloc/memusage.c (mmap): Likewise.
2038         (mmap64, mremap): Likewise.  Adjust name in comment.
2039
2040 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2041
2042         * libio/fileops.c: Fix typos in comments.
2043         * libio/oldfileops.c: Likewise.
2044         * libio/wfileops.c: Likewise.
2045
2046 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2047
2048         [BZ #1349]
2049         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2050         (tst-malloc-usable-ENV): Set environment for test case.
2051         * malloc/hooks.c (malloc_check_get_size): New function to get
2052         requested size.
2053         * malloc/malloc.c (musable): Use malloc_check_get_size.
2054         * malloc/tst-malloc-usable.c: New test case.
2055
2056 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2057
2058         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2059
2060 2012-09-05  Allan McRae  <allan@archlinux.org>
2061
2062         [BZ #13966]
2063         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2064         determine header location.
2065         * configure: Regenerated.
2066
2067 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2068
2069         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2070         float format.
2071         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2072         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2073         format.
2074         (test): Regenerate.
2075
2076 2012-09-04  David S. Miller  <davem@davemloft.net>
2077
2078         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2079         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2080         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2081
2082 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2083
2084         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2085         failures.
2086
2087         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2088
2089 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2090
2091         [BZ #9914]
2092         * libio/iogetdelim.c: Include <limits.h>.
2093         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2094         + len + 1 would overflow.
2095
2096 2012-09-03  Andreas Jaeger  <aj@suse.de>
2097
2098         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2099         * sysdeps/i386/fpu/libm-test-ulps: Update.
2100
2101 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2102
2103         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2104         Add s_sinf-sse2, s_conf-sse2.
2105
2106         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2107         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2108         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2109         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2110
2111         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2112         for using routine as __sinf_ia32.
2113         Use macro for function declaration and weak_alias.
2114         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2115         for using routine as __cosf_ia32.
2116         Use macro for function declaration and weak_alias.
2117
2118         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2119         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2120
2121         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2122         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2123         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2124
2125         * math/libm-test.inc (cos_test): Add more test cases.
2126         (sin_test): Likewise.
2127         (sincos_test): Likewise.
2128
2129 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2130
2131         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2132         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2133         hidden.
2134         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2135
2136 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2137
2138         [BZ #14538]
2139         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2140         first element of the GOT.
2141         (elf_machine_load_address): Return the difference between
2142         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2143
2144 2012-09-01  Allan McRae  <allan@archlinux.org>
2145
2146         [BZ #13412]
2147         * configure.in (AWK): Require gawk version 3.0 or later.
2148         * configure: Regenerated.
2149
2150 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2151
2152         * sysdeps/unix/sysv/linux/kernel-features.h
2153         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2154         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2155         [__NR_clock_getres]: Make code unconditional.
2156         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2157         (clock_getcpuclockid): Remove code left unreachable by removal of
2158         conditionals.
2159         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2160         code unconditional.
2161         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2162         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2163         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2164         Make code unconditional.
2165         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2166         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2167         * sysdeps/unix/sysv/linux/clock_settime.c
2168         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2169         conditional code.
2170         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2171         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2172
2173 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2174
2175         [BZ #14476]
2176         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2177         scripts/test-installation.pl.
2178
2179         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2180         and $ld_so_version if it is set.
2181
2182 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2183
2184         [BZ #14516]
2185         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2186         failure if reading from procfs failed.
2187         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2188
2189 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2190
2191         * sysdeps/unix/sysv/linux/kernel-features.h
2192         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2193         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2194         Remove conditional code.
2195         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2196         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2197         Remove conditional code.
2198         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2199         * sysdeps/unix/sysv/linux/i386/fxstat.c
2200         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2201         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2202         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2203         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2204         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2205         * sysdeps/unix/sysv/linux/i386/lxstat.c
2206         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2207         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2208         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2209         Remove conditional code.
2210         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2211         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2212         Remove conditional code.
2213         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2214         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2215         <kernel-features.h>.
2216         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2217         Remove.
2218         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2219         Remove conditional code.
2220         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2221         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2222         Remove conditional.
2223
2224 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2225
2226         [BZ #5400]
2227         * NEWS: Add fixed bug number.
2228
2229 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2230
2231         [BZ #14519]
2232         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2233         underflowing exponent in case of negative sign.
2234         * stdlib/tst-strtod-round-data: Add more tests.
2235         * stdlib/tst-strtod-round.c (tests): Regenerated.
2236
2237         [BZ #3479]
2238         * stdlib/strtod_l.c (NDIG): Remove.
2239         (HEXNDIG): Likewise.
2240         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2241         smallest representable value.
2242         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2243         lie within an exact representation of 1/2 ulp of the result.
2244         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2245         unconditionally.
2246         (TENS_P9_IDX): Define unconditionally.
2247         (TENS_P9_SIZE): Likewise.
2248         (TENS_P10_IDX): Likewise.
2249         (TENS_P10_SIZE): Likewise.
2250         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2251         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2252         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2253         entries for 10^2^13 and 10^2^14.
2254         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2255         (TENS_P13_IDX): Define.
2256         (TENS_P13_SIZE): Likewise.
2257         (TENS_P14_IDX): Likewise.
2258         (TENS_P14_SIZE): Likewise.
2259         (_fpioconst_pow10): Change array size to
2260         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2261         unconditional.
2262         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2263         1024]: Add entries for 10^2^13 and 10^2^14.
2264         [LAST_POW10 > _LAST_POW10]: Remove #error.
2265         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2266         (_fpioconst_pow10): Change array size to
2267         FPIOCONST_POW10_ARRAY_SIZE.
2268         * stdlib/gen-fpioconst.c: New file.
2269         * stdlib/gen-tst-strtod-round.c: Likewise.
2270         * stdlib/tst-strtod-round-data: Likewise.
2271         * stdlib/tst-strtod-round.c: Likewise.
2272         * stdlib/Makefile (tests): Add tst-strtod-round.
2273
2274         [BZ #14459]
2275         * stdlib/strtod_l.c: Include <stdint.h>.
2276         (NDEBUG): Do not define.
2277         (round_and_return): Change EXPONENT parameter to type intmax_t.
2278         Rearrange calculations to avoid internal overflow possibilities.
2279         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2280         Rearrange calculations to avoid internal overflow possibilities.
2281         Assert that number fits inside MPNSIZE limbs.
2282         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2283         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2284         calculations and add assertions to avoid internal overflow
2285         possibilities.  Add casts to avoid signed/unsigned operations.
2286         * stdlib/tst-strtod-overflow.c: New file.
2287         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2288
2289 2012-08-25  Marek Polacek  <polacek@redhat.com>
2290
2291         * time/time.h: Fix some typos in comments.
2292
2293 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2294
2295         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2296         * posix/tst-rfc3484-2.c: Likewise.
2297         * posix/tst-rfc3484-3.c: Likewise.
2298
2299 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2300
2301         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2302         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2303
2304 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2305
2306         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2307         #include of fxstatat64.c.
2308
2309 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2310
2311         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2312         * shadow/getspent_r.c: Likewise.
2313         * shadow/getspnam.c: Likewise.
2314         * shadow/getspnam_r.c: Likewise.
2315         * gshadow/getsgent.c: Likewise.
2316         * gshadow/getsgent_r.c: Likewise.
2317         * gshadow/getsgnam.c: Likewise.
2318         * gshadow/getsgnam_r.c: Likewise.
2319         * inet/getnetbyad.c: Likewise.
2320         * inet/getnetbyad_r.c: Likewise.
2321         * inet/getnetbynm.c: Likewise.
2322         * inet/getnetbynm_r.c: Likewise.
2323         * inet/getnetent.c: Likewise.
2324         * inet/getnetent_r.c: Likewise.
2325         * inet/getproto.c: Likewise.
2326         * inet/getproto_r.c: Likewise.
2327         * inet/getprtent.c: Likewise.
2328         * inet/getprtent_r.c: Likewise.
2329         * inet/getprtname.c: Likewise.
2330         * inet/getprtname_r.c: Likewise.
2331         * inet/getrpcbyname.c: Likewise.
2332         * inet/getrpcbyname_r.c: Likewise.
2333         * inet/getrpcbynumber.c: Likewise.
2334         * inet/getrpcbynumber_r.c: Likewise.
2335         * inet/getrpcent.c: Likewise.
2336         * inet/getrpcent_r.c: Likewise.
2337         * inet/getaliasent.c: Likewise.
2338         * inet/getaliasent_r.c: Likewise.
2339         * inet/getaliasname.c: Likewise.
2340         * inet/getaliasname_r.c: Likewise.
2341         * nscd/getgrgid_r.c: Likewise.
2342         * nscd/getgrnam_r.c: Likewise.
2343         * nscd/gethstbyad_r.c: Likewise.
2344         * nscd/gethstbynm3_r.c: Likewise.
2345         * nscd/getpwnam_r.c: Likewise.
2346         * nscd/getpwuid_r.c: Likewise.
2347         * nscd/getsrvbynm_r.c: Likewise.
2348         * nscd/getsrvbypt_r.c: Likewise.
2349         * nscd/gai.c: Likewise.
2350
2351         * configure.in (build_nscd): New substituted variable, set
2352         by --disable-build-nscd and defaults to $use_nscd.
2353         * configure: Regenerated.
2354         * config.make.in (build-nscd): New substituted variable.
2355         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2356         Change conditional to require [$(build-nscd) = yes] as well.
2357         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2358
2359         [BZ# 13696]
2360         * configure.in (use_nscd): New substituted variable, set by
2361         --disable-nscd.  If enabled, define USE_NSCD.
2362         * configure: Regenerated.
2363         * config.h.in: Add USE_NSCD.
2364         * config.make.in (use-nscd): New substituted variable.
2365         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2366         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2367         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2368         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2369         (CFLAGS-getgrnam_r.c): Likewise.
2370         (CFLAGS-initgroups.c): Likewise.
2371         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2372         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2373         Variables removed.
2374         * inet/getnetgrent_r.c
2375         (nscd_setnetgrent): New function, broken out of ...
2376         (setnetgrent): ... here.  Call it.
2377         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2378         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2379         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2380         * nscd/Makefile (routines, aux): Move definitions after include of
2381         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2382         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2383         Conditionalize on [USE_NSCD].
2384         (is_nscd, nscd_init_cb): Likewise.
2385         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2386         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2387         * nss/nss_db/db-init.c: Likewise.
2388         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2389         [USE_NSCD].
2390         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2391         (make_request): Use it.
2392         (cache_valid_p): New function.
2393         (__check_pf): Use it.
2394         * NEWS: Add item for --disable-nscd.
2395
2396 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2397
2398         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2399         to support sed >= 4.2.1-20-ga9bf076.
2400         * configure: Regenerated.
2401
2402 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2403
2404         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2405         Conditionalize whole body on [IREL].
2406
2407 2012-08-22  Jeff Law <law@redhat.com>
2408
2409         [BZ #14505]
2410         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2411         if the family is PF_UNSPEC.
2412
2413 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2414
2415         * Makerules (lib-version): Rename from V.
2416         (install-lib-nosubdir): Change V to lib-version.
2417
2418 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2419
2420         [BZ #14252]
2421         * powerpc32/power6/wcschr.c: New file.
2422         * powerpc32/power6/wcscpy.c: New file.
2423         * powerpc32/power6/wcsrchr.c: New file.
2424         * powerpc64/power6/wcschr.c: New file.
2425         * powerpc64/power6/wcscpy.c: New file.
2426         * powerpc64/power6/wcsrchr.c: New file.
2427
2428 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2429
2430         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2431         (two_way_short_needle): Use it.
2432         * string/strstr.c (AVAILABLE1_USES_J): Define.
2433         * string/strcasestr.c: Likewise.
2434
2435         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2436         array references.
2437         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2438
2439         [BZ #11607]
2440         * NEWS: Add an entry.
2441         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2442         define their defaults.
2443         (two_way_short_needle): Detect end-of-string on-the-fly.
2444         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2445         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2446         * string/bug-strcasestr1.c: New test.
2447         * string/Makefile: Run it.
2448
2449 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2450
2451         [BZ #11607]
2452         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2453         the first character.
2454
2455 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2456
2457         * csu/elf-init.c (__libc_csu_irel): Function removed.
2458         * csu/libc-start.c (apply_irel): New function.
2459         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2460
2461 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2462
2463         * sysdeps/unix/sysv/linux/kernel-features.h
2464         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2465         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2466         <kernel-features.h>.
2467         [__NR_fadvise64_64]: Make code unconditional.
2468         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2469         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2470         !__NR_fadvise64_64)]: Likewise.
2471         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2472         !__NR_fadvise64_64))]: Likewise.
2473         [__NR_fadvise64]: Make code unconditional.
2474         [!__NR_fadvise64]: Remove conditional code.
2475         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2476         <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         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2482         not include <kernel-features.h>.
2483         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2484         unconditional.
2485         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2486         conditional code.
2487         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2488         include <kernel-features.h>.
2489         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2490         unconditional.
2491         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2492         conditional code.
2493
2494 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2495
2496         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2497         slight instruction rearrangements per scrollpipe analysis.
2498         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2499
2500 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2501
2502         * manual/syslog.texi (syslog; vsyslog, closelog):
2503         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2504         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2505
2506         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2507         DSOCAPS to match condition on defining it.
2508
2509 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2510
2511         * sysdeps/unix/sysv/linux/kernel-features.h
2512         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2514         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2515         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2517         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2518         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2520         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2521         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2522
2523         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2524         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2525
2526         * sysdeps/unix/sysv/linux/kernel-features.h
2527         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2528         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2529         unconditional.
2530         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2531         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2532         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2533         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2534         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2535         Make code unconditional.
2536         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2537         (__mmap64) [!__NR_mmap2]: Likewise.
2538         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2539         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2540         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2541         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2542         [__NR_mmap2]: Make code unconditional.
2543         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2544         (__mmap64) [!__NR_mmap2]: Likewise.
2545
2546 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2547
2548         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2549
2550 2012-08-18  Andreas Jaeger  <aj@suse.de>
2551
2552         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2553
2554 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2555
2556         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2557         * include/unistd.h (__have_sock_cloexec): Likewise.
2558         (__have_pipe2): Likewise.
2559         (__have_dup3): Likewise.
2560
2561 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2562
2563         [BZ #9685]
2564         * include/unistd.h (__have_pipe2): Change define into an extern int.
2565         (__have_dup3): Likewise.
2566         * socket/have_sock_cloexec.c: Include fcntl.h.
2567         (__have_pipe2): New variable.
2568         (__have_dup3): Likewise.
2569
2570 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2571
2572         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2573
2574 2012-08-17  Marek Polacek  <polacek@redhat.com>
2575
2576         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2577         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2578
2579 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2580
2581         * configure.in: Add AC_SUBST for sysheaders.
2582         * configure: Regenerated.
2583         * config.make.in (sysheaders): New substituted variable.
2584
2585         * sysdeps/unix/mkfifo.c: Moved ...
2586         * sysdeps/posix/mkfifo.c: ... here.
2587         * sysdeps/unix/mkfifoat.c: Moved ...
2588         * sysdeps/posix/mkfifoat.c: ... here.
2589
2590         * sysdeps/unix/utime.c: Moved ...
2591         * sysdeps/posix/utime.c: ... here.
2592
2593         * sysdeps/unix/time.c: Moved ...
2594         * sysdeps/posix/time.c: ... here.
2595         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2596         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2597
2598         * sysdeps/unix/nice.c: Moved ...
2599         * sysdeps/posix/nice.c: ... here.
2600
2601         * sysdeps/unix/alarm.c: Moved ...
2602         * sysdeps/posix/alarm.c: ... here.
2603
2604         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2605
2606 2012-08-17  Jeff Law <law@redhat.com>
2607
2608         * intl/Makefile (codeset_mo): New variable.
2609         ($(codeset_mo)): New target.
2610         (tst-codeset.out): Depend on that.  Remove explicit rule.
2611         (tst-gettext3.out, tst-gettext5.out): Likewise.
2612         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2613         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2614         * intl/tst-codeset.sh: Remove.
2615         * intl/tst-gettext3.sh: Likewise.
2616         * intl/tst-gettext5.sh: Likewise.
2617
2618 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2619
2620         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2621         * sysdeps/unix/syscalls.list: ... here.
2622
2623         * sysdeps/posix/getaddrinfo.c
2624         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2625         (gaiconf_init, gaiconf_reload): Use them.
2626         [!_STATBUF_ST_NSEC]
2627         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2628         Define using time_t rather than struct timespec.
2629
2630         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2631         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2632         Macros removed.
2633         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2634         [!NO_THREADS].
2635         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2636         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2637         Likewise.
2638
2639         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2640         __libc_cleanup_push argument.
2641
2642         * bits/param.h: New file.
2643         * misc/sys/param.h: New file.
2644         * include/sys/param.h: New file.
2645         * misc/Makefile (headers): Add bits/param.h.
2646         * sysdeps/generic/sys/param.h: File removed.
2647         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2648         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2649         * sysdeps/mach/hurd/bits/param.h: New file.
2650         * sysdeps/mach/hurd/sys/param.h: File removed.
2651
2652         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2653         last change.
2654
2655         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2656         [_IO_MTSAFE_IO].
2657         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2658         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2659         New macros.
2660
2661         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2662         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2663         rather than -D_IO_MTSAFE_IO conditionally.
2664         * stdio-common/Makefile (CPPFLAGS): Likewise.
2665         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2666         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2667         Use $(libio-mtsafe).
2668         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2669         of -D_IO_MTSAFE_IO.
2670         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2671         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2672         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2673         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2674         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2675         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2676         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2677         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2678         (CFLAGS-fread_u_chk.c): Likewise.
2679         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2680         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2681         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2682         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2683         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2684         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2685         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2686         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2687         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2688
2689         * libio/Makefile: Test [$(libc-reentrant) = yes]
2690         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2691
2692         * Makeconfig
2693         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2694         * sysdeps/pthread/configure: File removed.
2695         * sysdeps/pthread/Makeconfig: New file.
2696         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2697         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2698
2699 2012-08-16  Gary Benson  <gbenson@redhat.com>
2700
2701         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2702         unmapping the first object in a namespace.
2703
2704 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2705
2706         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2707         (__internal_setnetgrent): ... this.  Add internal_function to
2708         definition.  Add libc_hidden_def.
2709         (setnetgrent): Update caller.
2710         (internal_endnetgrent): Renamed to ...
2711         (__internal_endnetgrent): ... this.  Add internal_function to
2712         definition.  Add libc_hidden_def.
2713         (endnetgrent): Update caller.
2714         (internal_getnetgrent_r): Renamed to ...
2715         (__internal_getnetgrent_r): ... this.  Add internal_function to
2716         definition.  Add libc_hidden_def.
2717         (__getnetgrent_r): Update caller.
2718         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2719
2720 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2721
2722         * stdlib/longlong.h: Update from GCC.
2723
2724 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2725
2726         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2727         on _QL, which is set by umul_ppmm but never used.
2728         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2729         variables, which are set by GMP macros but never used.
2730         * stdio-common/_itowa.c (_itowa): Likewise.
2731         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2732         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2733
2734 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2735
2736         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2737         struct La_sh_regs is not constant.
2738         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2739         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2740         and struct La_sparc64_regs are not constant.
2741
2742 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2743
2744         * sysdeps/unix/sysv/linux/kernel-features.h
2745         (__ASSUME_POSIX_TIMERS): Remove.
2746         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2747         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2748         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2749         Make code unconditional.
2750         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2751         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2752         Make code unconditional.
2753         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2754         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2755         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2756         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2757         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2758         Make code unconditional.
2759         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2760         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2761         (__libc_missing_posix_timers): Remove.
2762
2763 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2764
2765         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2766         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2767
2768         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2769
2770         * elf/dl-sym.c: Include <stdlib.h>.
2771
2772         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2773         constants, which avoids warnings in 32-bit builds.
2774
2775         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2776         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2777
2778         * misc/lseek.c: File moved to ...
2779         * io/lseek.c: ... here.
2780
2781         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2782
2783         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2784         shifting LEN more than 31 bits at once.
2785
2786 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2787
2788         [BZ #14195]
2789         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2790         segmentation fault for a case of two empty input strings.
2791         * string/test-strncasecmp.c (check1): Renamed to...
2792         (bz12205): ...this.
2793         (bz14195): Add new testcase for two empty input strings and N > 0.
2794         (test_main): Call new testcase, adapt for renamed function.
2795
2796 2012-08-15  Andreas Jaeger  <aj@suse.de>
2797
2798         [BZ #14090]
2799         * crypt/md5test2.c: New test, based on test supplied by Serge
2800         Belyshev <belyshev@depni.sinp.msu.ru>.
2801         * crypt/Makefile (xtests): Add md5test-giant..
2802         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2803
2804 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2805
2806         [BZ #14090]
2807         * crypt/md5.c (md5_process_block): Don't assume the buffer
2808         length is less than 2**32.
2809         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2810         length is less than 2**64.
2811
2812 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2813
2814         * string/str-two-way.h: Include <sys/param.h>.
2815         (MAX): Macro removed.
2816
2817         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2818         Move #define and #undef of memmove to just before and after
2819         including <string.h>.
2820
2821         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2822         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2823         and after including <string.h>.  Move declarations of
2824         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2825         to before #include "string/memmove.c".
2826
2827         * include/dirent.h: Declare __getdirentries.
2828
2829         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2830         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2831
2832 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2833
2834         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2835         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2836         * sysdeps/i386/configure: Regenerated.
2837         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2838         STABS_CURRENT_FILE, and STABS_FUN.
2839         (END): Remove call to STABS_FUN_END.
2840         (STABS_CURRENT_FILE1): Delete.
2841         (STABS_CURRENT_FILE): Likewise.
2842         (STABS_FUN): Likewise.
2843         (STABS_FUN_END): Likewise.
2844         (STABS_FUN2): Likewise.
2845         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2846         * sysdeps/x86_64/configure: Regenerated.
2847
2848 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2849
2850         * elf/dl-open.c: Include <atomic.h>.
2851         * elf/dl-lookup.c: Likewise.
2852
2853 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2854
2855         * sysdeps/unix/sysv/linux/kernel-features.h
2856         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2857         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2858         unconditionally.
2859         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2860         unconditionally.
2861         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2862         condition on __ASSUME_CLONE_THREAD_FLAGS.
2863
2864 2012-08-14  Andreas Jaeger  <aj@suse.de>
2865
2866         * sysdeps/i386/fpu/libm-test-ulps: Update.
2867
2868 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2869
2870         * include/atomic.h (atomic_exchange_and_add): Split into ...
2871         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2872         New atomic macros.
2873
2874 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2875
2876         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2877
2878 2012-08-13  Jeff Law <law@redhat.com>
2879
2880         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2881         null byte in the output string.
2882
2883 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * sysdeps/unix/sysv/linux/kernel-features.h
2886         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2887         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2888         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2889         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2890         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2891         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2892         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2893
2894 2012-08-09  Jeff Law <law@redhat.com>
2895
2896         [BZ #13939]
2897         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2898         When avoid_arena is set, don't retry in the that arena.  Pick the
2899         next one, whatever it might be.
2900         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2901         (arena_lock): Pass in new parameter to arena_get2.
2902         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2903         arena_get2.
2904         (__libc_malloc): Unify retrying after main arena failure with
2905         __libc_memalign version.
2906         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2907
2908 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2909
2910         [BZ #14166]
2911         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2912         to __redirect_strstr.
2913         (__strstr_sse42): Use typeof __redirect_strstr.
2914         (__strstr_ia32): Likewise.
2915         (__libc_strstr): New prototype.
2916         (strstr): Renamed to ...
2917         (__libc_strstr): This.
2918         (strstr): New strong alias of __libc_strstr.
2919         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2920         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2921         __redirect_time.
2922         Include <time.h>.
2923         (__libc_time): New prototype.
2924         (time_ifunc): Replace time with __libc_time.
2925         (time): New strong alias and hidden definition of __libc_time.
2926         (__GI_time): Remove strong alias.
2927         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2928         Include <stddef.h>.
2929         (memmove): Redefined to __redirect_memmove.
2930         (__memmove_sse2): Use typeof __redirect_memmove.
2931         (__memmove_ssse3): Likewise.
2932         (__memmove_ssse3_back): Likewise.
2933         (__libc_memmove): New prototype.
2934         (memmove): Renamed to ...
2935         (__libc_memmove): This.
2936         (memmove): New strong alias of __libc_memmove.
2937
2938 2012-08-08  Mark Salter  <msalter@redhat.com>
2939
2940         * elf/elf.h
2941         (R_MN10300_TLS_GD): Define.
2942         (R_MN10300_TLS_LD): Likewise.
2943         (R_MN10300_TLS_LDO): Likewise.
2944         (R_MN10300_TLS_GOTIE): Likewise.
2945         (R_MN10300_TLS_IE): Likewise.
2946         (R_MN10300_TLS_LE): Likewise.
2947         (R_MN10300_TLS_DTPMOD): Likewise.
2948         (R_MN10300_TLS_DTPOFF): Likewise.
2949         (R_MN10300_TLS_TPOFF): Likewise.
2950         (R_MN10300_SYM_DIFF): Likewise.
2951         (R_MN10300_ALIGN): Likewise.
2952         (R_MN10300_NUM): Update.
2953
2954 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2955
2956         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2957         Remove.
2958
2959 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2960
2961         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2962
2963         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2964         sysdeps/unix -> sysdeps/posix move.
2965         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2966
2967 2012-08-07      Allan McRae     <allan@archlinux.org>
2968
2969         [BZ #14303]
2970         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2971         (SUNOS_CPP): Likewise.
2972         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2973         not found.
2974         (open_input): Call CPP using execvp.
2975
2976 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2977
2978         * sysdeps/unix/sysv/linux/kernel-features.h
2979         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2980         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2981         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2982         (__ASSUME_WAITID_SYSCALL): Likewise.
2983         * sysdeps/unix/sysv/linux/dl-execstack.c
2984         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2985         code unconditional.
2986         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2987         conditional code.
2988         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2989         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2990         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2991         code.
2992         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2993         unconditional.
2994         [__ASSUME_WAITID_SYSCALL]: Likewise.
2995         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2996
2997 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2998
2999         * sysdeps/unix/closedir.c: Renamed to ...
3000         * sysdeps/posix/closedir.c: ... here.
3001         * sysdeps/unix/dirfd.c: Renamed to ...
3002         * sysdeps/posix/dirfd.c: ... here.
3003         * sysdeps/unix/dirstream.h: Renamed to ...
3004         * sysdeps/posix/dirstream.h: ... here.
3005         * sysdeps/unix/fdopendir.c: Renamed to ...
3006         * sysdeps/posix/fdopendir.c: ... here.
3007         * sysdeps/unix/opendir.c: Renamed to ...
3008         * sysdeps/posix/opendir.c: ... here.
3009         * sysdeps/unix/readdir.c: Renamed to ...
3010         * sysdeps/posix/readdir.c: ... here.
3011         * sysdeps/unix/readdir_r.c: Renamed to ...
3012         * sysdeps/posix/readdir_r.c: ... here.
3013         * sysdeps/unix/rewinddir.c: Renamed to ...
3014         * sysdeps/posix/rewinddir.c: ... here.
3015         * sysdeps/unix/seekdir.c: Renamed to ...
3016         * sysdeps/posix/seekdir.c: ... here.
3017         * sysdeps/unix/telldir.c: Renamed to ...
3018         * sysdeps/posix/telldir.c: ... here.
3019         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
3020         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
3021         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3022         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
3023
3024         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
3025         * bits/fcntl.h: ... here.
3026
3027         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
3028         not 0.
3029         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3030         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3031         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3032         (struct flock): Move l_start, l_len to the beginning.
3033         Use __pid_t for l_pid.
3034         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3035         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3036         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3037         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3038         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3039         [__USE_LARGEFILE64] (struct flock64): New type.
3040         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3041
3042         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3043         * bits/dirent.h: ... here.
3044
3045         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3046         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3047
3048 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3049
3050         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3051         Change from 2.6.0 to 2.6.16.
3052         * sysdeps/unix/sysv/linux/configure: Regenerated.
3053         * sysdeps/unix/sysv/linux/kernel-features.h
3054         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3055         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3056         version.
3057         (__ASSUME_UTIMES): Likewise.
3058         (__ASSUME_CLONE_STOPPED): Remove.
3059         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3060         architectures, not kernel version.
3061         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3062         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3063         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3064         (__ASSUME_WAITID_SYSCALL): Likewise.
3065         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3066         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3067         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3068         refer to older versions.
3069
3070 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3071
3072         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3073         Define alphasort64 as an alias.
3074         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3075         Define versionsort64 as an alias.
3076         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3077         Define scandir64 as an alias.
3078         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3079         Define scandirat64 as an alias.
3080         * dirent/alphasort64.c (alphasort64):
3081         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3082         * dirent/versionsort64.c: Likewise.
3083         * dirent/scandir64.c: Likewise.
3084         * dirent/scandirat64.c: Likewise.
3085         * sysdeps/wordsize-64/alphasort.c: File removed.
3086         * sysdeps/wordsize-64/alphasort64.c: File removed.
3087         * sysdeps/wordsize-64/scandir.c: File removed.
3088         * sysdeps/wordsize-64/scandir64.c: File removed.
3089         * sysdeps/wordsize-64/scandirat.c: File removed.
3090         * sysdeps/wordsize-64/scandirat64.c: File removed.
3091         * sysdeps/wordsize-64/versionsort.c: File removed.
3092         * sysdeps/wordsize-64/versionsort64.c: File removed.
3093         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3094         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3095         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3096         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3097         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3098         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3099         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3100         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3101
3102         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3103         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3104         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3105         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3106         [defined __arch64__ || defined __sparcv9]
3107         (__INO_T_MATCHES_INO64_T): New macro.
3108         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3109         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3110         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3111         * sysdeps/unix/sysv/linux/bits/dirent.h
3112         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3113         (_DIRENT_MATCHES_DIRENT64): New macro.
3114
3115         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3116         Define lockf64 as an alias.
3117         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3118         Define fseeko64 as an alias.
3119         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3120         Define ftello64 as an alias.
3121         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3122         Define _IO_fgetpos64 and fgetpos64 as aliases.
3123         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3124         Define _IO_fsetpos64 and fsetpos64 as aliases.
3125         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3126         Conditionalize body on this.
3127         * libio/fseeko64.c: Likewise.
3128         * libio/ftello64.c: Likewise.
3129         * libio/iofgetpos64.c: Likewise.
3130         * libio/iofsetpos64.c: Likewise.
3131         * sysdeps/wordsize-64/lockf.c: File removed.
3132         * sysdeps/wordsize-64/lockf64.c: File removed.
3133         * sysdeps/wordsize-64/fseeko.c: File removed.
3134         * sysdeps/wordsize-64/fseeko64.c: File removed.
3135         * sysdeps/wordsize-64/ftello.c: File removed.
3136         * sysdeps/wordsize-64/ftello64.c: File removed.
3137         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3138         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3139         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3140         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3141         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3142         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3143         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3144         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3145         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3146         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3147         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3148         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3149         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3150         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3151
3152         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3153         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3154         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3155         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3156         [defined __arch64__ || defined __sparcv9]
3157         (__OFF_T_MATCHES_OFF64_T): New macro.
3158         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3159         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3160         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3161         (__OFF_T_MATCHES_OFF64_T): New macro.
3162
3163 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3164
3165         * stdlib/secure-getenv.c (__secure_getenv): Replace
3166         GLIBC_2_16 with GLIBC_2_17.
3167
3168 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3169
3170         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3171         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3172
3173 2012-08-03  David S. Miller  <davem@davemloft.net>
3174
3175         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3176
3177 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3178
3179         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3180         Remove.
3181         (__ASSUME_CORRECT_SI_PID): Likewise.
3182         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3183         (__ASSUME_TMPFS_NAME): Likewise.
3184         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3185         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3186         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3187         (HAVE_AUX_SECURE): Make definition unconditional.
3188         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3189         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3190
3191 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3192
3193         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3194         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3195         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3196         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3197         __eloop_threshold instead of SYMLOOP_MAX.
3198
3199         * sysdeps/generic/eloop-threshold.h: New file.
3200         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3201         of MAXSYMLINKS.
3202         * elf/chroot_canon.c (chroot_canon): Likewise.
3203
3204 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3205
3206         [BZ #13717]
3207         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3208         Change to 2.6.0 everywhere.
3209         * sysdeps/unix/sysv/linux/configure: Regenerated.
3210         * sysdeps/unix/sysv/linux/kernel-features.h
3211         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3212         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3213         kernel versions.
3214         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3215         (__ASSUME_FUTEX_REQUEUE): Remove.
3216         (__ASSUME_STATFS64): Define unconditionally.
3217         (__ASSUME_AT_SECURE): Likewise.
3218         (__ASSUME_CORRECT_SI_PID): Likewise.
3219         (__ASSUME_TGKILL): Define without depending on kernel version for
3220         i386.
3221         (__ASSUME_UTIMES): Likewise.
3222         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3223         kernel version.
3224         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3225         (__ASSUME_TMPFS_NAME): Likewise.
3226         * README: Update reference to Linux kernel versions.
3227
3228 2012-08-02  Marek Polacek  <polacek@redhat.com>
3229
3230         [BZ# 14150]
3231         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3232         libc_cv_asm_type_prefix with %.
3233         * configure: Regenerated.
3234         * include/libc-symbols.h: Remove comment about
3235         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3236         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3237         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3238         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3239         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3240         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3241         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3242         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3243         * elf/tst-unique2mod1.c: Likewise.
3244         * elf/tst-unique1mod2.c: Likewise.
3245         * elf/tst-unique1mod1.c: Likewise.
3246         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3247         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3248         Replace ASM_TYPE_DIRECTIVE with .type.
3249         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3250         * sysdeps/i386/sysdep.h: Likewise.
3251         * sysdeps/x86_64/sysdep.h: Likewise.
3252         * sysdeps/sh/sysdep.h: Likewise.
3253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3254         Do not define ASM_TYPE_DIRECTIVE.
3255         * sysdeps/powerpc/sysdep.h: Likewise.
3256         * sysdeps/powerpc/powerpc32/sysdep.h:
3257         Replace ASM_TYPE_DIRECTIVE with .type.
3258         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3259         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3260         * sysdeps/i386/fpu/e_powf.S: Likewise.
3261         * sysdeps/i386/fpu/e_expl.S: Likewise.
3262         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3263         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3264         * sysdeps/i386/fpu/e_pow.S: Likewise.
3265         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3266         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3267         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3268         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3269         * sysdeps/i386/fpu/e_log2.S: Likewise.
3270         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3271         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3272         * sysdeps/i386/fpu/e_powl.S: Likewise.
3273         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3274         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3275         * sysdeps/i386/fpu/e_logl.S: Likewise.
3276         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3277         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3278         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3279         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3280         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3281         * sysdeps/i386/fpu/e_log.S: Likewise.
3282         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3283         * sysdeps/i386/fpu/e_logf.S: Likewise.
3284         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3285         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3286         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3287         * sysdeps/i386/fpu/e_log10.S: Likewise.
3288         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3289         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3290         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3291         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3292         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3293         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3294         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3295         * sysdeps/i386/i686/strtok.S: Likewise.
3296         * sysdeps/i386/i386-mcount.S: Likewise.
3297         * sysdeps/i386/strtok.S: Likewise.
3298         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3299         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3300         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3301         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3302         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3303         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3304         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3305         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3306         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3307         * sysdeps/x86_64/_mcount.S: Likewise.
3308         * sysdeps/x86_64/strtok.S: Likewise.
3309         * sysdeps/sh/_mcount.S: Likewise.
3310
3311 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3312
3313         * libio/iofopen.c: Include <fcntl.h>.
3314         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3315         (_IO_fopen64, fopen64): Define as aliases.
3316         * libio/iofopen64.c: Include <fcntl.h>.
3317         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3318         Conditionalize body on this.
3319         * sysdeps/wordsize-64/iofopen.c: File removed.
3320         * sysdeps/wordsize-64/iofopen64.c: File removed.
3321
3322 2012-08-01  Marek Polacek  <polacek@redhat.com>
3323
3324         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3325         Use dlfcn directly instead of a variable.
3326         (binfmt-subdir): Do not define.
3327         (dlfcn): Likewise.
3328
3329 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3330
3331         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3332         Remove all definitions.
3333         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3334         <kernel-features.h>.
3335         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3336         (miss_F_GETOWN_EX): Remove all definitions.
3337         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3338         macro definition.
3339         [!__ASSUME_FCNTL64]: Remove conditional code.
3340         [__ASSUME_FCNTL64]: Make code unconditional.
3341         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3342         <kernel-features.h>.
3343         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3344         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3345         (lockf64) [__NR_fcntl64]: Make code unconditional.
3346         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3347
3348         * sysdeps/unix/sysv/linux/kernel-features.h
3349         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3350         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3351         Make code unconditional.
3352         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3353         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3355         [__NR_vfork]: Make code unconditional.
3356         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3357         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3359         [__NR_vfork]: Make code unconditional.
3360         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3361         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3362
3363 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3364
3365         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3366         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3367
3368         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3369         Define mkstemp64 as an alias.
3370         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3371         Define mkstemps64 as an alias.
3372         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3373         Define mkostemp64 as an alias.
3374         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3375         Define mkostemps64 as an alias.
3376         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3377         Conditionalize body on this.
3378         * misc/mkostemp64.c: Likewise.
3379         * misc/mkostemps64.c: Likewise.
3380         * misc/mkstemps64.c: Likewise.
3381         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3382         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3383         * sysdeps/wordsize-64/mkostemp.c: File removed.
3384         * sysdeps/wordsize-64/mkstemp.c: File removed.
3385         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3386         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3387         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3388         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3389
3390         [BZ #14138]
3391         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3392         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3393         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3394         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3395
3396         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3397         compat_symbol macros from <shlib-compat.h> rather than the underlying
3398         default_symbol_version and symbol_version macros, so that DEFAULT
3399         lines in shlib-versions are respected.
3400         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3401
3402 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3403
3404         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3405         Declare with warn_unused_result.
3406         (setgid, setregid, setegid, setresgid): Likewise.
3407         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3408         Likewise.
3409         * WUR-REPORT: Remove set*id functions.
3410
3411 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3412
3413         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3414
3415 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3416
3417         * include/sys/socket.h (__libc_accept, __libc_accept4):
3418         Add attribute_hidden.
3419         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3420
3421         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3422         use of PTR_MANGLE.
3423         * inet/getnetgrent_r.c (setup): Likewise.
3424
3425         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3426
3427 2012-07-31  David S. Miller  <davem@davemloft.net>
3428
3429         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3430
3431 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3432
3433         [BZ #13629]
3434         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3435         value between 1.0 and 2.0 and smaller part has absolute value less
3436         than 1.0.
3437         * math/s_clog10.c (__clog10): Likewise.
3438         * math/s_clog10f.c (__clog10f): Likewise.
3439         * math/s_clog10l.c (__clog10l): Likewise.
3440         * math/s_clogf.c (__clogf): Likewise.
3441         * math/s_clogl.c (__clogl): Likewise.
3442         * math/libm-test.inc (clog_test): Add more tests.
3443         (clog10_test): Likewise.
3444         * sysdeps/i386/fpu/libm-test-ulps: Update.
3445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3446
3447 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3448
3449         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3450         Exit with zero in case no suitable GID is found, and write a
3451         message to standard error.
3452
3453 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3454
3455         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3456         rather than to 1.
3457         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3458         (MAXPATHLEN): Removed.
3459         (NOGROUP, NODEV): New macros.
3460         (setbit, clrbit, isset, isclr): New macros.
3461         (howmany, roundup, powerof2): New macros.
3462         (DEV_BSIZE): New macro.
3463
3464         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3465         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3466
3467         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3468         definition on [!__NO_LONG_DOUBLE_MATH].
3469
3470         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3471         PTR_MANGLE and PTR_DEMANGLE.
3472
3473         * socket/accept4.c (accept4): Rename to __libc_accept4.
3474         Define accept4 as a weak alias.
3475
3476         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3477         on [_DIRENT_HAVE_D_TYPE].
3478         * io/ftw.c (ftw_dir): Likewise.
3479
3480         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3481
3482         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3483
3484         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3485         Use the BSD numbers rather than the arbitrary ones we had.
3486         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3487         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3488         (SIGXCPU, SIGXFSZ): New macros.
3489         (_NSIG): Now 32.
3490
3491         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3492         initializer on [_LIBC_REENTRANT].
3493
3494         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3495         definitions inside [_POSIX_MAPPED_FILES].
3496
3497         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3498
3499         * dirent/opendir.c: Include <fcntl.h>.
3500
3501         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3502         (__libc_getspecific): Likewise.
3503         (__libc_key_create): Likewise.
3504
3505         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3506         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3507         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3508         (tmpfile64): Define as alias.
3509         * sysdeps/wordsize-64/tmpfile.c: File removed.
3510         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3511         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3512         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3513
3514         * stdio-common/vfscanf.c: Include <stdbool.h>.
3515         * nss/makedb.c: Likewise.
3516         * stdio-common/_i18n_number.h: Likewise.
3517         * argp/argp-help.c: Likewise.
3518         * posix/wordexp.c: Likewise.
3519         * sysdeps/posix/spawni.c: Likewise.
3520         * nss/nss_files/files-initgroups.c: Likewise.
3521         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3522         * nss/nss_files/files-initgroups.c: Likewise.
3523         * nss/nss_db/db-netgrp.c: Likewise.
3524         * nss/nss_db/db-initgroups.c: Likewise.
3525         * io/fchmodat.c: Include <sys/stat.h>.
3526
3527         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3528         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3529
3530         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3531         [HAVE_MMAP].
3532
3533         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3534         Add multiple inclusion protection.
3535
3536 2012-07-27  David S. Miller  <davem@davemloft.net>
3537
3538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3539
3540 2012-07-27  Gary Benson  <gbenson@redhat.com>
3541
3542         [BZ #14298]
3543         * elf/rtld.c: Include <stap-probe.h>.
3544         (dl_main): Added static probes "init_start" and "init_complete".
3545         * elf/dl-load.c: Include <stap-probe.h>.
3546         (lose): Take new parameter "nsid".
3547         Added static probe "map_failed".
3548         (_dl_map_object_from_fd): Pass namespace id to lose.
3549         Added static probe "map_start".
3550         (open_verify): Pass namespace id to lose.
3551         * elf/dl-open.c: Include <stap-probe.h>.
3552         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3553         and "reloc_complete".
3554         * elf/dl-close.c: Include <stap-probe.h>.
3555         (_dl_close_worker): Added static probes "unmap_start" and
3556         "unmap_complete".
3557         * elf/rtld-debugger-interface.txt: New file documenting the above.
3558
3559 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3560
3561         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3562         rather than a string variable.
3563         * sunrpc/rpc_main.c (h_output): Likewise.
3564         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3565
3566 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3567
3568         * inet/check_native.c: New file.
3569
3570 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3571
3572         [BZ #13629]
3573         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3574         if larger part has absolute value 1.0.
3575         * math/s_clog10.c (__clog10): Likewise.
3576         * math/s_clog10f.c (__clog10f): Likewise.
3577         * math/s_clog10l.c (__clog10l): Likewise.
3578         * math/s_clogf.c (__clogf): Likewise.
3579         * math/s_clogl.c (__clogl): Likewise.
3580         * math/libm-test.inc (clog_test): Add more tests.
3581         (clog10_test): Likewise.
3582         * sysdeps/i386/fpu/libm-test-ulps: Update.
3583         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3584
3585         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3586         (pltexit): Likewise.
3587         (La_regs): Likewise.
3588         (La_retval): Likewise.
3589         (int_retval): Likewise.
3590         Update #error for removed macros to refer only to definitions in
3591         tst-audit.h.
3592         * elf/tst-auditmod3b.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-auditmod4b.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-auditmod5b.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-auditmod6b.c (pltenter): Remove all definitions of
3611         macro.
3612         (pltexit): Likewise.
3613         (La_regs): Likewise.
3614         (La_retval): Likewise.
3615         (int_retval): Likewise.
3616         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3617         macro.
3618         (pltexit): Likewise.
3619         (La_regs): Likewise.
3620         (La_retval): Likewise.
3621         (int_retval): Likewise.
3622         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3623         macro.
3624         (pltexit): Likewise.
3625         (La_regs): Likewise.
3626         (La_retval): Likewise.
3627         (int_retval): Likewise.
3628         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3629         macro definitions in tst-audit.h.
3630         * sysdeps/i386/tst-audit.h: New file.
3631         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3632         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3633         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3634         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3635         * sysdeps/sh/tst-audit.h: Likewise.
3636         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3637         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3638         * sysdeps/x86_64/tst-audit.h: Likewise.
3639
3640 2012-07-26  Andreas Jaeger  <aj@suse.de>
3641
3642         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3643         ptrace.
3644
3645         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3646         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3647         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3648         PTRACE_O_MASK.
3649         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3650         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3651         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3652
3653         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3654         value.
3655
3656         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3657         _sigsys.
3658         (si_call_addr, si_syscall, si_arch): Define new macro.
3659         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3660         _sigsys.
3661         (si_call_addr, si_syscall, si_arch): Define new marcro.
3662         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3663         _sigsys.
3664         (si_call_addr, si_syscall, si_arch): Define new macro.
3665         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3666         _sigsys.
3667         (si_call_addr, si_syscall, si_arch): Define new macro.
3668
3669 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3670
3671         [BZ #13717]
3672         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3673         Change to 2.4.21 where previously 2.4.1.
3674         * sysdeps/unix/sysv/linux/configure: Regenerated.
3675         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3676         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3677         Linux kernel version.
3678         (__ASSUME_STD_AUXV): Remove.
3679         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3680         kernel version.
3681         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3682         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3683         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3684         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3685         (__ASSUME_NETLINK_SUPPORT): Likewise.
3686         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3687         (__no_netlink_support): Remove conditional definition.
3688         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3689         Remove.
3690         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3691         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3692         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3693         (if_nameindex_ioctl): Remove.
3694         (if_nameindex_netlink): Do not handle __no_netlink_support.
3695         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3696         code.
3697         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3698         Remove conditional code.
3699         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3700         code.
3701         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3702         unconditional.
3703         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3704         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3705         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3706         Remove.
3707         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3708         [!__ASSUME_STD_AUXV]: Remove conditional code.
3709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3710         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3711         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3713         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3714         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3715         code.
3716         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3718         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3719         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3720         conditional code.
3721         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3723         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3724         code.
3725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3726         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3727         conditional code.
3728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3729         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3730         code unconditional.
3731         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3732         conditional code.
3733         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3734         unconditional.
3735         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3736         conditional code.
3737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3738         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3739         unconditional.
3740         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3741         conditional code.
3742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3743         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3744         code unconditional.
3745         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3746         conditional code.
3747         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3748         unconditional.
3749         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3750         conditional code.
3751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3752         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3753         code unconditional.
3754         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3755         conditional code.
3756         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3757         unconditional.
3758         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3759         conditional code.
3760
3761 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3762
3763         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3764         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3765         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3766         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3767         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3768         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3769         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3770         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3771         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3772         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3773         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3774         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3775         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3776         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3777         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3778         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3779         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3780         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3781         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3782         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3783         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3784         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3785         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3786
3787 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3788
3789         * Versions.def: Add GLIBC_2.17.
3790         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3791         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3792         Introduce __libc_secure_getenv.
3793         * stdlib/Versions (2.17): Add secure_getenv
3794         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3795         * stdlib/secure-getenv.c: Rename __secure_getenv to
3796         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3797         symbol __secure_getenv for GLIBC_2.0.
3798         * stdlib/tst-secure-getenv.c: New.
3799         * stdlib/Makefile (tests): Add testcase.
3800         * manual/startup.texi (Environment Access): Document
3801         secure_getenv.
3802         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3803         __libc_secure_getenv.
3804         * inet/ruserpass.c (ruserpass): Likewise.
3805         * malloc/mtrace.c (mtrace): Likewise.
3806         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3807         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3808         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3809         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3810         HAVE_SECURE_GETENV.
3811         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3812         __secure_getenv to __libc_secure_getenv.
3813         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3815         Likewise.
3816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3817         Likewise.
3818         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3820         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3823         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3824         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3825
3826 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3827
3828         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3829         (struct La_i86_retval): Likewise.
3830         (struct La_x86_64_regs): Likewise.
3831         (struct La_x86_64_retval): Likewise.
3832         (struct La_x32_regs): Likewise.
3833         (struct La_x32_retval): Likewise.
3834         (struct La_ppc32_regs): Likewise.
3835         (struct La_ppc32_retval): Likewise.
3836         (struct La_ppc64_regs): Likewise.
3837         (struct La_ppc64_retval): Likewise.
3838         (struct La_sh_regs): Likewise.
3839         (struct La_sh_retval): Likewise.
3840         (struct La_s390_32_regs): Likewise.
3841         (struct La_s390_32_retval): Likewise.
3842         (struct La_s390_64_regs): Likewise.
3843         (struct La_s390_64_retval): Likewise.
3844         (struct La_sparc32_regs): Likewise.
3845         (struct La_sparc32_retval): Likewise.
3846         (struct La_sparc64_regs): Likewise.
3847         (struct La_sparc64_retval): Likewise.
3848         (struct audit_ifaces): Remove architecture-specific pltenter and
3849         pltexit members.
3850         * sysdeps/i386/ldsodefs.h: New file.
3851         * sysdeps/powerpc/ldsodefs.h: Likewise.
3852         * sysdeps/s390/ldsodefs.h: Likewise.
3853         * sysdeps/sh/ldsodefs.h: Likewise.
3854         * sysdeps/sparc/ldsodefs.h: Likewise.
3855         * sysdeps/x86_64/ldsodefs.h: Likewise.
3856
3857 2012-07-25  Marek Polacek  <polacek@redhat.com>
3858
3859         [BZ #6808]
3860         * math/libm-test.inc (yn_test): Add another test.
3861         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3862         to ERANGE when the result is +-Inf.
3863         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3864         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3865         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3866         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3867
3868 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3869
3870         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3871         equal to 0.
3872         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3873         clock_t.
3874         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3875
3876 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3877
3878         * configure.in <sysdeps resolving>: Correct printing
3879         Implies_before.
3880         * configure: Regenerate.
3881
3882 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3883
3884         * math/w_ilogb.c: Include <limits.h>.
3885         * math/w_ilogbl.c: Likewise.
3886
3887 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3888
3889         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3890         va_copy.  Document allowing for unavailable va_copy only as
3891         pre-C99 compatibility.
3892         * manual/string.texi (Copying and Concatenation): Use va_copy
3893         instead of __va_copy in concat example.
3894
3895 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3896
3897         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3898         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3899         it if not null.
3900
3901         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3902         with O_NOLINK passed to __file_name_lookup.
3903
3904         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3905         with O_NOLINK passed to __file_name_lookup.
3906
3907         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3908         negative N or less than NGIDS.
3909
3910         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3911         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3912         enough.  Use memcpy instead of strncpy.
3913
3914 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3915
3916         * elf/Makefile (check-data): Remove.
3917         (localplt.data): New vpath directive.
3918         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3919         instead of $(check-data).
3920         * scripts/data/localplt-generic.data: Move to ...
3921         * sysdeps/generic/localplt.data: ... here.
3922         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3923         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3924         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3926         ... here.
3927         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3929         ... here.
3930         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3932         ... here.
3933         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3934         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3935         ... here.
3936         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3937         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3938         ... here.
3939         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3940         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3941         ... here.
3942
3943 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3944
3945         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3946         PPC32 and PPC64 files.
3947         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3948         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3949
3950 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3951
3952         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3953         __makecontext_ret to ...
3954         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3955         ... here and call exit if uc_link is NULL.  New file.
3956         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3957         __makecontext_ret.S.
3958         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3959         __makecontext_ret to ...
3960         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3961         ... here and call exit if uc_link is NULL.  New file.
3962         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3963         __makecontext_ret.S.
3964
3965 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3966
3967         * elf/elf.h (R_390_IRELATIVE): New definition.
3968         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3969         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3970         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3971         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3972         (elf_machine_lazy_rel): Likewise.
3973         * sysdeps/s390/dl-irel.h: New file.
3974         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3975         * sysdeps/s390/s390-64/memset.S: New asm code.
3976         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3977         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3978         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3979         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3980         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3981         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3982         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3983         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3984         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3985         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3986         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3987         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3988         * sysdeps/s390/s390-32/memset.S: New asm code.
3989         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3990
3991 2012-07-17  Marek Polacek  <polacek@redhat.com>
3992
3993         [BZ #14349]
3994         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3995         * sysdeps/s390/s390-64/configure.in: Likewise.
3996         * sysdeps/sparc/configure.in: Likewise.
3997         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3998         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3999         * sysdeps/i386/configure.in: Likewise.
4000         * sysdeps/x86_64/configure.in: Likewise.
4001         * sysdeps/sh/configure.in: Likewise.
4002         * sysdeps/s390/s390-32/configure: Regenerated.
4003         * sysdeps/s390/s390-64/configure: Likewise.
4004         * sysdeps/x86_64/configure: Likewise.
4005         * sysdeps/sh/configure: Likewise.
4006         * sysdeps/powerpc/powerpc64/configure: Likewise.
4007         * sysdeps/powerpc/powerpc32/configure: Likewise.
4008         * sysdeps/sparc/configure: Likwise.
4009         * sysdeps/i386/configure: Likewise.
4010
4011         * elf/dl-open.c: Comment fixes.
4012
4013 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * Makefile [CXX] (check-data): Remove.
4016         [CXX] (c++-types.data): New vpath directive.
4017         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
4018         vpath.  Do not allow for C++ type data being missing.
4019         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
4020         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
4021         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
4022         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
4023         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
4024         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
4025         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
4026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
4027         ... here.
4028         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4030         ... here.
4031         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4033         ... here.
4034         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4035         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4036         ... here.
4037         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4038         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4039         ... here.
4040         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4041         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4042         ... here.
4043         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4044         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4045         ... here.
4046         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4047         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4048
4049         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4050         definitions to architecture-specific files.
4051         (TLS_IE): Likewise.
4052         (TLS_LD): Likewise.
4053         (TLS_GD): Likewise.
4054         * sysdeps/i386/tls-macros.h: New file.
4055         * sysdeps/powerpc/tls-macros.h: Likewise.
4056         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4057         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4058         * sysdeps/sh/tls-macros.h: Likewise.
4059         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4060         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4061         * sysdeps/x86_64/tls-macros.h: Likewise.
4062
4063 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4064
4065         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4066         zero value for regular exit case.
4067
4068         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4069         (__start_context): Preserve zero value for regular exit case.
4070
4071 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4072             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4073
4074         * manual/setjmp.texi (setcontext): Clarify normal process
4075         termination when uc_link is the null pointer.
4076         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4077         exit call.
4078
4079 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4080
4081         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4082         preprocessor.  Test for each exception mask separately.
4083
4084 2012-07-16  Andreas Jaeger  <aj@suse.de>
4085
4086         * po/ru.po: Update from translation team.
4087
4088 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4089
4090         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4091         equal to 0.
4092         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4093         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4094         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4095         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4096         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4097
4098 2012-07-13  Andreas Jaeger  <aj@suse.de>
4099
4100         * po/fr.po: Update from translation team.
4101
4102 2012-07-12  Marek Polacek  <polacek@redhat.com>
4103
4104         [BZ #14173]
4105         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4106         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4107         loop condition.
4108
4109 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4110
4111         [BZ #13717]
4112         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4113         Change to 2.4.1 where previously 2.4.0.
4114         * sysdeps/unix/sysv/linux/configure: Regenerated.
4115         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4116         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4117         version.
4118         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4119         (__ASSUME_AT_CLKTCK): Remove.
4120         (__ASSUME_AT_PAGESIZE): Likewise.
4121         (__ASSUME_AT_XID): Likewise.
4122         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4123         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4124         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4125         unconditionally.
4126         (HAVE_AUX_PAGESIZE): Likewise.
4127         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4128         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4129         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4130
4131 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4132
4133         [BZ #14307]
4134         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4135         the temporary buffer used to invoke __gethostbyname2_r,
4136         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4137         host_data / struct gaih_addrtuple.
4138         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4139         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4140         header file nss/nsswitch.h.
4141         * nss/nsswitch.h (global scope): Add definition of implementation
4142         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4143         resolv/nss_dns/dns-host.c).
4144
4145 2012-07-11  Andreas Jaeger  <aj@suse.de>
4146
4147         * po/fr.po: Update from translation team.
4148
4149         * po/sv.po: Update from translation team
4150         * po/fr.po: Another update from translation team.
4151
4152 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4153
4154         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4155         for subnormals or multiply small sinh result by itself.
4156         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4157         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4158
4159 2012-07-11  David S. Miller  <davem@davemloft.net>
4160
4161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4162
4163 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4164
4165         [BZ #14347]
4166         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4167         (INTERNAL_MARK): Shift it here.
4168
4169 2012-07-10  Marek Polacek  <polacek@redhat.com>
4170
4171         [BZ #14151]
4172         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4173         libc_cv_asm_global_directive with .globl.
4174         * configure: Regenerated.
4175         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4176         with .globl.
4177         * sysdeps/i386/configure: Regenerated.
4178         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4179         with .globl.
4180         * sysdeps/x86_64/configure: Regenerated.
4181         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4182         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4183         * elf/tst-unique2mod2.c: Likewise.
4184         * elf/tst-unique2mod1.c: Likewise.
4185         * elf/tst-unique1mod2.c: Likewise.
4186         * elf/tst-unique1mod1.c: Likewise.
4187         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4188         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4189         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4190         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4191         * sysdeps/mach/sysdep.h: Likewise.
4192         * sysdeps/i386/sysdep.h: Likewise.
4193         * sysdeps/i386/i386-mcount.S: Likewise.
4194         * sysdeps/x86_64/_mcount.S: Likewise.
4195         * sysdeps/x86_64/sysdep.h: Likewise.
4196         * sysdeps/sh/_mcount.S: Likewise.
4197         * sysdeps/sh/sysdep.h: Likewise.
4198         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4199         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4200         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4201         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4202         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4203         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4204         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4205         * locale/localeinfo.h: Likewise.
4206         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4207         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4208
4209 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4210
4211         [BZ #14336]
4212         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4213         system".
4214         * manual/message.texi (The Uniforum approach): Likewise.
4215         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4216         (glibc iconv Implementation): Likewise.
4217
4218 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4219
4220         [BZ #14337]
4221         * math/s_clog.c (__clog): Avoid scaling a value down where that
4222         could result in underflow.
4223         * math/s_clog10.c (__clog10): Likewise.
4224         * math/s_clog10f.c (__clog10f): Likewise.
4225         * math/s_clog10l.c (__clog10l): Likewise.
4226         * math/s_clogf.c (__clogf): Likewise.
4227         * math/s_clogl.c (__clogl): Likewise.
4228         * math/libm-test.inc (clog_test): Add more tests.
4229         (clog10_test): Likewise.
4230         * sysdeps/i386/fpu/libm-test-ulps: Update.
4231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4232
4233 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4234
4235         [BZ #14283]
4236         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4237         by 7 not 8 to examine high bit of fractional part.
4238
4239         [BZ #14042]
4240         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4241         for call to __mcount_internal.
4242         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4243         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4244         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4245
4246 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4247
4248         [BZ #14154]
4249         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4250         approximation for values within 0x1p-13f of an odd multiple of
4251         pi/4.
4252         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4253         exception.  Add more tests.
4254         * sysdeps/i386/fpu/libm-test-ulps: Update.
4255
4256         [BZ #6778]
4257         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4258         inputs and return -1 for them.  Do not check for +Inf in case not
4259         reachable for +Inf.
4260         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4261         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4262         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4263         and return -1 for them.  Do not check for +Inf in case not
4264         reachable for +Inf.
4265         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4266         define.
4267         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4268         and return -1 for them.  Do not check for +Inf in case not
4269         reachable for +Inf.
4270         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4271         spurious underflow.
4272         * sysdeps/i386/fpu/libm-test-ulps: Update.
4273         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4274
4275 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4276
4277         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4278
4279 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4280
4281         [BZ #14157]
4282         [BZ #14331]
4283         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4284         could result in spurious underflow.  Scale down values above
4285         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4286         * math/s_csqrtf.c (__csqrtf): Likewise.
4287         * math/s_csqrtl.c (__csqrtl): Likewise.
4288         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4289         spurious underflow.
4290         * sysdeps/i386/fpu/libm-test-ulps: Update.
4291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4292
4293 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4294
4295         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4296         xopen-msg.sed.
4297         * catgets/xopen-msg.awk: New file.
4298         * catgets/xopen-msg.sed: Removed.
4299
4300         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4301         po2text.sed.
4302         * intl/po2test.awk: New file.
4303         * intl/po2test.sed: Removed.
4304
4305 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4306
4307         [BZ #14328]
4308         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4309         or multiply small sinh result by itself.
4310         * math/s_ctanf.c (__ctanf): Likewise.
4311         * math/s_ctanh.c (__ctanh): Likewise.
4312         * math/s_ctanhf.c (__ctanhf): Likewise.
4313         * math/s_ctanhl.c (__ctanhl): Likewise.
4314         * math/s_ctanl.c (__ctanl): Likewise.
4315         * math/libm-test.inc (ctan_test_tonearest): New function.
4316         (ctan_test_towardzero): Likewise.
4317         (ctan_test_downward): Likewise.
4318         (ctan_test_upward): Likewise.
4319         (ctanh_test_tonearest): Likewise.
4320         (ctanh_test_towardzero): Likewise.
4321         (ctanh_test_downward): Likewise.
4322         (ctanh_test_upward): Likewise.
4323         (main): Call these new functions.
4324         * sysdeps/i386/fpu/libm-test-ulps: Update.
4325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4326
4327 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4328
4329         * .gitignore: Delete /ports entry.
4330
4331 2012-07-03  Andreas Jaeger  <aj@suse.de>
4332
4333         * po/bg.po: Update from translation team.
4334         * po/cs.po: Likewise.
4335         * po/de.po: Likewise.
4336         * po/hr.po: Likewise.
4337         * po/nl.pl: Likewise.
4338         * po/pl.po: Likewise.
4339         * po/vi.po: Likewise.
4340
4341 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4342
4343         * Makeconfig [!+link] (+link-before-libc): New variable.
4344         [!+link] (+link-after-libc): Likewise.
4345         [!+link] (+link-tests): Likewise.
4346         [!+link] (+link): Define in terms of $(+link-before-libc) and
4347         $(+link-after-libc).
4348         [!+link-static] (+link-static-before-libc): New variable.
4349         [!+link-static] (+link-static-after-libc): Likewise.
4350         [!+link-static] (+link-static-tests): Likewise.
4351         [!+link-static] (+link-static): Define in terms of
4352         $(+link-static-before-libc) and $(+link-static-after-libc).
4353         [build-shared] (link-libc-before-gnulib): New variable.
4354         [build-shared] (link-libc-tests): Likewise.
4355         [build-shared] (link-libc): Define in terms of
4356         $(link-libc-before-gnulib).
4357         [!build-shared] (link-libc-tests): New variable.
4358         (link-libc-static-tests): New variable.
4359         [!gnulib] (gnulib-arch): New variable.
4360         [!gnulib] (gnulib-tests): Likewise.
4361         [!gnulib] (static-gnulib-arch): Likewise.
4362         [!gnulib] (static-gnulib-tests): Likewise.
4363         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4364         Define with "=" instead of ":=".
4365         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4366         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4367         * Rules (binaries-all-notests): New variable.
4368         (binaries-all-tests): Likewise.
4369         (binaries-static-notests): Likewise.
4370         (binaries-static-tests): Likewise.
4371         (binaries-all): Define using $(binaries-all-notests) and
4372         $(binaries-all-tests).
4373         (binaries-static): Define using $(binaries-static-notests) and
4374         $(binaries-static-tests).
4375         (binaries-shared-tests): New variable.
4376         (binaries-shared-notests): Likewise.
4377         (binaries-shared): Remove variable.
4378         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4379         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4380         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4381         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4382         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4383         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4384         * elf/Makefile (sln-modules): New variable.
4385         (extra-objs): Add $(sln-modules:=.o).
4386         (ldconfig-modules): Add static-stubs.
4387         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4388         * elf/static-stubs.c: New file.
4389
4390         [BZ #14283]
4391         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4392         by 7 not 8 to examine high bit of fractional part.  Use volatile
4393         variables when splitting into final array of floats if
4394         __FLT_EVAL_METHOD__ != 0.
4395         * math/libm-test.inc (cos_test): Add another test.
4396         (sin_test): Likewise.
4397         * sysdeps/i386/fpu/libm-test-ulps: Update.
4398
4399         [BZ #14273]
4400         * math/libm-test.inc (cosh_test): Add more tests.
4401
4402         * version.h (RELEASE): Set to "development".
4403         (VERSION): Set to "2.16.90".
4404
4405 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4406
4407         * NEWS: Update copyright. Remove last-updated date.
4408         Mention math library bug fixes and timezone data changes.
4409         * README: Mention GNU/Hurd, x32, and HPPA support status.
4410
4411 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4412
4413         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4414
4415 2012-06-27  Andreas Jaeger  <aj@suse.de>
4416
4417         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4418
4419 2012-06-25  Andreas Jaeger  <aj@suse.de>
4420
4421         * sysdeps/s390/fpu/libm-test-ulps: Update.
4422
4423 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4424             Thomas Schwinge  <thomas@codesourcery.com>
4425
4426         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4427         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4428         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4429         fanotify_mark.
4430
4431 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4432
4433         * sysdeps/mach/start.c: Remove file.
4434         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4435         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4436         * sysdeps/sh/init-first.c: Likewise.
4437
4438         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4439         registers for frame unwinding purposes, add CFI directives.
4440         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4441         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4442         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4443         Likewise.
4444
4445         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4446         __fortify_fail returning.
4447         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4448
4449         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4450         sysdeps/sh/____longjmp_chk.S.
4451         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4452         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4453         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4454         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4455
4456         * sysdeps/sh/abort-instr.h: New file.
4457         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4458         process in case exit returns.
4459
4460         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4461         initialize the GOT register before use.
4462
4463         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4464         calculation of ARGC > 4.
4465
4466         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4467         meaningful names to some local labels.
4468
4469 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4470             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4471
4472         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4473         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4474         (__arch_compare_and_exchange_val_16_acq): Likewise.
4475         (__arch_compare_and_exchange_val_32_acq): Likewise.
4476         (atomic_exchange_and_add): Fix gUSA sequence.
4477         (atomic_add): Likewise.
4478         (atomic_add_negative): Likewise.
4479         (atomic_add_zero): Likewise.
4480         (atomic_bit_test_set): Likewise.
4481
4482 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4483
4484         [BZ #13579]
4485         * include/link.h (struct link_map): Add l_free_initfini.
4486         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4487         l_initfini.
4488         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4489         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4490         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4491         set.
4492
4493 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4494
4495         * configure.in: Use AC_LANG_SOURCE.
4496         * configure: Regenerate.
4497
4498 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4499
4500         * configure.in (libc_cv_localstatedir): New substituted variable.
4501         * configure: Regenerated.
4502         * config.make.in (localstatedir): New variable, substituted from
4503         libc_cv_localstatedir.
4504         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4505         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4506         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4507         * sysdeps/gnu/configure: Regenerated.
4508
4509 2012-06-21  Jeff Law  <law@redhat.com>
4510
4511         [BZ #14277]
4512         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4513         free.  Simplify list management for _LIBC case.
4514
4515 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4516
4517         [BZ #14273]
4518         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4519         Clear sign bit of 64-bit integer value before comparing against
4520         overflow value.
4521
4522         * sysdeps/mach/configure: Regenerated.
4523
4524 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4525
4526         [BZ #14278]
4527         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4528
4529 2012-06-21  Jeff Law  <law@redhat.com>
4530
4531         [BZ #13882]
4532         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4533         uint16_t for elements in the "seen" array to avoid char overflows.
4534         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4535         * elf/dl-open.c (dl_open_worker): Likewise.
4536
4537 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4538
4539         * scripts/list-sources.sh: Scan PORTS for translations.
4540         * po/libc.pot: Regenerated.
4541
4542 2012-06-21  Andreas Jaeger  <aj@suse.de>
4543
4544         [BZ #12194]
4545         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4546         warning.
4547         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4548         * bits/byteswap-16.h (__bswap_16): Likewise.
4549         * bits/byteswap.h (__bswap_constant_16): Likewise.
4550
4551 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4552
4553         [BZ #14117]
4554         * sysdeps/i386/fpu_control.h: Removed.
4555         * sysdeps/x86_64/fpu_control.h: Moved to ...
4556         * sysdeps/x86/fpu_control.h: Here.
4557
4558         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4559         (_FPU_SETCW): Likewise.
4560
4561 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4562
4563         [BZ #14117]
4564         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4565         * sysdeps/x86/fpu/bits/mathinline.h: This.
4566         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4567
4568         [BZ #14050]
4569         [BZ #14117]
4570         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4571         functions if __x86_64__ is defined.
4572
4573 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4574
4575         * string/endian.h: Add !__ASSEMBLER__ condition for including
4576         conversion interfaces.
4577
4578 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4579
4580         [BZ #14241]
4581         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4582         of ABS(x) in calculating zero to negative powers other than odd
4583         integers.
4584         * math/libm-test.inc (pow_test): Add more tests.
4585
4586 2012-06-15  Andreas Jaeger  <aj@suse.de>
4587
4588         * manual/contrib.texi (Contributors): Update entry of Liubov
4589         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4590         Machado Filho.
4591
4592 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4593
4594         * string/string.h: Add __wur to GNU version of strerror_r.
4595
4596 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4597
4598         [BZ #14229]
4599         * string/Makefile (tests): Add tst-strtok_r.
4600         * string/tst-strtok_r.c: New file.
4601         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4602         RAX_LP/RDX_LP on SAVE_PTR.
4603
4604 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4605
4606         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4607
4608 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4609
4610         * libm_test.inc (csqrt_test): Allow more spurious underflow
4611         exceptions.
4612         (j0_test): Likewise.
4613         (j1_test): Likewise.
4614         (y0_test): Likewise.
4615         (y1_test): Likewise.
4616
4617 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4618
4619         * po/Makefile (libc.pot): Use UTF-8 charset.
4620
4621 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4622
4623         [BZ #14210]
4624         Suppress sign-conversion warning from FD_SET.
4625         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4626         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4627         not unsigned long int.
4628         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4629
4630 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4631
4632         [BZ #14050]
4633         [BZ #14117]
4634         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4635         __extern_always_inline instead of __extern_inline.
4636         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4637         (__signbit): Likewise.
4638         (__signbitl): Support C++ namespace.
4639         (lrintf): New inline function.
4640         (lrint): Likewise.
4641         (llrintf): Likewise.
4642         (llrint): Likewise.
4643         (fmaxf): Likewise.
4644         (fmax): Likewise.
4645         (fminf): Likewise.
4646         (fmin): Likewise.
4647         (rint): Likewise.
4648         (rintf): Likewise.
4649         (ceil): Likewise.
4650         (ceilf): Likewise.
4651         (floor): Likewise.
4652         (floorf): Likewise.
4653         (nearbyint): Likewise.
4654         (nearbyintf): Likewise.
4655
4656 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4657
4658         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4659         non-default versions.
4660
4661 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4662
4663         [BZ #14218]
4664         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4665
4666 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4667
4668         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4669         (FE_UPWARD, FE_DOWNWARD): Don't define.
4670         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4671         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4672
4673         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4674         reading it.
4675         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4676         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4677
4678 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4679
4680         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4681         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4682         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4683         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4684
4685 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4686
4687         [BZ #14117]
4688         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4689         * sysdeps/i386/fpu/Implies: New file.
4690         * sysdeps/x86_64/fpu/Implies: Likewise.
4691         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4692         * sysdeps/x86/fpu/bits/fenv.h: This.
4693
4694         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4695         __SSE_MATH__.
4696
4697 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4698
4699         [BZ #14134]
4700         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4701         character 0xffff that matches the last element of the
4702         conversion table.
4703
4704 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4705
4706         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4707         fmodl commit.
4708
4709 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4710
4711         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4712         values higher than 25.6283.
4713
4714 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4715
4716         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4717         subnormal exponent extraction and add some __builtin_expect.
4718         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4719         Fix for subnormal mantissa calculation.
4720
4721 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4722
4723         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4724         cpu2 is -1 and errno is not ENOSYS.
4725
4726 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4727
4728         [BZ #14117]
4729         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4730         * sysdeps/x86/bits/string.h: This.
4731         * sysdeps/x86_64/bits/string.h: Removed.
4732
4733         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4734         if not compiling for x86-64, but compiling for >= i486.
4735
4736         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4737         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4738
4739         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4740         New macro from Linux kernel 3.4.0.
4741         (FP_XSTATE_MAGIC2): Likewise.
4742         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4743         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4744         (struct _fpx_sw_bytes): New struct.
4745         (struct _xsave_hdr): Likewise.
4746         (struct _ymmh_state): Likewise.
4747         (struct _xstate): Likewise.
4748
4749         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4750         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4751         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4752         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4753         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4754         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4755
4756         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4757         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4758         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4759         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4760         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4761         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4762
4763 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4764
4765         [BZ #13743]
4766         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4767         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4768         (sysdep_headers): Include sys/platform/ppc.h.
4769         * sysdeps/powerpc/test-gettimebase.c: Test for
4770         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4771         * manual/Makefile (appendices): Include platform.texi.
4772         * manual/contrib.texi (Contributors): Update @node pointers.
4773         * manual/maint.texi (Maintenance): Likewise.
4774         (Platform): New node.
4775         * manual/platform.texi: New file.  Document the new features.
4776
4777 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4778             Jakub Jelinek  <jakub@redhat.com>
4779
4780         [BZ #14188]
4781         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4782         where __builtin_expect is unavailable.
4783
4784 2012-06-03  David S. Miller  <davem@davemloft.net>
4785
4786         * stdlib/longlong.h: Updated from GCC.
4787
4788 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4789
4790         [BZ #14042]
4791         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4792         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4793         __mcount_internal.
4794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4795         (GLIBC_2.16): Likewise.
4796
4797 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4798
4799         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4800
4801 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4802
4803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4804         (default-abi): New variable.
4805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4806         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4807         variable.
4808         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4809         Likewise.
4810         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4811         Likewise.
4812         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4813         Likewise.
4814
4815         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4816         definition.  Document in comment.
4817
4818 2012-06-01  David S. Miller  <davem@davemloft.net>
4819
4820         * stdlib/longlong.h: Updated from GCC.
4821
4822 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4823
4824         [BZ #14117]
4825         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4826         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4827         sys/debugreg.h sys/io.h here.
4828         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4829         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4830         sys/io.h.
4831         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4832         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4833         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4834         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4835         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4836         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4837
4838         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4839         Define only if __x86_64__ is defined.
4840
4841 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4842
4843         [BZ #14048]
4844         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4845         Use int64_t for variable i.
4846         * math/libm-test.inc (fmod_test): Add more tests.
4847
4848         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4849         z computation is not scheduled after fetestexcept.
4850         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4851         Use math_force_eval instead of asm to ensure calculation scheduled
4852         before exception test.
4853         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4854         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4855
4856 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4857
4858         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4859         computation is not scheduled after fetestexcept.
4860
4861 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4862
4863         [BZ #14117]
4864         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4865         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4866
4867 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4868
4869         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4870         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4871
4872 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4873
4874         [BZ #14117]
4875         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4876         <bits/wordsize.h>.
4877         (__WCHAR_MIN): Support __WORDSIZE == 64.
4878         (__WCHAR_MAX): Likewise.
4879
4880         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4881         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4882
4883         [BZ #14183]
4884         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4885         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4886
4887         [BZ #14117]
4888         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4889         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4890
4891         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4892         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4893
4894         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4895         Defined to 1 if __x86_64__ isn't defined.
4896         (_STAT_VER_LINUX_OLD): New.
4897         (st_atime): Remove duplicate.
4898         (st_mtime): Likewise.
4899         (st_ctime): Likewise.
4900
4901 2012-05-31  David S. Miller  <davem@davemloft.net>
4902
4903         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4904         entries.
4905
4906 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4907
4908         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4909         gen-libm-test.pl.
4910
4911         [BZ #14132]
4912         * elf/dl-reloc.c: Include <_itoa.h>.
4913         (_dl_reloc_bad_type): Remove use of INTUSE.
4914         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4915         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4916         * stdio-common/psiginfo.c (psiginfo): Likewise.
4917         * stdio-common/psignal.c (psignal): Likewise.
4918         * string/strsignal.c (strsignal): Likewise.
4919         * include/signal.h (_sys_siglist): Declare hidden proto.
4920         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4921         INTVARDEF with libc_hidden_data_def.
4922         * stdio-common/itoa-udigits.c: Likewise.
4923         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4924         (_itoa_lower_digits_internal): Remove declaration.
4925         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4926         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4927         (_sys_sigabbrev_internal): Remove aliases.
4928         (_sys_siglist): Define hidden alias.
4929
4930 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4931
4932         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4933         bits/sysctl.h.
4934
4935 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4936
4937         [BZ #14117]
4938         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4939         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4940
4941         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4942         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4943         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4944         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4945         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4946         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4947
4948         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4949         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4950         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4951
4952         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4953         with __addr.
4954         (insw): Likewise.
4955         (insl): Likewise.
4956         (outsb): Likewise.
4957         (outsw): Likewise.
4958         (outsl): Likewise.
4959
4960         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4961         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4962         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4963
4964         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4965         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4966         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4967         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4968         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4969         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4970
4971         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4972         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4973
4974         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4975         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4976
4977         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4978         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4979         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4980
4981         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4982         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4983         to ...
4984         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4985
4986         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4987         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4988         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4989
4990         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4991         for x86-64.
4992         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4993
4994 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4995
4996         * math/math.h (M_El): Use two more decimal places.
4997         (M_LOG2El): Likewise.
4998         (M_LOG10El): Likewise.
4999         (M_LN2l): Likewise.
5000         (M_LN10l): Likewise.
5001         (M_PIl): Likewise.
5002         (M_PI_2l): Likewise.
5003         (M_PI_4l): Likewise.
5004         (M_1_PIl): Likewise.
5005         (M_2_PIl): Likewise.
5006         (M_2_SQRTPIl): Likewise.
5007         (M_SQRT2l): Likewise.
5008         (M_SQRT1_2l): Likewise.
5009
5010 2012-05-31  David S. Miller  <davem@davemloft.net>
5011
5012         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
5013         values between float registers.
5014         * sysdeps/sparc/sparc64/memset.S: Likewise.
5015         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5016
5017 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
5018
5019         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
5020         -D_FORTIFY_SOURCE=1.
5021         (CPPFLAGS-tst-longjmp_chk.c): Define.
5022         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
5023         (CPPFLAGS-tst-longjmp_chk2.c): Define.
5024         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
5025         CFLAGS-tst-wchar-h.c.
5026
5027 2012-05-31  Marek Polacek  <polacek@redhat.com>
5028
5029         [BZ #14132]
5030         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5031         __endmntent_internal): Remove declaration.
5032         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5033         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5034         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5035
5036 2012-05-30  David S. Miller  <davem@davemloft.net>
5037
5038         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5039         (___Q_simulate_exceptions): Use real FP ops rather than writing
5040         into the %fsr.
5041         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5042         Likewise.
5043
5044 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5045
5046         [BZ #14117]
5047         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5048         * sysdeps/x86/bits/xtitypes.h: This.
5049
5050         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5051         * sysdeps/x86/bits/wordsize.h: This.
5052
5053         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5054         * sysdeps/x86/bits/huge_vall.h: This.
5055
5056         * sysdeps/i386/bits/select.h: Removed.
5057         * sysdeps/x86_64/bits/select.h: Renamed to ...
5058         * sysdeps/x86/bits/select.h: This.
5059
5060         * sysdeps/i386/bits/setjmp.h: Removed.
5061         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5062         * sysdeps/x86/bits/setjmp.h: This.
5063
5064         * sysdeps/i386/bits/mathdef.h: Removed.
5065         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5066         * sysdeps/x86/bits/mathdef.h: This.
5067
5068 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5069
5070         [BZ #14132]
5071         * include/sys/socket.h (__connect_internal)
5072         (__libc_sa_len_internal): Remove declaration.
5073         (__connect, __libc_sa_len): Declare hidden_proto.
5074         (SA_LEN): Remove use of INTUSE.
5075         * socket/connect.c: Add libc_hidden_def.
5076         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5077         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5078         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5079         alias.
5080         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5081         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5082         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5083         of adding _internal alias.
5084
5085 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5086
5087         [BZ #14117]
5088         * sysdeps/i386/bits/link.h: Removed.
5089         * sysdeps/i386/bits/linkmap.h: Likewise.
5090         * sysdeps/x86_64/bits/link.h: Renamed to ...
5091         * sysdeps/x86/bits/link.h: This.
5092         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5093         * sysdeps/x86/bits/linkmap.h: This.
5094
5095         * sysdeps/i386/bits/endian.h: Removed.
5096         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5097         * sysdeps/x86/bits/endian.h: This.
5098
5099         * sysdeps/i386/bits/byteswap.h: Removed.
5100         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5101         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5102         * sysdeps/x86/bits/byteswap.h: This.
5103         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5104         * sysdeps/x86/bits/byteswap-16.h: This.
5105         * sysdeps/i386/Implies: Add x86.
5106         * sysdeps/x86_64/Implies: Likewise.
5107
5108 2012-05-30  David S. Miller  <davem@davemloft.net>
5109
5110         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5111         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5112         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5113         (FP_TRAPPING_EXCEPTIONS): Define.
5114         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5115         (FP_TRAPPING_EXCEPTIONS): Define.
5116         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5117         subnormals only when inexact has been signalled or underflow
5118         exceptions are enabled.
5119         (_FP_PACK_CANONICAL): Likewise.
5120
5121 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5122
5123         [BZ #14183]
5124         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5125         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5126
5127 2012-05-30  Richard Henderson  <rth@twiddle.net>
5128
5129         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5130         with #ifndef NOT_IN_libc.
5131
5132         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5133         marked to avoid plt entry.
5134
5135 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5136
5137         [BZ #14112]
5138         * Makeconfig (default-abi): New macro.
5139         (abi-includes): Likewise.
5140         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5141         $(abi-$(default-abi)-lib-soname) for soname if defined.
5142         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5143         abi-variants.
5144         * Makefile (installed-stubs): Likewise.
5145         * include/stubs-biarch.h: Removed.
5146         * scripts/lib-names.awk: Only handle one library at a time.
5147         * scripts/soversions.awk: Remove WORDSIZE support.
5148         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5149         entries.
5150         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5151         Removed.
5152         (syscall-list-default-condition): Likewise.
5153         (syscall-list-default-condition): Likewise.
5154         (syscall-list-includes): Likewise.
5155         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5156         syscall-list-* with abi-*.  Handle undefined abi-variants.
5157         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5158         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5159         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5160         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5161         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5162         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5163         Removed.
5164         (syscall-list-32-options): Likewise.
5165         (syscall-list-32-condition): Likewise.
5166         (syscall-list-64-options): Likewise.
5167         (syscall-list-64-condition): Likewise.
5168         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5169         macro.
5170         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5171         Renamed to ...
5172         (abi-*): This.
5173         (abi-64-ld-soname): New macro.
5174         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5175         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5176         Renamed to ...
5177         (abi-*): This.
5178         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5179         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5180
5181 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5182
5183         * sysdeps/unix/sysv/linux/kernel-features.h
5184         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5185         * sysdeps/unix/sysv/linux/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/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         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5198         include <kernel-features.h>.
5199         [!__NR_ftruncate64]: Remove conditional code.
5200         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5201         [__NR_ftruncate64]: Make code unconditional.
5202         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5204         include <kernel-features.h>.
5205         [!__NR_ftruncate64]: Remove conditional code.
5206         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5207         [__NR_ftruncate64]: Make code unconditional.
5208         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5209
5210         * configure.in (libc_cv_fpie): Weaken to a compile test using
5211         LIBC_TRY_CC_OPTION.
5212         * configure: Regenerated.
5213
5214 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5215
5216         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5217         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5218         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5219         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5220         Refreshed.
5221         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5222         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5223         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5224         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5225         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5226         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5227         Refreshed.
5228
5229 2012-05-27  David S. Miller  <davem@davemloft.net>
5230
5231         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5232         (___Q_zero): New.
5233         (__Q_simulate_exceptions): Return void.  Change to simulate
5234         exceptions by writing into the %fsr.
5235         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5236         (__Qp_handle_exceptions): Likewise.
5237         (numbers): Delete.
5238         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5239         __Qp_handle_exceptions.
5240         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5241         __Qp_handle_exceptions.
5242         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5243         as unused and give dummy FP_RND_NEAREST initializer.
5244         (FP_INHIBIT_RESULTS): Define.
5245         (___Q_simulate_exceptions): Update declaration.
5246         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5247         formatting.
5248         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5249         as unused and give dummy FP_RND_NEAREST initializer.
5250         (__Qp_handle_exceptions): Update declaration.
5251         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5252         formatting.
5253
5254 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5255
5256         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5257         the temporary FPU control word.
5258         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5259         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5260         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5261         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5262         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5263         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5264         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5265         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5266         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5267         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5268         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5269
5270 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5271
5272         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5273         fields.
5274
5275 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5276
5277         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5278         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5279         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5280         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5281         Likewise.
5282         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5283         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5284         Likewise.
5285
5286 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5287
5288         * po/h.po: Update from translation team.
5289
5290 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5291
5292         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5293
5294         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5295         handling of denormals.
5296         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5297         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5298         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5299         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5300         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5301         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5302         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5303         Likewise.
5304
5305 2012-05-26  Marek Polacek  <polacek@redhat.com>
5306
5307         [BZ #14152]
5308         * math/libm-test.inc (fma_test): Don't always expect underflow
5309         exception.
5310
5311 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5312
5313         [BZ #12416]
5314         * elf/tst-execstack.c: Include stackinfo.h.
5315         (do_test): Adjust test case to ensure that pthread_getattr_np
5316         behaviour remains the same after marking stack executable.
5317
5318 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5319
5320         * sysdeps/unix/sysv/linux/kernel-features.h
5321         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5322         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5323         kernel-features.h.
5324         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5325         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5326         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5327         kernel-features.h.
5328         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5329         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5330
5331 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5332
5333         * configure.in: Define the default includes to being none.
5334         * configure: Regenerated.
5335
5336 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5337
5338         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5339         * sysdeps/x86_64/setjmp.S: Likewise.
5340         * sysdeps/i386/bsd-setjmp.S: Likewise.
5341         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5342         * sysdeps/i386/setjmp.S: Likewise.
5343         * sysdeps/i386/__longjmp.S: Likewise.
5344         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5345         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5346
5347         * include/stap-probe.h: New file.
5348         * configure.in: Handle --enable-systemtap.
5349         * configure: Regenerated.
5350         * config.h.in (USE_STAP_PROBE): New #undef.
5351         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5352         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5353         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5354
5355 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5356
5357         [BZ #13717]
5358         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5359         to 2.4.0 where earlier.
5360         * sysdeps/unix/sysv/linux/configure: Regenerated.
5361         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5362         <kernel-features.h>.
5363         [__ASSUME_32BITUIDS]: Make code unconditional.
5364         [!__ASSUME_32BITUIDS]: Remove conditional code.
5365         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5366         <kernel-features.h>.
5367         [__ASSUME_32BITUIDS]: Make code unconditional.
5368         [!__ASSUME_32BITUIDS]: Remove conditional code.
5369         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5370         [__ASSUME_32BITUIDS]: Make code unconditional.
5371         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5372         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.c: Do not include
5401         <kernel-features.h>.
5402         [__ASSUME_32BITUIDS]: Make code unconditional.
5403         [!__ASSUME_32BITUIDS]: Remove conditional code.
5404         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5405         <kernel-features.h>.
5406         [__ASSUME_32BITUIDS]: Make code unconditional.
5407         [!__ASSUME_32BITUIDS]: Remove conditional code.
5408         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5409         <kernel-features.h>.
5410         [__ASSUME_32BITUIDS]: Make code unconditional.
5411         [!__ASSUME_32BITUIDS]: Remove conditional code.
5412         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5413         <kernel-features.h>.
5414         [__NR_setresgid] (__setresgid): Do not declare.
5415         [__ASSUME_32BITUIDS]: Make code unconditional.
5416         [!__ASSUME_32BITUIDS]: Remove conditional code.
5417         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5418         <kernel-features.h>.
5419         [__NR_setresuid] (__setresuid): Do not declare.
5420         [__ASSUME_32BITUIDS]: Make code unconditional.
5421         [!__ASSUME_32BITUIDS]: Remove conditional code.
5422         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/i386/setreuid.c: Do not include
5451         <kernel-features.h>.
5452         [__ASSUME_32BITUIDS]: Make code unconditional.
5453         [!__ASSUME_32BITUIDS]: Remove conditional code.
5454         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5455         <kernel-features.h>.
5456         [__ASSUME_32BITUIDS]: Make code unconditional.
5457         [!__ASSUME_32BITUIDS]: Remove conditional code.
5458         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5459         <kernel-features.h>.
5460         [__ASSUME_32BITUIDS]: Make code unconditional.
5461         [!__ASSUME_32BITUIDS]: Remove conditional code.
5462         * sysdeps/unix/sysv/linux/kernel-features.h
5463         (__ASSUME_SETRESUID_SYSCALL): Remove.
5464         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5465         (__ASSUME_32BITUIDS): Likewise.
5466         (__ASSUME_LDT_WORKS): Likewise.
5467         (__ASSUME_O_DIRECTORY): Likewise.
5468         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5469         architecture but not kernel version.
5470         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5471         (__ASSUME_MMAP2_SYSCALL): Likewise.
5472         (__ASSUME_STAT64_SYSCALL): Likewise.
5473         (__ASSUME_IPC64): Likewise.
5474         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5475         <kernel-features.h>.
5476         [__ASSUME_32BITUIDS]: Make code unconditional.
5477         [!__ASSUME_32BITUIDS]: Remove conditional code.
5478         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5479         <kernel-features.h>.
5480         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5481         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5482         132096]: Remove conditional code.
5483         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5484         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5485         <kernel-features.h>.
5486         [__ASSUME_32BITUIDS]: Make code unconditional.
5487         [!__ASSUME_32BITUIDS]: Remove conditional code.
5488         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5489         <kernel-features.h>.
5490         [__ASSUME_32BITUIDS]: Make code unconditional.
5491         [!__ASSUME_32BITUIDS]: Remove conditional code.
5492         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5493         <kernel-features.h>.
5494         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5495         unconditional.
5496         (__setresgid): Do not declare.
5497         [__ASSUME_32BITUIDS]: Make code unconditional.
5498         [!__ASSUME_32BITUIDS]: Remove conditional code.
5499         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5500         <kernel-features.h>.
5501         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5502         unconditional.
5503         (__setresuid): Do not declare.
5504         [__ASSUME_32BITUIDS]: Make code unconditional.
5505         [!__ASSUME_32BITUIDS]: Remove conditional code.
5506         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5507         <kernel-features.h>.
5508         [__ASSUME_32BITUIDS]: Make code unconditional.
5509         [!__ASSUME_32BITUIDS]: Remove conditional code.
5510         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5511         <kernel-features.h>.
5512         [__ASSUME_32BITUIDS]: Make code unconditional.
5513         [!__ASSUME_32BITUIDS]: Remove conditional code.
5514
5515 2012-05-25  Richard Henderson  <rth@twiddle.net>
5516
5517         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5518         dl_hwcap to ifunc resolver.
5519         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5520         elf_ifunc_invoke.
5521         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5522         dl_hwcap to ifunc resolver.
5523         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5524
5525 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5526
5527         [BZ #14153]
5528         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5529         for |x| <= 2**-26, not 2**-57.
5530         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5531         exception.
5532
5533 2012-05-24  Jeff Law  <law@redhat.com>
5534
5535         * stdio-common/Makefile (tests): Add bug25.
5536         * stdio-common/bug25.c: New test.
5537
5538 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5539
5540         [BZ #13576]
5541         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5542         multiple of MALLOC_ALIGNMENT in size.
5543         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5544
5545 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5546
5547         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5548         Require >= 256.
5549         (FILENAME_MAX): Use macro-int-constant.
5550         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5551         (_IOFBF): Use macro-int-constant.
5552         (_IOLBF): Likewise.
5553         (_IONBF): Likewise.
5554         (SEEK_CUR): Likewise.
5555         (SEEK_END): Likewise.
5556         (SEEK_SET): Likewise.
5557         (TMP_MAX): Likewise.
5558         (EOF): Use macro-int-constant.  Require < 0.
5559         (NULL): Use macro-constant.  Require == 0.
5560         (stdin): Require type to be FILE *.
5561         (stdout): Likewise.
5562         (stderr): Likewise.
5563         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5564         macro-int-constant.
5565         (EXIT_SUCCESS): Likewise.
5566         (NULL): Use macro-constant.  Require == 0.
5567         (RAND_MAX): Use macro-int-constant.
5568         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5569         [C99-based standards] (strtof): Require function.
5570         [C99-based standards] (strtold): Likewise.
5571         [C99-based standards] (strtoll): Likewise.
5572         [C99-based standards] (strtoull): Likewise.
5573         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5574         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5575         [ISO || ISO99 || ISO11] (math.h): Likewise.
5576         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5577         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5578         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5579
5580 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5581
5582         [BZ #14132]
5583         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5584         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5585         * intl/dgettext.c (DCGETTEXT): Likewise.
5586         * intl/gettext.c (DCGETTEXT): Likewise.
5587         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5588         * posix/regex_internal.h (gettext): Likewise.
5589         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5590         Remove declaration.
5591         * include/argz.h (__argz_count_internal)
5592         (__argz_stringify_internal): Remove declaration.
5593         (__argz_count, __argz_stringify): Declare hidden proto.
5594         * intl/dcgettext.c: Remove use of INTDEF.
5595         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5596         * string/argz-stringify.c: Likewise.
5597         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5598         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5599         Declare hidden proto.
5600         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5601         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5602         Declare hidden proto.
5603         * include/stdio.h (__asprintf_internal): Don't declare.
5604         (__asprintf): Don't define as macro.  Declare hidden proto.
5605         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5606         (__fsetlocking): Declare hidden proto.
5607         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5608         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5609         hidden proto.
5610         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5611         (_IO_setlinebuf): Remove use of INTUSE.
5612         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5613         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5614         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5615         Remove declaration.
5616         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5617         (_IO_do_flush): Remove use of INTUSE.
5618         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5619         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5620         (_IO_adjust_column, _IO_least_wmarker)
5621         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5622         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5623         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5624         (_IO_default_doallocate, _IO_wdefault_doallocate)
5625         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5626         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5627         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5628         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5629         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5630         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5631         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5632         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5633         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5634         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5635         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5636         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5637         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5638         proto.
5639         (_IO_flush_all_internal, _IO_adjust_column_internal)
5640         (_IO_default_uflow_internal, _IO_default_finish_internal)
5641         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5642         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5643         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5644         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5645         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5646         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5647         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5648         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5649         (_IO_file_close_internal, _IO_file_close_it_internal)
5650         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5651         (_IO_file_init_internal, _IO_file_attach_internal)
5652         (_IO_file_fopen_internal, _IO_file_read_internal)
5653         (_IO_file_sync_internal, _IO_file_seek_internal)
5654         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5655         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5656         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5657         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5658         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5659         (_IO_list_all_internal, _IO_link_in_internal)
5660         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5661         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5662         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5663         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5664         (_IO_do_write_internal, _IO_padn_internal)
5665         (_IO_getline_info_internal, _IO_getline_internal)
5666         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5667         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5668         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5669         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5670         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5671         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5672         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5673         with libc_hidden_ver, remove use of INTUSE.
5674         * libio/genops.c: Likewise.
5675         * libio/freopen.c: Likewise.
5676         * libio/freopen64.c: Likewise.
5677         * libio/iofclose.c: Likewise.
5678         * libio/iofdopen.c: Likewise.
5679         * libio/iofflush.c: Likewise.
5680         * libio/iofflush_u.c: Likewise.
5681         * libio/iofgets.c: Likewise.
5682         * libio/iofgets_u.c: Likewise.
5683         * libio/iofopen.c: Likewise.
5684         * libio/iofopncook.c: Likewise.
5685         * libio/iofread.c: Likewise.
5686         * libio/iofread_u.c: Likewise.
5687         * libio/ioftell.c: Likewise.
5688         * libio/iofwrite.c: Likewise.
5689         * libio/iogetline.c: Likewise.
5690         * libio/iogets.c: Likewise.
5691         * libio/iogetwline.c: Likewise.
5692         * libio/iopadn.c: Likewise.
5693         * libio/iopopen.c: Likewise.
5694         * libio/ioseekoff.c: Likewise.
5695         * libio/ioseekpos.c: Likewise.
5696         * libio/iosetbuffer.c: Likewise.
5697         * libio/iosetvbuf.c: Likewise.
5698         * libio/ioungetc.c: Likewise.
5699         * libio/ioungetwc.c: Likewise.
5700         * libio/iovdprintf.c: Likewise.
5701         * libio/iovsprintf.c: Likewise.
5702         * libio/iovsscanf.c: Likewise.
5703         * libio/memstream.c: Likewise.
5704         * libio/obprintf.c: Likewise.
5705         * libio/oldfileops.c: Likewise.
5706         * libio/oldiofclose.c: Likewise.
5707         * libio/oldiofdopen.c: Likewise.
5708         * libio/oldiofopen.c: Likewise.
5709         * libio/oldiopopen.c: Likewise.
5710         * libio/oldstdfiles.c: Likewise.
5711         * libio/putc.c: Likewise.
5712         * libio/setbuf.c: Likewise.
5713         * libio/setlinebuf.c: Likewise.
5714         * libio/stdfiles.c: Likewise.
5715         * libio/strops.c: Likewise.
5716         * libio/vasprintf.c: Likewise.
5717         * libio/vscanf.c: Likewise.
5718         * libio/vsnprintf.c: Likewise.
5719         * libio/vswprintf.c: Likewise.
5720         * libio/wfiledoalloc.c: Likewise.
5721         * libio/wfileops.c: Likewise.
5722         * libio/wgenops.c: Likewise.
5723         * libio/wmemstream.c: Likewise.
5724         * libio/wstrops.c: Likewise.
5725         * libio/__fpurge.c: Likewise.
5726         * libio/__fsetlocking.c: Likewise.
5727         * assert/assert.c: Likewise.
5728         * debug/fgets_chk.c: Likewise.
5729         * debug/fgets_u_chk.c: Likewise.
5730         * debug/fread_chk.c: Likewise.
5731         * debug/fread_u_chk.c: Likewise.
5732         * debug/gets_chk.c: Likewise.
5733         * debug/obprintf_chk.c: Likewise.
5734         * debug/vasprintf_chk.c: Likewise.
5735         * debug/vdprintf_chk.c: Likewise.
5736         * debug/vsnprintf_chk.c: Likewise.
5737         * debug/vsprintf_chk.c: Likewise.
5738         * malloc/mtrace.c: Likewise.
5739         * misc/error.c: Likewise.
5740         * misc/syslog.c: Likewise.
5741         * stdio-common/asprintf.c: Likewise.
5742         * stdio-common/fxprintf.c: Likewise.
5743         * stdio-common/getw.c: Likewise.
5744         * stdio-common/isoc99_fscanf.c: Likewise.
5745         * stdio-common/isoc99_scanf.c: Likewise.
5746         * stdio-common/isoc99_vfscanf.c: Likewise.
5747         * stdio-common/isoc99_vscanf.c: Likewise.
5748         * stdio-common/isoc99_vsscanf.c: Likewise.
5749         * stdio-common/printf-prs.c: Likewise.
5750         * stdio-common/printf_fp.c: Likewise.
5751         * stdio-common/printf_fphex.c: Likewise.
5752         * stdio-common/printf_size.c: Likewise.
5753         * stdio-common/putw.c: Likewise.
5754         * stdio-common/scanf.c: Likewise.
5755         * stdio-common/sprintf.c: Likewise.
5756         * stdio-common/tmpfile.c: Likewise.
5757         * stdio-common/vfprintf.c: Likewise.
5758         * stdio-common/vfscanf.c: Likewise.
5759         * stdlib/strfmon_l.c: Likewise.
5760         * sunrpc/openchild.c: Likewise.
5761         * sunrpc/xdr_stdio.c: Likewise.
5762         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5763         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5764
5765 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5766
5767         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5768
5769         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5770         in the third column, to generate for the shared library an IFUNC
5771         that uses _dl_vdso_vsym.
5772         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5773         * Makeconfig (object-suffixes-noshared): New variable.
5774
5775         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5776         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5777         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5778         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5779
5780         [BZ #14132]
5781         * include/sys/time.h (__gettimeofday): Remove macro.
5782         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5783         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5784         Remove INTDEF.
5785         (__gettimeofday): Add libc_hidden_def.
5786         (gettimeofday): Add libc_hidden_weak.
5787         * sysdeps/mach/gettimeofday.c: Likewise.
5788         * sysdeps/posix/gettimeofday.c: Likewise.
5789         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5790         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5791         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5792         (__gettimeofday_internal): Remove strong_alias.
5793         (__gettimeofday): Add libc_hidden_def.
5794         (gettimeofday): Add libc_hidden_weak.
5795         * sysdeps/unix/syscalls.list (gettimeofday):
5796         Remove __gettimeofday_internal alias.
5797
5798 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5799             H.J. Lu  <hongjiu.lu@intel.com>
5800
5801         [BZ #12495]
5802         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5803         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5804         (largebin_index_32_big): New.
5805         (largebin_index): Use it for 16-byte alignment.
5806         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5807         correction with front_misalign.
5808
5809 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5810
5811         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5812         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5813         Likewise.
5814         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5815         Likewise.
5816         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5817         Likewise.
5818         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5819         Likewise.
5820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5821         Likewise.
5822         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5823         Likewise.
5824         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5825         Likewise.
5826         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5827         Likewise.
5828         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5829         Likewise.
5830         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5831         Likewise.
5832         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5833         Likewise.
5834         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5835         Likewise.
5836
5837         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5838         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5839
5840 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5841
5842         [BZ #10846]
5843         [BZ #14036]
5844         * math/libm-test.inc (exp_test): Add test from bug 14036.
5845         (pow_test): Add test from bug 10846.
5846
5847         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5848         and other flags.
5849         (special_function): Do not include flags in test name.
5850         (parse_args): Likewise.
5851         * sysdeps/i386/fpu/libm-test-ulps: Update.
5852         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5853         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5854         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5856
5857         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5858         exceptions.
5859         * math/libm-test.inc ("Philosophy"): Update comment about
5860         exception testing.
5861         (UNDERFLOW_EXCEPTION): New macro.
5862         (UNDERFLOW_EXCEPTION_OK): Likewise.
5863         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5864         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5865         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5866         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5867         (INVALID_EXCEPTION_OK): Update value.
5868         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5869         (OVERFLOW_EXCEPTION_OK): Likewise.
5870         (IGNORE_ZERO_INF_SIGN): Likewise.
5871         (test_exceptions): Handle underflow exceptions.
5872         (acos_test): Update for underflow exception expectations.
5873         (cexp_test): Likewise.
5874         (clog_test): Likewise.
5875         (clog10_test): Likewise.
5876         (csqrt_test): Likewise.
5877         (ctan_test): Likewise.
5878         (ctanh_test): Likewise.
5879         (exp_test): Likewise.
5880         (exp10_test): Likewise.
5881         (exp2_test): Likewise.
5882         (expm1_test): Likewise.
5883         (fma_test): Likewise.
5884         (j0_test): Likewise.
5885         (jn_test): Likewise.
5886         (nexttoward_test): Likewise.
5887         (pow_test): Likewise.
5888         (scalbn_test): Likewise.
5889         (scalbln_test): Likewise.
5890         (tan_test): Likewise.
5891         (y1_test): Likewise.
5892         * sysdeps/i386/fpu/libm-test-ulps: Update.
5893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5894
5895 2012-05-23  David S. Miller  <davem@davemloft.net>
5896
5897         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5898         (__libc_sigaction): Remove unused local variables.
5899
5900 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5901
5902         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5903
5904 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5905
5906         mktime: avoid signed integer overflow
5907         * time/mktime.c (__mktime_internal): Do not mishandle the case
5908         where diff == INT_MIN.
5909
5910         mktime: simplify computation of average
5911         * time/mktime.c (ranged_convert): Use new time_t_avg function
5912         instead of rolling our own (probably-slower) code.
5913
5914         mktime: do not assume signed right shift propagates sign bit
5915         * time/mktime.c (isdst_differ): New static function.
5916         (__mktime_internal): No need to normalize tm_isdst now.
5917         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5918         tm_isdst values.
5919
5920         mktime: merge another wrapv change from gnulib
5921         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5922         from some compilers.
5923
5924         mktime: remove incorrect attempt at unusual arithmetics
5925         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5926         The code didn't really work on such machines anyway.
5927         (TYPE_MINIMUM): Assume two's complement.
5928         (twos_complement_arithmetic): Verify that long_int and time_t
5929         are two's complement (or unsigned, in the latter case).
5930
5931         mktime: check signed shifts on long_int and time_t, too
5932         * time/mktime.c (SHR): Check that shifts work as desired
5933         on the types long_int and time_t too, as SHR is used on
5934         such types.
5935
5936         mktime: do not assume 'long' is wide enough
5937         * time/mktime.c (verify): Move decl up.
5938         (long_int): New type.
5939         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5940         to remove assumption in the code that 'long' is wide enough to
5941         store year values.  This assumption is not true on x32 and on
5942         some non-glibc platforms.
5943
5944         mktime: merge wrapv change from gnulib
5945         * time/mktime.c (WRAPV): New macro.
5946         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5947         (guess_time_tm, __mktime_internal): Do not assume that signed
5948         integer overflow wraps around; modern compilers generate code
5949         where this assumption is no longer valid.
5950
5951 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5952
5953         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5954         Replace "jmp L(pseudo_end)" with "ret".
5955         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5956         Likewise.
5957
5958 2012-05-23  Andreas Jaeger  <aj@suse.de>
5959
5960         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5961         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5962
5963 2012-05-23  Andreas Jaeger  <aj@suse.de>
5964             Maximilian Attems  <max@stro.at>
5965
5966         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5967         New macros.
5968
5969 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5970
5971         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5972         code so that pseudo_end is just ret and the stack pointer is
5973         correct also for static library in error case.
5974
5975 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5976
5977         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5978         move to syscalls.list.
5979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5983
5984         * manual/install.texi (Running make install): Do not mention Linux
5985         kernel version for which pt_chown is not needed.
5986         (Linux): Do not mention problems with nscd with 2.0 kernels.
5987         * INSTALL: Regenerated.
5988
5989 2012-05-23  Andreas Jaeger  <aj@suse.de>
5990
5991         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5992         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5993         macro.
5994         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5995         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5996         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5997         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5998         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5999         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6000         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
6001         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6002         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
6003         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
6004         * sysdeps/unix/sysv/linux/bits/in.h
6005         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
6006
6007 2012-05-22  Roland McGrath  <roland@hack.frob.com>
6008
6009         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
6010         (PREPARE_VERSION): Just use assert instead, it will be elided
6011         under [NDEBUG] anyway.
6012
6013 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6014
6015         * sysdeps/unix/sysv/linux/Makefile: Include
6016         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
6017         (sysdep_routines): Remove sysctl.
6018         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
6019         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
6020         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
6021         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
6022         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
6023
6024 2012-05-22  Andreas Jaeger  <aj@suse.de>
6025
6026         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
6027         that pseudo_end is just ret and the stack pointer is correct also
6028         for static library in error case.
6029
6030 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6031
6032         [BZ #14122]
6033         * nss/nsswitch.c (defconfig_entries): New variable.
6034         (__nss_database_lookup): Don't leak defconfig entries.
6035         (nss_parse_service_list): Don't leak on error paths.
6036         (free_database_entries): New function.
6037         (free_defconfig): New function.
6038         (free_mem): Move common code to free_database_entries.
6039
6040 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6041
6042         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6043         Add arch_prctl.
6044         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6045
6046         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6047         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6048         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6049         New macro.
6050         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6051         (INTERNAL_SYSCALL_TYPES): Likewise.
6052         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6053         (LOAD_REGS_TYPES_[1-6]): Likewise.
6054         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6055         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6056
6057 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6058
6059         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6060         copysignl for GLIBC_2_0.
6061         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6062         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6063         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6064         logbl for GLIBC_2_0.
6065         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6066         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6067
6068 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6069
6070         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6071         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6072
6073         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6074         Use "neg %eax".
6075
6076         * time/mktime.c: Update copyright years.
6077
6078 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6079
6080         mktime: merge comment-quoting-style change from gnulib
6081         * time/mktime.c: Quote 'like this' in comments.
6082         The GNU coding standards suggest that we no longer quote `like this',
6083         as "`" and "'" are typically rendered asymmetrically nowadays.
6084         The typical gnulib style is to quote 'like this' when quoting
6085         code, and "like this" when quoting English.
6086
6087         * time/mktime.c (compile-command): Add "-I.".
6088
6089         mktime: merge mktime-internal.h change from gnulib
6090         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6091
6092         mktime: merge time_r change from gnulib
6093         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6094
6095         mktime: merge DEBUG change from gnulib
6096         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6097         case system <time.h> has a #define.
6098
6099         mktime: merge <sys/types.h> change from gnulib
6100         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6101         since <time.t> is now guaranteed to define time_t.
6102
6103         mktime: merge HAVE_CONFIG_H change from gnulib
6104         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6105
6106 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6107
6108         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6109         Use "neg %eax".
6110
6111         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6112         __rlim_t cast.
6113         (struct rusage): Use anonymous union to pad each field to
6114         __syscall_slong_t.
6115
6116 2012-05-21  David S. Miller  <davem@davemloft.net>
6117
6118         * Makefules (o-iterator): Remove .s cases.
6119         (compile-command.s): Delete.
6120         (COMPILE.s): Delete.
6121         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6122
6123 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6124
6125         * configure.in (libc_cv_predef_stack_protector): Only consider
6126         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6127         * configure: Regenerated.
6128
6129 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6130
6131         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6132         New macro.  Use R*LP on int and pointer.
6133         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6134         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6135         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6136         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6137
6138         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6139         [__WORDSIZE_TIME64_COMPAT32] instead of
6140         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6141         (struct utmp): Likewise.
6142         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6143         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6144         Renamed to ...
6145         (__WORDSIZE_TIME64_COMPAT32): This.
6146         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6147         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6148         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6149         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6150         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6151         (__WORDSIZE_TIME64_COMPAT32): New macro.
6152
6153 2012-05-21  Andreas Jaeger  <aj@suse.de>
6154
6155         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6156         only if [SHARED]. Add prototype for __wcschr_ia32.
6157
6158 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6159
6160         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6161         of %rbp unmolested in the jmp_buf while mangling the low bits.
6162         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6163         unmolested high bits of %rbp while demangling the low bits.
6164         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6165
6166 2012-05-21  Andreas Jaeger  <aj@suse.de>
6167
6168         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6169         * sunrpc/svc_simple.c: Use it for registerrpc.
6170         * sunrpc/xcrypt.c: Use it for passwd2des.
6171
6172         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6173
6174 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6175
6176         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6177         Don't define if [__SYSCALL_WORDSIZE != 32].
6178         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6179         New macro.
6180
6181 2012-05-21  Bruno Haible  <bruno@clisp.org>
6182             Andreas Jaeger  <aj@suse.de>
6183
6184         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6185         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6186         inptr and inend for must_buffer_ch.
6187         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6188         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6189         * stdio-common/Makefile (tests): Remove bug15.
6190         (bug15-ENV): Remove macro.
6191         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6192         anymore.
6193
6194 2012-05-19  Andreas Jaeger  <aj@suse.de>
6195             Roland McGrath  <roland@hack.frob.com>
6196
6197         * manual/contrib.texi: Completely rewritten. It contains now an
6198         alphabetical list of contributors and their contributions.
6199
6200 2012-05-21  Richard Henderson  <rth@twiddle.net>
6201
6202         * misc/getauxval.c (__getauxval): Use unsigned long int.
6203         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6204         (getauxval): Use unsigned long int.
6205
6206 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6207
6208         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6209
6210 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6211
6212         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6213         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6214         __alignof__ (long double).
6215
6216 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6217
6218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6219
6220 2012-05-20  Richard Henderson  <rth@twiddle.net>
6221
6222         * misc/getauxval.c: New file.
6223         * misc/sys/auxv.h: New file.
6224         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6225         (routines): Add getauxval.
6226         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6227         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6228         * elf/dl-sysdep.c (_dl_auxv): Remove.
6229         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6230         * elf/dl-support.c (_dl_auxv): New variable.
6231         (_dl_aux_init): Initialize it.
6232         * manual/startup.texi (Auxiliary Vector): New node.
6233         * sysdeps/generic/bits/hwcap.h: New file.
6234         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6235         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6236         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6237         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6238         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6239         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6241         Update.
6242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6243         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6244         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6245         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6246         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6247         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6248         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6249         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6250
6251 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6252
6253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6254
6255 2012-05-19  David S. Miller  <davem@davemloft.net>
6256
6257         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6258
6259 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6260
6261         [BZ #14123]
6262         * math/s_ccosh.c: Include <float.h>
6263         (__ccosh): Avoid internal overflow calculating sinh and cosh
6264         values before multiplying by sin and cos values.
6265         * math/s_ccoshf.c: Likewise.
6266         * math/s_ccoshl.c: Likewise.
6267         * math/s_csin.c: Likewise.
6268         * math/s_csinf.c: Likewise.
6269         * math/s_csinl.c: Likewise.
6270         * math/s_csinh.c: Likewise.
6271         * math/s_csinhf.c: Likewise.
6272         * math/s_csinhl.c: Likewise.
6273         * math/libm-test.inc (ccos_test): Add more tests.
6274         (ccosh_test): Likewise.
6275         (csin_test): Likewise.
6276         (csinh_test): Likewise.
6277         * sysdeps/i386/fpu/libm-test-ulps: Update.
6278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6279
6280 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6281
6282         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6283         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6284
6285         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6286
6287 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6288
6289         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6290         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6291         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6292         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6293         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6294         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6295         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6296         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6297         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6298         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6299         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6300         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6301         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6302         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6303         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6304         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6305         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6306         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6307         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6308         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6309         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6310         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6311         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6312         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6313         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6314         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6315         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6316         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6317         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6318         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6319         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6320
6321 2012-05-18  Andreas Jaeger  <aj@suse.de>
6322
6323         * csu/.gitignore: Delete.
6324
6325 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6326
6327         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6328         (timex): Use __syscall_slong_t.
6329
6330 2012-05-18  Andreas Jaeger  <aj@suse.de>
6331             Carlos O'Donell  <carlos_odonell@mentor.com>
6332
6333         * manual/install.texi (Configuring and compiling): Update
6334         description about files modified in the source directory.
6335         * INSTALL: Regenerated.
6336
6337 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6338
6339         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6340         value.  Use "or" to set return value to -1.
6341         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6342         negate return value.
6343
6344 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6345
6346         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6347         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6348         failure if the compiler has Graphite support disabled.
6349         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6350         Likewise.
6351         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6352         CFLAGS-memmove.c): Likewise.
6353         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6354         Likewise.
6355
6356 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6357
6358         * sysdeps/x86_64/x32/_itoa.h: New file.
6359
6360         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6361         getdents system call only if kernel and user dirents have the
6362         same d_ino and d_off.
6363
6364         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6365         LLONG_MAX != LONG_MAX.
6366         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6367         (_fitoa_word): Likewise.
6368
6369         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6370         years.
6371         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6372         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6373         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6374
6375         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6376         include <bits/wordsize.h>.  Check __x86_64__ instead of
6377         __WORDSIZE.
6378         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6379         if __x86_64__ is defined.  Use anonymous union on fpstate.
6380
6381         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6382         anonymous union.
6383
6384 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6385
6386         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6387         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6388         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6389         Refer to _rtld_local_ro instead of _rtld_global_ro.
6390         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6391         Likewise.
6392         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6393         Likewise.
6394         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6395         Likewise.
6396         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6397         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6398         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6399
6400         * sysdeps/powerpc/powerpc32/dl-machine.c
6401         (__elf_machine_runtime_setup) [PROF]: Don't reference
6402         _dl_prof_resolve.
6403
6404 2012-05-18  Andreas Jaeger  <aj@suse.de>
6405
6406         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6407         function only available for GCCs before 3.4 since GCC 3.4
6408         introduced a builtin.
6409         (lrint): Likewise.
6410         (llrintf): Likewise.
6411         (llrint): Likewise.
6412         (fmaxf): Likewise.
6413         (fmax): Likewise.
6414         (fminf): Likewise.
6415         (fmin): Likewise.
6416         (rint): Likewise.
6417         (rintf): Likewise.
6418         (nearbyint): Likewise.
6419         (nearbyintf): Likewise.
6420         (ceil): Likewise.
6421         (ceilf): Likewise.
6422         (floor): Likewise.
6423         (floorf): Likewise.
6424
6425 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6426
6427         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6428         on both fields and cast pointer to __syscall_ulong_t.
6429
6430         * bits/types.h (__fsword_t): New type.
6431         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6432         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6433         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6434         (__FSWORD_T_TYPE): Likewise.
6435         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6436         (__FSWORD_T_TYPE): Likewise.
6437         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6438         (__FSWORD_T_TYPE): Likewise.
6439         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6440         (__FSWORD_T_TYPE): Likewise.
6441         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6442         __SWORD_TYPE with __fsword_t.
6443         (statfs64): Likewise.
6444
6445 2012-05-17  David S. Miller  <davem@davemloft.net>
6446
6447         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6448
6449 2012-05-17  Andreas Jaeger  <aj@suse.de>
6450
6451         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6452         warning.
6453
6454 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6455
6456         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6457
6458 2012-05-17  Andreas Jaeger  <aj@suse.de>
6459
6460         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6461         when it is used.
6462
6463 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6464
6465         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6466
6467 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6468
6469         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6470         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6471
6472 2012-05-17  Andreas Jaeger  <aj@suse.de>
6473             Carlos O'Donell  <carlos_odonell@mentor.com>
6474
6475         [BZ #14059]
6476         * sysdeps/x86_64/multiarch/init-arch.h
6477         (bit_YMM_Usable): Rename to...
6478         (bit_AVX_Usable): ... this.
6479         (bit_FMA4_Usable): New macro.
6480         (bit_XMM_state): New macro.
6481         (bit_YMM_state): New macro.
6482         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6483         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6484         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6485         (CPUID_OSXSAVE): New macro.
6486         (CPUID_AVX): New macro.
6487         (CPUID_FMA4): New macro.
6488         (index_YMM_Usable): Rename to...
6489         (index_AVX_Usable): ... this.
6490         (HAS_AVX): Use HAS_ARCH_FEATURE.
6491         (HAS_FMA4): Likewise.
6492         (HAS_YMM_USABLE): Remove.
6493         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6494         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6495         are present.
6496         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6497         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6498         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6499         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6500         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6501
6502 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6503
6504         * math/libm-test.c: Support platforms without multiple rounding modes.
6505         * math/bug-nextafter.c: Support platforms without FP exceptions.
6506         * math/bug-nexttoward.c: Likewise.
6507         * math/test-fenv.c: Likewise.
6508         * math/test-misc.c: Likewise.
6509         * stdlib/bug-getcontext.c: Likewise.
6510
6511 2012-05-17  Andreas Jaeger  <aj@suse.de>
6512
6513         * manual/examples/search.c (critter_cmp): Change signature to
6514         avoid warnings.
6515         * manual/string.texi (Collation Functions): Likewise.
6516
6517 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6518
6519         * bits/types.h: Fold copyright years.
6520         * bits/typesizes.h: Likewise.
6521         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6522         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6523         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6524         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6525         * time/time.h: Likewise.
6526
6527 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6528
6529         [BZ #208]
6530         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6531         in instead of returning them.  Return void.
6532         (__libc_mallinfo): Accumulate over all arenas.
6533         (__malloc_stats): Adjust for change in int_mallinfo interface.
6534
6535 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6536
6537         [BZ #10375]
6538         * configure.in (NM): Add AC_CHECK_TOOL for it.
6539         (libc_extra_cflags): New substituted variable.
6540         Check for -fstack-protector being used implicitly.
6541         * configure: Regenerated.
6542         * config.make.in (config-extra-cflags): New variable,
6543         gets @libc_extra_cflags@.
6544         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6545
6546         [BZ #10375]
6547         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6548         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6549         * configure: Regenerated.
6550         * config.make.in (CPPUNDEFS): New substituted variable.
6551         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6552         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6553         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6554
6555 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6556
6557         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6558         (mq_attr): Use __syscall_slong_t.
6559
6560 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6561
6562         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6563         Check __x86_64__ instead of __WORDSIZE.
6564         (_STAT_VER_LINUX): Likewise.
6565         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6566         __syscall_ulong_t and __syscall_slong_t.
6567         (stat64): Likewise.
6568
6569 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6570
6571         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6572
6573 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6574
6575         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6576
6577 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6578
6579         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6580         __syscall_ulong_t.
6581
6582         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6583         include <bits/wordsize.h>.  Check __x86_64__ instead of
6584         __WORDSIZE.
6585         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6586         defined.
6587         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6588
6589         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6590         include <bits/wordsize.h>.  Check __x86_64__ instead of
6591         __WORDSIZE.
6592         (user_regs_struct): Use "__extension__ unsigned long long"
6593         instead of "unsigned long" if __x86_64__ is defined.
6594         (user): Likewise.  Pad after pointer field if __ILP32__ is
6595         defined.
6596
6597 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6598
6599         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6600         versions 5 to 9.
6601         * configure: Regenerated.
6602         * manual/install.texi (texinfo): Increase version requirement to
6603         4.5 or later.
6604         * INSTALL: Regenerated.
6605
6606         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6607
6608 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6609
6610         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6611
6612         * sysdeps/x86_64/x32/ffs.c: New file.
6613
6614         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6615         __syscall_ulong_t.
6616         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6617         defined.  Use __syscall_ulong_t.
6618         (shminfo): Use __syscall_ulong_t.
6619         (shm_info): Likewise.
6620
6621         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6622         __syscall_ulong_t.
6623
6624         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6625         <bits/wordsize.h>.
6626         (msgqnum_t): Use __syscall_ulong_t.
6627         (msglen_t): Likewise.
6628         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6629         __syscall_ulong_t.
6630
6631         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6632         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6633
6634         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6635
6636         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6637         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6638
6639         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6640         __syscall_slong_t.
6641
6642         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6643         include <bits/wordsize.h>.  Check __x86_64__ instead of
6644         __WORDSIZE.
6645
6646         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6647         "unsigned long long int" if __x86_64__ is defined.
6648         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6649
6650         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6651         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6652         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6653
6654         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6655         <stdint.h>.
6656         (GET_PC): Cast to uintptr_t first.
6657         (GET_FRAME): Likewise.
6658         (GET_STACK): Likewise.
6659
6660         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6661         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6662         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6663         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6664         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6665         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6666         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6667         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6668         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6669         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6670         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6671         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6672         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6673         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6674         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6675         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6676         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6677         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6678         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6679         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6680         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6681         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6682         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6683         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6684         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6685         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6686         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6687         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6688         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6689
6690 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6691
6692         * Makerules (+depfiles): Also collect depfiles from .oS in
6693         $(extra-objs).
6694         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6695         .oS, $(libnldbl-routines)).
6696
6697         * Makerules (native-compile-mkdep-flags): Define.
6698         * sunrpc/Makefile (extra-objs): Add $(addprefix
6699         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6700         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6701         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6702         calling $(make-target-directory).
6703
6704 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6705
6706         * bits/types.h (__snseconds_t): Removed.
6707         * time/time.h (struct timespec): Replace __snseconds_t with
6708         __syscall_slong_t.
6709         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6710         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6711         Likewise.
6712         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6713         (__SNSECONDS_T_TYPE): Likewise.
6714         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6715         (__SNSECONDS_T_TYPE): Likewise.
6716         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6717         (__SNSECONDS_T_TYPE): Likewise.
6718
6719 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6720
6721         * sysdeps/mach/hurd/bits/typesizes.h
6722         (__SYSCALL_SLONG_TYPE): New macro.
6723         (__SYSCALL_ULONG_TYPE): Likewise.
6724
6725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6726
6727         * bits/types.h (__syscall_slong_t): New type.
6728         (__syscall_ulong_t): Likewise.
6729
6730         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6731         (__SYSCALL_ULONG_TYPE): Likewise.
6732         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6733         (__SYSCALL_SLONG_TYPE): Likewise.
6734         (__SYSCALL_ULONG_TYPE): Likewise.
6735         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6736         (__SYSCALL_SLONG_TYPE): Likewise.
6737         (__SYSCALL_ULONG_TYPE): Likewise.
6738         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6739         (__SYSCALL_SLONG_TYPE): Likewise.
6740         (__SYSCALL_ULONG_TYPE): Likewise.
6741
6742 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6743
6744         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6745         Add sigaltstack-offsets.sym.
6746         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6747         <sigaltstack-offsets.h>.
6748         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6749         longjmp_msg pointer.
6750         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6751         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6752         signal stack.
6753         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6754
6755 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6756
6757         * elf/stackguard-macros.h: Remove file.
6758         * sysdeps/generic/stackguard-macros.h: New file.
6759         * sysdeps/i386/stackguard-macros.h: Likewise.
6760         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6761         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6762         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6763         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6764         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6765         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6766         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6767         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6768         <elf/stackguard-macros.h>.
6769
6770         [BZ #14109]
6771         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6772         __aligned__ in attribute.
6773         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6774         (gregset_t): Likewise.
6775
6776 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6777
6778         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6779         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6780         * sysdeps/x86_64/x32/Implies-after: New file.
6781
6782 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6783
6784         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6785         and access return value for _dl_profile_fixup.  Use R10_LP to
6786         load frame size.
6787
6788 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6789
6790         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6791
6792 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6793
6794         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6795         * sysdeps/x86_64/x32/sysdep.h: New file.
6796
6797 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6798
6799         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6800         * sysdeps/x86_64/setjmp.S: Likewise.
6801
6802 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6803
6804         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6805         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6806         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6807         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6808         remove unused global constant.
6809
6810 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6811
6812         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6813         include of <not-cancel.h>.
6814
6815 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6816
6817         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6818
6819 2012-05-15  Jeff Law  <law@redhat.com>
6820             Andreas Jaeger  <aj@suse.de>
6821
6822         [BZ #13594]
6823         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6824         out from...
6825         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6826         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6827         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6828         code changing __hst_map_handle.map.
6829
6830 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6831
6832         * configure.in (sysnames): Look for Implies-before and Implies-after
6833         files.
6834         * configure: Regenerated.
6835
6836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6837
6838         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6839         8-byte data alignment with LP_SIZE alignment.
6840
6841 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6842
6843         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6844         into R10_LP.
6845
6846 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6847
6848         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6849
6850 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6851
6852         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6853         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6854         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6855         Likewise.
6856         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6857
6858 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6859
6860         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6861         (stackinfo_sub_sp): Likewise.
6862
6863 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6864
6865         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6866         RAX_LP.
6867
6868 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6869
6870         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6871         into R*_LP.
6872
6873 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6874
6875         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6876         sizes into R*_LP.
6877
6878 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6879
6880         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6881
6882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6883
6884         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6885         into R11_LP and load __x86_64_shared_cache_size_half into
6886         R8_LP.
6887
6888 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6889
6890         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6891         R8_LP.
6892
6893 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6894
6895         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6896         logb for POWER7.
6897         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6898         logbf for POWER7.
6899         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6900         logbl for POWER7.
6901         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6902         powerpc32/power7/fpu/s_logb.c via #include.
6903         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6904         powerpc32/power7/fpu/s_logbf.c via #include.
6905         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6906         powerpc32/power7/fpu/s_logbl.c via #include.
6907
6908 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6909
6910         * README.libm: Remove file.
6911
6912 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6913
6914         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6915         count for x32.  Use R*_LP and omit operand-size suffix.
6916
6917 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6918
6919         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6920         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6921         * sysdeps/x86_64/x32/shlib-versions: New file.
6922
6923 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6924
6925         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6926         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6927         Use _dl_fatal_printf instead.
6928
6929 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6930
6931         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6932         set if not set by the user.  Do not allow for being unset.
6933         * sysdeps/unix/sysv/linux/configure: Regenerated.
6934
6935 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6936
6937         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6938         the `q' suffix from lea and replace .quad with ASM_ADDR.
6939
6940 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6941
6942         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6943         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6944         instead of $17.
6945         (PTR_DEMANGLE): Likewise.
6946
6947 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6948
6949         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6950         (LP_OP): Likewise.
6951         (ASM_ADDR): Likewise.
6952         (RAX_LP): Likewise.
6953         (RBP_LP): Likewise.
6954         (RBX_LP): Likewise.
6955         (RCX_LP): Likewise.
6956         (RDI_LP): Likewise.
6957         (RSI_LP): Likewise.
6958         (RSP_LP): Likewise.
6959         (R8_LP): Likewise.
6960         (R9_LP): Likewise.
6961         (R10_LP): Likewise.
6962         (R10_LP): Likewise.
6963         (R11_LP): Likewise.
6964         (R12_LP): Likewise.
6965         (R13_LP): Likewise.
6966         (R14_LP): Likewise.
6967         (R15_LP): Likewise.
6968
6969 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6970
6971         * sysdeps/x86_64/x32/dl-machine.h: New file.
6972
6973 2012-05-14  Andreas Jaeger  <aj@suse.de>
6974
6975         * manual/Makefile (subdir): Remove export of subdir.
6976         (all): Remove target.
6977         (.PHONY): Remove all from list.
6978         (mkinstalldirs): Remove.
6979         (.PHONY): Remove installdirs from list.
6980         ($(inst_infodir)/libc.info): Use make-target-directory.
6981         (installdirs): Remove.
6982         (subdir_%): Remove.
6983         (glibc-targets): Remove.
6984         (lib): Remove.
6985         (stubs): Remove.
6986         ($(objpfx)stubs ../po/manual.pot): Remove.
6987         ($(objpfx)stamp%): Remove.
6988         (make-target-directory): Remove.
6989         (subdir_install): Remove.
6990         (routines): Remove.
6991         (aux): Remove.
6992         (sources): Remove.
6993         (objects): Remove.
6994         (headers): Remove.
6995
6996         [BZ #13750]
6997         * manual/.gitignore: Remove, it's not needed anymore.
6998         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6999         all files in it.
7000         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
7001         directory.
7002         (texis): Renamed to $(objpfx)texis.
7003         (texis-path): New, contains path to generated files.
7004         (chapters.%): Use texis-path for complete path, add extra argument
7005         libc-texinfo.sh.
7006         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
7007         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
7008         (summary,texi, stamp-summary): Use complete path of
7009         files. Generate files in build dir.
7010         (dir-add.texi): Build in build dir.
7011         (libm-err.texi,stamp-libm-err): Likewise.
7012         (version.texi, stamp-version): Likewise.
7013         (.%c.texi): Likewise.
7014         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
7015         (mostlyclean): Remove target.
7016         (realclean): Remove target.
7017         (generated): Add new variable with contents from mostlyclean and
7018         realclean, remove entries duplicated in common-mostlyclean, add
7019         stamp-libm-err and stamp-version.
7020         (generated-dirs): Add libc directory.
7021         ($(inst_infodir)/libc.info): Install files from build dir.
7022
7023         * manual/install.texi (Configuring and compiling): Adjust since
7024         the info files are not part of the tar ball anymore.
7025
7026 2012-05-14  Andreas Jaeger  <aj@suse.de>
7027
7028         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7029         variable.
7030
7031 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7032
7033         [BZ #13717]
7034         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7035         to 2.2.0 where earlier.
7036         * sysdeps/unix/sysv/linux/configure: Regenerated.
7037         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7038         Remove conditional code.
7039         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7040         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7041         Remove conditional code.
7042         [!__NR_lchown]: Likewise.
7043         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7044         [__NR_lchown]: Likewise.
7045         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7046         comment referencing __ASSUME_LCHOWN_SYSCALL.
7047         * sysdeps/unix/sysv/linux/i386/sigaction.c
7048         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7049         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7050         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7051         Remove conditional code.
7052         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7053         (__protocol_available): Remove #if 0 code.
7054         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7055         conditional code.
7056         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7057         * sysdeps/unix/sysv/linux/kernel-features.h
7058         (__ASSUME_GETCWD_SYSCALL): Don't define.
7059         (__ASSUME_REALTIME_SIGNALS): Likewise.
7060         (__ASSUME_PREAD_SYSCALL): Likewise.
7061         (__ASSUME_PWRITE_SYSCALL): Likewise.
7062         (__ASSUME_POLL_SYSCALL): Likewise.
7063         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7064         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7065         non-SPARC.
7066         (__ASSUME_SIOCGIFNAME): Don't define.
7067         (__ASSUME_MSG_NOSIGNAL): Likewise.
7068         (__ASSUME_SENDFILE): Define unconditionally.
7069         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7070         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7071         conditional code.
7072         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7073         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7074         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7075         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7076         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7077         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7078         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7080         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7081         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7083         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7084         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7086         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7087         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7089         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7090         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7092         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7093         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7095         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7096         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7098         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7099         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7101         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7102         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7103         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7104         Remove conditional code.
7105         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7106         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7107         Remove conditional code.
7108         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7109         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7110         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7111         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7112         Remove conditional code.
7113         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7114         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7115         Remove conditional code.
7116         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7117         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7118         Remove conditional code.
7119         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7120         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7121         Remove conditional code.
7122         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7123         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7124         Remove conditional code.
7125         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7126         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7127         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7128         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7129         * sysdeps/unix/sysv/linux/sigaction.c
7130         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7131         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7132         * sysdeps/unix/sysv/linux/sigpending.c
7133         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7134         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7135         * sysdeps/unix/sysv/linux/sigprocmask.c
7136         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7137         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7138         * sysdeps/unix/sysv/linux/sigsuspend.c
7139         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7140         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7141         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7142         (__libc_missing_rt_sigs): Remove.
7143         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7144         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7145         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7146         Remove conditional code.
7147         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7148         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7149         return 1.
7150         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7151         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7152         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7153         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7154
7155 2012-05-14  Andreas Jaeger  <aj@suse.de>
7156
7157         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7158         it's not used in glibc.
7159         (__coshm1): Likewise.
7160         (__acosh1p): Likewise.
7161         (__sgn): Likewise.
7162
7163         * manual/string.texi (Copying and Concatenation): Add missing
7164         variable in concat example.
7165         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7166
7167 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7168
7169         [BZ #14103]
7170         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7171         __builtin_clzl with __builtin_clzll.
7172
7173 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7174
7175         [BZ #14104]
7176         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7177         libc_freeres_ptr.
7178
7179 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7180
7181         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7182         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7183         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7184         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7185
7186 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7187
7188         * NEWS: Update ia64 info.
7189
7190 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7191
7192         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7193         used as bcopy.
7194
7195 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7196
7197         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7198         * sysdeps/unix/syscalls.list (dup3): Likewise.
7199         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7200         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7201
7202 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7203
7204         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7205         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7206
7207 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7208
7209         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7210         thread pointer.
7211         (TLS_IE): Use mov/add instead of movq/addq to load thread
7212         pointer.
7213         (TLS_GD_PREFIX): New.
7214         (TLS_GD): Use it.
7215
7216 2012-05-11  David S. Miller  <davem@davemloft.net>
7217
7218         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7219         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7220         (_FPU_SETCW): Likewise.
7221
7222 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7223
7224         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7225         is 32-byte aligned.
7226
7227 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7228
7229         [BZ #11837]
7230         * iconvdata/gb18030.c: Update tables.
7231         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7232         characters specially.
7233         (BODY for TO_LOOP): Add encoding of missing ranges.
7234
7235 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7236
7237         [BZ #13673]
7238         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7239         * sysdeps/mach/hurd/dup3.c: Likewise.
7240         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7241         * sysdeps/powerpc/memmove.c:: Likewise.
7242
7243 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7244
7245         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7246         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7247
7248 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7249
7250         * elf/elf.h (R_X86_64_RELATIVE64): New.
7251         (R_X86_64_NUM): Updated.
7252         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7253         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7254         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7255         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7256         tst-quad1pie tst-quad2pie
7257         (modules-names): Add tst-quadmod1 tst-quadmod2.
7258         ($(objpfx)tst-quad1): New dependency.
7259         ($(objpfx)tst-quad2): Likewise.
7260         ($(objpfx)tst-quad1pie): Likewise.
7261         ($(objpfx)tst-quad2pie): Likewise.
7262         * sysdeps/x86_64/tst-quad1.c: New file.
7263         * sysdeps/x86_64/tst-quad1pie.c: New file.
7264         * sysdeps/x86_64/tst-quad2.c: Likewise.
7265         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7266         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7267         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7268         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7269         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7270
7271 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7272
7273         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7274         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7275         * streams/stropts.h (t_scalar_t): Define type.
7276
7277         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7278         (_PATH_PRESERVE): Set to "/var/lib".
7279         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7280
7281         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7282         instead of int.
7283
7284         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7285         if __dir_mkfile succeeded.
7286
7287         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7288         checking for _hurd_dtablesize.  Unlock it right after having
7289         finished _hurd_dtable allocation.
7290
7291 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7292
7293         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7294         * sysdeps/mach/hurd/configure: Regenerated.
7295         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7296         special-casing to...
7297         * sysdeps/gnu/configure.in: ... this new file.
7298         * sysdeps/unix/sysv/linux/configure: Regenerated.
7299         * sysdeps/gnu/configure: New generated file.
7300
7301         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7302         for Linux: use nsec instead of usec, as well as:
7303         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7304         members of type struct timespec.
7305         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7306         New macros.
7307         (struct stat64): Likewise.
7308         (_STATBUF_ST_NSEC): New macro.
7309         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7310
7311         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7312         __strtoul_internal rather than strtoul.
7313
7314 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7315
7316         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7317         and reject them.
7318
7319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7320
7321         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7322         which preserves existing values.
7323         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7324
7325 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7326
7327         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7328         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7329         greater than FD_SETSIZE.
7330
7331 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7332
7333         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7334         allocated, call __vm_protect to finish enabling the existing space, and
7335         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7336         allocate the remainder.
7337
7338 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7339
7340         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7341         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7342
7343 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7344
7345         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7346         sysdeps/mach/hurd/readlink.c.
7347
7348         * posix/tst-sysconf.c (posix_options): Only use
7349         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7350         _POSIX_SYNCHRONIZED_IO when they are defined
7351         * sysdeps/mach/hurd/bits/posix_opt.h:
7352         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7353         (_XOPEN_REALTIME): Undefine macro.
7354         (_XOPEN_REALTIME_THREADS): Undefine macro.
7355         (_XOPEN_SHM): Undefine macro.
7356         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7357         macro to -1.
7358         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7359         macro to -1.
7360         (_POSIX_ASYNC_IO): Undefine macro.
7361         (_POSIX_PRIORITIZED_IO): Undefine macro.
7362         (_POSIX_SPIN_LOCKS): Define macro to -1.
7363
7364         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7365         SA_NODEFER, SA_RESETHAND.
7366         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7367         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7368         F_DUPFD_CLOEXEC.
7369
7370 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7371
7372         * elf/Makefile (pldd-modules): Define unconditionally.
7373
7374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7375
7376         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7377
7378 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7379
7380         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7381         Return ENOENT when name is empty.
7382         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7383
7384 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7385
7386         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7387
7388         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7389
7390 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7391
7392         Fix mlock in all cases except non-readable pages.
7393         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7394         instead of VM_PROT_ALL as parameter to __vm_wire function.
7395
7396         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7397         (__mkdir): When path is `/', just fail with EEXIST.
7398         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7399
7400 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7401
7402         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7403         <sys/uio.h> (for writev).
7404         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7405         and <sys/param.h> (for MIN).
7406
7407 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7408
7409         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7410         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7411         if interrupted.
7412
7413 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7414
7415         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7416         Depend on against $(link-rpcuserlibs).
7417
7418 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7419
7420         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7421         (__libc_stack_end): Do not use attribute_relro.
7422         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7423         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7424         to libthread-provided value.
7425         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7426         attribute_relro.
7427
7428 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7429
7430         [BZ #3748]
7431         * bits/libc-lock.h (__libc_once_get): New macro.
7432         * sysdeps/mach/bits/libc-lock.h: Likewise.
7433         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7434         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7435         instead of using implementation details.
7436
7437         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7438         * libio/freopen.c: Likewise.
7439         * libio/freopen64.c: Likewise.
7440         * misc/syslog.c: Likewise.
7441         * nscd/connections.c: Likewise.
7442         * nscd/netgroupcache.c: Likewise.
7443         * sysdeps/posix/getcwd.c: Likewise.
7444
7445 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7446
7447         * math/w_ilogbf.c: Add #include <limits.h>.
7448
7449 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7450
7451         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7452         path instead of returning without unlocking.
7453
7454         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7455         immediate-write ioctls.
7456         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7457
7458 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7459
7460         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7461         __builtin_frame_address instead of making assumptions about the
7462         location of the return address relative to DATA.  Force early load of
7463         the return address.
7464         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7465         __builtin_frame_address.
7466
7467         dup3 for GNU Hurd.
7468         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7469         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7470         implement dup3 and do some further code clean-ups.
7471         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7472         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7473
7474 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7475
7476         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7477
7478         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7479         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7480         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7481         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7482         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7483         d->port.lock.
7484
7485         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7486         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7487         when handler == SIG_ERR, not when handler != SIG_ERR.
7488
7489 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7490
7491         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7492         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7493         definitions.
7494
7495         accept4 for GNU Hurd.
7496         * include/sys/socket.h (__libc_accept4): New prototype.
7497         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7498         to implement __libc_accept4.
7499         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7500         __libc_accept4.
7501         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7502
7503         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7504         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7505         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7506         signal-defines.sym.
7507
7508 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7509
7510         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7511
7512 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7513
7514         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7515         assertion on O_CLOEXEC flag.
7516         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7517         * hurd/intern-fd.c: Likewise.
7518         * hurd/port2fd.c: Likewise.
7519
7520 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7521
7522         [BZ #3906]
7523         * bits/in.h (IPV6_PKTINFO): Define new macro.
7524         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7525
7526 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7527
7528         [BZ #13954]
7529         [BZ #13955]
7530         [BZ #13956]
7531         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7532         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7533         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7534         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7535         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7536         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7537         * math/libm-test.inc (logb_test) : Additional logb tests.
7538
7539 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7540             Andreas Jaeger  <aj@suse.de>
7541
7542         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7543         * configure: Regenerated.
7544         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7545         * config.make.in (link-obsolete-rpc): New substituted variable.
7546         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7547         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7548         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7549         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7550         so that libc.a contains the symbols.
7551         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7552         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7553         * sunrpc/auth_none.c: Likewise.
7554         * sunrpc/auth_unix.c: Likewise.
7555         * sunrpc/authdes_prot.c: Likewise.
7556         * sunrpc/authuxprot.c: Likewise.
7557         * sunrpc/clnt_gen.c: Likewise.
7558         * sunrpc/clnt_perr.c: Likewise.
7559         * sunrpc/clnt_raw.c: Likewise.
7560         * sunrpc/clnt_simp.c: Likewise.
7561         * sunrpc/clnt_tcp.c: Likewise.
7562         * sunrpc/clnt_udp.c: Likewise.
7563         * sunrpc/clnt_unix.c: Likewise.
7564         * sunrpc/des_crypt.c: Likewise.
7565         * sunrpc/des_soft.c: Likewise.
7566         * sunrpc/get_myaddr.c: Likewise.
7567         * sunrpc/key_call.c: Likewise.
7568         * sunrpc/key_prot.c: Likewise.
7569         * sunrpc/netname.c: Likewise.
7570         * sunrpc/pm_getmaps.c: Likewise.
7571         * sunrpc/pm_getport.c: Likewise.
7572         * sunrpc/pmap_clnt.c: Likewise.
7573         * sunrpc/pmap_prot.c: Likewise.
7574         * sunrpc/pmap_prot2.c: Likewise.
7575         * sunrpc/pmap_rmt.c: Likewise.
7576         * sunrpc/publickey.c: Likewise.
7577         * sunrpc/rpc_cmsg.c: Likewise.
7578         * sunrpc/rpc_common.c: Likewise.
7579         * sunrpc/rpc_dtable.c: Likewise.
7580         * sunrpc/rpc_prot.c: Likewise.
7581         * sunrpc/rpc_thread.c: Likewise.
7582         * sunrpc/rtime.c: Likewise.
7583         * sunrpc/svc.c: Likewise.
7584         * sunrpc/svc_auth.c: Likewise.
7585         * sunrpc/svc_raw.c: Likewise.
7586         * sunrpc/svc_run.c: Likewise.
7587         * sunrpc/svc_tcp.c: Likewise.
7588         * sunrpc/svc_udp.c: Likewise.
7589         * sunrpc/svc_unix.c: Likewise.
7590         * sunrpc/svcauth_des.c: Likewise.
7591         * sunrpc/xcrypt.c: Likewise.
7592         * sunrpc/xdr.c: Likewise.
7593         * sunrpc/xdr_array.c: Likewise.
7594         * sunrpc/xdr_float.c: Likewise.
7595         * sunrpc/xdr_intXX_t.c: Likewise.
7596         * sunrpc/xdr_mem.c: Likewise.
7597         * sunrpc/xdr_rec.c: Likewise.
7598         * sunrpc/xdr_ref.c: Likewise.
7599         * sunrpc/xdr_sizeof.c: Likewise.
7600         * sunrpc/xdr_stdio.c: Likewise.
7601
7602 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7603
7604         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7605         change.  Update copyright years.
7606
7607 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7608
7609         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7610
7611 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7612             Joseph Myers  <joseph@codesourcery.com>
7613             Paul Pluzhnikov  <ppluzhnikov@google.com>
7614
7615         [BZ #14012]
7616         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7617         requiring rpcgen.
7618         [cross-compiling] (extra-libs): Likewise.
7619         [cross-compiling] (extra-libs-others): Likewise.
7620         [cross-compiling] (librpcsvc-routines): Likewise.
7621         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7622         [cross-compiling] (omit-deps): Likewise.
7623         (sunrpc-CPPFLAGS): New variable.
7624         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7625         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7626         (cross-rpcgen-objs): New variable.
7627         (extra-objs): Append $(cross-rpcgen-objs).
7628         ($(cross-rpcgen-objs)): New rule.
7629         ($(objpfx)cross-rpcgen): Likewise.
7630         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7631         comment.
7632         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7633         ($(objpfx)x%.stmp): Likewise.
7634         * sunrpc/proto.h [IS_IN_build] (_): Define.
7635         [IS_IN_build] (_libc_intl_domainname): Likewise.
7636
7637 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7638
7639         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7640         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7641         and R_X86_64_TPOFF64.
7642
7643 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7644
7645         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7646         sysdeps/unix/sysv/syscalls.list.
7647         (stime): Likewise.
7648         (utime): Likewise.
7649         * sysdeps/unix/sysv/syscalls.list: Remove file.
7650
7651 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7652
7653         [BZ #3440]
7654         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7655         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7656         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7657         (__LC_IDENTIFICATION): Make these macros useful in #if
7658         expressions, as required by C99.
7659
7660 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7661
7662         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7663         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7664         after this.
7665
7666 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7667
7668         * stdlib/longlong.h: Updated from GCC.
7669
7670 2012-05-09  Andreas Jaeger  <aj@suse.de>
7671
7672         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7673         default is first entry.
7674         (run_mode): Set type.
7675         (main): Remove informal message about syslog.
7676         (options): Fix typo.
7677
7678         [BZ #14053]
7679         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7680         to asm.
7681         (lrint): Likewise.
7682         (llrintf): Likewise.
7683         (llrint): Likewise.
7684         (rint): Likewise.
7685         (rintf): Likewise.
7686         (nearbyint): Likewise.
7687         (nearbyintf): Likewise.
7688
7689 2012-05-09  Andreas Jaeger  <aj@suse.de>
7690             Pedro Alves  <palves@redhat.com>
7691
7692         * nscd/nscd.c (run_mode): Use enum.
7693         (main): Cleanup coding style issue.
7694
7695 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7696             Andreas Jaeger  <aj@suse.de>
7697
7698         * nscd/nscd.c (go_background): Replaced with...
7699         (run_mode): ... this.
7700         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7701         (options): Add -F --foreground.
7702         (main): Implement it.
7703         (parse_opt): Parse it.
7704
7705 2012-05-09  Andreas Jaeger  <aj@suse.de>
7706
7707         [BZ #14083]
7708         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7709         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7710         -Wconversion warning.
7711         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7712         Likewise.
7713
7714 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7715
7716         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7717         == 0.
7718         (LC_ALL): Use macro-int-constant.
7719         (LC_COLLATE): Likewise.
7720         (LC_CTYPE): Likewise.
7721         (LC_MESSAGES): Likewise.
7722         (LC_MONETARY): Likewise.
7723         (LC_NUMERIC): Likewise.
7724         (LC_TIME): Likewise.
7725         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7726         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7727         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7728         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7729         Specify type.
7730         [C99-based standards] (float_t): Expect type.
7731         [C99-based standards] (double_t): Expect type.
7732         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7733         type.
7734         [C99-based standards] (HUGE_VALL): Likewise.
7735         [C99-based standards] (INFINITY): Likewise.
7736         [C99-based standards] (NAN): Likewise.
7737         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7738         [C99-based standards] (FP_NAN): Likewise.
7739         [C99-based standards] (FP_NORMAL): Likewise.
7740         [C99-based standards] (FP_SUBNORMAL): Likewise.
7741         [C99-based standards] (FP_ZERO): Likewise.
7742         [C99-based standards] (FP_FAST_FMA): Use
7743         optional-macro-int-constant.  Specify type.  Require == 1.
7744         [C99-based standards] (FP_FAST_FMAF): Likewise.
7745         [C99-based standards] (FP_FAST_FMAL): Likewise.
7746         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7747         [C99-based standards] (FP_ILOGBNAN): Likewise.
7748         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7749         Specify type.
7750         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7751         [C99-based standards] (math_errhandling): Specify type.
7752         [ISO99 || ISO11] (signgam): Do not allow.
7753         [non-C99-based standards] (copysignf): Do not allow.
7754         [non-C99-based standards] (exp2f): Likewise.
7755         [non-C99-based standards] (log2f): Likewise.
7756         [non-C99-based standards] (modff): Allow.
7757         [non-C99-based standards] (erff): Do not allow.
7758         [non-C99-based standards] (erfcf): Likewise.
7759         [non-C99-based standards] (gammaf): Likewise.
7760         [non-C99-based standards] (hypotf): Likewise.
7761         [non-C99-based standards] (j0f): Likewise.
7762         [non-C99-based standards] (j1f): Likewise.
7763         [non-C99-based standards] (jnf): Likewise.
7764         [non-C99-based standards] (lgammaf): Likewise.
7765         [non-C99-based standards] (tgammaf): Likewise.
7766         [non-C99-based standards] (y0f): Likewise.
7767         [non-C99-based standards] (y1f): Likewise.
7768         [non-C99-based standards] (ynf): Likewise.
7769         [non-C99-based standards] (isnanf): Likewise.
7770         [non-C99-based standards] (acoshf): Likewise.
7771         [non-C99-based standards] (asinhf): Likewise.
7772         [non-C99-based standards] (atanhf): Likewise.
7773         [non-C99-based standards] (cbrtf): Likewise.
7774         [non-C99-based standards] (expm1f): Likewise.
7775         [non-C99-based standards] (ilogbf): Likewise.
7776         [non-C99-based standards] (log1pf): Likewise.
7777         [non-C99-based standards] (logbf): Likewise.
7778         [non-C99-based standards] (nextafterf): Likewise.
7779         [non-C99-based standards] (remainderf): Likewise.
7780         [non-C99-based standards] (rintf): Likewise.
7781         [non-C99-based standards] (scalbf): Likewise.
7782         [non-C99-based standards] (copysignl): Likewise.
7783         [non-C99-based standards] (exp2l): Likewise.
7784         [non-C99-based standards] (log2l): Likewise.
7785         [non-C99-based standards] (modfl): Allow.
7786         [non-C99-based standards] (erfl): Do not allow.
7787         [non-C99-based standards] (erfcl): Likewise.
7788         [non-C99-based standards] (gammal): Likewise.
7789         [non-C99-based standards] (hypotl): Likewise.
7790         [non-C99-based standards] (j0l): Likewise.
7791         [non-C99-based standards] (j1l): Likewise.
7792         [non-C99-based standards] (jnl): Likewise.
7793         [non-C99-based standards] (lgammal): Likewise.
7794         [non-C99-based standards] (tgammal): Likewise.
7795         [non-C99-based standards] (y0l): Likewise.
7796         [non-C99-based standards] (y1l): Likewise.
7797         [non-C99-based standards] (ynl): Likewise.
7798         [non-C99-based standards] (isnanl): Likewise.
7799         [non-C99-based standards] (acoshl): Likewise.
7800         [non-C99-based standards] (asinhl): Likewise.
7801         [non-C99-based standards] (atanhl): Likewise.
7802         [non-C99-based standards] (cbrtl): Likewise.
7803         [non-C99-based standards] (expm1l): Likewise.
7804         [non-C99-based standards] (ilogbl): Likewise.
7805         [non-C99-based standards] (log1pl): Likewise.
7806         [non-C99-based standards] (logbl): Likewise.
7807         [non-C99-based standards] (nextafterl): Likewise.
7808         [non-C99-based standards] (remainderl): Likewise.
7809         [non-C99-based standards] (rintl): Likewise.
7810         [non-C99-based standards] (scalbl): Likewise.
7811         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7812         [non-C99-based standards] (FP_*): Do not allow.
7813         [C99-based standards] (FP_*): Change to
7814         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7815         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7816         allow.
7817         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7818         (SIG_ERR): Likewise.
7819         [X/Open-based standards] (SIG_HOLD): Likewise.
7820         (SIG_IGN): Likewise.
7821         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7822         positive value.
7823         (SIGFPE): Likewise.
7824         (SIGILL): Likewise.
7825         (SIGINT): Likewise.
7826         (SIGSEGV): Likewise.
7827         (SIGTER): Likewise.
7828         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7829         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7830         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7831         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7832         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7833         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7834         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7835         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7836         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7837         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7838         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7839         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7840         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7841         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7842         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7843         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7844         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7845         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7846         [X/Open-based standards] (SIGTRAP): Likewise.
7847         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7848         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7849         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7850         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7851         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7852         allow.
7853
7854 2012-05-08  Ian Wienand  <ianw@vmware.com>
7855
7856         [BZ #14080]
7857         * time/tzset.c (__tzset_parse_tz): Update default rules for
7858         daylight time changes in the Energy Policy Act of 2005.
7859
7860 2012-05-09  Andreas Jaeger  <aj@suse.de>
7861
7862         [BZ #13983]
7863         * elf/ldconfig.c (parse_conf): Change string to make clear that
7864         ldconfig only issued a warning if ld.so.conf does not exist.
7865
7866 2012-05-08  David S. Miller  <davem@davemloft.net>
7867
7868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7869         movxtod instead of popping the value on the stack.
7870
7871         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7872
7873 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7874
7875         * config.h.in: Add HAVE_ARM_PCS_VFP.
7876
7877 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7878
7879         [BZ #13979]
7880         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7881         checking but the checks are disabled for any reason.
7882
7883 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7884
7885         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7886         and ELF64_R_TYPE with ELFW(R_TYPE).
7887
7888 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7891         (ulimit): Likewise.
7892
7893         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7894         (settimeofday): Likewise.
7895
7896 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7897
7898         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7899         a struct th_u2 inside the union, and move tu_block/tu_code into
7900         a new th_u3 union of tu_block/tu_code inside of that.  Move
7901         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7902         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7903         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7904         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7905         (th_stuff): Change to th_u1.tu_stuff.
7906         (th_data): Define.
7907         (th_msg): Change to th_u1.th_u2.tu_data.
7908
7909 2012-05-07  David S. Miller  <davem@davemloft.net>
7910
7911         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7912
7913         [BZ #14074]
7914         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7915         (SETUP_PIC_REG): Use it.
7916         (SETUP_PIC_REG_LEAF): Use it.
7917
7918 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7919
7920         [BZ #13885]
7921         [BZ #13923]
7922         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7923         USE_AS_EXPM1L.
7924         (EXPL_FINITE): Likewise.
7925         (FLDLOG): Likewise.
7926         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7927         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7928         e_expl.S.
7929         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7930         USE_AS_EXPM1L.
7931         (EXPL_FINITE): Likewise.
7932         (FLDLOG): Likewise.
7933         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7934         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7935         e_expl.S.
7936         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7937         test of -max_value argument for long double.
7938         * sysdeps/i386/fpu/libm-test-ulps: Update.
7939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7940
7941 2012-05-06  David S. Miller  <davem@davemloft.net>
7942
7943         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7944         quad soft-float symbols whose references which are compiler
7945         generated.
7946         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7947
7948 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7949
7950         [BZ #13884]
7951         [BZ #13914]
7952         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7953         USE_AS_EXP10L.
7954         (EXPL_FINITE): Likewise.
7955         (FLDLOG): Likewise.
7956         (c0): Likewise.
7957         (c1): Likewise.
7958         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7959         Adjust comments for base varying.
7960         (__expl_finite): Change alias to EXPL_FINITE.
7961         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7962         e_expl.S.
7963         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7964         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7965         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7966         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7967         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7968         USE_AS_EXP10L.
7969         (EXPL_FINITE): Likewise.
7970         (FLDLOG): Likewise.
7971         (c0): Likewise.
7972         (c1): Likewise.
7973         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7974         Adjust comments for base varying.
7975         (__expl_finite): Change alias to EXPL_FINITE.
7976         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7977         tests for bugs.
7978         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7979
7980         [BZ #14064]
7981         * math/libm-test.inc (check_float_internal): Correct ulp
7982         calculation for subnormal expected results.
7983
7984 2012-05-06  Andreas Jaeger  <aj@suse.de>
7985
7986         * Makeconfig (+math-flags): New, set to -frounding-math.
7987         (+cflags): Add +math-flags so that all of glibc gets compiled with
7988         it.
7989
7990         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7991
7992 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7993
7994         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7995         Disable one test.
7996
7997         [BZ #13787]
7998         [BZ #13922]
7999         [BZ #14036]
8000         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
8001         (__ieee754_expl): Allow for and saturate large arguments.
8002         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
8003         (u_threshold): Likewise.
8004         (__exp): Call __ieee754_exp before checking for overflow and
8005         underflow.
8006         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
8007         (u_threshold): Likewise.
8008         (__expf): Call __ieee754_expf before checking for overflow and
8009         underflow.
8010         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
8011         (u_threshold): Likewise.
8012         (__expl): Call __ieee754_expl before checking for overflow and
8013         underflow.
8014         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
8015         (__ieee754_expl): Allow for and saturate large arguments.
8016         * math/libm-test.inc (exp_test): Add another test.  Do not allow
8017         missing overflow exception on overflow.
8018         (expm1_test): Do not allow missing overflow exception on overflow.
8019
8020         * sysdeps/i386/fpu/e_expl.c: Move to ...
8021         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
8022         rather than using inline asm.
8023         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
8024         * sysdeps/x86_64/fpu/e_expl.S: Copy from
8025         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
8026
8027         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
8028         (nice): Likewise.
8029         (poll): Likewise.
8030         (signal): Likewise.
8031         (time): Likewise.
8032         (times): Likewise.
8033
8034 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8035
8036         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8037         sysdeps/unix/common/syscalls.list.
8038         (fchmod): Likewise.
8039         (fchown): Likewise.
8040         (ftruncate): Likewise.
8041         (getrusage): Likewise.
8042         (gettimeofday): Likewise.
8043         (setpgid): Likewise.
8044         (setregid): Likewise.
8045         (setreuid): Likewise.
8046         (sigaction): Likewise.
8047         (truncate): Likewise.
8048         (vhangup): Likewise.
8049         * sysdeps/unix/common/syscalls.list: Remove file.
8050         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8051         * sysdeps/unix/sysv/linux/Implies: Likewise.
8052
8053 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8054
8055         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8056         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8057         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8058         Moved to ...
8059         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8060         Here.
8061         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8062         to ...
8063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8064         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8065         to ...
8066         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8067         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8068         to ...
8069         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8070         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8071         to ...
8072         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8073         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8074         to ...
8075         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8076         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8077         to ...
8078         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8079         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8080         to ...
8081         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8082         Here.
8083         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8084         to ...
8085         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8086         Here.
8087         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8088         to ...
8089         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8090         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8091         Moved to ...
8092         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8093         Here.
8094         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8095         to ...
8096         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8097
8098 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8099
8100         * sysdeps/unix/common/bits/dirent.h: Remove file.
8101         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8102
8103         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8104         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8105         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8106         * sysdeps/unix/bsd/isatty.c: Likewise.
8107         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8108         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8109         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8110
8111 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8112
8113         [BZ #13563]
8114         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8115         long double comparison inaccuracies.
8116         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8117         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8118
8119 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8120
8121         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8122         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8123
8124 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8125
8126         [BZ #14049]
8127         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8128         nonzero digits before rounding a hex value.
8129         * stdlib/tst-strtod.c (tests): Add another test.
8130
8131 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8132
8133         * sysdeps/s390/fpu/libm-test-ulps: Update.
8134
8135 2012-05-03  Andreas Jaeger  <aj@suse.de>
8136
8137         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8138         does not get optimized out.
8139         (malloc_opt_barrier): New.
8140
8141 2012-05-03  Andreas Jaeger  <aj@suse.de>
8142             Roland McGrath  <roland@hack.frob.com>
8143
8144         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8145         intermediate file deletion.
8146         (generated): Add .symlist files.
8147
8148 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8149
8150         [BZ #13775]
8151         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8152         Redirect under this condition.
8153         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8154         [__USE_GNU] (__dprintf_chk): Not under this condition.
8155         [__USE_GNU] (__vdprintf_chk): Likewise.
8156         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8157         under this condition.
8158         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8159         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8160         [__USE_XOPEN2K8] (vdprintf): Likewise.
8161         [__USE_GNU] (__dprintf_chk): Not under this condition.
8162         [__USE_GNU] (__vdprintf_chk): Likewise.
8163         [__USE_GNU] (dprintf): Likewise.
8164         [__USE_GNU] (vdprintf): Likewise.
8165
8166 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8167
8168         * elf/Makefile (common-generated): Set this instead of generated for
8169         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8170         $(all-built-dso)-derived lists.
8171
8172 2012-05-03  Andreas Jaeger  <aj@suse.de>
8173
8174         * sysdeps/i386/fpu/libm-test-ulps: Update.
8175
8176         * FAQ: Removed.
8177         * FAQ.in: Likewise.
8178         * scripts/gen-FAQ.pl: Likewise.
8179         * manual/install.texi (Installation): Point to online location of
8180         FAQ.
8181         * Makefile (files-for-dist): Remove FAQ.
8182         (FAQ): Remove.
8183
8184 2012-05-02  Allan McRae  <allan@archlinux.org>
8185
8186         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8187         (LDFLAGS-reldepmod5.so): Likewise.
8188         (LDFLAGS-reldep6mod1.so): Likewise.
8189         (LDFLAGS-reldep6mod4.so): Likewise.
8190         (LDFLAGS-reldep8mod3.so): Likewise.
8191         (LDFLAGS-unload4mod1.so): Likewise.
8192         (LDFLAGS-unload4mod2.so): Likewise.
8193         (LDFLAGS-tst-initorder): Likewise.
8194         (LDFLAGS-tst-initordera2.so): Likewise.
8195         (LDFLAGS-tst-initordera3.so): Likewise.
8196         (LDFLAGS-tst-initordera4.so): Likewise.
8197         (LDFLAGS-tst-initorderb2.so): Likewise.
8198         (LDFLAGS-noload): Likewise.
8199         (LDFLAGS-next): Likewise.
8200         (LDFLAGS-order2mod1.so): Likewise.
8201         (LDFLAGS-order2mod2.so): Likewise.
8202         (LDFLAGS-tst-initorder2): Likewise.
8203         (LDFLAGS-tst-initorder2a.so): Likewise.
8204         (LDFLAGS-tst-initorder2b.so): Likewise.
8205         (LDFLAGS-tst-initorder2c.so): Likewise.
8206         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8207
8208 2012-05-02  David S. Miller  <davem@davemloft.net>
8209
8210         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8211
8212 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8213
8214         [BZ #14055]
8215         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8216
8217 2012-05-02  Andreas Jaeger  <aj@suse.de>
8218
8219         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8220         since we manipulate rounding mode.
8221         (CPPFLAGS-test-idouble.c): Likewise.
8222         (CPPFLAGS-test-ifloat.c): Likewise.
8223         (CFLAGS-test-ldouble.c): Likewise.
8224         (CFLAGS-test-double.c): Likewise.
8225         (CFLAGS-test-float.c): Likewise.
8226         (CFLAGS-test-misc.c): Likewise.
8227         (CFLAGS-test-test-fenv.c): Likewise.
8228
8229 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8230
8231         [BZ #2550]
8232         [BZ #2570]
8233         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8234         comparisons to determine direction to adjust input.
8235
8236 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8237
8238         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8239         output to the target.
8240
8241         * scripts/localplt.awk: New file.
8242         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8243         (check-localplt-CFLAGS): Variable removed.
8244         ($(all-built-dso:=.jmprel)): New static pattern rule.
8245         (generated): Add those targets.
8246         (localplt-built-dso): New variable.
8247         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8248
8249         * elf/check-localplt.c: File removed.
8250
8251         * scripts/check-execstack.awk: New file.
8252         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8253         (check-execstack-CFLAGS): Variable removed.
8254         ($(objpfx)check-execstack.h): Target removed.
8255         ($(objpfx)execstack-default): New target.
8256         (generated): Add that instead of check-execstack.h.
8257         ($(all-built-dso:=.phdr)): New static pattern rule.
8258         (generated): Add those targets.
8259         * elf/check-execstack.c: File removed.
8260
8261         * scripts/check-textrel.awk: New file.
8262         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8263         (check-textrel-CFLAGS): Variable removed.
8264         (all-built-dso): Use := to define.o
8265         ($(all-built-dso:=.dyn)): New static pattern rule.
8266         (generated): Add those targets.
8267         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8268         * config.make.in (READELF): New substituted variable.
8269         * elf/check-textrel.c: File removed.
8270
8271 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8272
8273         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8274         allow.
8275         * conform/data/ctype.h-data [C99-based standards] (isblank):
8276         Expect function.
8277         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8278         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8279         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8280         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8281         Specify type.  Require positive value.
8282         (EILSEQ): Likewise.
8283         (ERANGE): Likewise.
8284         [ISO || POSIX] (EILSEQ): Do not expect.
8285         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8286         Specify type.  Require positive value.
8287         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8288         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8289         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8290         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8291         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8292         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8293         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8294         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8295         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8296         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8297         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8298         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8299         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8300         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8301         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8302         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8303         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8304         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8305         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8306         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8307         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8308         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8309         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8310         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8311         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8312         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8313         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8314         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8315         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8316         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8317         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8318         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8319         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8320         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8321         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8322         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8323         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8324         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8325         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8326         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8327         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8328         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8329         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8330         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8331         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8332         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8333         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8334         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8335         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8336         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8337         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8338         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8339         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8340         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8341         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8342         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8343         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8344         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8345         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8346         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8347         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8348         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8349         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8350         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8351         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8352         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8353         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8354         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8355         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8356         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8357         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8358         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8359         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8360         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8361         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8362         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8363         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8364         Require >= 2.
8365         (FLT_ROUNDS): Expect as macro, not constant.
8366         (FLT_MANT_DIG): Use macro-int-constant.
8367         (DBL_MANT_DIG): Likewise.
8368         (LDBL_MANT_DIG): Likewise.
8369         (FLT_DIG): Likewise.
8370         (DBL_DIG): Likewise.
8371         (LDBL_DIG): Likewise.
8372         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8373         (DBL_MIN_EXP): Likewise.
8374         (LDBL_MIN_EXP): Likewise.
8375         (FLT_MAX_EXP): Use macro-int-constant.
8376         (DBL_MAX_EXP): Likewise.
8377         (LDBL_MAX_EXP): Likewise.
8378         (FLT_MAX_10_EXP): Likewise.
8379         (DBL_MAX_10_EXP): Likewise.
8380         (LDBL_MAX_10_EXP): Likewise.
8381         (FLT_MAX): Use macro-constant.
8382         (DBL_MAX): Likewise.
8383         (LDBL_MAX): Likewise.
8384         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8385         (DBL_EPSILON): Likewise.
8386         (LDBL_EPSILON): Likewise.
8387         (FLT_MIN): Likewise.
8388         (DBL_MIN): Likewise.
8389         (LDBL_MIN): Likewise.
8390         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8391         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8392         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8393         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8394         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8395         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8396         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8397         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8398         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8399         [ISO11] (FLT_TRUE_MIN): Likewise.
8400         [ISO11] (LDBL_TRUE_MIN): Likewise.
8401         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8402         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8403         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8404         (SCHAR_MAX): Likewise.
8405         (UCHAR_MAX): Likewise.
8406         (CHAR_MIN): Likewise.
8407         (CHAR_MAX): Likewise.
8408         (MB_LEN_MAX): Use macro-int-constant.
8409         (SHRT_MIN): Use macro-int-constant.  Specify type.
8410         (SHRT_MAX): Likewise.
8411         (USHRT_MAX): Likewise.
8412         (INT_MAX): Likewise.
8413         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8414         bound negative.
8415         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8416         bound with "U".
8417         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8418         bound with "L".
8419         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8420         bound negative.  Suffix upper bound with "L".
8421         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8422         bound with "UL".
8423         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8424         Specify type.
8425         [C99-based standards] (LLONG_MAX): Likewise.
8426         [C99-based standards] (ULLONG_MAX): Likewise.
8427         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8428         == 0.
8429         [ISO11] (max_align_t): Require type.
8430         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8431
8432         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8433         from $CFLAGS, without defining away __attribute__ calls.
8434         (checknamespace): Use $CFLAGS_namespace.
8435
8436         * conform/conformtest.pl (@keywords): Only include C99 keywords
8437         for standards based on C99 or C11.
8438
8439         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8440         Disable tests.
8441         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8442         UNIX98]: Likewise.
8443
8444         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8445         usability of symbols in #if.
8446
8447         * conform/conformtest.pl: If macro or constant types start
8448         "promoted:", expect the symbol to be of the following type
8449         promoted by the integer promotions.
8450
8451         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8452         in one place.  Also handle "macro-constant".
8453
8454         * conform/conformtest.pl: Only accept expected macro values with
8455         "==".  Parse all "macro" lines in one place.
8456         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8457
8458         * conform/conformtest.pl: Handle braced types on "constant" lines
8459         instead of handling "typed-constant".
8460         * conform/data/signal.h-data: Use "constant" instead of
8461         "typed-constant".
8462
8463         * conform/conformtest.pl: Handle "optional-" at start of lines in
8464         one place rather than duplicating several cases.  Handle each
8465         format of "macro" line with initial "optional-".
8466
8467         * conform/conformtest.pl: Only accept expected constant or
8468         optional-constant values with "==".  Parse all "constant" lines in
8469         one place.  Parse all "optional-constant" lines in one place.
8470         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8471         * conform/data/fmtmsg.h-data: Likewise.
8472         * conform/data/netinet/in.h-data: Likewise.
8473         * conform/data/tar.h-data: Likewise.
8474         * conform/data/limits.h-data: Use "==" form on "constant" and
8475         "optional-constant" lines.
8476
8477         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8478         Use -std=c99 for XOPEN2K.
8479         (@knownproblems): Remove.
8480         (newtoken): Don't check %isknown.
8481
8482         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8483         Do not expect macro.
8484         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8496         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8497         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8514         [XPG3] (acosh): Likewise.
8515         [XPG3] (asinh): Likewise.
8516         [XPG3] (atanh): Likewise.
8517         [XPG3] (cbrt): Likewise.
8518         [XPG3] (expm1): Likewise.
8519         [XPG3] (ilogb): Likewise.
8520         [XPG3] (log1p): Likewise.
8521         [XPG3] (logb): Likewise.
8522         [XPG3] (nextafter): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8525         [XPG3] (remainder): Likewise.
8526         [XPG3] (rint): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8534         [UNIX98 || XOPEN2K] (scalb): Expect.
8535         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8536         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8574         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8575         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8576         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8577         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8578         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8579         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8580         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8581         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8582         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8583         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8584         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8585         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8586         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8587         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8588         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8589         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8590         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8591         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8592         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8593         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8594         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8595         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8596         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8597         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8598         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8599         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8600         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8601         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8602         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8603         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8604         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8605         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8606         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8607         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8608         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8609         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8610         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8611         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8612         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8613         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8614         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8615         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8616         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8617         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8618         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8619         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8620         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8621         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8622         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8623         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8624         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8625         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8626         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8627         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8628         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8629         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8630         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8631         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8632         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8633         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8634         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8635         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8636         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8637         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8638         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8639         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8640         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8641         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8642         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8643         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8644         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8645         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8646         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8647         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8648         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8649         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8650         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8651         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8652         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8653         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8654         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8655         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8656         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8657         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8658         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8659         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8660         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8661         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8662         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8663         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8664         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8665         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8666         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8667         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8668         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8669         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8670         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8671         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8672
8673         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8674         _XOPEN_SOURCE_EXTENDED for XPG4.
8675
8676         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8677
8678         * Makeconfig (localtime): Remove variable.
8679         (inst_localtime-file): Likewise.
8680
8681 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8682
8683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8684         Update.
8685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8686         Update.
8687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8688         Update.
8689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8690         Update.
8691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8692         Update.
8693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8694         Update.
8695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8696         Update.
8697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8698         Update.
8699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8700         Update.
8701
8702 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8703
8704         [BZ #2550]
8705         [BZ #2570]
8706         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8707         comparisons to determine direction to adjust input.
8708         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8709         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8710         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8711         Likewise.
8712         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8713         Likewise.
8714         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8715         Likewise.
8716         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8717         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8718         Likewise.
8719         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8720         Likewise.
8721         * math/libm-test.inc (nexttoward_test): Add more tests.
8722
8723 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8724
8725         [BZ #14040]
8726         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8727         in version GLIBC_2.1, not GLIBC_2.0.
8728         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8729         Likewise.
8730
8731 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8732
8733         [BZ #13942]
8734         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8735         (1 - x) * (1 + x).
8736         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8737         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8738         * math/libm-test.inc (acos_test): Add more tests.
8739         (asin_test): Likewise.
8740         * sysdeps/i386/fpu/libm-test-ulps: Update.
8741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8742
8743         [BZ #14034]
8744         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8745         of square root.
8746         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8747         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8748         * math/libm-test.inc (acos_test_tonearest): New function.
8749         (acos_test_towardzero): Likewise.
8750         (acos_test_downward): Likewise.
8751         (acos_test_upward): Likewise.
8752         (asin_test_tonearest): Likewise.
8753         (asin_test_towardzero): Likewise.
8754         (asin_test_downward): Likewise.
8755         (asin_test_upward): Likewise.
8756         (main): Call the new functions.
8757         * sysdeps/i386/fpu/libm-test-ulps: Update.
8758         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8759
8760         [BZ #13884]
8761         [BZ #13924]
8762         * math/e_exp10.c: Include <float.h>.
8763         (__ieee754_exp10): Handle underflow here rather than multiplying
8764         large negative argument by M_LN10.
8765         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8766         of __ieee754_expf.
8767         * math/e_exp10l.c: Include <float.h>.
8768         (__ieee754_exp10l): Handle underflow here rather than multiplying
8769         large negative argument by M_LN10l.
8770         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8771         spurious overflow exception on underflow.
8772
8773 2012-04-29  Marek Polacek  <polacek@redhat.com>
8774
8775         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8776         (__fortify_function): New macro.
8777         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8778         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8779         __extern_always_inline.
8780         * libio/bits/stdio2.h: Likewise.
8781         * libio/bits/stdio.h: Likewise.
8782         * string/string.h: Likewise.
8783         * string/bits/string3.h: Likewise.
8784         * include/stdio.h: Likewise.
8785         * stdlib/bits/stdlib.h: Likewise.
8786         * stdlib/stdlib.h: Likewise.
8787         * rt/bits/mqueue2.h: Likewise.
8788         * rt/mqueue.h: Likewise.
8789         * posix/bits/unistd.h: Likewise.
8790         * posix/unistd.h: Likewise.
8791         * io/bits/poll2.h: Likewise.
8792         * io/bits/fcntl2.h: Likewise.
8793         * io/fcntl.h: Likewise.
8794         * io/sys/poll.h: Likewise.
8795         * misc/bits/syslog.h: Likewise.
8796         * misc/bits/syslog-ldbl.h: Likewise.
8797         * misc/sys/syslog.h: Likewise.
8798         * socket/bits/socket2.h: Likewise.
8799         * socket/sys/socket.h: Likewise.
8800         * debug/tst-chk1.c: Likewise.
8801         * wcsmbs/bits/wchar2.h: Likewise.
8802         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8803         * wcsmbs/wchar.h: Likewise.
8804
8805 2012-04-29  Andreas Jaeger  <aj@suse.de>
8806
8807         * Makerules (tests): Remove enable-check-abi protection.
8808         (check-abi-warn): Remove.
8809         (check-abi-%): Remove check-abi-warn usage.
8810
8811         * configure.in: Remove check-abi configure option.
8812         * configure: Regenerated.
8813         * config.make.in (enable-check-abi): Remove.
8814
8815 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8816
8817         [BZ #14033]
8818         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8819         double functions to double *_finite functions.
8820
8821         [BZ #13941]
8822         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8823         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8824         LDBL_MIN_EXP.
8825         * stdio-common/Makefile (tests): Add tst-sprintf3.
8826         * stdio-common/tst-sprintf3.c: New file.
8827
8828         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8829         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8830
8831 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8832
8833         * conform/conformtest.pl: Remove duplicate typed-constant
8834         handling.
8835
8836 2012-04-28  David S. Miller  <davem@davemloft.net>
8837
8838         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8839         (check-abi-%): Remove AWK script prerequisite and explicit
8840         abilist directory.
8841         (check-abi): Rewrite to just diff the symlist with the abilist.
8842         (config-tls, config-abi-config): Delete, no longer used.
8843         (update-abi-%): Remove AWK script and explicit abilist directory.
8844         (update-abi): Rewrite to simply compare and conditionally copy the
8845         symlist and the sysdep abilist file.  Remove update-abi-config
8846         checks.
8847         * abilist/ld.abilist: Remove.
8848         * abilist/libBrokenLocale.abilist: Remove.
8849         * abilist/libanl.abilist: Remove.
8850         * abilist/libcrypt.abilist: Remove.
8851         * abilist/libdl.abilist: Remove.
8852         * abilist/librt.abilist: Remove.
8853         * abilist/libthread_db.abilist: Remove.
8854         * abilist/libutil.abilist: Remove.
8855         * scripts/extract-abilist.awk: Remove.
8856         * scripts/merge-abilist.awk: Remove.
8857         * sysdeps/generic/libcidn.abilist: New file.
8858         * sysdeps/generic/libnss_compat.abilist: New file.
8859         * sysdeps/generic/libnss_db.abilist: New file.
8860         * sysdeps/generic/libnss_dns.abilist: New file.
8861         * sysdeps/generic/libnss_files.abilist: New file.
8862         * sysdeps/generic/libnss_hesiod.abilist: New file.
8863         * sysdeps/generic/libnss_nis.abilist: New file.
8864         * sysdeps/generic/libnss_nisplus.abilist: New file.
8865         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8866         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8867         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8868         file.
8869         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8870         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8871         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8872         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8873         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8874         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8875         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8876         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8877         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8878         file.
8879         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8880         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8881         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8882         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8883         file.
8884         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8885         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8886         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8887         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8888         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8889         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8890         file.
8891         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8892         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8893         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8894         file.
8895         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8896         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8897         New file.
8898         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8899         New file.
8900         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8901         New file.
8902         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8903         New file.
8904         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8905         New file.
8906         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8907         New file.
8908         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8909         New file.
8910         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8911         New file.
8912         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8913         New file.
8914         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8915         New file.
8916         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8917         New file.
8918         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8919         New file.
8920         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8921         New file.
8922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8923         file.
8924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8925         New file.
8926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8927         New file.
8928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8929         file.
8930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8931         New file.
8932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8933         New file.
8934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8935         file.
8936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8937         New file.
8938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8939         New file.
8940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8941         New file.
8942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8943         New file.
8944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8945         New file.
8946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8947         New file.
8948         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8949         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8950         file.
8951         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8952         New file.
8953         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8954         file.
8955         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8956         file.
8957         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8958         file.
8959         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8960         file.
8961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8962         file.
8963         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8964         New file.
8965         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8966         file.
8967         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8968         file.
8969         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8970         New file.
8971         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8972         file.
8973         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8974         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8975         file.
8976         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8977         New file.
8978         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8979         file.
8980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8981         file.
8982         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8983         file.
8984         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8985         file.
8986         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8987         file.
8988         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8989         New file.
8990         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8991         file.
8992         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8993         file.
8994         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8995         New file.
8996         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8997         file.
8998         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8999         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
9000         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
9001         file.
9002         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
9003         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
9004         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
9005         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
9006         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
9007         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
9008         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
9009         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
9010         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
9011         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
9012         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
9013         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
9014         file.
9015         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
9016         New file.
9017         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
9018         file.
9019         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
9020         file.
9021         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
9022         file.
9023         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
9024         file.
9025         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
9026         file.
9027         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
9028         New file.
9029         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9030         New file.
9031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9032         file.
9033         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9034         New file.
9035         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9036         file.
9037         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9038         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9039         file.
9040         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9041         New file.
9042         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9043         file.
9044         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9045         file.
9046         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9047         file.
9048         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9049         file.
9050         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9051         file.
9052         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9053         New file.
9054         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9055         New file.
9056         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9057         file.
9058         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9059         New file.
9060         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9061         file.
9062
9063 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9064
9065         * conform/conformtest.pl: Fix typo in handling typed-constant from
9066         allow-header.
9067
9068 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9069
9070         * README: Cut down references to pre-2.6 Linux kernels and
9071         Linuxthreads.  Update lists of configurations in libc and ports
9072         and sort alphabetically.  Say "or newer" with Linux kernel version
9073         requirements.
9074
9075         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9076
9077 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9078
9079         [BZ #887]
9080         * math/libm-test.inc (logb_test_downward): New test to expose
9081         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9082         rounding mode.
9083
9084 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9085
9086         [BZ #14027]
9087         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9088         to be done.
9089         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9090         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9091
9092 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9093
9094         * sysdeps/unix/i386/brk.S: Remove file.
9095         * sysdeps/unix/i386/dl-brk.S: Likewise.
9096         * sysdeps/unix/i386/pipe.S: Likewise.
9097         * sysdeps/unix/i386/sigreturn.S: Likewise.
9098         * sysdeps/unix/i386/syscall.S: Likewise.
9099         * sysdeps/unix/i386/vfork.S: Likewise.
9100         * sysdeps/unix/i386/wait.S: Likewise.
9101
9102         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9103         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9104
9105         * configure.in (arm*-none*): Do not allow without
9106         --enable-hacker-mode.
9107         (netbsd*): Remove case setting base_os.
9108         (386bsd*): Likewise.
9109         (freebsd*): Likewise.
9110         (bsdi*): Likewise.
9111         (osf*): Likewise.
9112         (sunos*): Likewise.
9113         (ultrix*): Likewise.
9114         (newsos*): Likewise.
9115         (dynix*): Likewise.
9116         (*bsd*): Likewise.
9117         (sysv*): Likewise.
9118         (isc*): Likewise.
9119         (esix*): Likewise.
9120         (sco*): Likewise.
9121         (minix*): Likewise.
9122         (irix4*): Likewise.
9123         (irix6*): Likewise.
9124         (solaris[2-9]*): Likewise.
9125         (none): Likewise.
9126         * configure: Regenerated.
9127
9128 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9129
9130         [BZ #11521]
9131         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9132         overflow or cancellation in calculating denominator.
9133         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9134         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9135         down expression to avoid unexpected rounding in newer GCCs.
9136         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9137
9138 2012-04-26  David S. Miller  <davem@davemloft.net>
9139
9140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9141         long-double compat symbols.
9142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9147         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9148         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9149         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9150         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9151         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9152         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9155
9156 2012-04-25  David S. Miller  <davem@davemloft.net>
9157
9158         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9159         HWCAP_* values only after the memory barriers have been defined.
9160         (atomic_full_barrier): Define.
9161         (atomic_read_barrier): Define.
9162         (atomic_write_barrier): Define.
9163
9164 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9165
9166         * shlib-versions: Add libgcc_s version information.
9167         * sysdeps/generic/libgcc_s.h: Remove.
9168         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9169         libgcc_s.h.
9170         * sysdeps/gnu/unwind-resume.c: Likewise.
9171         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9172
9173 2012-04-25  David S. Miller  <davem@davemloft.net>
9174
9175         * sysdeps/unix/sparc/brk.S: Delete.
9176         * sysdeps/unix/sparc/dl-brk.S: Delete.
9177         * sysdeps/unix/sparc/pipe.S: Delete.
9178         * sysdeps/unix/sparc/sysdep.S: Delete.
9179         * sysdeps/unix/sparc/sysdep.h: Delete.
9180         * sysdeps/unix/sparc/vfork.S: Delete.
9181         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9182         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9183         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9184         ret_ERRVAL, r0, r1, MOVE): Define.
9185         (JUMPTARGET): Remove.
9186         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9187         sysdeps/unix/sparc/sysdep.h
9188         (ENTRY, END): Remove.
9189         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9190
9191 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9194         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9195         -DIS_IN_build.
9196
9197         * timezone/README: Update upstream location and email address for
9198         tzcode and tzdata.
9199         * timezone/zdump.c: Update from tzcode 2012b.
9200         * timezone/zic.c: Likewise.
9201
9202         * configure.in (libc_cv_as_needed): Remove test.
9203         * configure: Regenerated.
9204         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9205         conditional definition.
9206         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9207         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9208         * config.make.in (have-as-needed): Remove variable.
9209
9210 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9211             Paul Pluzhnikov  <ppluzhnikov@google.com>
9212
9213         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9214         strings correctly.
9215
9216 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9217
9218         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9219         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9220         * sysdeps/sh/strlen.S: Likewise.
9221
9222 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9223
9224         * sysdeps/unix/fork.S: Remove file.
9225         * sysdeps/unix/i386/fork.S: Likewise.
9226         * sysdeps/unix/sparc/fork.S: Likewise.
9227
9228         * sysdeps/unix/system.c: Remove file.
9229         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9230
9231         * sysdeps/unix/getegid.S: Remove file.
9232         * sysdeps/unix/geteuid.S: Likewise.
9233
9234 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9235
9236         * scripts/check-localplt.awk: New file.
9237         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9238         of diff.
9239         * scripts/data/localplt-generic.data: Add a comment.
9240
9241         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9242         NODE when __dir_mkfile failed.
9243         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9244         Reported by Ludovic Courtès <ludo@gnu.org>.
9245
9246 2012-04-24  Andreas Jaeger  <aj@suse.de>
9247
9248         * Makerules (common-clean): Also remove gen-as-const-headers
9249         files.
9250
9251 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9252
9253         * Makerules (native-compile): Do not change working directory for
9254         build.  Use $(OUTPUT_OPTION) in command.
9255         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9256
9257 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9258
9259         [BZ #13886]
9260         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9261         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9262         * math/libm-test.inc (floor_test): Add more tests.
9263         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9264
9265 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9266
9267         * sysdeps/unix/getdents.c: Remove file.
9268         * sysdeps/unix/sysv/getdents.c: Likewise.
9269         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9270
9271         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9272         sysdeps/unix/mman/syscalls.list.
9273         (mmap): Likewise.
9274         (mprotect): Likewise.
9275         (msync): Likewise.
9276         (munmap): Likewise.
9277         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9278         * sysdeps/unix/mman/syscalls.list: Remove.
9279         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9280
9281         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9282         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9283         * configure: Regenerated.
9284         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9285         $(libgcc_s_suffix).
9286         * config.make.in (libgcc_s_suffix): Remove variable.
9287
9288 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9289
9290         * sysdeps/unix/sysv/gethostname.c: Move to ...
9291         * sysdeps/posix/gethostname.c: ... here.
9292
9293         * sysdeps/unix/execve.S: Remove file.
9294
9295         * sysdeps/unix/_exit.S: Remove file.
9296
9297 2012-04-23  Andreas Jaeger  <aj@suse.de>
9298
9299         [BZ #13739]
9300         * manual/Makefile: Remove make dist support, there's no
9301         need for a stand-alone documentation tar ball.
9302         (TEXI2DVI): Define always, it's not in Makeconfig.
9303         (dist): Removed.
9304         (tar-it): Removed.
9305         (edition): Removed.
9306         (glibc-doc-$(edition).tar): Removed
9307         (%.Z): Removed.
9308         (%.gz): Removed.
9309         (%.uu): Removed.
9310         (ETAGS): Remove, it's in Makeconfig.
9311         (move-if-change): Remove, it's in Makeconfig.
9312
9313 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9314
9315         [BZ #13970]
9316         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9317         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9318         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9319         (strtod_l, strtof_l, strtold_l): Remove __wur.
9320         It is not necessarily an error to ignore strtol's return value.
9321         One can reliably look at the stored endptr to decide whether
9322         the number had valid syntax.
9323
9324 2012-04-21  Andreas Jaeger  <aj@suse.de>
9325
9326         [BZ #13739]
9327         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9328
9329 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9330
9331         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9332         * sysdeps/unix/sysv/Versions: Remove file.
9333
9334 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9335
9336         [BZ #13927]
9337         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9338
9339 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9340
9341         [BZ #7064]
9342         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9343         version from __vm86.
9344
9345 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9346
9347         * sysdeps/unix/common/lxstat.c: Remove file.
9348         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9349
9350         * sysdeps/unix/sysv/Makefile: Remove file.
9351
9352         * sysdeps/unix/sysv/direct.h: Remove file.
9353
9354         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9355         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9356         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9357         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9358         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9359         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9360         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9361
9362         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9363
9364         * sysdeps/unix/xmknod.c: Remove file.
9365         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9366
9367         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9368
9369         * sysdeps/unix/sysv/i386/time.S: Remove file.
9370
9371         * sysdeps/unix/fxstat.c: Remove file.
9372         * sysdeps/unix/xstat.c: Likewise.
9373         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9374
9375         * sysdeps/unix/sysv/sigaction.c: Remove file.
9376
9377         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9378         (sysdep_headers): Remove variable.
9379         [termio.h not in sysdep_headers] (generated): Likewise.
9380         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9381         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9382         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9383         * sysdeps/unix/sysv/tcflow.c: Likewise.
9384         * sysdeps/unix/sysv/tcflush.c: Likewise.
9385         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9386         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9387         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9388         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9389         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9390
9391         * sysdeps/unix/siglist.c: Remove file.
9392
9393         * sysdeps/unix/getppid.S: Remove file.
9394
9395         * sysdeps/unix/mkdir.c: Remove file.
9396         * sysdeps/unix/rmdir.c: Likewise.
9397
9398 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9399
9400         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9401         ERR_MAX value.
9402         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9403         errlist-compat value.
9404
9405 2012-04-18  David S. Miller  <davem@davemloft.net>
9406
9407         * sysdeps/generic/memcopy.h (reg_char): Delete.
9408         * debug/strcat_chk.c: Use char, not reg_char.
9409         * debug/strcpy_chk.c: Likewise.
9410         * debug/strncat_chk.c: Likewise.
9411         * debug/strncpy_chk.c: Likewise.
9412         * string/memchr.c: Likewise.
9413         * string/memrchr.c: Likewise.
9414         * string/rawmemchr.c: Likewise.
9415         * string/strcat.c: Likewise.
9416         * string/strchr.c: Likewise.
9417         * string/strchrnul.c: Likewise.
9418         * string/strcmp.c: Likewise.
9419         * string/strcpy.c: Likewise.
9420         * string/strncat.c: Likewise.
9421         * string/strncmp.c: Likewise.
9422         * string/strncpy.c: Likewise.
9423
9424 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9425
9426         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9427         __builtin_memcopy is called when src and dest ranges are known to not
9428         overlap.
9429
9430 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9431
9432         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9433         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9434         fwd_align_merge macro call.
9435         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9436         bwd_align_merge macro call.
9437         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9438
9439 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9440
9441         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9442         bwd_align_merge macros.
9443         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9444         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9445         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9446
9447 2012-04-18  David S. Miller  <davem@davemloft.net>
9448
9449         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9450
9451 2012-04-18  Andreas Jaeger  <aj@suse.de>
9452
9453         [BZ# 6794]
9454         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9455         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9456         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9457
9458         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9459         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9460         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9461
9462         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9463         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9464         Adjust for changed ldbl-128 files.
9465
9466         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9467         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9468         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9469
9470 2012-04-17  David S. Miller  <davem@davemloft.net>
9471
9472         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9473
9474 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9475
9476         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9477         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9478         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9479         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9480         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9481         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9482
9483 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9484
9485         [BZ #6794]
9486         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9487         * math/libm-test.inc: Add ilogb errno and exception tests.
9488         * math/w_ilogb.c: New file: ilogb wrapper.
9489         * math/w_ilogbf.c: New file: ilogbf wrapper.
9490         * math/w_ilogbl.c: New file: ilogbl wrapper.
9491         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9492         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9493         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9494         exception being thrown with 0.0 as argument.
9495         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9496         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9497         exception being thrown with 0.0 as argument.
9498         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9499         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9500         exception being thrown with 0.0 as argument.
9501         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9502         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9503         exception being thrown with 0.0 as argument.
9504         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9505         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9506         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9507         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9508         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9509         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9510         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9511         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9512         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9513
9514 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9515
9516         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9517         with altivec.
9518
9519 2012-04-16  Marek Polacek  <polacek@redhat.com>
9520
9521         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9522
9523 2012-04-16  Marek Polacek  <polacek@redhat.com>
9524
9525         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9526         operands of fdivp instruction.
9527
9528 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9529
9530         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9531         * elf/tst-auditmod3b.c: Likewise.
9532         * elf/tst-auditmod4b.c: Likewise.
9533         * elf/tst-auditmod5b.c: Likewise.
9534         * elf/tst-auditmod6b.c: Likewise.
9535         * elf/tst-auditmod6c.c: Likewise.
9536         * elf/tst-auditmod7b.c: Likewise.
9537         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9538         * sysdeps/x86_64/preconfigure.in: Likewise.
9539         * sysdeps/x86_64/preconfigure: Regenerated.
9540
9541 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9542
9543         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9544         __ILP32__.
9545
9546 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9547
9548         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9549         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9550
9551 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9552
9553         [BZ #13973]
9554         * locale/iso-639.def: Fix gl language name. Spotted by
9555         Yaron Shahrabani.
9556
9557 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9558
9559         [BZ #2074]
9560         * libio/libio.h (__io_write_fn): Update comment.
9561
9562 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9563
9564         [BZ #2074]
9565         * stdio.texi (Hook Functions): The user provided writer function
9566         is not allowed to return -1.
9567
9568 2012-04-11  David S. Miller  <davem@davemloft.net>
9569
9570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9571
9572 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9573
9574         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9575         Add a leading slash to rtkaio.
9576
9577 2012-04-11  Jim Meyering  <meyering@redhat.com>
9578
9579         [BZ #11959]
9580         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9581         It is not necessarily an error to ignore fwrite's return
9582         value.  One can reliably use ferror to test for errors after
9583         the fact.
9584
9585 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9586
9587         * bits/types.h (__snseconds_t): New type.
9588         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9589
9590         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9591         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9592         (__SNSECONDS_T_TYPE): Likewise.
9593         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9594         (__SNSECONDS_T_TYPE): Likewise.
9595         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9596         (__SNSECONDS_T_TYPE): Likewise.
9597
9598 2012-04-10  Andreas Jaeger  <aj@suse.de>
9599
9600         [BZ #2636]
9601         * manual/time.texi (Processor Time): Return type of times is
9602         elapsed real time since an arbitrary point in the past.
9603         (CPU Time): Move CLK_TCK from here...
9604         (Processor Time): ...to here.  Correct description.
9605         * manual/conf.texi (Constants for Sysconf): Correct description of
9606         _SC_CLK_TCK.
9607
9608 2012-04-10  David S. Miller  <davem@davemloft.net>
9609
9610         [BZ #13967]
9611         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9612         where the is a gap between DT_REL(A) and DT_JMPREL.
9613
9614 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9615
9616         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9617         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9618         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9619
9620 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9621
9622         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9623         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9624         (dl_main): Handle --inhibit-cache.
9625         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9626         _dl_inhibit_cache.
9627         * elf/dl-load.c (_dl_map_object): Use it.
9628         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9629
9630 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9631
9632         [BZ #13872]
9633         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9634         (__ieee754_powl): Saturate large exponents rather than testing for
9635         overflow of y*log2(x).
9636         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9637         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9638         exceptions.
9639
9640         [BZ #11521]
9641         * math/s_ctan.c: Include <float.h>.
9642         (__ctan): Avoid internal overflow or cancellation in calculating
9643         denominator.
9644         * math/s_ctanf.c: Likewise.
9645         * math/s_ctanl.c: Likewise.
9646         * math/s_ctanh.c: Likewise.
9647         * math/s_ctanhf.c: Likewise.
9648         * math/s_ctanhl.c: Likewise.
9649         * math/libm-test.inc (ctan_test): Add more tests.
9650         (ctanh_test): Likewise.
9651         * sysdeps/i386/fpu/libm-test-ulps: Update.
9652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9653
9654 2012-04-09  Andreas Jaeger  <aj@suse.de>
9655
9656         [BZ #6894]
9657         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9658         is an optional BSD extension.
9659
9660         [BZ #10254]
9661         * manual/stdio.texi (Opening Streams): Document additional fopen
9662         parameters.
9663
9664 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9665
9666         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9667         %eax without telling the compiler.
9668
9669 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9670
9671         [BZ # 13963]
9672         * manual/install.texi: Use sourceware.org.
9673
9674 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9675
9676         [BZ #13873]
9677         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9678         (__ieee754_pow): Generate overflow and underflow using huge*huge
9679         and tiny*tiny rather than just returning constant infinity or zero
9680         for large exponents.
9681         * math/libm-test.inc (pow_test): Require overflow exceptions for
9682         applicable cases of large exponents.
9683
9684         [BZ #706]
9685         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9686         (__ieee754_pow): Use iterative multiplication algorithm only for
9687         integer exponents with absolute value below 1024.  Check for odd
9688         integer exponents when using algorithm for real exponents.
9689         * math/libm-test.inc (pow_test): Add more tests.
9690         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9691
9692 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9693
9694         [BZ #13705]
9695         * math/libm-test.inc (exp_test): Do not allow overflow exception
9696         on underflow test.
9697
9698 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9699
9700         [BZ #13705]
9701         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9702         instead of __kernel_standard_f.
9703
9704 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9705
9706         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9707         * sysdeps/x86_64/memset_chk.S: Likewise.
9708
9709 2012-04-08  Andreas Jaeger  <aj@suse.de>
9710
9711         [BZ #10153]
9712         * manual/startup.texi (Environment Access): Describe return value
9713         for putenv and setenv.
9714
9715         [BZ #6895]
9716         * manual/filesys.texi (Directory Entries): Add description for
9717         DT_LNK.
9718
9719         [BZ #6890]
9720         * manual/filesys.texi (Directory Entries): Clarify that it's file
9721         system not operating system in the description of DT_UNKNOWN.
9722
9723         [BZ #6578]
9724         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9725
9726 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9727
9728         [BZ #6649]
9729         * manual/llio.texi (Opening and Closing Files): Add cross
9730         reference to explain mode argument.
9731
9732 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9733
9734         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9735         * sysdeps/x86_64/memset_chk.S: Likewise.
9736
9737 2012-04-07  David S. Miller  <davem@davemloft.net>
9738
9739         * elf/elf.h (R_SPARC_WDISP10): Define.
9740         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9741         R_SPARC_SIZE32.
9742         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9743         R_SPARC_SIZE64 and R_SPARC_H34.
9744
9745 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9746
9747         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9748         conditions and remove no longer applicable assertion.
9749
9750 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9751
9752         * bits/byteswap.h: Include <features.h>.
9753         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9754         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9755
9756 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9757
9758         * bits/byteswap.h (__bswap_16): Removed.
9759         Include <bits/byteswap-16.h> to get __bswap_16.
9760         * sysdeps/i386/bits/byteswap.h: Likewise.
9761         * sysdeps/s390/bits/byteswap.h: Likewise.
9762         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9763         * bits/byteswap-16.h: New file.
9764         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9765         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9766         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9767         * string/Makefile (headers): Add bits/byteswap-16.h.
9768
9769 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9770
9771         [BZ #13895]
9772         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9773         extra indirection.
9774         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9775         * nss/tst-nss-static.c: New.
9776
9777 2012-04-06  Robert Millan  <rmh@gnu.org>
9778
9779         [BZ #6486]
9780         * manual/llio.texi (File Position Primitive): lseek
9781         refers to WHENCE when it really means OFFSET.
9782
9783 2012-04-06  Andreas Jaeger  <aj@suse.de>
9784
9785         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9786         strncmp declarations.
9787
9788         * abilist/libc.abilist: Add __poll and __ppoll.
9789
9790 2012-04-05  David S. Miller  <davem@davemloft.net>
9791
9792         * scripts/check-local-headers.sh: Accept a host triplet in the
9793         path matched by the exclude regexp.
9794
9795         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9796         definition.
9797         * sysdeps/powerpc/powerpc32/dl-machine.h
9798         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9799         * sysdeps/s390/s390-32/dl-machine.h
9800         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9801         * sysdeps/sparc/sparc32/dl-machine.h
9802         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9803         * sysdeps/sparc/sparc64/dl-machine.h
9804         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9805
9806         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9807         lazy binding.
9808         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9809         undefined symbol errors.
9810
9811         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9812         DT_NEEDED entries.
9813
9814 2012-04-05  Michael Matz  <matz@suse.de>
9815
9816         [BZ #13592]
9817         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9818
9819 2012-04-05  Andreas Jaeger  <aj@suse.de>
9820
9821         [BZ #13908]
9822         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9823         comment.
9824
9825 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9826
9827         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9828         which ROUND is no valid rounding mode.
9829
9830 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9831
9832         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9833         read again.
9834         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9835
9836 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9837
9838         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9839         an exception using FPU order intentionally.
9840
9841 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9842
9843         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9844         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9845         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9846         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9847
9848 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9849
9850         [BZ #12340]
9851         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9852         EINVAL when BUFLEN is too smal.
9853
9854 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9855
9856         [BZ #13553]
9857         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9858         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9859
9860 2012-04-03  Andreas Jaeger  <aj@suse.de>
9861
9862         [BZ #13938]
9863         * manual/setjmp.texi (System V contexts): Fix sentence.
9864
9865         [BZ #13926]
9866         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9867         New macro for this case.
9868         [!__GNUC__] (__bswap_64): New inline function for this case.
9869         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9870         * bits/byteswap.h: Likewise.
9871         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9872         ull, guard with __GLIBC_HAVE_LONG_LONG.
9873
9874         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9875         __GLIBC_HAVE_LONG_LONG.
9876
9877         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9878         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9879
9880 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9881
9882         [BZ #13691]
9883         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9884         inptr and inend, rather than using last_ch.
9885
9886 2012-04-02  David S. Miller  <davem@davemloft.net>
9887
9888         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9889         * stdio-common/printf-parse.h (read_int): Change return type to
9890         'int', return -1 on INT_MAX overflow.
9891         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9892         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9893         overflows INT_MAX.  Check for overflow of in-format-string precision
9894         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9895         SIZE_MAX not INT_MAX for integer overflow test.
9896         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9897         skip the construct in the format string but do not record anything.
9898         * stdio-common/bug22.c: Adjust to test both width/prevision
9899         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9900         explicitly for proper errno values.
9901
9902 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9903
9904         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9905         CHAR_MAX.
9906         * string/test-strcmp.c [! WIDE]: Likewise.
9907         * time/tst-mktime2.c: Likewise for INT_MAX.
9908         * string/test-string.h: #include <sys/param.h> for MIN.
9909
9910         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9911         * sysdeps/i386/init-first.c (init): Likewise.
9912         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9913         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9914         * sysdeps/sh/init-first.c (init): Likewise.
9915
9916 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9917
9918         * po/ru.po: Update from translation team.
9919         * po/vi.po: Likewise.
9920
9921 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9922
9923         * resolv/nss_dns/dns-host.c: Merge copyright years.
9924
9925 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9926
9927         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9928         Optimize memcpy with prefetch if
9929         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9930         src, dst pointers have unequal 16 byte alignments.
9931
9932 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9933
9934         [BZ #13928]
9935         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9936         from a CNAME entry and return the minimum ttl for the query.
9937         (gaih_getanswer_slice): Likewise.
9938
9939 2012-03-30  Jeff Law  <law@redhat.com>
9940
9941         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9942         due to long keys.
9943         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9944         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9945
9946         * resolv/nss_dns/dns-host.c: Update copyright year.
9947
9948 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9949
9950         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9951         requests to save a system call.  Fix check that all bytes are sent.
9952
9953         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9954         comments for sendmmsg.
9955
9956 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9957
9958         [BZ #13691]
9959         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9960         with only 1 character between 0x0041 and 0x01b0.
9961         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9962         * wcsmbs/tst-mbsnrtowcs.c: New file.
9963
9964 2012-03-29  David S. Miller  <davem@davemloft.net>
9965
9966         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9967         small copies by hand.
9968
9969 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9970
9971         [BZ #13761]
9972         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9973         _nss_compat_initgroups_dyn): Fall back to malloc/free
9974         for large group memberships.
9975
9976 2012-03-28  David S. Miller  <davem@davemloft.net>
9977
9978         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9979         that branches into memcpy.
9980         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9981         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9982         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9983         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9984         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9985         bits.
9986         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9987         implementation too.
9988         * sysdeps/sparc/mempcpy.S: New file.
9989
9990         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9991         the IFUNC routine in the libc case.
9992         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9993
9994         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9995         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9996         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9997         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9998         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9999         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
10000         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
10001         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
10002
10003         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
10004         loop to 256 bytes instead of 64 bytes and fix test signedness.
10005
10006         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
10007         * sysdeps/sparc/sparc32/Makefile: rather than here...
10008         * sysdeps/sparc/sparc64/Makefile: and here.
10009
10010 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
10011
10012         * malloc/mallocbug.c: Avoid warnings about unused variables.
10013
10014 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10015
10016         [BZ #13760]
10017         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
10018         in the right place. Discard and retry query if response is
10019         larger than input buffer size.
10020
10021 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
10022
10023         [BZ #369]
10024         [BZ #2678]
10025         [BZ #3866]
10026         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
10027         x for large integer exponent.
10028         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10029         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10030         sign of result as needed afterwards.
10031         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10032         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10033         result for underflowing pow the same as for overflow.
10034         (__kernel_standard_l): Handle powl overflow and underflow here
10035         rather than calling __kernel_standard.
10036         * math/libm-test.inc (pow_test): Add more tests.
10037
10038         [BZ #3868]
10039         [BZ #13879]
10040         [BZ #13910]
10041         [BZ #13911]
10042         [BZ #13912]
10043         [BZ #13913]
10044         [BZ #13915]
10045         [BZ #13916]
10046         [BZ #13917]
10047         [BZ #13918]
10048         [BZ #13919]
10049         [BZ #13920]
10050         [BZ #13921]
10051         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10052         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10053         (__kernel_standard_l): New function.
10054         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10055         __kernel_standard.
10056         * math/w_acosl.c (__acosl): Likewise.
10057         * math/w_asinl.c (__asinl): Likewise.
10058         * math/w_atan2l.c (__atan2l): Likewise.
10059         * math/w_atanhl.c (__atanhl): Likewise.
10060         * math/w_coshl.c (__coshl): Likewise.
10061         * math/w_exp10l.c (__exp10l): Likewise.
10062         * math/w_exp2l.c (__exp2l): Likewise.
10063         * math/w_fmodl.c (__fmodl): Likewise.
10064         * math/w_hypotl.c (__hypotl): Likewise.
10065         * math/w_j0l.c (__j0l, __y0l): Likewise.
10066         * math/w_j1l.c (__j1l, __y1l): Likewise.
10067         * math/w_jnl.c (__jnl, __ynl): Likewise.
10068         * math/w_lgammal.c (__lgammal): Likewise.
10069         * math/w_log10l.c (__log10l): Likewise.
10070         * math/w_log2l.c (__log2l): Likewise.
10071         * math/w_logl.c (__logl): Likewise.
10072         * math/w_powl.c (__powl): Likewise.
10073         * math/w_remainderl.c (__remainderl): Likewise.
10074         * math/w_scalbl.c (sysv_scalbl): Likewise.
10075         * math/w_sinhl.c (__sinhl): Likewise.
10076         * math/w_sqrtl.c (__sqrtl): Likewise.
10077         * math/w_tgammal.c (__tgammal): Likewise.
10078         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10079         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10080         * math/libm-test.inc (acos_test): Add more tests.
10081         (acosh_test): Likewise.
10082         (asin_test): Likewise.
10083         (atanh_test): Likewise.
10084         (exp_test): Likewise.
10085         (exp10_test): Likewise.
10086         (exp2_test): Likewise.
10087         (expm1_test): Likewise.
10088         (lgamma_test): Likewise.
10089         (log_test): Likewise.
10090         (log10_test): Likewise.
10091         (log1p_test): Likewise.
10092         (log2_test): Likewise.
10093         (pow_test): Do not allow some spurious overflow exceptions.
10094         (sqrt_test): Add more tests.
10095         (tgamma_test): Likewise.
10096         (y0_test): Likewise.
10097         (y1_test): Likewise.
10098         (yn_test): Likewise.
10099
10100 2012-03-27  Anton Blanchard  <anton@samba.org>
10101
10102         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10103         MAP_HUGETLB.
10104         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10105         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10106         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10107
10108 2012-03-27  David S. Miller  <davem@davemloft.net>
10109
10110         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10111
10112         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10113         have-as-vis3 check.
10114
10115 2012-03-27  Andreas Jaeger  <aj@suse.de>
10116
10117         * sysdeps/x86_64/elf/configure.in: Moved to ...
10118         * sysdeps/x86_64/configure.in: ... here.
10119         * sysdeps/x86_64/elf/start.S: Moved to ...
10120         * sysdeps/x86_64/start.S: ... here.
10121         * sysdeps/x86_64/elf/configure: Delete.
10122
10123         * sysdeps/x86_64/configure.in: Merge contents from
10124         sysdeps/i386/configure.in (without i686 check).
10125
10126         * sysdeps/i386/elf/Versions: Merge into ...
10127         * sysdeps/i386/Versions: ... this.
10128         * sysdeps/i386/elf/Versions: Delete file.
10129         * sysdeps/i386/elf/start.S: Moved to ...
10130         * sysdeps/i386/start.S: ...here.
10131         * sysdeps/i386/elf/configure.in: Merge into...
10132         * sysdeps/i386/configure.in: ...here.
10133         * sysdeps/i386/elf/configure.in: Delete file.
10134         * sysdeps/i386/elf/configure: Delete file.
10135
10136         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10137         * debug/backtracesyms.c: ... here.
10138         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10139         * debug/backtracesymsfd.c: ... here.
10140         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10141         * sysdeps/generic/ifunc-sel.h: ... here.
10142
10143         * sysdeps/unix/i386/start.c: Delete file.
10144         * sysdeps/unix/sparc/start.c: Delete file.
10145         * sysdeps/unix/start.c: Delete file.
10146
10147         * sysdeps/sh/elf/configure.in: Moved to ...
10148         * sysdeps/sh/configure.in: ... here.
10149         * sysdeps/sh/elf/start.S: Moved to ...
10150         * sysdeps/sh/start.S: ... here.
10151         * sysdeps/sh/elf/configure: Delete file.
10152
10153         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10154         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10155         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10156         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10157         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10158         * sysdeps/powerpc/powerpc64/start.S: here.
10159         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10160         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10161         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10162         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10163         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10164
10165         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10166         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10167         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10168         * sysdeps/powerpc/powerpc32/start.S: ... here.
10169         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10170         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10171         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10172
10173         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10174         * sysdeps/powerpc/ifunc-sel.h: ... here.
10175         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10176         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10177
10178         * sysdeps/sparc/elf/configure.in: Moved to ...
10179         * sysdeps/sparc/configure.in: ... here.
10180         * sysdeps/sparc/elf/configure: Delete file.
10181         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10182         * sysdeps/sparc/sparc32/start.S: ... here.
10183         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10184         * sysdeps/sparc/sparc64/start.S: ... here.
10185         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10186         * sysdeps/sparc/sparc32/Makefile: ... this.
10187         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10188         * sysdeps/sparc/sparc64/Makefile: ... this.
10189
10190         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10191         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10192         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10193         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10194         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10195         * sysdeps/s390/s390-32/setjmp.S: ... here.
10196         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10197         * sysdeps/s390/s390-32/configure.in: ... here.
10198         * sysdeps/s390/s390-32/elf/configure: Delete file.
10199         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10200         * sysdeps/s390/s390-32/start.S: ... here.
10201
10202         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10203         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10204         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10205         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10206         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10207         * sysdeps/s390/s390-64/setjmp.S: ... here.
10208         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10209         * sysdeps/s390/s390-64/configure.in: ... here
10210         * sysdeps/s390/s390-64/elf/configure: Delete file.
10211         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10212         * sysdeps/s390/s390-64/start.S: ... here.
10213         * sysdeps/s390/s390-64/elf/configure: Delete.
10214
10215         * configure.in: Remove support for elf directories in sysdeps.
10216
10217         * configure: Regenerated.
10218         * sysdeps/i386/configure: Regenerated.
10219         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10220         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10221         * sysdeps/s390/s390-32/configure: Regenerated.
10222         * sysdeps/s390/s390-64/configure: Regenerated.
10223         * sysdeps/sh/configure: Regenerated.
10224         * sysdeps/sparc/configure: Regenerated.
10225         * sysdeps/x86_64/configure: Regenerated.
10226
10227 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10228
10229         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10230
10231         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10232         denormal result into account.
10233
10234 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10235
10236         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10237         Reported by Allan McRae <allan@archlinux.org>.
10238
10239 2012-03-23  Jeff Law  <law@redhat.com>
10240
10241         * nss/getnssent.c (__nss_getent): Fix typo.
10242
10243 2012-03-23  David S. Miller  <davem@davemloft.net>
10244
10245         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10246
10247 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10248
10249         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10250         to pad to uint64_t for each field.
10251         (dl_tls_index): Replace unsigned long with uint64_t.
10252
10253 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10254         Paul Pluzhnikov  <ppluzhnikov@google.com>
10255
10256         [BZ #6528]
10257         * grp/Makefile (otherlibs): Don't set it.
10258         * inet/Makefile (otherlibs): Likewise.
10259         * login/Makefile (otherlibs): Likewise.
10260         * nscd/Makefile (otherlibs): Likewise.
10261         * posix/Makefile (otherlibs): Likewise.
10262         * pwd/Makefile (otherlibs): Likewise.
10263         * rt/Makefile (otherlibs): Likewise.
10264         * sunrpc/Makefile (otherlibs): Likewise.
10265         * nss/Makefile (otherlibs): Likewise.
10266         Add libnss_files to routines and static-only-routines.
10267         ($(objpfx)getent): Remove rule.
10268         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10269         static-only-routines.
10270
10271 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10272
10273         [BZ #13892]
10274         * math/s_cexp.c: Include <float.h>.
10275         (__cexp): Handle exp result overflowing not necessarily
10276         overflowing both real and imaginary parts of result.
10277         * math/s_cexpf.c: Likewise.
10278         * math/s_cexpl.c: Likewise.
10279         * math/libm-test.inc (cexp_test): Add more tests.
10280         * sysdeps/i386/fpu/libm-test-ulps: Update.
10281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10282
10283 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10284
10285         * include/link.h (ELFW): New macro.
10286         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10287         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10288
10289 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10290
10291         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10292         with uint64_t.
10293
10294 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10295
10296         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10297         declaration.
10298         (struct La_x32_retval): Likewise.
10299
10300 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10301
10302         * sysdeps/x86_64/preconfigure.in: New file.
10303         * sysdeps/x86_64/preconfigure: New generated file.
10304
10305 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10306
10307         [BZ #13824]
10308         * math/e_exp2l.c: Include <float.h>.
10309         (__ieee754_exp2l): Handle overflow and underflow cases
10310         separately.  Only pass fractional part of argument to
10311         __ieee754_expl.
10312         * math/libm-test.inc (exp2_test): Add more tests.
10313
10314         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10315         negating x to take absolute value.
10316         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10317         Likewise.
10318         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10319         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10320         Likewise.
10321         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10322         computing low part if x was negated.
10323         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10324
10325 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10326
10327         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10328         la_x32_gnu_pltexit.
10329         (pltexit): Cast int_retval to ptrdiff_t.
10330         * elf/tst-auditmod3b.c: Likewise.
10331         * elf/tst-auditmod4b.c: Likewise.
10332         * elf/tst-auditmod5b.c: Likewise.
10333         * elf/tst-auditmod6b.c: Likewise.
10334         * elf/tst-auditmod6c.c: Likewise.
10335         * elf/tst-auditmod7b.c: Likewise.
10336
10337         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10338         and x32_gnu_pltexit.
10339
10340         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10341         __ELF_NATIVE_CLASS.
10342         (La_x32_regs): New macro.
10343         (La_x32_retval): Likewise.
10344         (la_x32_gnu_pltenter): New function prototype.
10345         (la_x32_gnu_pltexit): Likewise.
10346
10347 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10348
10349         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10350         exponent.
10351
10352         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10353
10354         * configure.in (libc_cv_cc_nofma): Check for option to disable
10355         generation of FMA instructions.
10356         * configure: Regenerate.
10357         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10358         * sysdeps/ieee754/dbl-64/Makefile: New file.
10359         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10360         Remove brandred-fma4.
10361         (CFLAGS-brandred-fma4.c): Remove.
10362         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10363         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10364         define.
10365         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10366         define.
10367
10368 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10369
10370         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10371         LLONG_MAX != LONG_MAX.
10372         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10373         (_fitoa_word): Likewise.
10374         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10375         LLONG_MAX != LONG_MAX.
10376         * stdio-common/_itowa.h: Include <_itoa.h>.
10377         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10378         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10379         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10380         only if not defined.
10381         (_ITOA_WORD_TYPE): Likewise.
10382         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10383         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10384
10385 2012-03-21  David S. Miller  <davem@davemloft.net>
10386
10387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10388
10389 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10390
10391         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10392         of x86_64 when setting libc_cv_slibdir, libdir and
10393         libc_cv_localedir.
10394         * sysdeps/unix/sysv/linux/configure: Regenerated.
10395
10396 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10397
10398         * manual/lang.texi (Old Varargs): Remove section.
10399         (How Variadic): Update menu.
10400         (va_start): Do not mention varargs.h.
10401
10402 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10403             Joseph Myers  <joseph@codesourcery.com>
10404
10405         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10406         link test.
10407         * configure: Regenerated.
10408
10409 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10410
10411         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10412         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10413         conformtest.pl
10414
10415 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10416
10417         * NOTES: Remove.
10418         * Makefile (files-for-dist): Remove NOTES.
10419         (NOTES): Remove rule.
10420         * README: Don't refer to NOTES.
10421         * manual/creature.texi: Don't include macros.texi.
10422         * manual/intro.texi (creature.texi): Remove comment referring to
10423         NOTES.
10424
10425         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10426         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10427         * configure: Regenerated.
10428         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10429         LIBC_TRY_CC_OPTION.
10430         (libc_cv_as_i686): Likewise.
10431         (libc_cv_cc_avx): Likewise.
10432         (libc_cv_cc_sse2avx): Likewise.
10433         (libc_cv_cc_fma4): Likewise.
10434         (libc_cv_cc_novzeroupper): Likewise.
10435         * sysdeps/i386/configure: Regenerated.
10436
10437         [BZ #13883]
10438         * sysdeps/i386/fpu/s_cexp.S: Remove.
10439         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10440         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10441         * math/libm-test.inc (cexp_test): Add more tests.
10442         * sysdeps/i386/fpu/libm-test-ulps: Update.
10443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10444
10445 2012-03-21  Allan McRae  <allan@archlinux.org>
10446
10447         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10448
10449 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10450
10451         [BZ #13871]
10452         * math/w_exp2.c: Do not include <float.h>.
10453         (o_threshold, u_threshold): Remove.
10454         (__exp2): Calculate result before checking finiteness and calling
10455         __kernel_standard.
10456         * math/w_exp2f.c: Likewise.
10457         * math/w_exp2l.c: Likewise.
10458         * math/libm-test.inc (exp2_test): Require overflow exception for
10459         1e6 input.
10460
10461         [BZ #3866]
10462         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10463         range of signed 64-bit integers before using fistpll.  Remove
10464         checks for whether integers fit in mantissa bits.
10465         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10466         the range of signed 32-bit integers before using fistpl.  Remove
10467         checks for whether integers fit in mantissa bits.
10468         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10469         (__ieee754_powl): Test for y outside the range of signed 64-bit
10470         integers before using fistpll.  Reduce 64-bit values to 63-bit
10471         ones as needed.
10472         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10473         divide-by-zero is raised for zero to large negative powers.
10474         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10475         (__ieee754_powl): Test for y outside the range of signed 64-bit
10476         integers before using fistpll.  Reduce 64-bit values to 63-bit
10477         ones as needed.
10478         * math/libm-test.inc (pow_test): Add more tests.
10479
10480 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10481
10482         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10483         <stdio-common/_itoa.h>.
10484         * debug/segfault.c: Likewise.
10485         * elf/dl-cache.c: Likewise.
10486         * elf/dl-minimal.c: Likewise.
10487         * elf/dl-misc.c: Likewise.
10488         * elf/dl-sysdep.c: Likewise.
10489         * elf/dl-version.c: Likewise.
10490         * elf/rtld.c: Likewise.
10491         * hurd/hurdsock.c: Likewise.
10492         * hurd/lookup-retry.c: Likewise.
10493         * malloc/malloc.c: Likewise.
10494         * malloc/mtrace.c: Likewise.
10495         * nscd/nscd_getgr_r.c: Likewise.
10496         * nscd/nscd_getpw_r.c: Likewise.
10497         * nscd/nscd_getserv_r.c: Likewise.
10498         * posix/getopt_init.c: Likewise.
10499         * posix/wordexp.c: Likewise.
10500         * stdio-common/_itoa.c: Likewise.
10501         * stdio-common/printf_fphex.c: Likewise.
10502         * stdio-common/vfprintf.c: Likewise.
10503         * string/_strerror.c: Likewise.
10504         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10505         * sysdeps/i386/i686/hp-timing.h: Likewise.
10506         * sysdeps/mach/_strerror.c: Likewise.
10507         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10508         * sysdeps/mach/hurd/sethostid.c: Likewise.
10509         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10510         * sysdeps/mach/xpg-strerror.c: Likewise.
10511         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10512         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10513         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10514         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10515         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10516         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10517         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10518         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10519         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10520         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10521         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10522         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10523         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10524         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10525         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10526         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10527         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10528         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10529         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10530         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10531         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10532
10533         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10534
10535         * stdio-common/_itoa.h: Moved to ...
10536         * sysdeps/generic/_itoa.h: Here.
10537
10538         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10539
10540         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10541         instead of "_itoa.h" and "_itowa.h".
10542         * stdio-common/vfprintf.: Likewise.
10543
10544 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10545
10546         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10547         <bits/wordsize.h>.
10548         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10549         (__signbit): Likwise.
10550         (llrintf): Likwise.
10551         (llrint): Likwise.
10552
10553 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10554
10555         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10556         __WORDSIZE != 64.
10557
10558 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10559
10560         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10561         OVERFLOW_EXCEPTION_OK.
10562         * math/libm-test.inc ("Philosophy"): Update comment about
10563         exception testing.
10564         (OVERFLOW_EXCEPTION): Define.
10565         (OVERFLOW_EXCEPTION_OK): Likewise.
10566         (INVALID_EXCEPTION_OK): Renumber.
10567         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10568         (IGNORE_ZERO_INF_SIGN): Likewise.
10569         (test_exceptions): Handle FE_OVERFLOW.
10570         (exp10_test): Expect overflow exceptions.
10571         (exp2_test): Likewise.
10572         (expm1_test): Likewise.
10573         (nextafter_test): Likewise.
10574         (pow_test): Likewise.
10575         (scalbn_test): Likewise.
10576         (scalbln_test): Likewise.
10577
10578 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10579
10580         * sysdeps/x86_64/bits/atomic.h
10581         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10582         64bit integer.
10583         (atomic_exchange_acq): Likewise.
10584         (__arch_exchange_and_add_body): Likewise.
10585         (__arch_add_body): Likewise.
10586         (atomic_add_negative): Likewise.
10587         (atomic_add_zero): Likewise.
10588
10589 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10590
10591         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10592         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10593
10594 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10595
10596         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10597         Check __x86_64__ instead of __WORDSIZE.
10598
10599 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10600
10601         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10602
10603 2012-03-19  David S. Miller  <davem@davemloft.net>
10604
10605         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10606
10607         * sysdeps/sparc/fpu/fenv_private.h: New file.
10608         * sysdeps/sparc/fpu/math_private.h: Use it.
10609         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10610         Remove.
10611         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10612         (libc_feholdexcept_setroundl): Remove.
10613         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10614         Remove.
10615         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10616         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10617
10618 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10619
10620         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10621         int64_t instead of long int.
10622         (INSERT_WORDS64): Likwise.
10623
10624 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10625
10626         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10627         _Unwind_GetCFA return to _Unwind_Ptr first.
10628
10629 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10630
10631         [BZ #13629]
10632         * math/s_clog.c: Include <float.h>.
10633         (__clog): Scale large or subnormal inputs.
10634         * math/s_clogf.c: Likewise.
10635         * math/s_clogl.c: Likewise.
10636         * math/s_clog10.c: Include <float.h>.
10637         (M_LOG10_2): Define.
10638         (__clog10): Scale large or subnormal inputs.
10639         * math/s_clog10f.c: Likewise.
10640         * math/s_clog10l.c: Likewise.
10641         * math/libm-test.inc (clog_test): Add more tests.
10642         (clog10_test): Likewise.
10643         * sysdeps/i386/fpu/libm-test-ulps: Update.
10644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10645
10646         [BZ #11451]
10647         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10648         x and y.
10649         * math/libm-test.inc (atan2_test): Add another test.
10650
10651         * Makerules (common-objdir-compile): Remove.
10652         * sysdeps/unix/Makefile (config-generated): Do not add
10653         $(unix-generated) to variable.
10654         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10655         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10656         Remove rule.
10657         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10658         Likewise.
10659         [generic bits/local_lim.h] (before-compile): Do not append to
10660         variable.
10661         [generic bits/local_lim.h] (common-generated): Likewise.
10662         [generic sys/param.h] (before-compile): Do not append to variable.
10663         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10664         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10665         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10666         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10667         include.
10668         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10669         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10670         [generic sys/param.h] ($(addprefix
10671         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10672         [generic sys/param.h] (common-generated): Do not append to
10673         variable.
10674         [generic sys/param.h] (sysdep_headers): Likewise.
10675         [generic bits/errno.h] (before-compile): Do not append to
10676         variable.
10677         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10678         rule.
10679         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10680         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10681         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10682         [generic bits/errno.h] (common-generated): Do not append to
10683         variable.
10684         [generic bits/ioctls.h] (before-compile): Do not append to
10685         variable.
10686         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10687         rule.
10688         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10689         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10690         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10691         rule.
10692         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10693         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10694         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10695         [generic bits/ioctls.h] (common-generated): Do not append to
10696         variable.
10697         [generic sys/syscall.h] (syscall.h): Remove variable.
10698         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10699         rule.
10700         [generic sys/syscall.h] (before-compile): Do not append to
10701         variable.
10702         [generic sys/syscall.h] (common-generated): Likewise.
10703         * sysdeps/unix/errnos-tmpl.c: Remove file.
10704         * sysdeps/unix/errnos.awk: Likewise.
10705         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10706         * sysdeps/unix/ioctls.awk: Likewise.
10707         * sysdeps/unix/mk-local_lim.c: Likewise.
10708         * sysdeps/unix/snarf-ioctls: Likewise.
10709
10710 2012-03-19  Richard Henderson  <rth@twiddle.net>
10711
10712         * sysdeps/i386/fpu/fenv_private.h: New file.
10713         * sysdeps/i386/fpu/math_private.h: Use it.
10714         (math_opt_barrier, math_force_eval): Remove.
10715         (libc_feholdexcept_setround_53bit): Remove.
10716         (libc_feupdateenv_53bit): Remove.
10717         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10718         (math_opt_barrier, math_force_eval): Remove.
10719         (libc_feholdexcept): Remove.
10720         (libc_feholdexcept_setround): Remove.
10721         (libc_fetestexcept, libc_fesetenv): Remove.
10722         (libc_feupdateenv_test): Remove.
10723         (libc_feupdateenv, libc_feholdsetround): Remove.
10724         (libc_feresetround): Remove.
10725
10726         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10727         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10728
10729         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10730         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10731         (libc_feupdateenv_testl): New.
10732         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10733         (libc_feupdateenv_testf): New.
10734         (libc_feupdateenv): Use libc_feupdateenv_test.
10735         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10736         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10737
10738         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10739         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10740         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10741         (libc_feresetround_noex): New.
10742         (libc_feresetround_noexf): New.
10743         (libc_feresetround_noexl): New.
10744         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10745         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10746         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10747         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10748         SET_RESTORE_ROUND.
10749         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10750         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10751         (__cos): Likewise.
10752         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10753         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10754         SET_RESTORE_ROUND_NOEX.
10755         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10756         SET_RESTORE_ROUND_NOEXF.
10757         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10758         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10759         (libc_feholdsetroundf): New.
10760         (libc_feresetround, libc_feresetroundf): New.
10761
10762         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10763         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10764         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10765
10766         * sysdeps/generic/math_private.h: Include <fenv.h>.
10767         (default_libc_feholdexcept): New.
10768         (default_libc_feholdexcept_setround): New.
10769         (default_libc_fesetenv, default_libc_feupdateenv): New.
10770         (libc_feholdexcept): Only define if undefined.
10771         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10772         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10773         (libc_feholdexcept_setroundl): Likewise.
10774         (libc_feholdexcept_setround_53bit): Likewise.
10775         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10776         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10777         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10778         (libc_feupdateenv_53bit): Likewise.
10779         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10780         (libc_feholdexcept): Convert from macro to inline function.
10781         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10782         (libc_fesetenv, libc_feupdateenv): Likewise.
10783
10784         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10785         not previously defined.
10786         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10787         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10788         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10789         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10790         * sysdeps/ieee754/flt-32/math_private.h: New file.
10791         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10792         math_private.h below SET_FLOAT_WORD.
10793         (__isnan, __isinf_ns, __finite): Remove.
10794         (__isnanf, __isinf_nsf, __finitef): Remove.
10795
10796 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10797
10798         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10799
10800 2012-03-17  David S. Miller  <davem@davemloft.net>
10801
10802         [BZ #6471]
10803         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10804         for 2.16.
10805
10806 2012-03-16  David S. Miller  <davem@davemloft.net>
10807
10808         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10809         warnings.
10810
10811         [BZ #6471]
10812         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10813         properly.
10814         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10815         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10816         sysdep_routines when subdir is sysvipc.
10817         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10818         __getshmlba helper.
10819
10820         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10821
10822 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10823
10824         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10825         [__LP64__].
10826
10827 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10828
10829         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10830         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10831         (__lround): Renamed to ...
10832         (__llround): This.  Replace long int with long long int.
10833         Define lround functions as aliases of llround functions.
10834         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10835
10836 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10837
10838         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10839         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10840         adresses to uintptr_t.  Replace "long int" and "unsigned long
10841         int" with "greg_t" on va_arg.
10842
10843 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10844
10845         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10846         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10847
10848         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10849         Move e_machine check before EI_CLASS check.  Handle x32
10850         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10851         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10852         SKIP_EM_IA_64 and include
10853         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10854
10855         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10856         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10857         (add_system_dir): New macro.
10858
10859         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10860         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10861
10862 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10863
10864         [BZ #2551]
10865         [BZ #2552]
10866         [BZ #2553]
10867         [BZ #2554]
10868         [BZ #2562]
10869         [BZ #2563]
10870         [BZ #2565]
10871         [BZ #2566]
10872         [BZ #2576]
10873         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10874         (y0): Likewise.
10875         * math/w_j0f.c (j0f): Likewise.
10876         (y0f): Likewise.
10877         * math/w_j0l.c (__j0l): Likewise.
10878         (__y0l): Likewise.
10879         * math/w_j1.c (j1): Likewise.
10880         (y1): Likewise.
10881         * math/w_j1f.c (j1f): Likewise.
10882         (y1f): Likewise.
10883         * math/w_j1l.c (__j1l): Likewise.
10884         (__y1l): Likewise.
10885         * math/w_jn.c (jn): Likewise.
10886         (yn): Likewise.
10887         * math/w_jnf.c (jnf): Likewise.
10888         (ynf): Likewise.
10889         * math/w_jnl.c (__jnl): Likewise.
10890         (__ynl): Likewise.
10891         * math/libm-test.inc (j0_test): Add more tests.
10892         (j1_test): Likewise.
10893         (jn_test): Likewise.  Add trailing semicolon to existing test.
10894         (y0_test): Likewise.
10895         (y1_test): Likewise.
10896         * sysdeps/i386/fpu/libm-test-ulps: Update.
10897         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10898
10899         [BZ #13851]
10900         [BZ #13854]
10901         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10902         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10903         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10904         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10905         (__tanl): Set errno for infinite argument.
10906         * sysdeps/i386/fpu/mptan.c: Remove.
10907         * sysdeps/i386/fpu/s_tan.S: Likewise.
10908         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10909         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10910         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10911         * math/libm-test.inc (tan_test): Add more tests and enable more
10912         tests for double and long double.
10913         * sysdeps/i386/fpu/libm-test-ulps: Update.
10914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10915
10916 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10917
10918         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10919         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10920
10921 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10922
10923         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10924         * configure.in: Use it for both main tree and add-ons.
10925         * configure: Regenerated.
10926
10927 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10928
10929         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10930
10931 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10932
10933         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10934         in comment.
10935
10936         [BZ #13851]
10937         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10938         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10939         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10940         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10941         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10942         infinite argument.
10943         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10944         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10945         != 0 for prec == 2.
10946         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10947         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10948         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10949         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10950         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10951         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10952         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10953         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10954         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10955         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10956         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10957         * math/libm-test.inc (cos_test): Add more tests and enable more
10958         tests for long double.
10959         (sin_test): Likewise.
10960         (sincos_test): Likewise.
10961         * sysdeps/i386/fpu/libm-test-ulps: Update.
10962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10963
10964 2012-03-16  David S. Miller  <davem@davemloft.net>
10965
10966         * sysdeps/sparc/fpu/math_private.h: New file.
10967
10968 2012-03-15  David S. Miller  <davem@davemloft.net>
10969
10970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10971         file.
10972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10974         file.
10975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10976         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10977         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10978         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10979         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10980         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10981         sysdep routines.
10982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10983
10984         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10985         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10986
10987         * sysdeps/sparc/sparc-ifunc.h: New file.
10988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10989         sparc-ifunc.h
10990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10992         Likewise.
10993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10994         Likewise.
10995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10999         Likewise.
11000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
11001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
11002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
11003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
11004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
11005         Likewise.
11006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
11007         Likewise.
11008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
11009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
11010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
11011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
11012         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11013         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11014         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
11015         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
11016         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11017         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11018         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
11019         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
11020         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
11021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
11022         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
11023         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
11024         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
11025         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
11026         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
11027         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
11028         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11029         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11030         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11031         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11032
11033 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11034
11035         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11036         scaling.
11037         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11038
11039 2012-03-15  Andreas Jaeger  <aj@suse.de>
11040
11041         [BZ #13852]
11042         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11043         ieee754/flt-32 implementation for sin, cos and sincos.
11044         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11045         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11046         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11047         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11048         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11049         ieee754/flt-32 implementation for tan.
11050
11051         * math/libm-test.inc (cos_test): Enable some large input tests for
11052         float as well
11053         (sin_test): Likewise.
11054         (sincos_test): Likewise.
11055         (tan_test): Add tests for large input.
11056
11057         * sysdeps/i386/fpu/libm-test-ulps: Update.
11058
11059 2012-03-15  Andreas Jaeger  <aj@suse.de>
11060
11061         [BZ #13658]
11062         * math/libm-test.inc (cos_test): Add more test cases.
11063         (sin_test): Likewise.
11064         (sincos_test): Likewise.
11065
11066 2012-03-15  Andreas Jaeger  <aj@suse.de>
11067
11068         [BZ #13837]
11069         * math/libm-test.inc (cos_test): Add a test case for large input
11070         value.
11071         (sin_test): Likewise.
11072         (sincos_test): Likewise.
11073
11074 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11075         Joseph Myers  <joseph@codesourcery.com>
11076
11077         [BZ #13658]
11078         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11079         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11080         * sysdeps/i386/fpu/branred.c: Likewise.
11081         * sysdeps/i386/fpu/dosincos.c: Likewise.
11082         * sysdeps/i386/fpu/mpa.c: Likewise.
11083         * sysdeps/i386/fpu/s_cos.S: Likewise.
11084         * sysdeps/i386/fpu/s_sin.S: Likewise.
11085         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11086         * sysdeps/i386/fpu/sincos32.c: Likewise.
11087
11088         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11089         Define.
11090         (libc_feupdateenv_53bit): Define.
11091         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11092         Define.
11093         (libc_feupdateenv_53bit): Define.
11094
11095         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11096         53 bit (without extend i386 double precision).
11097
11098         * math/libm-test.inc (sincos_test): Add tests for large input.
11099         (sin): Likewise.
11100         (cos): Likewise.
11101
11102         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11103
11104 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11105
11106         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11107
11108 2012-03-15  David S. Miller  <davem@davemloft.net>
11109
11110         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11111         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11112         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11113         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11114         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11118         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11119         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11120         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11121         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11122         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11123         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11124         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11126         file.
11127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11129         file.
11130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11132         file.
11133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11135         file.
11136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11137         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11138         fmin/fmax sysdep routines.
11139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11140
11141 2012-03-14  David S. Miller  <davem@davemloft.net>
11142
11143         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11144         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11145         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11146         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11147         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11148         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11149         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11150         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11151         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11152         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11153         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11154         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11155         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11156         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11157         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11158         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11159         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11160         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11161         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11162         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11163         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11164         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11165         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11166         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11167         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11168         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11169         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11170         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11171         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11172         routines.
11173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11174         file.
11175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11177         file.
11178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11180         file.
11181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11183         file.
11184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11186         file.
11187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11189         file.
11190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11191         file.
11192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11193         file.
11194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11195         file.
11196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11197         New file.
11198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11199         file.
11200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11201         file.
11202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11204         file.
11205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11207         file.
11208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11210         file.
11211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11213         VIS3 routines.
11214
11215         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11216         New file.
11217
11218         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11219
11220         * sysdeps/sparc/configure.in: New file.
11221         * sysdeps/sparc/configure: Generate.
11222         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11223         * configure: Regenerate.
11224         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11225         * config.make.in (have-as-vis3): New.
11226         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11227         available use -Av9d instead of -Av9a.
11228         * sysdeps/sparc/sparc64/Makefile: Likewise.
11229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11231         New file.
11232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11233         file.
11234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11235         New file.
11236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11237         file.
11238         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11239         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11240         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11241         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11242         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11243
11244         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11245         fzeros/fnegs to load 0x80000000 into a float register instead of
11246         using the stack.
11247         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11248
11249 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11250
11251         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11252         bits/syscall.h.
11253         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11254         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11255         ($(inst_includedir)/bits/syscall.h): Remove rule.
11256         ($(objpfx)bits/syscall.d): Include instead of
11257         $(objpfx)syscall-list.d.
11258         (generated): Change syscall-list.h and syscall-list.d to
11259         bits/syscall.h and bits/syscall.d.
11260
11261 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11262
11263         [BZ #13846]
11264         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11265
11266 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11267
11268         [BZ #13841]
11269         * math/s_csqrt.c: Include <float.h>.
11270         (__csqrt): Scale large or subnormal inputs.
11271         * math/s_csqrtf.c: Likewise.
11272         * math/s_csqrtl.c: Likewise.
11273         * math/libm-test.inc (csqrt_test): Add more tests.
11274         * sysdeps/i386/fpu/libm-test-ulps: Update.
11275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11276
11277         [BZ #13840]
11278         * math/libm-test.inc (hypot_test): Add more tests.
11279
11280 2012-03-13  David S. Miller  <davem@davemloft.net>
11281
11282         [BZ #13840]
11283         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11284         double-precision for the calculation instead of scaling.
11285
11286 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11287
11288         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11289         manipulate bits before adding and subtracting TWO52[sx].
11290         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11291         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11292         Likewise.
11293         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11294
11295 2012-03-13  David S. Miller  <davem@davemloft.net>
11296
11297         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11298         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11299         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11300         rtld-global-offsets.h
11301         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11302
11303         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11304         large parameters.
11305
11306         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11307
11308         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11309         'err' in the ifdef scope in which it is actually used.
11310
11311         * nss/nss_db/db-init.c: Include string.h
11312
11313 2012-03-12  David S. Miller  <davem@davemloft.net>
11314
11315         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11316         masking out of the most significant byte of random value used.
11317         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11318         Fix coding style in previous change.
11319
11320         * sysdeps/unix/sysv/linux/kernel-features.h
11321         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11322         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11323         expression.
11324         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11325         later.
11326
11327 2012-03-11  David S. Miller  <davem@davemloft.net>
11328
11329         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11330         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11331         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11332         for 'resultvar' otherwise things get truncated on 64-bit.
11333
11334         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11335         Fix masking out of the most significant byte of random value used.
11336
11337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11338
11339 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11340
11341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11342
11343 2012-03-09  David S. Miller  <davem@davemloft.net>
11344
11345         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11346         variables with appropriate CPP guards.
11347         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11348         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11349         on resulting framesize and the management of the outregs buffer for pltexit.
11350         Preserve floating point return values across _dl_call_pltexit call.
11351         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11352         framesize and the management of the outregs buffer for pltexit.
11353         Preserve floating point return values across _dl_call_pltexit
11354         call.
11355         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11356         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11357         (print_exit): Fix format string for return register value.
11358
11359 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11360
11361         * sunrpc/Makefile (others): Add rpcgen.
11362         ($(objpfx)rpcgen): Remove special build rule and dependency on
11363         libc.
11364         * sunrpc/rpcgen.c: New file.
11365
11366 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11367
11368         [BZ #13673]
11369         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11370         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11371         * sysdeps/i386/crti.S: Likewise.
11372         * sysdeps/i386/crtn.S: Likewise.
11373         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11374         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11375         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11376         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11377         * sysdeps/sh/crti.S: Likewise.
11378         * sysdeps/sh/crtn.S: Likewise.
11379         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11380
11381         [BZ #13673]
11382         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11383         with URL.
11384         * locale/programs/locfile-kw.gperf: Likewise.
11385         * locale/programs/charmap-kw.h: Regenerated.
11386         * locale/programs/locfile-kw.h: Likewise.
11387
11388         [BZ #13673]
11389         * intl/plural.y: Replace FSF snail mail address with URL.
11390         * intl/plural.c: Regenerated.
11391
11392 2012-03-09  Richard Henderson  <rth@twiddle.net>
11393
11394         * include/math_private.h: Remove file.
11395         * math/math_private.h: Move file ...
11396         * sysdeps/generic/math_private.h: ... here.
11397
11398         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11399         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11400         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11401
11402         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11403         and <math_private.h>.
11404         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11405         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11406         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11407         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11408         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11409         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11410         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11411         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11412         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11413         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11414         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11415         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11416         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11417         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11418         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11419         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11420         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11421         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11422         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11423         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11424         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11425         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11426         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11427         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11428         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11429         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11430         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11431         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11432         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11433         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11434         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11435         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11436         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11437         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11438         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11439         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11440         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11441         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11442         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11443         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11444         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11445         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11446         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11447         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11448         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11449         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11450         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11451         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11452         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11453         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11454         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11455         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11456         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11457         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11458         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11459         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11460         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11461         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11462         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11463         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11464         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11465         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11466         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11467         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11468         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11469         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11470         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11471         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11472         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11473         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11474         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11475         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11476         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11477         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11478         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11479         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11480         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11481         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11482         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11483         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11484         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11485         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11486         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11487         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11488         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11489         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11490         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11491         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11492         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11493         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11494         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11495         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11496         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11497         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11498         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11499         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11500         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11501         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11502         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11503         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11504         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11505         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11506         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11507         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11508         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11509         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11510         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11511         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11512         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11513         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11514         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11515         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11516         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11517         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11518         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11519         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11520         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11521         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11522         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11523         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11524         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11525         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11526         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11527         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11528         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11529         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11530         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11531         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11532         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11533         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11534         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11535         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11536         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11537         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11538         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11539         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11540         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11541         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11542         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11543         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11544         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11545         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11546         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11547         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11548         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11549         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11550         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11551         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11552         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11553         * sysdeps/ieee754/k_standard.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11581         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11585         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11592         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11593         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11599         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11604         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11605         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11606         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11616         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11622         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11624         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11625         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11626         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11627         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11629         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11631         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11636         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11638         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11639         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11640         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11641         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11642         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11643         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11644         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11645         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11646         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11647         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11649         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11651         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11657         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11658         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11659         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11664         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11666         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11669         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11673         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11676         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11678         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11679         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11680         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11681         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11683         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11685         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11686         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11687         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11688         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11689         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11690         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11691         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11692         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11693         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11694         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11695         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11696         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11697         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11698         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11699         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11700         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11701         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11702         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11703         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11704         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11705         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11706         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11707         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11708         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11709         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11710         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11711         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11712         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11713         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11714         * sysdeps/ieee754/s_lib_version.c: Likewise.
11715         * sysdeps/ieee754/s_matherr.c: Likewise.
11716         * sysdeps/ieee754/s_signgam.c: Likewise.
11717         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11718         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11719         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11720         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11721         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11722         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11723         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11724         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11725         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11726         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11727         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11728         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11729         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11730         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11731         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11732         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11733         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11734         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11735         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11736         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11737         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11738
11739 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11740
11741         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11742         * sunrpc/rpc_main.c: Likewise.
11743         * sunrpc/rpc_svcout.c: Likewise.
11744
11745 2012-03-09  David S. Miller  <davem@davemloft.net>
11746
11747         * include/math_private.h: New file.
11748
11749 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11750
11751         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11752         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11753         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11754         from <bits/socket_type.h>.
11755         (enum __socket_type): Don't define here.
11756         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11757         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11758         bits/socket_type.h.
11759
11760         [BZ #13566]
11761         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11762         checking __USE_GNU.
11763
11764         * Makerules ($(inst_includedir)/%.h): New rule.
11765         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11766         (install-others): Remove variable setting.
11767         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11768
11769 2012-03-08  Richard Henderson  <rth@twiddle.net>
11770
11771         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11772         from macro to inline function; merge with the
11773         !__LIBC_INTERNAL_MATH_INLINES version.
11774         (__ieee754_sqrtf): Likewise.
11775
11776         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11777         to inline function.
11778         (__rintf, __floor, __floorf): Likewise.
11779
11780         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11781         macro to inline function.
11782         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11783
11784         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11785         not <math/math_private.h>.
11786
11787 2012-03-08  David S. Miller  <davem@davemloft.net>
11788
11789         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11790         copyright year.
11791         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11792
11793 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11794
11795         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11796         normalization.
11797         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11798         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11799
11800 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11801
11802         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11803         be defined individually, they must be defined as a block.  Define
11804         S for printing a string instead of hidint the different by using a
11805         macro for adding the 'l'.
11806         * stdio-common/tst-fphex-wide.c: Adjust.
11807
11808 2012-03-07  Marek Polacek  <polacek@redhat.com>
11809
11810         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11811
11812 2012-03-08  Marek Polacek  <polacek@redhat.com>
11813
11814         [BZ #13806]
11815         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11816         * stdio-common/tst-fphex.c: Define a few macros to make the
11817         test reusable.  Use them.
11818         * stdio-common/tst-fphex-wide.c: New file.
11819
11820 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11821
11822         [BZ #6911]
11823         * manual/macros.texi (gnusystems): New macro.
11824         (nongnusystems): Likewise.
11825         (gnulinuxhurdsystems): Likewise.
11826         (gnuhurdsystems): Likewise..
11827         (gnulinuxsystems): Likewise.
11828         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11829         variants of the GNU system, not "GNU system".
11830         * manual/conf.texi: Likewise.
11831         * manual/errno.texi: Likewise.  Update example of errno macro
11832         expansion.
11833         * manual/filesys.texi: Likewise.
11834         (getumask): Document as specific to GNU/Hurd.
11835         * manual/install.texi: Likewise.  Reword some references to
11836         GNU/Linux.
11837         * manual/intro.texi: Likewise.
11838         * manual/io.texi: Likewise.
11839         (File Name Portability): Detail which constraints are inapplicable
11840         to all GNU systems and which are only inapplicable to GNU/Hurd.
11841         * manual/job.texi: Likewise.
11842         * manual/llio.texi: Likewise.
11843         (O_NOCTTY): Document as present on GNU/Linux.
11844         * manual/maint.texi: Likewise.
11845         * manual/memory.texi: Likewise.
11846         * manual/pattern.texi: Likewise.
11847         * manual/pipe.texi: Likewise.
11848         * manual/process.texi: Likewise.
11849         * manual/resource.texi: Likewise.
11850         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11851         child on GNU/Hurd.
11852         * manual/setjmp.texi: Likewise.
11853         * manual/signal.texi: Likewise.
11854         * manual/startup.texi: Likewise.
11855         * manual/stdio.texi: Likewise.
11856         * manual/terminal.texi: Likewise.
11857         (ONLCR): Document as POSIX.
11858         (OXTABS): Document availability on GNU/Linux as XTABS.
11859         (ONOEOT): Document availability separately from other bits.
11860         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11861         * manual/time.texi: Likewise.
11862         * manual/users.texi: Likewise.
11863         * INSTALL: Regenerated.
11864         * sysdeps/gnu/errlist.c: Regenerated.
11865
11866         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11867         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11868         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11869         puts.
11870         * configure: Regenerated.
11871
11872 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11873
11874         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11875         default includes instead of AC_HEADER_CHECK.
11876         * sysdeps/i386/configure: Regenerated.
11877
11878         [BZ #10716]
11879         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11880         * math/s_cacoshf.c (__cacoshf): Likewise.
11881         * math/s_cacoshl.c (__cacoshl): Likewise.
11882         * math/s_casinh.c (__casinh): Set signs of result from argument.
11883         * math/s_casinhf.c (__casinhf): Likewise.
11884         * math/s_casinhl.c (__casinhl): Likewise.
11885         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11886         (casinh_test): Add more tests.
11887         * sysdeps/i386/fpu/libm-test-ulps: Update.
11888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11889
11890 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11891
11892         * po/zh_TW.po: Update from translation team.
11893
11894         * login/Makefile (distribute): Remove variable.
11895         * catgets/Makefile: Likewise.
11896         * mach/Makefile: Likewise.
11897         * malloc/Makefile: Likewise.
11898         * misc/Makefile: Likewise.
11899         * iconv/Makefile: Likewise.
11900         * nscd/Makefile: Likewise.
11901         * hurd/Makefile: Likewise.
11902         * manual/Makefile: Likewise.
11903         * locale/Makefile: Likewise.
11904         * intl/Makefile: Likewise.
11905         * conform/Makefile: Likewise.
11906         * nss/Makefile: Likewise.
11907         * time/Makefile: Likewise.
11908         * soft-fp/Makefile: Likewise.
11909         * dirent/Makefile: Likewise.
11910         * gmon/Makefile: Likewise.
11911         * po/Makefile: Likewise.
11912         * rt/Makefile: Likewise.
11913         * socket/Makefile: Likewise.
11914         * math/Makefile: Likewise.
11915         * signal/Makefile: Likewise.
11916         * debug/Makefile: Likewise.
11917         * elf/Makefile: Likewise.
11918         * timezone/Makefile: Likewise.
11919         * stdlib/Makefile: Likewise.
11920         * iconvdata/Makefile: Likewise.
11921         * sunrpc/Makefile: Likewise.
11922         * io/Makefile: Likewise.
11923         * argp/Makefile: Likewise.
11924         * inet/Makefile: Likewise.
11925         * hesiod/Makefile: Likewise.
11926         * grp/Makefile: Likewise.
11927         * csu/Makefile: Likewise.
11928         * wctype/Makefile: Likewise.
11929         * crypt/Makefile: Likewise.
11930         * libio/Makefile: Likewise.
11931         * string/Makefile: Likewise.
11932         * nis/Makefile: Likewise.
11933         * resolv/Makefile: Likewise.
11934         * stdio-common/Makefile: Likewise.
11935         * wcsmbs/Makefile: Likewise.
11936         * dlfcn/Makefile: Likewise.
11937         * posix/Makefile: Likewise.
11938
11939         [BZ #6959]
11940         * timezone/Makefile: Don't install timezone files, just the programs
11941         and scripts.
11942
11943 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11944
11945         * nss/databases.def: Add missing gshadow entry.
11946
11947         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11948
11949 2012-03-06  Marek Polacek  <polacek@redhat.com>
11950
11951         [BZ #13726]
11952         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11953         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11954         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11955         * stdio-common/tst-long-dbl-fphex.c: New file.
11956
11957 2012-03-06  David S. Miller  <davem@davemloft.net>
11958
11959         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11960         (set_obp_int): New function.
11961         (get_obp_int): New function.
11962         (__get_clockfreq_via_dev_openprom): Likewise.
11963         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11964         Avoid unused variable warnings on 'val' and use builtin_expect.
11965         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11966         __builtin_expect.
11967         (INLINE_CLONE_SYSCALL): Likewise.
11968
11969 2012-03-05  David S. Miller  <davem@davemloft.net>
11970
11971         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11972
11973 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11974
11975         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11976
11977         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11978         only for |x| >= 40.
11979         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11980
11981 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11982
11983         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11984         Replace gettimeofday with __vdso_gettimeofday.
11985
11986         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11987         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11988         __vdso_clock_gettime and __vdso_getcpu.
11989
11990         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11991         time with __vdso_time.
11992
11993 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11994
11995         * manual/lang.texi (size_t): Note types to which size_t may be
11996         equivalent with the GNU C Library, but do not describe when
11997         differences between them are significant.
11998
11999 2012-03-05  Andreas Jaeger  <aj@suse.de>
12000
12001         * sysdeps/i386/fpu/libm-test-ulps: Update.
12002
12003 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
12004
12005         [BZ #3976]
12006         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
12007         (__ieee754_pow): Save and restore rounding mode and use
12008         round-to-nearest for main computations.
12009         * math/libm-test.inc (pow_test_tonearest): New function.
12010         (pow_test_towardzero): Likewise.
12011         (pow_test_downward): Likewise.
12012         (pow_test_upward): Likewise.
12013         (main): Call the new functions.
12014         * sysdeps/i386/fpu/libm-test-ulps: Update.
12015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12016
12017         [BZ #3976]
12018         * math/libm-test.inc (cosh_test_tonearest): New function.
12019         (cosh_test_towardzero): Likewise.
12020         (cosh_test_downward): Likewise.
12021         (cosh_test_upward): Likewise.
12022         (sinh_test_tonearest): Likewise.
12023         (sinh_test_towardzero): Likewise.
12024         (sinh_test_downward): Likewise.
12025         (sinh_test_upward): Likewise.
12026         (main): Call the new functions.
12027         * sysdeps/i386/fpu/libm-test-ulps: Update.
12028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12029
12030 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12031
12032         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12033         default stack guard is set in last bytes.
12034         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12035
12036 2012-03-05  Kees Cook  <keescook@chromium.org>
12037
12038         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12039
12040         [BZ #13656]
12041         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12042         possibly allocate from heap instead of stack.
12043         * stdio-common/bug-vfprintf-nargs.c: New file.
12044         * stdio-common/Makefile (tests): Add nargs overflow test.
12045
12046 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12047
12048         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12049
12050 2012-03-03  Marek Polacek  <polacek@redhat.com>
12051
12052         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12053         * math/math_private.h: Likewise.
12054         * stdlib/tst-strtod.c: Likewise.
12055         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12056         * sysdeps/x86_64/bits/atomic.h: Likewise.
12057
12058 2012-03-02  David S. Miller  <davem@davemloft.net>
12059
12060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12063         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12064         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12065         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12066         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12067         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12068
12069 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12070
12071         [BZ #13792]
12072         * manual/examples/README: New file, says the example source files
12073         can be used under GPL>=2.
12074         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12075         line containing just "*/".
12076         * manual/examples/add.c: Add copyright header (GPL>=2).
12077         * manual/examples/argp-ex1.c: Likewise.
12078         * manual/examples/argp-ex2.c: Likewise.
12079         * manual/examples/argp-ex3.c: Likewise.
12080         * manual/examples/argp-ex4.c: Likewise.
12081         * manual/examples/atexit.c: Likewise.
12082         * manual/examples/db.c: Likewise.
12083         * manual/examples/dir.c: Likewise.
12084         * manual/examples/dir2.c: Likewise.
12085         * manual/examples/execinfo.c: Likewise.
12086         * manual/examples/filecli.c: Likewise.
12087         * manual/examples/filesrv.c: Likewise.
12088         * manual/examples/fmtmsgexpl.c: Likewise.
12089         * manual/examples/genpass.c: Likewise.
12090         * manual/examples/inetcli.c: Likewise.
12091         * manual/examples/inetsrv.c: Likewise.
12092         * manual/examples/isockad.c: Likewise.
12093         * manual/examples/longopt.c: Likewise.
12094         * manual/examples/memopen.c: Likewise.
12095         * manual/examples/memstrm.c: Likewise.
12096         * manual/examples/mkfsock.c: Likewise.
12097         * manual/examples/mkisock.c: Likewise.
12098         * manual/examples/mygetpass.c: Likewise.
12099         * manual/examples/pipe.c: Likewise.
12100         * manual/examples/popen.c: Likewise.
12101         * manual/examples/rprintf.c: Likewise.
12102         * manual/examples/search.c: Likewise.
12103         * manual/examples/select.c: Likewise.
12104         * manual/examples/setjmp.c: Likewise.
12105         * manual/examples/sigh1.c: Likewise.
12106         * manual/examples/sigusr.c: Likewise.
12107         * manual/examples/stpcpy.c: Likewise.
12108         * manual/examples/strdupa.c: Likewise.
12109         * manual/examples/strftim.c: Likewise.
12110         * manual/examples/strncat.c: Likewise.
12111         * manual/examples/subopt.c: Likewise.
12112         * manual/examples/swapcontext.c: Likewise.
12113         * manual/examples/termios.c: Likewise.
12114         * manual/examples/testopt.c: Likewise.
12115         * manual/examples/testpass.c: Likewise.
12116         * manual/examples/timeval_subtract.c: Likewise.
12117
12118         [BZ #13792]
12119         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12120         function to ...
12121         * manual/timeval_subtract.c.texi: ... here, new file.
12122
12123 2012-03-02  David S. Miller  <davem@davemloft.net>
12124
12125         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12126
12127 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12128
12129         [BZ #3976]
12130         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12131         (__sin): Save and restore rounding mode and use round-to-nearest
12132         for all computations.
12133         (__cos): Save and restore rounding mode and use round-to-nearest
12134         for all computations.
12135         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12136         <fenv.h>.
12137         (tan): Save and restore rounding mode and use round-to-nearest for
12138         all computations.
12139         * math/libm-test.inc (cos_test_tonearest): New function.
12140         (cos_test_towardzero): Likewise.
12141         (cos_test_downward): Likewise.
12142         (cos_test_upward): Likewise.
12143         (sin_test_tonearest): Likewise.
12144         (sin_test_towardzero): Likewise.
12145         (sin_test_downward): Likewise.
12146         (sin_test_upward): Likewise.
12147         (tan_test_tonearest): Likewise.
12148         (tan_test_towardzero): Likewise.
12149         (tan_test_downward): Likewise.
12150         (tan_test_upward): Likewise.
12151         (main): Call the new functions.
12152         * sysdeps/i386/fpu/libm-test-ulps: Update.
12153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12154
12155         [BZ #10135]
12156         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12157         small n, then large n, before computing and testing k+n.
12158         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12159         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12160         Likewise.
12161         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12162         Likewise.
12163         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12164         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12167         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12168         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12169         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12170         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12171         * math/libm-test.inc (scalbn_test): Add more tests.
12172         (scalbln_test): Likewise.
12173
12174         * manual/filesys.texi (mode_t): Describe constraints on size and
12175         signedness, not exact equivalence to a particular type.
12176         (ino_t): Likewise.
12177         (ino64_t): Likewise.
12178         (dev_t): Likewise.
12179         (nlink_t): Likewise.
12180         (blkcnt_t): Likewise.
12181         (blkcnt64_t): Likewise.
12182         * manual/llio.texi (off_t): Likewise.
12183
12184         [BZ #3976]
12185         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12186         (__ieee754_exp): Save and restore rounding mode and use
12187         round-to-nearest for all computations.
12188         * math/libm-test.inc (exp_test_tonearest): New function.
12189         (exp_test_towardzero): Likewise.
12190         (exp_test_downward): Likewise.
12191         (exp_test_upward): Likewise.
12192         (main): Call the new functions.
12193         * sysdeps/i386/fpu/libm-test-ulps: Update.
12194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12195
12196 2012-03-01  Chris Demetriou  <cgd@google.com>
12197
12198         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12199         have predictable order.
12200
12201 2012-03-01  David S. Miller  <davem@davemloft.net>
12202
12203         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12204
12205         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12206         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12207         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12208         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12209
12210         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12211         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12212         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12214         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12215         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12216         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12217         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12218         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12219
12220         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12221
12222         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12223         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12224         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12225
12226         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12227         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12228         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12229         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12230         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12231         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12232         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12233         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12234         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12235         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12236         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12237         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12238         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12239         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12240         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12241         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12242         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12243         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12244         * sysdeps/sparc/elf/configure: Regenerated.
12245
12246 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12247
12248         * configure.in (AS, LD): Require binutils 2.20 or later.
12249         * configure: Regenerated.
12250         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12251         as required minimum version.
12252         * INSTALL: Regenerated.
12253
12254         [BZ #2541]
12255         [BZ #4108]
12256         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12257         before squaring exponent.
12258         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12259         bottom long double and 27 bits of top long double before squaring
12260         exponent.
12261         * math/libm-test.inc (erfc_test): Add more tests.
12262         * sysdeps/i386/fpu/libm-test-ulps: Update.
12263         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12265
12266 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12267
12268         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12269         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12270         containing bit-fields.
12271         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12272         * soft-fp/single.h (_FP_UNION_S): Likewise.
12273         * soft-fp/double.h (_FP_UNION_D): Likewise.
12274
12275 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12276
12277         [BZ #13786]
12278         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12279         not include ../strcmp.S.
12280         [USE_AS_STRNCASECMP_L]: Likewise.
12281         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12282         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12283         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12284         (__strncasecmp_l_ia32): Define as alias to
12285         __strncasecmp_l_nonascii.
12286
12287         [BZ #5794]
12288         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12289         * sysdeps/i386/fpu/libm-test-ulps: Update.
12290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12291
12292         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12294
12295 2012-02-29  Jeff Law  <law@redhat.com>
12296
12297         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12298         out of bounds read.
12299
12300 2012-02-29  Marek Polacek  <polacek@redhat.com>
12301
12302         [BZ #13706]
12303         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12304         * elf/Makefile: Add rules to run tst-unused-dep.out.
12305
12306 2012-02-28  David S. Miller  <davem@davemloft.net>
12307
12308         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12309         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12310         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12311         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12312         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12313         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12314
12315 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12316
12317         * math/libm-test.inc (llround_test): Move one test from
12318         lround_test.  Use TEST_f_L in moved test.
12319         (lround_test): Move misplaced test to llround_test.  Add testcase
12320         from bug 2561.
12321
12322 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12323
12324         * sysdeps/x86_64/fpu/e_expf.S: New file.
12325         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12326
12327 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12328
12329         [BZ #13637]
12330         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12331         of remain_len that may cause incomplete multi-byte character and
12332         false match.
12333         * posix/bug-regex33.c: New file.
12334         * posix/Makefile (tests): Add bug-regex33.
12335
12336 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12337
12338         * manual/macros.texi: New file.
12339         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12340         * manual/libc.texinfo: Include macros.texi.
12341         * manual/creatute.texi: Likewise.
12342         * manual/install.texi: Likewise.
12343         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12344         @glibcadj{} in references to the GNU C Library.
12345         * manual/charset.texi: Likewise.
12346         * manual/conf.texi: Likewise.
12347         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12348         when not using those macros.
12349         * manual/creature.texi: Likewise.
12350         * manual/crypt.texi: Likewise.
12351         * manual/errno.texi: Likewise.
12352         * manual/filesys.texi: Likewise.
12353         * manual/header.texi: Likewise.
12354         * manual/install.texi: Likewise.
12355         * manual/intro.texi: Likewise.
12356         * manual/io.texi: Likewise.
12357         * manual/job.texi: Likewise.
12358         * manual/lang.texi: Likewise.
12359         * manual/libc.texiinfo: Likewise.
12360         * manual/llio.texi: Likewise.
12361         * manual/locale.texi: Likewise.
12362         * manual/maint.texi: Likewise.
12363         * manual/math.texi: Likewise.
12364         * manual/memory.texi: Likewise.
12365         * manual/message.texi: Likewise.
12366         * manual/nss.texi: Likewise.
12367         * manual/pattern.texi: Likewise.
12368         * manual/process.texi: Likewise.
12369         * manual/resource.texi: Likewise.
12370         * manual/search.texi: Likewise.
12371         * manual/setjmp.texi: Likewise.
12372         * manual/signal.texi: Likewise.
12373         * manual/socket.texi: Likewise.
12374         * manual/startup.texi: Likewise.
12375         * manual/stdio.texi: Likewise.
12376         * manual/string.texi: Likewise.
12377         * manual/sysinfo.texi: Likewise.
12378         * manual/syslog.texi: Likewise.
12379         * manual/terminal.texi: Likewise.
12380         * manual/time.texi: Likewise.
12381         * manual/users.texi: Likewise.
12382         * INSTALL: Regenerated.
12383         * NOTES: Regenerated.
12384         * sysdeps/gnu/errlist.c: Regenerated.
12385
12386 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12387
12388         * include/dirent.h: Include <dirstream.h> before
12389         <dirent/dirent.h>.
12390
12391 2012-02-28  David S. Miller  <davem@davemloft.net>
12392
12393         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12394         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12395         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12396         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12397
12398 2012-02-27  David S. Miller  <davem@davemloft.net>
12399
12400         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12402         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12403         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12404
12405         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12406         frame pointer instead of stack pointer relative arg slot.
12407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12408         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12409         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12410
12411 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12412
12413         [BZ #3992]
12414         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12415
12416 2012-02-27  David S. Miller  <davem@davemloft.net>
12417
12418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12419         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12422         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12423         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12424         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12425         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12426
12427 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12428
12429         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12430         later.  Allow versions 5-9.
12431         * configure: Regenerated.
12432         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12433         required minimum version and 4.6 as recommended version.  Do not
12434         mention bugs in GCC 2.7 and 2.8.
12435         * INSTALL: Regenerated.
12436
12437 2012-02-27  David S. Miller  <davem@davemloft.net>
12438
12439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12440         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12441         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12442         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12443         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12444         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12445         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12446         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12447
12448         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12449         manipulate bits before adding and subtracting TWO112[sx].
12450         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12451
12452 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12453
12454         [BZ #13775]
12455         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12456         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12457         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12458         being in POSIX, because they are in 1003.1-2008.
12459
12460         * rt/tst-aio.c: Include <fcntl.h>.
12461         * rt/tst-aio7.c: Likewise.
12462         * rt/tst-aio64.c: Likewise.
12463
12464         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12465
12466 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12467
12468         * manual/install.texi (--with-headers): Describe headers as
12469         interface headers, not private headers.
12470         (Specific advice for GNU/Linux systems): Describe use of headers
12471         from "make headers_install", not private headers from older
12472         kernels.
12473         * INSTALL: Regenerated.
12474         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12475         Change to 2.6.19.
12476         * sysdeps/unix/sysv/linux/configure: Regenerated.
12477
12478         * manual/llio.texi (fclean): Remove documentation.
12479
12480         * manual/Makefile (libc-texi-generated): New variable.  Include
12481         version.texi.
12482         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12483         $(libc-texi-generated), not duplicated list of files.
12484         (version.texi, stamp-version): New rules.
12485         (realclean): Remove $(libc-texi-generated), not individual files
12486         from that list.  Do not remove dir-add.texinfo.
12487         * manual/libc.texinfo: Comment out uses of edition numbers and
12488         references to printed manual.  Remove last-updated dates.
12489         (EDITION): Comment out.
12490         (ISBN): Likewise.
12491         (VERSION, UPDATED): Remove.
12492         (version.texi): Include.
12493
12494 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12495
12496         * sysdeps/posix/spawni.c: Include <signal.h>.
12497         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12498         * sysdeps/pthread/aio_fsync.c: Likewise.
12499
12500 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12501
12502         * conform/Makefile (tests): Run only when not cross-compiling and
12503         when fast-check is not defined.
12504
12505         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12506         * conform/data/limits.h-data: Fixes for POSIX2008.
12507         * conform/run-conformtest.sh: Run all tests.
12508         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12509         headers.
12510         * include/bits/dlfcn.h: Likewise.
12511         * include/langinfo.h: Likewise.
12512         * include/monetary.h: Likewise.
12513         * include/sys/poll.h: Likewise.
12514
12515         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12516         for __USE_GNU.
12517         * posix/spawn.h: Define __need_sigset_t.
12518         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12519         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12520         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12521         to get sigevent_t only.
12522         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12523         only for __USE_GNU.
12524         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12525         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12526         process_vm_writev only for __USE_GNU.
12527         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12528
12529         * conform/Makefile: For now ignore errors from run-conformtest.
12530         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12531         POSIX to avoid namespace pollution.  Don't prepend headers.
12532         * conform/data/aio.h-data: Fixes for POSIX testing.
12533         * conform/data/fcntl.h-data: Likewise.
12534         * conform/data/glob.h-data: Likewise.
12535         * conform/data/grp.h-data: Likewise.
12536         * conform/data/pthread.h-data: Likewise.
12537         * conform/data/pwd.h-data: Likewise.
12538         * conform/data/signal.h-data: Likewise.
12539         * conform/data/spawn.h-data: Likewise.
12540         * conform/data/stdio.h-data: Likewise.
12541         * conform/data/stdlib.h-data: Likewise.
12542         * conform/data/stropts.h-data: Likewise.
12543         * conform/data/sys/mman.h-data: Likewise.
12544         * conform/data/sys/stat.h-data: Likewise.
12545         * conform/data/sys/types.h-data: Likewise.
12546         * conform/data/sys/wait.h-data: Likewise.
12547         * conform/data/time.h-data: Likewise.
12548         * conform/data/unistd.h-data: Likewise.
12549         * conform/data/utime.h-data: Likewise.
12550
12551         * io/sys/stat.h: fchmod was always in POSIX.
12552         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12553         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12554         * rt/aio.h: Define __need_timespec before including <time.h>.
12555         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12556         struct.  Add forward declaration of pthread_attr_t and use it in
12557         sigevent.
12558         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12559         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12560         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12561         always remove CLK_TCK definition.
12562
12563 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12564
12565         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12566
12567 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12568
12569         * conform/run-conformtest.sh: New file.
12570         * conform/Makefile: Run run-conformtest for tests.
12571         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12572         support.
12573
12574         * conform/data/uchar.h-data: New file.
12575         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12576         * conform/data/arpa/inet.h-data: Likewise.
12577         * conform/data/assert.h-data: Likewise.
12578         * conform/data/complex.h-data: Likewise.
12579         * conform/data/cpio.h-data: Likewise.
12580         * conform/data/ctype.h-data: Likewise.
12581         * conform/data/dirent.h-data: Likewise.
12582         * conform/data/dlfcn.h-data: Likewise.
12583         * conform/data/errno.h-data: Likewise.
12584         * conform/data/fcntl.h-data: Likewise.
12585         * conform/data/float.h-data: Likewise.
12586         * conform/data/fmtmsg.h-data: Likewise.
12587         * conform/data/fnmatch.h-data: Likewise.
12588         * conform/data/ftw.h-data: Likewise.
12589         * conform/data/glob.h-data: Likewise.
12590         * conform/data/grp.h-data: Likewise.
12591         * conform/data/iconv.h-data: Likewise.
12592         * conform/data/inttypes.h-data: Likewise.
12593         * conform/data/langinfo.h-data: Likewise.
12594         * conform/data/libgen.h-data: Likewise.
12595         * conform/data/limits.h-data: Likewise.
12596         * conform/data/locale.h-data: Likewise.
12597         * conform/data/math.h-data: Likewise.
12598         * conform/data/monetary.h-data: Likewise.
12599         * conform/data/mqueue.h-data: Likewise.
12600         * conform/data/ndbm.h-data: Likewise.
12601         * conform/data/net/if.h-data: Likewise.
12602         * conform/data/netdb.h-data: Likewise.
12603         * conform/data/netinet/in.h-data: Likewise.
12604         * conform/data/nl_types.h-data: Likewise.
12605         * conform/data/poll.h-data: Likewise.
12606         * conform/data/pthread.h-data: Likewise.
12607         * conform/data/pwd.h-data: Likewise.
12608         * conform/data/regex.h-data: Likewise.
12609         * conform/data/sched.h-data: Likewise.
12610         * conform/data/search.h-data: Likewise.
12611         * conform/data/semaphore.h-data: Likewise.
12612         * conform/data/setjmp.h-data: Likewise.
12613         * conform/data/signal.h-data: Likewise.
12614         * conform/data/spawn.h-data: Likewise.
12615         * conform/data/stdarg.h-data: Likewise.
12616         * conform/data/stdio.h-data: Likewise.
12617         * conform/data/stdlib.h-data: Likewise.
12618         * conform/data/string.h-data: Likewise.
12619         * conform/data/strings.h-data: Likewise.
12620         * conform/data/stropts.h-data: Likewise.
12621         * conform/data/sys/ipc.h-data: Likewise.
12622         * conform/data/sys/mman.h-data: Likewise.
12623         * conform/data/sys/msg.h-data: Likewise.
12624         * conform/data/sys/resource.h-data: Likewise.
12625         * conform/data/sys/select.h-data: Likewise.
12626         * conform/data/sys/sem.h-data: Likewise.
12627         * conform/data/sys/shm.h-data: Likewise.
12628         * conform/data/sys/socket.h-data: Likewise.
12629         * conform/data/sys/stat.h-data: Likewise.
12630         * conform/data/sys/statvfs.h-data: Likewise.
12631         * conform/data/sys/time.h-data: Likewise.
12632         * conform/data/sys/timeb.h-data: Likewise.
12633         * conform/data/sys/times.h-data: Likewise.
12634         * conform/data/sys/types.h-data: Likewise.
12635         * conform/data/sys/uio.h-data: Likewise.
12636         * conform/data/sys/un.h-data: Likewise.
12637         * conform/data/sys/utsname.h-data: Likewise.
12638         * conform/data/sys/wait.h-data: Likewise.
12639         * conform/data/syslog.h-data: Likewise.
12640         * conform/data/tar.h-data: Likewise.
12641         * conform/data/termios.h-data: Likewise.
12642         * conform/data/utime.h-data: Likewise.
12643         * conform/data/utmpx.h-data: Likewise.
12644         * conform/data/varargs.h-data: Likewise.
12645         * conform/data/wchar.h-data: Likewise.
12646         * conform/data/wctype.h-data: Likewise.
12647         * conform/data/wordexp.h-data: Likewise.
12648
12649         * include/stropts.h: New file.
12650         * include/uchar.h: New file.
12651         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12652         * include/assert.h: Likewise.
12653         * include/ctype.h: Likewise.
12654         * include/dirent.h: Likewise.
12655         * include/dlfcn.h: Likewise.
12656         * include/fcntl.h: Likewise.
12657         * include/fnmatch.h: Likewise.
12658         * include/glob.h: Likewise.
12659         * include/grp.h: Likewise.
12660         * include/libio.h: Likewise.
12661         * include/locale.h: Likewise.
12662         * include/math.h: Likewise.
12663         * include/net/if.h: Likewise.
12664         * include/netdb.h: Likewise.
12665         * include/netinet/in.h: Likewise.
12666         * include/pthread.h: Likewise.
12667         * include/pwd.h: Likewise.
12668         * include/regex.h: Likewise.
12669         * include/sched.h: Likewise.
12670         * include/search.h: Likewise.
12671         * include/setjmp.h: Likewise.
12672         * include/signal.h: Likewise.
12673         * include/stdio.h: Likewise.
12674         * include/stdlib.h: Likewise.
12675         * include/string.h: Likewise.
12676         * include/sys/cdefs.h: Likewise.
12677         * include/sys/mman.h: Likewise.
12678         * include/sys/msg.h: Likewise.
12679         * include/sys/resource.h: Likewise.
12680         * include/sys/select.h: Likewise.
12681         * include/sys/socket.h: Likewise.
12682         * include/sys/stat.h: Likewise.
12683         * include/sys/statvfs.h: Likewise.
12684         * include/sys/time.h: Likewise.
12685         * include/sys/times.h: Likewise.
12686         * include/sys/uio.h: Likewise.
12687         * include/sys/utsname.h: Likewise.
12688         * include/sys/wait.h: Likewise.
12689         * include/termios.h: Likewise.
12690         * include/time.h: Likewise.
12691         * include/ulimit.h: Likewise.
12692         * include/unistd.h: Likewise.
12693         * include/utime.h: Likewise.
12694         * include/wchar.h: Likewise.
12695         * include/wctype.h: Likewise.
12696         * include/wordexp.h: Likewise.
12697
12698         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12699
12700         * time/time.h: TIME_UTC must be a macro.
12701         Make timespec_get available for ISO C11 only as well.
12702
12703 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12704
12705         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12706         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12707
12708 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12709
12710         * configure.in: Use -o not -a in test for unsupported multi-arch.
12711
12712 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12713
12714         * manual/texinfo.tex: Update to version 2012-01-19.16.
12715
12716 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12717
12718         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12719
12720 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12721
12722         [BZ #13738]
12723         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12724         * manual/fdl-1.3.texi: New file.
12725         * manual/fdl-1.1.texi: File removed.
12726
12727         [BZ #13738]
12728         * manual/libc.texinfo (FDL_VERSION): New @set.
12729         Use it for mention of FDL in cover text.
12730         (Documentation License): Use it in @include file name.
12731
12732 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12733             Roland McGrath  <roland@hack.frob.com>
12734
12735         [BZ #5461]
12736         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12737         not LONG_LONG_MAX and LONG_LONG_MIN.
12738         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12739         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12740         name.
12741         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12742
12743 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12744
12745         [BZ #2547]
12746         [BZ #11365]
12747         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12748         manipulate bits before adding and subtracting TWO23[sx].
12749         * math/libm-test.inc (nearbyint_test): Add more tests.
12750
12751 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12752
12753         [BZ #2548]
12754         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12755         bits before adding and subtracting TWO23[sx].
12756         * math/libm-test.inc (rint_test): Add more tests.
12757         (rint_test_tonearest): Likewise.
12758         (rint_test_towardzero): Likewise.
12759         (rint_test_downward): Likewise.
12760         (rint_test_upward: Likewise.
12761
12762 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12763
12764         [BZ #10110]
12765         * include/stdc-predef.h: New file.  Extracted from features.h.
12766         * include/features.h: Include stdc-predef.h.
12767         * Makefile (headers): Add stdc-predef.h.
12768         * CONFORMANCE (Compiler limitations): Update.
12769
12770 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12771
12772         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12773
12774 2012-02-21  David S. Miller  <davem@davemloft.net>
12775
12776         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12777         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12778
12779 2012-02-20  David S. Miller  <davem@davemloft.net>
12780
12781         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12782         using a normal save/restore sequence, rather than allocating a
12783         dummy stack frame just to store a frame pointer and restore.
12784         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12785
12786 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12787
12788         * manual/install.texi: Fix stray word in line-wrapped comment.
12789
12790 2012-02-20  David S. Miller  <davem@davemloft.net>
12791
12792         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12793         both binutils and gcc support GOTDATA.
12794
12795         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12796         "rd %pc" in the PIC register setup sequences.
12797
12798         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12799         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12800         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12801         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12802         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12803         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12804         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12805         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12806         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12807         (SYSCALL_ERROR_HANDLER): Likewise.
12808         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12809         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12810         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12811         (SYSCALL_ERROR_HANDLER): Likewise.
12812
12813         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12814         (HAVE_GCC_GOTDATA): New.
12815         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12816         relocation support in both binutils and gcc.
12817         * sysdeps/sparc/elf/configure: Regenerate.
12818
12819         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12820         * sysdeps/sparc/sparc32/elf/configure: Delete.
12821         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12822         * sysdeps/sparc/sparc64/elf/configure: Delete.
12823         * sysdeps/sparc/elf/configure.in: New file.
12824         * sysdeps/sparc/elf/configure: Generate.
12825
12826         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12827         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12828         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12829         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12830         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12831
12832 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12833
12834         * manual/install.texi: Do not mention specific glibc version
12835         numbers.
12836         * manual/libc.texinfo (VERSION, UPDATED): Update.
12837         (@copying): Use @copyright{} and range of years.
12838
12839 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12840
12841         [BZ #13695]
12842         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12843         [crti.S not in sysdirs] (generated): Do not append.
12844         [crti.S not in sysdirs] (omit-deps): Likewise.
12845         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12846         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12847         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12848         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12849         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12850         Likewise.
12851         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12852         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12853         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12854         * csu/defs.awk: Remove file.
12855         * sysdeps/generic/initfini.c: Likewise.
12856         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12857         variable.
12858         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12859         Likewise.
12860
12861 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12862
12863         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12864         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12865         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12866         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12867         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12868         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12869         <bits/epoll.h>.
12870         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12871         (__EPOLL_PACKED): Define to empty if not defined by
12872         <bits/epoll.h>.
12873         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12874         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12875         bits/epoll.h.
12876
12877 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12878
12879         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12880         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12881         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12882         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12883         <bits/timerfd.h>.
12884         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12885         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12886         bits/timerfd.h.
12887
12888 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12889
12890         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12891         in C locale.
12892         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12893         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12894         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12896
12897 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12898
12899         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12900         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12901
12902 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12903
12904         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12905         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12906         defined.
12907         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12908         Likewise.
12909         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12910         entry for 2.16.
12911
12912 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12913
12914         * math/w_acos.c: Use non-signaling floating-point comparisons.
12915         * math/w_acosf.c: Likewise.
12916         * math/w_acosh.c: Likewise.
12917         * math/w_acoshf.c: Likewise.
12918         * math/w_acoshl.c: Likewise.
12919         * math/w_acosl.c: Likewise.
12920         * math/w_asin.c: Likewise.
12921         * math/w_asinf.c: Likewise.
12922         * math/w_asinl.c: Likewise.
12923         * math/w_atanh.c: Likewise.
12924         * math/w_atanhf.c: Likewise.
12925         * math/w_atanhl.c: Likewise.
12926         * math/w_exp2.c: Likewise.
12927         * math/w_exp2f.c: Likewise.
12928         * math/w_exp2l.c: Likewise.
12929         * math/w_j0.c: Likewise.
12930         * math/w_j0f.c: Likewise.
12931         * math/w_j0l.c: Likewise.
12932         * math/w_j1.c: Likewise.
12933         * math/w_j1f.c: Likewise.
12934         * math/w_j1l.c: Likewise.
12935         * math/w_jn.c: Likewise.
12936         * math/w_jnf.c: Likewise.
12937         * math/w_log.c: Likewise.
12938         * math/w_log10.c: Likewise.
12939         * math/w_log10f.c: Likewise.
12940         * math/w_log10l.c: Likewise.
12941         * math/w_log2.c: Likewise.
12942         * math/w_log2f.c: Likewise.
12943         * math/w_log2l.c: Likewise.
12944         * math/w_logf.c: Likewise.
12945         * math/w_logl.c: Likewise.
12946         * math/w_sqrt.c: Likewise.
12947         * math/w_sqrtf.c: Likewise.
12948         * math/w_sqrtl.c: Likewise.
12949         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12950         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12951         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12952         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12953         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12954
12955 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12956
12957         [BZ #9739]
12958         * manual/string.texi (strnlen): Use correct parameter name in
12959         equivalent expression.
12960
12961 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12962
12963         [BZ #11174]
12964         * manual/users.texi (seteuid): Consistently use neweuid for
12965         argument name.
12966
12967 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12968
12969         [BZ #13704]
12970         * manual/nss.texi (Services in the NSS configuration): Correct
12971         list of services in example configuration file.
12972
12973 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12974
12975         [BZ #11322]
12976         * manual/arith.texi: Remove statements about negative zero
12977         behaving identically to zero.
12978
12979 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12980
12981         [BZ #5993]
12982         * manual/install.texi: Do not document upgrading from libc5.
12983
12984 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12985
12986         [BZ #4596]
12987         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12988
12989 2012-02-18  David S. Miller  <davem@davemloft.net>
12990
12991         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12992         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12993         %o7 across the call.
12994         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12995         instead.
12996         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12997         SETUP_PIC_REG_LEAF.
12998         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12999         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
13000         * sysdeps/sparc/crtn.S: Likewise.
13001
13002 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
13003
13004         * aout/Makefile: Remove.
13005
13006 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
13007
13008         [BZ #13058]
13009         * manual/examples/argp-ex1.c (main): Format definition in GNU
13010         style.
13011         * manual/examples/argp-ex2.c (main): Likewise.
13012         * manual/examples/argp-ex3.c (main): Likewise.
13013         * manual/examples/argp-ex4.c (main): Likewise.
13014         * manual/examples/longopt.c (main): Use new-style prototype
13015         definition.
13016         * manual/examples/strncat.c (main): Specify return type and use
13017         (void) for arguments.
13018         * manual/examples/subopt.c (main): Use char **argv argument.
13019
13020 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13021
13022         [BZ #5077]
13023         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
13024         rounding modes.
13025
13026 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
13027
13028         [BZ #6907]
13029         * manual/string.texi (strchr): Change when strchrnul is
13030         recommended.
13031
13032 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13033
13034         [BZ #174]
13035         * manual/locale.texi (setlocale): Document LOCPATH.
13036
13037 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13038
13039         [BZ #10210]
13040         * manual/process.texi (execle): Move @dots{} before last argument.
13041
13042 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13043
13044         [BZ #12047]
13045         * manual/charset.texi (Generic Charset Conversion): Fix typo
13046         (LC_TYPE -> LC_CTYPE).
13047
13048 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13049
13050         [BZ #5805]
13051         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13052         (scalbnf): Likewise.
13053         (scalbnl): Likewise.
13054         (scalbln): Likewise.
13055         (scalblnf): Likewise.
13056         (scalblnl): Likewise.
13057         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13058         (vwarnx): Likewise.
13059         (verr): Likewise.
13060         (verrx): Likewise.
13061         * manual/filesys.texi (telldir): Use braces around return type.
13062         * manual/llio.texi (mmap): Add space after comma.
13063         (mmap64): Likewise.
13064         * manual/math.texi (jn): Use @var{} on parameter names.
13065         (jnf): Likewise.
13066         (jnl): Likewise.
13067         (yn): Likewise.
13068         (ynf): Likewise.
13069         (ynl): Likewise.
13070         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13071         line.
13072         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13073         "...".
13074         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13075         (sched_get_priority_max): Likewise.
13076         * manual/signal.texi (sigvec): Add space after comma.
13077         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13078         names.
13079         (if_indextoname): Likewise.
13080         (if_freenameindex): Likewise.
13081         (sendto): Use ',' instead of '.' in prototype.
13082         * manual/startup.texi (syscall): Use @dots{} instead of literal
13083         "...".
13084         * manual/stdio.texi (__fpending): Separate initial words of
13085         paragraph from @deftypefun line.
13086         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13087         "...".
13088         (vsyslog): Use @var{} on parameter names.
13089         * manual/terminal.texi (stty): Use @var{} on parameter names.
13090         * manual/users.texi (getutmp): Use @var{} on parameter names.
13091         (getutmpx): Likewise.
13092
13093 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13094
13095         [BZ #6884]
13096         * manual/stdio.texi (fopen): Fix typos in description of
13097         ",ccs=STRING".
13098
13099 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13100
13101         [BZ #4026]
13102         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13103         get clock_id definition.
13104
13105 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13106
13107         [BZ #4822]
13108         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13109         (madvise): Cast every argument to void on its own.
13110
13111 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13112
13113         [BZ #9902]
13114         * manual/startup.texi (Exit Status): Fix typo.
13115
13116 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13117
13118         [BZ #10140]
13119         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13120         * manual/examples/argp-ex2.c: Likewise.
13121         * manual/examples/argp-ex3.c: Likewise.
13122
13123 2012-02-16  Richard Henderson  <rth@redhat.com>
13124
13125         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13126         * sysdeps/s390/s390-32/initfini.c: Remove.
13127         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13128         * sysdeps/s390/s390-64/initfini.c: Remove.
13129
13130 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13131
13132         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13133         compiler output for sysdeps/generic/initfini.c.
13134         * sysdeps/sh/elf/initfini.c: Remove file.
13135
13136 2012-02-16  David S. Miller  <davem@davemloft.net>
13137
13138         [BZ #11494]
13139         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13140
13141         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13142         * sysdeps/sparc/crti.S: New file.
13143         * sysdeps/sparc/crtn.S: New file.
13144         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13145         * sysdeps/sparc/sparc64/Makefile: Likewise.
13146
13147 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13148
13149         [BZ #3335]
13150         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13151
13152 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13153
13154         [BZ #4822]
13155         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13156
13157         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13158         (write, read, close): Likewise.
13159         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13160
13161 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13162
13163         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13164         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13165         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13166         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13167         <bits/signalfd.h>.
13168         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13169         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13170         bits/signalfd.h.
13171
13172 2012-02-14  Marek Polacek  <polacek@redhat.com>
13173
13174         * sysdeps/x86_64/crti.S: New file.
13175         * sysdeps/x86_64/crtn.S: New file.
13176         * sysdeps/x86_64/elf/initfini.c: Remove file.
13177
13178 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13179
13180         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13181         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13182         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13183         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13184         <bits/inotify.h>.
13185         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13186         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13187         bits/inotify.h.
13188
13189 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13190
13191         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13192         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13193         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13194         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13195         <bits/eventfd.h>.
13196         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13197         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13198         bits/eventfd.h.
13199
13200 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13201
13202         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13203         __feraiseexcept instead of feraiseexcept.
13204
13205         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13206         nanosleep invocations.
13207         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13208         strings, and add error checking for a nanosleep invocations.
13209
13210 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13211
13212         Replace FSF snail mail address with URLs, as per GNU coding standards.
13213         Most of the snail mail addresses were wrong anyway, and omitting
13214         them makes the source code easier to maintain.  Almost all of the
13215         changes are to license notices and to locale LC_IDENTIFICATION
13216         addresses, except for this one:
13217         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13218         not its snail mail address.
13219
13220 2012-02-09  Richard Henderson  <rth@twiddle.net>
13221
13222         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13223         of kernel-features.h.
13224
13225         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13226
13227 2012-02-08  Marek Polacek  <polacek@redhat.com>
13228
13229         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13230         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13231         * sysdeps/gnu/_G_config.h: Likewise.
13232         * sysdeps/generic/_G_config.h: Likewise.
13233
13234 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13235
13236         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13237         tests.
13238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13239
13240         * sysdeps/powerpc/powerpc32/crti.S: New file.
13241         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13242         * sysdeps/powerpc/powerpc64/crti.S: New file.
13243         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13244
13245         * Makeconfig (have-initfini): Don't set.
13246         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13247         * configure.in (nopic_initfini): Don't substitute.
13248         * config.h.in (HAVE_INITFINI): Don't #undef.
13249         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13250         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13251
13252 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13253
13254         Support crti.S and crtn.S provided directly by architectures.
13255         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13256         [crti.S in sysdirs] (omit-deps): Likewise.
13257         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13258         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13259         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13260         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13261         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13262         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13263         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13264         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13265         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13266         compiler output for sysdeps/generic/initfini.c.
13267         * sysdeps/i386/elf/Makefile: Remove file.
13268         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13269
13270 2012-02-07  Marek Polacek  <polacek@redhat.com>
13271
13272         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13273         * sysdeps/gnu/_G_config.h: Likewise.
13274         * sysdeps/mach/hurd/_G_config.h: Likewise.
13275
13276 2012-02-07  Marek Polacek  <polacek@redhat.com>
13277
13278         * math/Makefile (tests): Add tst-CMPLX2.
13279         * math/tst-CMPLX2.c: New file.
13280
13281 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13282
13283         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13284
13285         * math/libm-test.inc (jn_test): Add missing L suffix.
13286
13287 2012-02-06  Marek Polacek  <polacek@redhat.com>
13288
13289         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13290         * sysdeps/i386/fpu/e_powf.S: Likewise.
13291         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13292         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13293         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13294         * sysdeps/i386/fpu/e_pow.S: Likewise.
13295         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13296         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13297         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13298         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13299         * sysdeps/i386/fpu/e_log2.S: Likewise.
13300         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13301         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13302         * sysdeps/i386/fpu/e_powl.S: Likewise.
13303         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13304         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13305         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13306         * sysdeps/i386/fpu/e_logl.S: Likewise.
13307         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13308         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13309         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13310         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13311         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13312         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13313         * sysdeps/i386/fpu/e_log.S: Likewise.
13314         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13315         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13316         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13317         * sysdeps/i386/fpu/e_logf.S: Likewise.
13318         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13319         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13320         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13321         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13322         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13323         * sysdeps/i386/fpu/e_log10.S: Likewise.
13324         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13325         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13326         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13327         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13328         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13329         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13330         * sysdeps/i386/asm-syntax.h: Likewise.
13331         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13332         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13333         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13334         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13335         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13336         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13337         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13338         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13339         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13340         * sysdeps/powerpc/sysdep.h: Likewise.
13341         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13342         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13343
13344 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13345
13346         [BZ #411]
13347         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13348
13349 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13350
13351         * sysdeps/i386/sysdep.h: Include <features.h>.
13352         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13353         version.
13354
13355 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13356
13357         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13358         Define.
13359         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13360         LOAD_PIC_REG_STR.
13361
13362 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13363
13364         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13365         (SETUP_PIC_REG): Use GET_PC_THUNK.
13366         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13367         macro.
13368
13369 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13370
13371         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13372         for non-PIC compilation.
13373         (SETUP_PIC_REG): Add .p2align directive.
13374         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13375         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13376         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13377         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13378         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13379         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13380         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13381         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13382         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13383         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13384         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13385         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13386         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13387         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13388         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13389         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13390         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13391         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13392         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13393         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13394         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13395         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13396         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13397         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13398         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13399         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13400         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13401         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13402         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13403         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13404         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13405         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13406         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13407         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13408         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13409         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13410         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13411         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13412         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13413         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13414         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13415
13416 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13417
13418         * math/tst-CMPLX.c: Include <stdio.h>.
13419
13420 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13423         float.
13424         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13425         * sysdeps/sparc/bits/mathdef.h: Likewise.
13426
13427 2012-01-31  Marek Polacek  <polacek@redhat.com>
13428
13429         * libio/libio.h: Don't define _PARAMS.
13430         * locale/programs/config.h: Don't define PARAMS.
13431         * stdlib/strtol_l.c: Likewise.
13432         (__strtol_l): Remove PARAMS from the prototype.
13433
13434 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13435
13436         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13437         names.  Just use the correct names.  Remove unnecessary wrapper
13438         functions.
13439         * malloc/arena.c: Likewise.
13440         * malloc/hooks.c: Likewise.
13441
13442         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13443         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13444         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13445
13446 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13447
13448         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13449         into tail calls.
13450         (update_get_addr): New function.
13451         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13452         GET_ADDR_MODULE parameter.
13453
13454 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13455
13456         * crypt/cert.c: Remove __STDC__ conditionals.
13457         * crypt/crypt-entry.c: Likewise.
13458         * crypt/crypt_util.c: Likewise.
13459         * libio/filedoalloc.c: Likewise.
13460         * libio/fileops.c: Likewise.
13461         * libio/genops.c: Likewise.
13462         * libio/iofclose.c: Likewise.
13463         * libio/iofdopen.c: Likewise.
13464         * libio/iofopen.c: Likewise.
13465         * libio/iofopen64.c: Likewise.
13466         * libio/iogetdelim.c: Likewise.
13467         * libio/iopopen.c: Likewise.
13468         * libio/obprintf.c: Likewise.
13469         * libio/oldfileops.c: Likewise.
13470         * libio/oldiofclose.c: Likewise.
13471         * libio/oldiofdopen.c: Likewise.
13472         * libio/oldiofopen.c: Likewise.
13473         * libio/oldiopopen.c: Likewise.
13474         * libio/wfiledoalloc.c: Likewise.
13475         * libio/wgenops.c: Likewise.
13476         * locale/programs/xmalloc.c: Likewise.
13477         * misc/syslog.c: Likewise.
13478         * stdio-common/xbug.c: Likewise.
13479         * string/memchr.c: Likewise.
13480         * string/memcmp.c: Likewise.
13481         * string/memrchr.c: Likewise.
13482         * string/rawmemchr.c: Likewise.
13483         * sysdeps/posix/getcwd.c: Likewise.
13484         * time/strftime_l.c: Likewise.
13485
13486 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13487
13488         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13489         * config.make.in (config-cflags-sse2avx): Define.
13490         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13491         Fix typo.
13492
13493 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13494
13495         * scripts/config.guess: Update from upstream config git repository.
13496         * scripts/config.sub: Likewise.
13497
13498 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13499
13500         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13501         (EM_NUM): Update.
13502         (R_TILEPRO_*, R_TILEGX_*): New macros.
13503
13504         * scripts/firstversions.awk: Fix bug in version range handling.
13505
13506         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13507
13508         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13509
13510         * include/sys/epoll.h: New file.
13511         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13512         libc_hidden_def.
13513
13514 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13515
13516         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13517         Avoid unnecessary __WORDSIZE == 64 test.
13518         (fmaxf): Use VEX format if possible.
13519         (fmax): Likewise.
13520         (fminf): Likewise.
13521         (fmin): Likewise.
13522
13523         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13524         * math/math_private.h: Remove libc_fegetround* and
13525         libc_fesetround*.
13526         * sysdeps/i386/configure.in: Check for -msse2avx.
13527         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13528         also if SSE2AVX is defined.
13529         Remove libc_fegetround* and libc_fesetround*.
13530         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13531         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13532         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13533         of HAS_YMM_USABLE.
13534         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13535         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13536         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13537         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13538         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13539
13540         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13541
13542 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13543
13544         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13545         size is not set.
13546         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13547
13548 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13549
13550         [BZ #13618]
13551         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13552         relocation.
13553         * Makeconfig (libm): Define.
13554         * elf/Makefile: Add rules to build and run tst-relsort1.
13555         * elf/tst-relsort1.c: New file.
13556         * elf/tst-relsort1mod1.c: New file.
13557         * elf/tst-relsort1mod2.c: New file.
13558
13559 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13560
13561         * math/s_ldexp.c: Remove __STDC__ conditionals.
13562         * math/s_ldexpf.c: Likewise.
13563         * math/s_ldexpl.c: Likewise.
13564         * math/s_nextafter.c: Likewise.
13565         * math/s_nexttowardf.c: Likewise.
13566         * math/s_significand.c: Likewise.
13567         * math/s_significandf.c: Likewise.
13568         * math/s_significandl.c: Likewise.
13569         * math/w_jnl.c: Likewise.
13570         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13571         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13572         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13573         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13574         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13575         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13576         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13577         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13578         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13579         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13580         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13581         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13582         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13583         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13584         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13585         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13586         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13587         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13588         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13589         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13590         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13591         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13592         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13593         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13594         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13595         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13596         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13597         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13598         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13599         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13600         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13601         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13602         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13603         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13604         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13605         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13606         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13607         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13608         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13609         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13610         * sysdeps/ieee754/k_standard.c: Likewise.
13611         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13612         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13613         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13614         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13615         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13616         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13617         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13618         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13619         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13620         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13621         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13622         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13623         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13624         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13625         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13626         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13627         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13628         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13629         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13630         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13631         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13632         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13633         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13634         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13635         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13636         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13637         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13638         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13639         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13640         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13641         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13642         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13643         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13644         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13645         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13646         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13647         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13648         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13649         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13650         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13651         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13652         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13653         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13654         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13655         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13656         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13657         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13658         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13659         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13660         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13661         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13662         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13663         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13664         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13665         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13666         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13667         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13668         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13669         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13670         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13671         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13672         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13673         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13674         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13675         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13676         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13677         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13678         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13679         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13680         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13681         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13682         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13683         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13684         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13685         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13686         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13687         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13688         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13689         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13690         * sysdeps/ieee754/s_matherr.c: Likewise.
13691         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13692         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13693         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13694         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13695
13696 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13697
13698         * crypt/md5.h: Remove __STDC__ conditionals.
13699         * libio/libioP.h: Likewise.
13700         * locale/programs/config.h: Likewise.
13701         * sysdeps/generic/sysdep.h: Likewise.
13702         * sysdeps/i386/asm-syntax.h: Likewise.
13703         * sysdeps/s390/asm-syntax.h: Likewise.
13704         * sysdeps/unix/sysdep.h: Likewise.
13705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13707
13708 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13709
13710         * libio/libio.h: Remove __STDC__ conditionals.
13711         * malloc/obstack.h: Likewise.
13712         * math/complex.h: Likewise.
13713         * math/math.h: Likewise.
13714         * sysdeps/generic/_G_config.h: Likewise.
13715         * sysdeps/gnu/_G_config.h: Likewise.
13716         * sysdeps/mach/hurd/_G_config.h: Likewise.
13717         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13718         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13719         * sysdeps/sparc/bits/mathdef.h: Likewise.
13720
13721 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13722
13723         [BZ #13583]
13724         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13725         Clean up HAS_* macros.
13726         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13727         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13728         possible.
13729         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13730         HAS_AVX.
13731         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13732         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13733         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13734         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13735         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13736
13737 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13738
13739         * elf/tst-unique3.cc (gets): Remove declaration.
13740         * elf/tst-unique3lib.cc (gets): Likewise.
13741         * elf/tst-unique3lib2.cc (gets): Likewise.
13742         * elf/tst-unique4.cc (gets): Likewise.
13743
13744 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13745
13746         * include/stdio.h: Add C++ protection.  Add gets declarations and
13747         definitions.
13748         * debug/tst-chk1.c: Don't declare gets here.
13749         * stdio-common/tst-gets.c: Likewise.
13750
13751 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13752
13753         * posix/glob: Remove directory.
13754
13755 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13756
13757         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13758
13759 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13760
13761         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13762         of the non-standard EPFNOSUPPORT.
13763
13764 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13765
13766         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13767         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13768         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13769
13770 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13771
13772         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13773
13774 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13775
13776         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13777         transient errors.
13778         * nscd/grpcache.c (cache_addgr): Likewise.
13779         * nscd/hstcache.c (cache_addhst): Likewise.
13780         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13781         * nscd/pwdcache.c (cache_addpw): Likewise.
13782         * nscd/servicescache.c (cache_addserv): Likewise.
13783
13784 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13785
13786         * malloc/malloc.c: Various cleanups.
13787         * malloc/hooks.c: Likewise.
13788
13789         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13790         * stdlib/bug-fmtmsg1.c: New file.
13791
13792         * stdlib/fmtmsg.c (init): Add missing unlock.
13793         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13794
13795 2012-01-12  Marek Polacek  <polacek@redhat.com>
13796
13797         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13798         and _GNU_SOURCE.
13799
13800 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13801
13802         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13803         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13804         macro to ensure uniqueness of label name.
13805         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13806         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13807
13808 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13809
13810         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13811
13812         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13813         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13814         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13815         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13816
13817 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13818
13819         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13820
13821         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13822         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13823         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13824
13825         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13826
13827         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13828         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13829         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13830         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13831
13832         * math/bits/math-finite.h: Add ldexp support.
13833
13834 2012-01-10  Marek Polacek  <polacek@redhat.com>
13835
13836         * locale/programs/localedef.h (show_archive_content): Add noreturn
13837         attribute.
13838
13839 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13840
13841         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13842
13843 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13844
13845         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13846
13847         * io/Makefile (headers): Add bits/poll2.h.
13848
13849 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13850
13851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13852         typo #include statement.
13853
13854 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13855
13856         * include/sys/cdefs.h: Define __attribute_alloc_size.
13857         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13858         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13859         * elf/pldd.c: Likewise.
13860         * iconv/iconv_charmap.c: Likewise.
13861         * iconv/iconvconfig.c: Likewise.
13862         * iconv/strtab.c: Likewise.
13863         * locale/programs/locale.c: Likewise.
13864         * locale/programs/localedef.h: Likewise.
13865         * locale/programs/simple-hash.c: Likewise.
13866         * nscd/nscd.h: Likewise.
13867         * nss/makedb.c: Likewise.
13868         * sysdeps/generic/ldconfig.h: Likewise.
13869         * locale/programs/localedef.c: Remove xmalloc prototype.
13870         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13871
13872 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13873
13874         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13875         appropriate.
13876
13877 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13878
13879         * math/Makefile (tests): Add tst-CMPLX.
13880         * math/tst-CMPLX.c: New file.
13881
13882         * math/complex.h (CMPLXL): Fix typo.
13883
13884         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13885         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13886         GLIBC_2.16.
13887         * debug/tst-chk1.c: Add poll and ppoll tests.
13888         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13889         * include/sys/poll.h: Add hidden proto for ppoll.
13890         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13891         * sysdeps/mach/hurd/ppoll.c: Likewise.
13892         * io/ppoll.c: Likewise.
13893         * debug/poll_chk.c: New file.
13894         * debug/ppoll_chk.c: New file.
13895         * include/bits/poll2.h: New file.
13896         * io/bits/poll2.h: New file.
13897
13898         [BZ #1350]
13899         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13900
13901         * configure.in: static is always set to yes.  Remove.
13902         * config.make.in: Don't set build-static.
13903         * Makeconfig: Remove use of build-static.
13904         * dlfcn/Makefile: Likewise.
13905         * elf/Makefile: Likewise.
13906         * math/Makefile: Likewise.
13907         * misc/Makefile: Likewise.
13908         * nptl/Makefile: Likewise.
13909         * sysdeps/mach/hurd/Makefile: Likewise.
13910
13911         * configure.in: PWD_P is not used anymore.
13912         * config.make.in: Remove PWD_P entry.
13913
13914         * configure.in: Remove last remnants of RANLIB.
13915         No need to check for signed size_t anymore.
13916         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13917         and IA-64.
13918         Remove __builtin_expect test because we require at least gcc 3.4.
13919         * aclocal.m4: Likewise.
13920
13921         * wcsmbs/mbrtoc16.c: Implement using towc function.
13922         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13923         * wcsmbs/wcsmbsload.c: Likewise.
13924         * iconv/gconv_simple.c: Likewise.
13925         * iconv/gconv_int.h: Likewise.
13926         * iconv/gconv_builtin.h: Likewise.
13927         * iconv/iconv_prog.c: Remove CHAR16 handling.
13928
13929         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13930
13931         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13932
13933         * configure.in: Remove --with-elf and --enable-bounded options.
13934         Dont set base_machine for ia64.  More non-ELF conditions removed.
13935         Remove testing and setting of leading underscore information.
13936         * config.make.in (build-bounded): Set to no.
13937         * config.h.in: Remove NO_UNDERSCORES entry.
13938         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13939         them.
13940         * csu/start.c: Remove !NO_UNDERSCORE code.
13941         * locale/localeinfo.h: Likewise.
13942         * sysdeps/generic/machine-gmon.h: Likewise.
13943         * sysdeps/generic/sysdep.h: Likewise.
13944         * sysdeps/i386/sysdep.h: Likewise.
13945         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13946         * sysdeps/mach/sysdep.h: Likewise.
13947         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13948         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13949         * sysdeps/sh/sysdep.h: Likewise.
13950         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13951         * sysdeps/unix/i386/sysdep.S: Likewise.
13952         * sysdeps/unix/sparc/start.c: Likewise.
13953         * sysdeps/unix/sparc/sysdep.S: Likewise.
13954         * sysdeps/unix/sparc/sysdep.h: Likewise.
13955         * sysdeps/unix/start.c: Likewise.
13956         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13957         * sysdeps/x86_64/sysdep.h: Likewise.
13958
13959 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13960
13961         [BZ #13553]
13962         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13963         for non-gcc.
13964         * argp/argp-fmtstream.h: Use const instead __const.
13965         * argp/argp.h: Likewise.
13966         * assert/assert.h: Likewise.
13967         * bits/fenv.h: Likewise.
13968         * bits/sched.h: Likewise.
13969         * bits/sigset.h: Likewise.
13970         * bits/sigthread.h: Likewise.
13971         * catgets/nl_types.h: Likewise.
13972         * conform/data/pthread.h-data: Likewise.
13973         * crypt/crypt-private.h: Likewise.
13974         * crypt/crypt.h: Likewise.
13975         * crypt/crypt_util.c: Likewise.
13976         * ctype/ctype.h: Likewise.
13977         * debug/execinfo.h: Likewise.
13978         * debug/mbsnrtowcs_chk.c: Likewise.
13979         * debug/mbsrtowcs_chk.c: Likewise.
13980         * debug/wcsnrtombs_chk.c: Likewise.
13981         * debug/wcsrtombs_chk.c: Likewise.
13982         * debug/wcstombs_chk.c: Likewise.
13983         * dirent/dirent.h: Likewise.
13984         * dlfcn/dlfcn.h: Likewise.
13985         * elf/neededtest4.c: Likewise.
13986         * grp/grp.h: Likewise.
13987         * gshadow/gshadow.h: Likewise.
13988         * iconv/gconv.h: Likewise.
13989         * iconv/gconv_int.h: Likewise.
13990         * iconv/gconv_simple.c: Likewise.
13991         * iconv/iconv.h: Likewise.
13992         * iconv/loop.c: Likewise.
13993         * iconv/skeleton.c: Likewise.
13994         * include/aio.h: Likewise.
13995         * include/aliases.h: Likewise.
13996         * include/argz.h: Likewise.
13997         * include/arpa/inet.h: Likewise.
13998         * include/assert.h: Likewise.
13999         * include/dirent.h: Likewise.
14000         * include/dlfcn.h: Likewise.
14001         * include/execinfo.h: Likewise.
14002         * include/fcntl.h: Likewise.
14003         * include/fenv.h: Likewise.
14004         * include/glob.h: Likewise.
14005         * include/grp.h: Likewise.
14006         * include/libintl.h: Likewise.
14007         * include/mntent.h: Likewise.
14008         * include/netdb.h: Likewise.
14009         * include/pwd.h: Likewise.
14010         * include/rpc/netdb.h: Likewise.
14011         * include/sched.h: Likewise.
14012         * include/search.h: Likewise.
14013         * include/shadow.h: Likewise.
14014         * include/signal.h: Likewise.
14015         * include/stdio.h: Likewise.
14016         * include/stdlib.h: Likewise.
14017         * include/string.h: Likewise.
14018         * include/sys/socket.h: Likewise.
14019         * include/sys/stat.h: Likewise.
14020         * include/sys/statfs.h: Likewise.
14021         * include/sys/statvfs.h: Likewise.
14022         * include/sys/syslog.h: Likewise.
14023         * include/sys/time.h: Likewise.
14024         * include/sys/uio.h: Likewise.
14025         * include/time.h: Likewise.
14026         * include/unistd.h: Likewise.
14027         * include/utmp.h: Likewise.
14028         * include/wchar.h: Likewise.
14029         * include/wctype.h: Likewise.
14030         * inet/aliases.h: Likewise.
14031         * inet/arpa/inet.h: Likewise.
14032         * inet/netinet/ether.h: Likewise.
14033         * inet/netinet/in.h: Likewise.
14034         * intl/libintl.h: Likewise.
14035         * io/bits/fcntl2.h: Likewise.
14036         * io/fcntl.h: Likewise.
14037         * io/ftw.h: Likewise.
14038         * io/sys/poll.h: Likewise.
14039         * io/sys/stat.h: Likewise.
14040         * io/sys/statfs.h: Likewise.
14041         * io/sys/statvfs.h: Likewise.
14042         * io/utime.h: Likewise.
14043         * libio/bits/stdio.h: Likewise.
14044         * libio/bits/stdio2.h: Likewise.
14045         * libio/libio.h: Likewise.
14046         * libio/libioP.h: Likewise.
14047         * libio/stdio.h: Likewise.
14048         * locale/lc-ctype.c: Likewise.
14049         * locale/locale.h: Likewise.
14050         * login/utmp.h: Likewise.
14051         * malloc/arena.c: Likewise.
14052         * malloc/malloc.c: Likewise.
14053         * malloc/malloc.h: Likewise.
14054         * malloc/mcheck.c: Likewise.
14055         * malloc/mtrace.c: Likewise.
14056         * math/bits/mathcalls.h: Likewise.
14057         * math/fenv.h: Likewise.
14058         * math/math_private.h: Likewise.
14059         * misc/bits/error.h: Likewise.
14060         * misc/bits/syslog.h: Likewise.
14061         * misc/err.h: Likewise.
14062         * misc/error.h: Likewise.
14063         * misc/fstab.h: Likewise.
14064         * misc/mntent.h: Likewise.
14065         * misc/regexp.h: Likewise.
14066         * misc/search.h: Likewise.
14067         * misc/sgtty.h: Likewise.
14068         * misc/sys/mman.h: Likewise.
14069         * misc/sys/syslog.h: Likewise.
14070         * misc/sys/uio.h: Likewise.
14071         * misc/sys/xattr.h: Likewise.
14072         * misc/ttyent.h: Likewise.
14073         * nis/rpcsvc/ypclnt.h: Likewise.
14074         * nss/nss.h: Likewise.
14075         * posix/bits/unistd.h: Likewise.
14076         * posix/fnmatch.h: Likewise.
14077         * posix/glob.h: Likewise.
14078         * posix/sched.h: Likewise.
14079         * posix/spawn.h: Likewise.
14080         * posix/sys/wait.h: Likewise.
14081         * posix/unistd.h: Likewise.
14082         * posix/wordexp.h: Likewise.
14083         * pwd/pwd.h: Likewise.
14084         * resolv/netdb.h: Likewise.
14085         * resource/sys/resource.h: Likewise.
14086         * rt/aio.h: Likewise.
14087         * rt/bits/mqueue2.h: Likewise.
14088         * rt/mqueue.h: Likewise.
14089         * shadow/shadow.h: Likewise.
14090         * signal/signal.h: Likewise.
14091         * socket/send.c: Likewise.
14092         * socket/sendto.c: Likewise.
14093         * socket/sys/socket.h: Likewise.
14094         * stdio-common/printf.h: Likewise.
14095         * stdlib/bits/stdlib.h: Likewise.
14096         * stdlib/fmtmsg.h: Likewise.
14097         * stdlib/monetary.h: Likewise.
14098         * stdlib/stdlib.h: Likewise.
14099         * stdlib/ucontext.h: Likewise.
14100         * streams/stropts.h: Likewise.
14101         * string/argz.h: Likewise.
14102         * string/bits/string2.h: Likewise.
14103         * string/string.h: Likewise.
14104         * string/strings.h: Likewise.
14105         * sunrpc/rpc/auth.h: Likewise.
14106         * sunrpc/rpc/auth_des.h: Likewise.
14107         * sunrpc/rpc/clnt.h: Likewise.
14108         * sunrpc/rpc/netdb.h: Likewise.
14109         * sunrpc/rpc/pmap_clnt.h: Likewise.
14110         * sunrpc/rpc/xdr.h: Likewise.
14111         * sysdeps/generic/inttypes.h: Likewise.
14112         * sysdeps/generic/net/if.h: Likewise.
14113         * sysdeps/generic/sys/swap.h: Likewise.
14114         * sysdeps/gnu/net/if.h: Likewise.
14115         * sysdeps/gnu/utmpx.h: Likewise.
14116         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14117         * sysdeps/i386/i486/bits/string.h: Likewise.
14118         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14119         * sysdeps/s390/bits/string.h: Likewise.
14120         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14121         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14122         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14123         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14124         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14125         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14126         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14127         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14128         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14129         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14130         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14131         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14132         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14133         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14134         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14135         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14136         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14137         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14138         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14139         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14140         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14141         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14142         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14143         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14144         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14145         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14146         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14147         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14148         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14149         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14150         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14151         * sysvipc/sys/ipc.h: Likewise.
14152         * sysvipc/sys/msg.h: Likewise.
14153         * sysvipc/sys/sem.h: Likewise.
14154         * sysvipc/sys/shm.h: Likewise.
14155         * termios/termios.h: Likewise.
14156         * time/sys/time.h: Likewise.
14157         * time/time.h: Likewise.
14158         * wcsmbs/bits/wchar2.h: Likewise.
14159         * wcsmbs/uchar.h: Likewise.
14160         * wcsmbs/wchar.h: Likewise.
14161         * wctype/wctype.h: Likewise.
14162
14163         [BZ #13551]
14164         * Makeconfig: Remove all but ELF support including AIX support.
14165         * Makerules: Likewise.
14166         * config.h.in: Likewise.
14167         * config.make.in: Likewise.
14168         * configure: Likewise.
14169         * configure.in: Likewise.
14170         * csu/Makefile: Likewise.
14171         * csu/version.c: Likewise.
14172         * debug/Makefile: Likewise.
14173         * dlfcn/Makefile: Likewise.
14174         * elf/Makefile: Likewise.
14175         * extra-lib.mk: Likewise.
14176         * iconv/Makefile: Likewise.
14177         * include/libc-symbols.h: Likewise.
14178         * include/shlib-compat.h: Likewise.
14179         * resolv/Makefile: Likewise.
14180         * resolv/res_libc.c: Likewise.
14181         * rt/Makefile: Likewise.
14182         * sysdeps/i386/asm-syntax.h: Likewise.
14183         * sysdeps/i386/sysdep.h: Likewise.
14184         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14185         * sysdeps/mach/sysdep.h: Likewise.
14186         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14187         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14188         * sysdeps/s390/asm-syntax.h: Likewise.
14189         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14190         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14191         * sysdeps/sh/sysdep.h: Likewise.
14192         * sysdeps/unix/sparc/sysdep.h: Likewise.
14193         * sysdeps/wordsize-32/divdi3.c: Likewise.
14194         * sysdeps/x86_64/sysdep.h: Likewise.
14195
14196         * argp/Versions: Remove _argp_unlock_xxx.
14197
14198         [BZ #13559]
14199         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14200         * abilist/libBrokenLocale.abilist: Likewise.
14201         * abilist/libanl.abilist: Likewise.
14202         * abilist/libc.abilist: Likewise.
14203         * abilist/libcrypt.abilist: Likewise.
14204         * abilist/libdl.abilist: Likewise.
14205         * abilist/libm.abilist: Likewise.
14206         * abilist/libnsl.abilist: Likewise.
14207         * abilist/libpthread.abilist: Likewise.
14208         * abilist/libresolv.abilist: Likewise.
14209         * abilist/librt.abilist: Likewise.
14210         * abilist/libthread_db.abilist: Likewise.
14211         * abilist/libutil.abilist: Likewise.
14212         * abilist/libnss_db.abilist: New file.
14213
14214         * scripts/abilist.awk: Add support for indirect functions.
14215
14216         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14217
14218         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14219
14220         * shlib-versions: Remove entries for ports architectures.
14221
14222         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14223         files in ports.
14224         * elf/stackguard-macros.h: Remove support for IA-64.
14225         * elf/tst-auditmod1.c: Likewise.
14226         * sysdeps/generic/ldsodefs.h: Likewise.
14227
14228         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14229         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14230         configure files.
14231
14232         [BZ #13552]
14233         * configure.in: Remove --enable-omitfp support.
14234         * FAQ.in: Adjust.
14235         * config.make.in: Likewise.
14236         * Makeconfig: Likewise.
14237         * manual/install.texi: Likewise.
14238
14239         In case anyone cares, the IA-64 architecture could move to ports.
14240         * sysdeps/ia64/*: Removed.
14241         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14242         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14243
14244         [BZ #13555]
14245         * configure.in: Remove entries for unsupported architectures.
14246
14247         [BZ #13533]
14248         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14249         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14250         routines.
14251         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14252         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14253         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14254         fall back to using wcrtomb.
14255         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14256         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14257         renaming.
14258         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14259         * wcsmbs/tst-c16c32-1.c: New file.
14260
14261         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14262         local variable.
14263
14264         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14265
14266         * elf/tst-unique3.cc: Add explicit declaration of gets.
14267         * elf/tst-unique3lib.cc: Likewise.
14268         * elf/tst-unique3lib2.cc: Likewise.
14269         * elf/tst-unique4.cc: Likewise.
14270
14271         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14272
14273 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14274
14275         [BZ #13566]
14276         * assert/assert.h (static_assert): Don't define for C++.
14277         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14278         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14279
14280 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14281
14282         * iconv/loop.c (single loop): Fix assertion in storing of
14283         remaining bytes.
14284
14285         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14286
14287 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14288
14289         * posix/getconf.c: Update copyright year.
14290         * nss/getent.c: Likewise.
14291         * nss/makedb.c: Likewise.
14292         * iconv/iconvconfig.c: Likewise.
14293         * iconv/iconv_prog.c: Likewise.
14294         * elf/ldconfig.c: Likewise.
14295         * elf/pldd.c: Likewise.
14296         * elf/sotruss.ksh: Likewise.
14297         * catgets/gencat.c: Likewise.
14298         * csu/version.c: Likewise.
14299         * elf/ldd.bash.in: Likewise.
14300         * elf/sprof.c (print_version): Likewise.
14301         * locale/programs/locale.c: Likewise.
14302         * locale/programs/localedef.c: Likewise.
14303         * login/programs/pt_chown.c: Likewise.
14304         * nscd/nscd.c (print_version): Likewise.
14305         * debug/xtrace.sh: Likewise.
14306         * malloc/memusage.sh: Likewise.
14307         * malloc/mtrace.pl: Likewise.
14308         * debug/catchsegv.sh: Likewise.
14309
14310 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14311
14312         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14313         pure attribute.
14314
14315 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14316
14317         [BZ #13533]
14318         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14319         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14320         transformations.
14321         * iconv/gconv_int.h: Likewise.
14322         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14323         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14324         from libc for GLIBC_2.16.
14325         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14326         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14327         * wcsmbs/uchar.h: Really define mbstate_t.
14328         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14329         * wcsmbs/c16rtomb.c: New file.
14330         * wcsmbs/mbrtoc16.c: New file.
14331         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14332         for C/POSIX locale.
14333         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14334         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14335
14336         * wcsmbs/wchar.h: Add missing __restrict.
14337
14338 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14339
14340         [BZ #13532]
14341         * time/Makefile (routines): Add timespec_get.
14342         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14343         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14344         timespec for ISO C11.
14345         * time/timespec_get.c: New file.
14346         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14347         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14348
14349         [BZ #13531]
14350         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14351         * stdlib/stdlib.h: Declare aligned_alloc.
14352         * Versions.def: Add GLIBC_2.16 for libc.
14353         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14354
14355         [BZ 13527]
14356         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14357         ISO C11.
14358
14359         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14360         code.
14361
14362         [BZ #13528]
14363         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14364
14365         [BZ #13529]
14366         * assert/assert.h (static_assert): Define.
14367
14368         * version.h: Update for 2.16 development version.
14369
14370         [BZ #13526]
14371         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14372         _ISOC11_SOURCE.
14373
14374         * version.h (RELEASE): Bump for 2.15 release.
14375         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14376
14377         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14378         Patch by Marek Polacek <mpolacek@redhat.com>.
14379
14380         * bits/byteswap.h: Protect long long constants with __extension__.
14381         * sysdeps/i386/bits/byteswap.h: Likewise.
14382         * sysdeps/ia64/bits/byteswap.h: Likewise.
14383         * sysdeps/s390/bits/byteswap.h: Likewise.
14384         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14385
14386 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14387
14388         [BZ #13540]
14389         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14390         destination buffer.
14391         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14392
14393 2011-12-23  Marek Polacek  <polacek@redhat.com>
14394
14395         * elf/dl-addr.c (determine_info): Add inline keyword.
14396         * elf/tst-auditmod4b.c (check_avx): Likewise.
14397         * elf/tst-auditmod6b.c (check_avx): Likewise.
14398         * elf/tst-auditmod6c.c (check_avx): Likewise.
14399         * elf/tst-auditmod7b.c (check_avx): Likewise.
14400
14401 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14402
14403         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14404         !__SSE_MATH__.
14405
14406 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14407
14408         [BZ #13540]
14409         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14410         processing for last bytes.
14411
14412 2011-08-06  Bruno Haible  <bruno@clisp.org>
14413
14414         [BZ #13061]
14415         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14416         U+0385, not to U+1FEE.
14417
14418         [BZ #13062]
14419         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14420         entry for U+00A5 U+0301.
14421
14422 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14423
14424         [BZ #13166]
14425         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14426         buffer for the output is too small.
14427
14428         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14429         optimization.
14430
14431         [BZ #13185]
14432         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14433         SSE flags if possible.
14434
14435 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14436
14437         [BZ #13540]
14438         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14439         processing for last bytes.
14440
14441 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14442
14443         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14444         (syscall-list-default-options, syscall-list-default-condition)
14445         (syscall-list-includes): Define.
14446         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14447         list of ABIs and options and #if conditions for each ABI.  Do not
14448         handle common syscalls between ABIs specially.
14449         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14450         Remove.
14451         (syscall-list-variants, syscall-list-32bit-options)
14452         (syscall-list-32bit-condition, syscall-list-64bit-options)
14453         (syscall-list-64bit-condition): Define.
14454         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14455         (syscall-list-variants, syscall-list-32bit-options)
14456         (syscall-list-32bit-condition, syscall-list-64bit-options)
14457         (syscall-list-64bit-condition): Define.
14458         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14459         Remove.
14460         (syscall-list-variants, syscall-list-32bit-options)
14461         (syscall-list-32bit-condition, syscall-list-64bit-options)
14462         (syscall-list-64bit-condition): Define.
14463         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14464         Remove.
14465         (syscall-list-variants, syscall-list-32bit-options)
14466         (syscall-list-32bit-condition, syscall-list-64bit-options)
14467         (syscall-list-64bit-condition): Define.
14468
14469 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14470
14471         * locale/iso-639.def: Add brx entry.
14472
14473         [BZ #13328]
14474         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14475         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14476
14477         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14478         __feraiseexcept_renamed.
14479
14480 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14481
14482         [BZ #13538]
14483         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14484         EPOLLET with unsigned values.
14485         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14486         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14487
14488         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14489         to large cancellation.
14490         * math/s_cacoshf.c: Likewise.
14491         * math/s_cacoshl.c: Likewise.
14492
14493 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14494
14495         [BZ #13305]
14496         [BZ #12786]
14497         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14498         * math/s_cacoshf.c: Likewise.
14499         * math/s_cacoshl.c: Likewise.
14500
14501 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14502
14503         [BZ #13439]
14504         * iconv/gconv.h: Define __GCONV_SWAP.
14505         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14506         * iconvdata/utf-16.c: Likewise.
14507         * iconvdata/utf-32.c: Likewise.
14508
14509 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14510
14511         [BZ #13524]
14512         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14513         numerator after shifting it by one limb.
14514
14515 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14516
14517         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14518         under [__USE_EXTERN_INLINES].
14519
14520 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14521
14522         [BZ #13446]
14523         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14524
14525 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14526
14527         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14528         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14529         optimized code.
14530         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14531         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14532         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14533         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14534         for strncasecmp/strncasecmp_l compilation.
14535         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14536         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14537
14538 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14539
14540         [BZ #13484]
14541         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14542         of __asm__.
14543
14544 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14545
14546         [BZ #13506]
14547         * time/tzfile.c (__tzfile_read): Check values from file header.
14548
14549 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14550
14551         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14552         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14553         * powerpc/powerpc32/dl-start.S: Likewise.
14554         * powerpc/powerpc32/elf/start.S: Likewise.
14555         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14556         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14557         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14558         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14559         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14560         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14561         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14562         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14563         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14564         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14565         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14566         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14567         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14568         * powerpc/powerpc32/memset.S: Likewise.
14569         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14570         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14571         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14572         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14573         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14574         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14575         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14576         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14577         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14578         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14579         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14580         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14581         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14582
14583 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14584
14585         * math/libm-test.inc: Added more nearbyint tests.
14586         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14587         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14588         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14589         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14590
14591 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14592
14593         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14594         FD_CLOEXEC.
14595
14596 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14597
14598         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14599         Add wcscpy-ssse3 wcscpy-c.
14600         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14601         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14602         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14603         * sysdeps/x86_64/wcschr.S: New file.
14604         * sysdeps/x86_64/wcsrchr.S: New file.
14605         * string/test-strcmp.c: Remove checking of wcscmp function for
14606         wrong alignments.
14607         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14608         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14609         wcsrchr-sse2 wcsrchr-c.
14610         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14611         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14612         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14613         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14614         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14615         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14616         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14617         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14618         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14619         * wcsmbc/wcschr.c (WCSCHR): New macro.
14620
14621 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14622
14623         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14624         * wcsmbs/test-wcsrchr.c: New file.
14625         * string/test-strrchr.c: Add wcsrchr support.
14626         (WIDE): New macro.
14627         * wcsmbs/test-wcscpy.c: New file.
14628         * string/test-strcpy.c: Add wcscpy support.
14629         (WIDE): New macro.
14630
14631 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14632
14633         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14634         the inner loop.
14635
14636 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14637
14638         [BZ #13472]
14639         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14640
14641 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14642
14643         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14644         Minor optimizations.
14645
14646         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14647         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14648         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14649
14650 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14651
14652         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14653         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14654         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14655         for gcc to avoid warnings.
14656         * inet/Makefile (tests): Add tst-checks.
14657         * inet/tst-checks.c: New file.
14658
14659         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14660         warning.
14661
14662         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14663         __wmemcmp_sse2.
14664
14665         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14666         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14667
14668         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14669
14670 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14671
14672         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14673         problem.
14674
14675         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14676
14677 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14678
14679         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14680         conditional on GCC version.
14681         (__arch_compare_and_exchange_val_8_acq)
14682         (__arch_compare_and_exchange_val_16_acq)
14683         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14684         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14685         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14686
14687 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14688
14689         * sysdeps/sh/backtrace.c: New file.
14690
14691 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14692
14693         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14694         parenthesis.
14695
14696 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14697
14698         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14699         falling back to utime.
14700
14701 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14702
14703         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14704         expectations for float.
14705
14706 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14707
14708         * locale/weight.h (findidx): Add parameter len.
14709         * locale/weightwc.h (findidx): Likewise.
14710         * posix/fnmatch_loop.c (FCT): Adjust caller.
14711         * posix/regcomp.c (build_equiv_class): Likewise.
14712         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14713         * posix/regexec.c (check_node_accept_bytes): Likewise.
14714         * string/strcoll_l.c (STRCOLL): Likewise.
14715         * string/strxfrm_l.c (STRXFRM): Likewise.
14716
14717 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14718
14719         * Makefile.in: Remove CVSOPT handling.
14720         * configure.in: Remove use of AC_REVISION.
14721         * iconvdata/Makefile (distribute): No need to filter out CVS.
14722         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14723         handling.
14724
14725 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14726
14727         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14728         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14729         [USE_AS_STRNCASECMP_L]: Likewise.
14730         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14731         NO_TLS_DIRECT_SEG_REFS.
14732         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14733         Fix argument offsets for non-PIC.
14734         [USE_AS_STRNCASECMP_L]: Likewise.
14735         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14736         NO_TLS_DIRECT_SEG_REFS.
14737
14738 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14739
14740         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14741         O_CLOEXEC.
14742         * locale/loadlocale.c (_nl_load_locale): Likewise.
14743
14744 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14745
14746         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14747         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14748         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14749         (SYSCALL_GETTIME): Set errno on error.
14750
14751         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14752         count references to noai6ai_cached.
14753
14754 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14755
14756         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14757
14758         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14759         FD_CLOEXEC for /proc/self/maps.
14760
14761         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14762         FD_CLOEXEC for /proc/meminfo.
14763
14764         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14765         gai.conf.
14766
14767         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14768         FD_CLOEXEC for given file.
14769
14770         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14771
14772         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14773         FD_CLOEXEC for /etc/hosts.
14774         (_gethtent): Likewise.
14775
14776         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14777
14778         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14779         cancellation and set FD_CLOEXEC for /etc/netgroup.
14780
14781         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14782         reading /etc/publickey.
14783
14784         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14785         allow cancellation when reading /etc/group.
14786
14787         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14788         cancellation.
14789         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14790
14791         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14792         when using data file.
14793
14794         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14795
14796         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14797         (write_nis_obj): Use "c" and "e" in fopen.
14798
14799         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14800
14801         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14802
14803         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14804
14805         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14806
14807         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14808         locale.alias.
14809
14810         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14811
14812         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14813
14814         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14815
14816         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14817         file parsing and set FD_CLOEXEC.
14818
14819 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14820
14821         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14822
14823 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14824
14825         * malloc/arena.c (arena_get2): Don't call reused_arena when
14826         _int_new_arena failed.
14827
14828 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14829
14830         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14831         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14832         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14833         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14834         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14835         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14836         to compile strcasecmp and strncasecmp.
14837         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14838         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14839
14840         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14841
14842 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14843
14844         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14845         locale-defines.sym to gen-as-const-headers.
14846         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14847         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14848         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14849         to compile strcasecmp and strncasecmp.
14850         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14851         strcasecmp_l and strncasecmp_l.
14852         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14853         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14854         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14855         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14856         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14857         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14858         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14859         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14860         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14861         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14862         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14863
14864 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14865
14866         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14867         result of SYSDEP_GETTIME_CPU to retval.
14868         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14869         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14870
14871         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14872         variable.
14873
14874         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14875         mantissa words.
14876         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14877
14878         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14879         from unused variable.
14880
14881         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14882         DWARF definitions.
14883         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14884         for assembling.
14885
14886         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14887         over namespaces.
14888
14889         * sunrpc/rpc_prot.c (rejected): Fix case value.
14890
14891         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14892         unsigned long long int to avoid warnings in shift.
14893
14894         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14895         of use of trans.
14896         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14897         variable tmp.
14898
14899         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14900         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14901         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14902
14903         * nis/nis_table.c (nis_list): Use variable of correct type for
14904         result of __follow_path call.
14905
14906 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14907
14908         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14909         of math functions ceil, trunc, floor, round, and sqrt, when
14910         avaliable on the platform.
14911         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14912         name clash.
14913         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14914         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14915         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14916
14917 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14918
14919         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14920         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14921
14922 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14923
14924         * include/unistd.h: Fix __readlink return type.
14925         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14926
14927 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14928
14929         * stdlib/ucontext.h: Undo last change for makecontext.
14930
14931 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14932
14933         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14934
14935         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14936         * setjmp/setjmp.h: Mark functions as non-leaf.
14937         * setjmp/bits/setjmp2.h: Likewise.
14938         * stdlib/ucontext.h: Likewise.
14939
14940 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14941
14942         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14943         (reused_arena): Don't check arena limit.
14944         (arena_get2): Atomically check arena limit.
14945
14946 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14947
14948         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14949         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14950
14951         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14952         instructions.
14953
14954 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14955
14956         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14957         handler when locking.
14958
14959         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14960         Fix size of allocated buffer.
14961
14962 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14963
14964         [BZ #10103]
14965         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14966         declarations for long double functions.
14967         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14968
14969         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14970
14971 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14972
14973         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14974         installed.
14975
14976         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14977         is disabled.
14978
14979 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14980
14981         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14982
14983 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14984
14985         * include/alloca.h (stackinfo_alloca_round): Define.
14986         (extend_alloca): Use it.
14987         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14988         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14989         here.
14990
14991         * scripts/check-local-headers.sh: Ignore libaudit.h.
14992
14993         * nscd/Makefile (extra-objs): Make recursively expanded.
14994
14995 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14996
14997         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14998         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14999
15000         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
15001         * posix/tst-rfc3484-2.c: Likewise.
15002         * posix/tst-rfc3484-3.c: Likewise.
15003
15004         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
15005         process_vm_writev.
15006         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
15007         process_vm_writev.
15008         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
15009         process_vm_writev from libc using GLIBC_2.15 version.
15010
15011         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
15012
15013 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
15014
15015         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
15016         stack usage.
15017
15018 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
15019
15020         [BZ #13367]
15021         * nss/getent.c (initgroups_keys): Show error message in case no group
15022         names are given.
15023
15024         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
15025         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
15026         __bump_nl_timestamp.
15027         * nscd/connections (nscd_init): When host database is served open
15028         netlink socket and request notification about configuration changes.
15029         (main_loop_poll): Track netlink file descriptor and bump timestamp
15030         in case data becomes available.
15031         (main_loop_epoll): Likewise.
15032         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15033         (database_pers_head): Add extra_data fileds.
15034         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15035         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15036         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15037         Adjust caller.
15038         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15039         in6ai data, call __free_in6ai.
15040         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15041         Add -DHAVE_NETLINK.
15042         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15043         interface information.  Reuse previous data if netlink timestamp
15044         is not changed.
15045         (__bump_nl_timestamp): New function.
15046         (__free_in6ai): New function.
15047
15048 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15049
15050         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15051         close_not_cancel_no_status here.
15052         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15053
15054 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15055
15056         [BZ #13276]
15057         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15058         return value.
15059
15060         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15061         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15062         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15063
15064 2011-07-03  Andreas Jaeger  <aj@suse.de>
15065
15066         [BZ #10709]
15067         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15068         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15069         * math/libm-test.inc (sin_test): Add test case.
15070
15071 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15072
15073         [BZ #13337]
15074         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15075         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15076
15077         * elf/chroot_canon.c (chroot_canon): Cleanups.
15078
15079         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15080
15081         [BZ #13335]
15082         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15083         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15084
15085         * string/test-strchr.c: Make usable for strchrnul testing.
15086         * string/test-strchrnul.c: New file.
15087         * string/Makefile (strop-tests): Add strchrnul.
15088
15089         * po/it.po: Update from translation team.
15090         * po/es.po: Likewise.
15091
15092 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15093
15094         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15095         the three constants needed as parameters.  Drop the others.
15096         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15097         __m128i_strloadu_tolower.
15098         Create and initialize variable zero and use it in all the places
15099         where _mm_setzero_si128 was used.
15100
15101         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15102         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15103         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15104         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15105         anymore.
15106         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15107         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15108         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15109         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15110         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15111         __mpranred, __mptan.
15112         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15113         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15114         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15115         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15116         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15117         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15118         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15119         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15120         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15121
15122 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15123
15124         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15125         redefine if SHARED.
15126         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15127
15128         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15129         wide char related routines to wcsmbs subdir.
15130
15131 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15132
15133         [BZ #13344]
15134         * misc/sys/cdefs.h (__THROWNL): Define.
15135         * posix/unistd.h: Use __THREADNL instead of __THREAD
15136         for memory synchronization functions.
15137
15138 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15139
15140         [BZ #13349]
15141         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15142         doesn't exist.
15143         * manual/stdio.texi (Obstack Streams): Node removed.
15144
15145 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15146
15147         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15148         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15149         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15150
15151         * math/math_private.h (math_force_eval): Allow non-addressable
15152         arguments.
15153         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15154
15155 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15156
15157         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15158         file is not needed.
15159
15160         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15161         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15162         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15163         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15164         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15165         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15166         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15167         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15168         Add AVX variants.
15169         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15170         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15171         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15172         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15173         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15174         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15175         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15176         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15177         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15178         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15179         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15180         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15181         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15182         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15183         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15184         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15185         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15186         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15187         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15188
15189         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15190         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15191
15192         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15193         place.  Use VEX encoding when compiling for AVX.
15194
15195 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15196
15197         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15198         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15199
15200         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15201
15202 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15203
15204         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15205         useless if() expression.
15206         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15207         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15208         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15209         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15210         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15211         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15212         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15213         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15214         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15215         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15216         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15217         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15218         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15219         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15220         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15221         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15222         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15223         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15224         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15225
15226         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15227
15228 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15229
15230         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15231         condition.
15232         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15233
15234 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15235
15236         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15237         .text section.  Avoid duplicate constants.
15238         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15239         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15240         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15241         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15242         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15243         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15244         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15245         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15246         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15247         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15248         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15249         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15250         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15251         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15252         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15253         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15254         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15255         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15256         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15257         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15258         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15259         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15260         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15261         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15262         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15263         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15264         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15265         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15266         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15267         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15268         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15269         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15270         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15271         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15272         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15273         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15274         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15275         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15276         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15277         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15278         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15279         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15280         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15281         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15282         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15283
15284 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15285
15286         * sysdeps/x86_64/dla.h: Move to ...
15287         * sysdeps/x86_64/fpu/dla.h: ...here.
15288         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15289         situations.  Use __builtin_fma only for gcc 4.6 and up.
15290
15291         * config.make.in: Add have-mfma4 entry.
15292         * configure.in: Substitute libc_cv_cc_fma4.
15293         * math/Makefile (dbl-only-routines): Add sincostab.
15294         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15295         Use __sincostab not sincos.
15296         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15297         name is a macro.
15298         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15299         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15300         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15301         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15302         using __copysign.
15303         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15304         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15305         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15306         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15307         and __inv.
15308         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15309         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15310         __copysign.
15311         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15312         define aliases when function name is a macro.
15313         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15314         sysdeps/ieee754/dbl-64/sincos.tbl.
15315         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15316         fma4-enabled routines.
15317         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15318         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15319         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15320         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15321         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15322         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15323         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15324         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15325         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15326         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15327         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15328         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15329         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15330         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15331         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15332         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15333         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15334         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15335         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15336         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15337         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15338         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15339         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15340         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15341         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15342         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15343         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15344         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15345         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15346         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15347
15348         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15349         rename.
15350         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15351         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15352         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15353         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15354         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15355         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15356         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15357         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15358
15359 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15360
15361         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15362
15363 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15364
15365         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15366
15367         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15368         prediction.
15369         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15370
15371         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15372         Remove unused variable magic_bits.
15373         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15374
15375         * string/strnlen.c: Define and use STRNLEN macro.
15376         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15377         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15378         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15379         * wcsmbs/wcslen.c: Define and use WCSLEN.
15380         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15381         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15382         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15383         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15384         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15385         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15386         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15387
15388 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15389
15390         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15391         strnlen-sse2-no-bsf.
15392         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15393         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15394         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15395         Add strnlen support.
15396         (USE_AS_STRNLEN): New macro.
15397         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15398         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15399         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15400         * sysdeps/x86_64/wcslen.S: New file.
15401
15402 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15403
15404         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15405         XMM-moves are used for copying on small sizes.
15406
15407 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15408
15409         * wcsmbs/Makefile (strop-tests): Add wcschr.
15410         * wcsmbs/test-wcschr.c: New file.
15411         * string/test-strchr.c: Update.
15412         Add wcschr support.
15413         (WIDE): New macro.
15414
15415 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15416
15417         * wcsmbs/Makefile (strop-tests): Add wcslen.
15418         * wcsmbs/test-wcslen.c: New file.
15419         * string/test-strlen.c: Update.
15420         Add wcslen support.
15421         (WIDE): New macro.
15422
15423 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15424
15425         * po/it.po: Update from translation team.
15426
15427 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15428
15429         * sysdeps/x86_64/wcscmp.S: Update.
15430         Fix wrong comparison semantics.
15431         wcscmp shall use signed comparison not unsigned.
15432         Don't use substraction to avoid overflow bug.
15433         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15434         * wcsmbc/wcscmp.c: Likewise.
15435         * string/test-strcmp.c: Likewise.
15436         Add new tests to check cases with negative values.
15437
15438 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15439
15440         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15441         * sysdeps/x86_64/dla.h: ...here.  New file.
15442         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15443         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15444         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15445         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15446         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15447         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15448         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15449         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15450         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15451
15452 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15453
15454         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15455         __ynl_finite aliases.
15456
15457 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15458
15459         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15460
15461         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15462         define DLA_FMA.
15463         [DLA_FMA] (EMULV): Use DLA_FMA.
15464         [DLA_FMA] (MUL12): Use EMULV.
15465         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15466         that are not needed.
15467         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15468         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15469         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15470         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15471         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15472         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15473         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15474
15475 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15476
15477         * math/s_nan.c: Undef __nan.
15478         * math/s_nanf.c: Undef __nanf.
15479         * math/s_nanl.c: Undef __nanl.
15480         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15481         "math_private.h".
15482
15483 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15484
15485         * math/s_catan.c: Add branch predictions.
15486         * math/s_catanf.c: Likewise.
15487         * math/s_catanh.c: Likewise.
15488         * math/s_catanhf.c: Likewise.
15489         * math/s_catanhl.c: Likewise.
15490         * math/s_catanl.c: Likewise.
15491         * math/s_cexp.c: Likewise.
15492         * math/s_cexpf.c: Likewise.
15493         * math/s_cexpl.c: Likewise.
15494         * math/s_clog.c: Likewise.
15495         * math/s_clog10.c: Likewise.
15496         * math/s_clog10f.c: Likewise.
15497         * math/s_clog10l.c: Likewise.
15498         * math/s_clogf.c: Likewise.
15499         * math/s_clogl.c: Likewise.
15500         * math/s_csqrt.c: Likewise.
15501         * math/s_csqrtf.c: Likewise.
15502         * math/s_csqrtl.c: Likewise.
15503         * math/s_ctanf.c: Likewise.
15504         * math/s_ctanh.c: Likewise.
15505         * math/s_ctanhf.c: Likewise.
15506         * math/s_ctanhl.c: Likewise.
15507         * math/s_ctanl.c: Likewise.
15508
15509         * math/math_private.h: Define __nan, __nanf, __nanl.
15510         * math/s_cacosh.c: Include <math_private.h>.
15511         * math/s_cacoshl.c: Likewise.
15512         * math/s_casinh.c: Likewise.
15513         * math/s_casinhf.c: Likewise.
15514         * math/s_casinhl.c: Likewise.
15515         * math/s_ccos.c: Rely entire on ccosh.
15516         * math/s_ccosf.c: Rely entire on ccoshf.
15517         * math/s_ccosl.c: Rely entirely on ccoshl.
15518         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15519         Remove tests for FE_INVALID.
15520         * math/s_ccoshf.c: Likewise.
15521         * math/s_ccoshl.c: Likewise.
15522         * math/s_csin.c: Likewise.
15523         * math/s_csinf.c: Likewise.
15524         * math/s_csinh.c Likewise.
15525         * math/s_csinhf.c: Likewise.
15526         * math/s_csinhl.c: Likewise.
15527         * math/s_csinl.c: Likewise.
15528         * math/s_ctan.c: Likewise.
15529         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15530         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15531         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15532
15533 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15534
15535         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15536         compilation problems.
15537
15538         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15539         __builtin_expect.
15540
15541 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15542
15543         * sysdeps/i386/configure.in: Test for -mfma4 option.
15544         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15545         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15546         COMMON_CPUID_INDEX_80000001.
15547         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15548         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15549         use it if FMA3 is not supported.
15550         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15551
15552         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15553         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15554
15555 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15556
15557         [BZ #12892]
15558         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15559         it would create a cycle with a link time dependency.
15560
15561 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15562
15563         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15564         instruction.
15565         * string/Makefile (strop-tests): Add rawmemchr.
15566         * string/test-rawmemchr.c: New file.
15567
15568         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15569         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15570         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15571         when compiling str{,n}casecmp and when AVX is available.  Hook up
15572         new optimized code in initializers.
15573
15574 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15575
15576         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15577         __feraiseexcept instead of feraiseexcept.
15578
15579 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15580
15581         * math/math_private.h: Define defaults for libc_fetestexcept and
15582         libc_feupdateenv.
15583         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15584         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15585         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15586         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15587         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15588         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15589         libc_fetestexcept and libc_feupdateenv.
15590
15591         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15592         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15593         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15594         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15595         libc_feholdexcept_setround.
15596
15597         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15598         Add s_nearbyint-c and s_nearbyintf-c.
15599         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15600         nearbyintf inlines.
15601         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15602         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15603         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15604         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15605
15606         * math/math_private.h: Define defaults for libc_fegetround,
15607         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15608         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15609         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15610         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15611         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15612         standard functions.
15613         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15614         Remove comments and hacks for old compiler versions.
15615         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15616         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15617         libc_feholdexceptl.
15618
15619 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15620
15621         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15622         (__feraiseexcept_renamed): Add __NTH.
15623         (feraiseexcept): Add __NTH.  Rename local variables to fix
15624         namespace violations.
15625
15626 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15627
15628         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15629
15630         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15631
15632         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15633         recently added interfaces.
15634         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15635
15636         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15637         about macro parameter expansion.
15638
15639         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15640         __NO_MATH_INLINES is defined.  Cleanups.
15641
15642         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15643         and __floorf is target has SSE4.1.
15644         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15645         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15646         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15647         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15648
15649         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15650         name.
15651         (floorf): Likewise.
15652
15653         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15654
15655 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15656
15657         * misc/sys/cdefs.h: Fix last change.
15658
15659         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15660         database lookup.
15661
15662 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15663
15664         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15665
15666         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15667         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15668         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15669         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15670         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15671         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15672         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15673         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15674         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15675         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15676         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15677         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15678         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15679         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15680         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15681         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15682         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15683         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15684         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15685         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15686         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15687         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15688
15689         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15690         ceil, ceilf, floor, floorf.
15691
15692         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15693         Perform IRELATIVE relocations last.
15694
15695         * elf/do-rel.h: Add another parameter nrelative, replacing the
15696         local variable with the same name.  Change name of the function
15697         to end in Rel or Rela (uppercase).
15698         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15699         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15700         elf_dynamic_do_##reloc function.
15701
15702 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15703
15704         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15705         is sufficient, at least on modern CPUs.
15706
15707         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15708
15709         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15710         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15711
15712         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15713         __expl_finite.
15714         * math/bits/math-finite.h: Add entries for exp.
15715         * math/e_expl.c: Add __*_finite alias.
15716         * sysdeps/i386/fpu/e_exp.S: Likewise.
15717         * sysdeps/i386/fpu/e_expf.S: Likewise.
15718         * sysdeps/i386/fpu/e_expl.c: Likewise.
15719         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15720         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15721         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15722         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15723         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15724         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15725         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15726
15727         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15728         is sufficient, at least on modern CPUs.
15729
15730         * ctype/ctype-info.c (__ctype_init): Define.
15731         * include/ctype.h (__ctype_init): Declare.
15732         (__ctype_b_loc): The variable is always initialized.
15733         (__ctype_toupper_loc): Likewise.
15734         (__ctype_tolower_loc): Likewise.
15735         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15736         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15737
15738 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15739
15740         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15741
15742         * configure.in: Also look in $cxxmachine/include for C++ system
15743         headers.
15744
15745 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15746
15747         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15748         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15749         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15750         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15751         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15752         (USE_AS_WMEMCMP): New macro.
15753         Fixing indents.
15754         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15755         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15756         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15757         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15758         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15759         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15760         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15761         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15762         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15763         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15764         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15765         (USE_AS_WMEMCMP): New macro.
15766         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15767         * sysdeps/string/test-memcmp.c: Update.
15768         Fix simple_wmemcmp.
15769         Add new tests.
15770         * wcsmbs/wmemcmp.c: Update.
15771         (WMEMCMP): New macro.
15772         Fix overflow bug.
15773
15774 2011-10-12  Andreas Jaeger  <aj@suse.de>
15775
15776         [BZ #13268]
15777         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15778
15779 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15780
15781         * libio/iofwide.c (do_length): Avoid warning.
15782
15783         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15784
15785 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15786
15787         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15788
15789         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15790         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15791         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15792         * sysdeps/i386/i686/fpu/e_log.S: New file.
15793         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15794         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15795
15796         * ctype/ctype.h: Add support for inlined isXXX functions when
15797         compiling C++ code.
15798
15799 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15800
15801         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15802
15803         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15804
15805 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15806
15807         [BZ #13291]
15808         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15809
15810 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15811
15812         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15813         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15814         feraiseexcept.
15815
15816         * sysdeps/x86_64/memrchr.S: Check for zero size.
15817
15818         * string/stratcliff.c: Add memrchr tests.
15819
15820 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15821
15822         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15823         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15824         rawmemchr-sse2 rawmemchr-sse2-bsf.
15825         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15826         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15827         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15828         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15829         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15830         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15831         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15832         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15833         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15834         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15835         * string/memrchr.c (MEMRCHR): New macro.
15836
15837 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15838
15839         Add integration with gcc's -ffinite-math-only and optimize wrapper
15840         functions in libm.
15841         * Versions.def: Define GLIBC_2.15 version for libm.
15842         * math/Makefile (headers): Add bits/math-finite.h.
15843         * math/bits/math-finite.h: New file.
15844         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15845         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15846         * math/e_acoshl.c: Add __*_finite alias.
15847         * math/e_acosl.c: Likewise.
15848         * math/e_asinl.c: Likewise.
15849         * math/e_atan2l.c: Likewise.
15850         * math/e_atanhl.c: Likewise.
15851         * math/e_coshl.c: Likewise.
15852         * math/e_exp10.c: Likewise.
15853         * math/e_exp10f.c: Likewise.
15854         * math/e_exp10l.c: Likewise.
15855         * math/e_exp2l.c: Likewise.
15856         * math/e_fmodl.c: Likewise.
15857         * math/e_gammal_r.c: Likewise.
15858         * math/e_hypotl.c: Likewise.
15859         * math/e_j0l.c: Likewise.
15860         * math/e_j1l.c: Likewise.
15861         * math/e_jnl.c: Likewise.
15862         * math/e_lgammal_r.c: Likewise.
15863         * math/e_log10l.c: Likewise.
15864         * math/e_log2l.c: Likewise.
15865         * math/e_logl.c: Likewise.
15866         * math/e_powl.c: Likewise.
15867         * math/e_sinhl.c: Likewise.
15868         * math/e_sqrtl.c: Likewise.
15869         * math/e_scalb.c: Completely rewritten and optimized.
15870         * math/e_scalbf.c: Likewise.
15871         * math/e_scalbl.c: Likewise.
15872         * math/w_acos.c: Likewise.
15873         * math/w_acosf.c: Likewise.
15874         * math/w_acosl.c: Likewise.
15875         * math/w_acosh.c: Likewise.
15876         * math/w_acoshf.c: Likewise.
15877         * math/w_acoshl.c: Likewise.
15878         * math/w_asin.c: Likewise.
15879         * math/w_asinf.c: Likewise.
15880         * math/w_asinl.c: Likewise.
15881         * math/w_atan2.c: Likewise.
15882         * math/w_atan2f.c: Likewise.
15883         * math/w_atan2l.c: Likewise.
15884         * math/w_atanh.c: Likewise.
15885         * math/w_atanhf.c: Likewise.
15886         * math/w_atanhl.c: Likewise.
15887         * math/w_exp10.c: Likewise.
15888         * math/w_exp10f.c: Likewise.
15889         * math/w_exp10l.c: Likewise.
15890         * math/w_fmod.c: Likewise.
15891         * math/w_fmodf.c: Likewise.
15892         * math/w_fmodl.c: Likewise.
15893         * math/w_j0.c: Likewise.
15894         * math/w_j0f.c: Likewise.
15895         * math/w_j0l.c: Likewise.
15896         * math/w_j1.c: Likewise.
15897         * math/w_j1f.c: Likewise.
15898         * math/w_j1l.c: Likewise.
15899         * math/w_jn.c: Likewise.
15900         * math/w_jnf.c: Likewise.
15901         * math/w_log.c: Likewise.
15902         * math/w_logf.c: Likewise.
15903         * math/w_logl.c: Likewise.
15904         * math/w_log10.c: Likewise.
15905         * math/w_log10f.c: Likewise.
15906         * math/w_log10l.c: Likewise.
15907         * math/w_log2.c: Likewise.
15908         * math/w_log2f.c: Likewise.
15909         * math/w_log2l.c: Likewise.
15910         * math/w_pow.c: Likewise.
15911         * math/w_powf.c: Likewise.
15912         * math/w_powl.c: Likewise.
15913         * math/w_remainder.c: Likewise.
15914         * math/w_remainderf.c: Likewise.
15915         * math/w_remainderl.c: Likewise.
15916         * math/w_scalb.c: Likewise.
15917         * math/w_scalbf.c: Likewise.
15918         * math/w_scalbl.c: Likewise.
15919         * math/w_sqrt.c: Likewise.
15920         * math/w_sqrtf.c: Likewise.
15921         * math/w_sqrtl.c: Likewise.
15922         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15923         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15924         used.
15925         * math/math_private.h: Declare __kernel_standard_f.
15926         * math/w_cosh.c: Remove cruft and optimize a bit.
15927         * math/w_coshf.c: Likewise.
15928         * math/w_coshl.c: Likewise.
15929         * math/w_exp2.c: Likewise.
15930         * math/w_exp2f.c: Likewise.
15931         * math/w_exp2l.c: Likewise.
15932         * math/w_hypot.c: Likewise.
15933         * math/w_hypotf.c: Likewise.
15934         * math/w_hypotl.c: Likewise.
15935         * math/w_lgamma.c: Likewise.
15936         * math/w_lgamma_r.c: Likewise.
15937         * math/w_lgammaf.c: Likewise.
15938         * math/w_lgammaf_r.c: Likewise.
15939         * math/w_lgammal.c: Likewise.
15940         * math/w_lgammal_r.c: Likewise.
15941         * math/w_sinh.c: Likewise.
15942         * math/w_sinhf.c: Likewise.
15943         * math/w_sinhl.c: Likewise.
15944         * math/w_tgamma.c: Likewise.
15945         * math/w_tgammaf.c: Likewise.
15946         * math/w_tgammal.c: Likewise.
15947         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15948         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15949         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15950         Minor optimizations.  Pretty printing.  Remove cruft.
15951         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15952         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15953         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15954         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15955         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15956         * sysdeps/i386/fpu/e_asin.S: Likewise.
15957         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15958         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15959         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15960         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15961         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15962         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15963         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15964         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15965         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15966         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15967         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15968         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15969         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15970         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15971         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15972         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15973         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15974         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15975         * sysdeps/i386/fpu/e_log.S: Likewise.
15976         * sysdeps/i386/fpu/e_log10.S: Likewise.
15977         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15978         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15979         * sysdeps/i386/fpu/e_log2.S: Likewise.
15980         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15981         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15982         * sysdeps/i386/fpu/e_logf.S: Likewise.
15983         * sysdeps/i386/fpu/e_logl.S: Likewise.
15984         * sysdeps/i386/fpu/e_pow.S: Likewise.
15985         * sysdeps/i386/fpu/e_powf.S: Likewise.
15986         * sysdeps/i386/fpu/e_powl.S: Likewise.
15987         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15988         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15989         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15990         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15991         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15992         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15993         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15994         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15995         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15996         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15997         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15998         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15999         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
16000         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16001         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
16002         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
16003         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
16004         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16005         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
16006         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
16007         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
16008         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16009         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
16010         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
16011         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16012         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
16013         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
16014         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16015         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16016         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
16017         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
16018         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
16019         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
16020         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
16021         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
16022         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16023         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
16024         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
16025         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
16026         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16027         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
16028         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16029         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16030         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16031         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16032         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16033         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16034         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16035         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16036         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16037         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16038         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16039         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16040         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16041         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16042         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16043         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16044         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16045         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16046         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16047         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16048         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16049         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16050         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16051         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16052         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16053         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16054         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16055         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16056         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16057         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16058         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16059         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16060         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16061         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16062         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16063         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16064         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16065         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16066         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16067         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16068         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16069         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16070         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16071         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16072         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16073         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16074         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16075         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16076         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16077         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16078         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16079         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16080         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16081         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16082         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16083         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16084         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16085         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16086         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16087         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16088         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16089         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16090         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16091         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16092         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16093         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16094         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16095         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16096         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16097         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16098         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16099         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16100         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16101         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16102         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16103         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16104         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16105         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16106         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16107         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16108         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16109         (__isnanf): Likewise.
16110         (__isinf_ns): Likewise.
16111         (__isinf_nsf): Likewise.
16112         (__finite): Likewise.
16113         (__finitef): Likewise.
16114         (__ieee754_sqrt): Define as macro.
16115         (__ieee754_sqrtf): Define as macro.
16116         (__ieee754_sqrtl): Define as macro.
16117         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16118         inlined copy.
16119         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16120         __FINITE_MATH_ONLY__ consistent.
16121         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16122
16123 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16124
16125         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16126         of rawmemchr.
16127
16128         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16129
16130 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16131
16132         * po/ja.po: Update from translation team.
16133
16134 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16135
16136         * locale/programs/locarchive.c (prepare_address_space): New function.
16137         (create_archive, enlarge_archive, open_archive): Use it.
16138
16139         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16140         inside [SHARED], where it is used.
16141
16142         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16143
16144         * nss/getent.c (netgroup_keys): Remove unused variable.
16145         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16146
16147 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16148
16149         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16150         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16151         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16152         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16153         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16154         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16155         * math/Makefile (libm-calls): Add s_isinf_ns.
16156         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16157         * math/multc3.c: Likewise.
16158         * math/s_casin.c: Likewise.
16159         * math/s_casinf.c: Likewise.
16160         * math/s_casinl.c: Likewise.
16161         * math/s_ccos.c: Likewise.
16162         * math/s_ccosf.c: Likewise.
16163         * math/s_ccosl.c: Likewise.
16164         * math/s_ctan.c: Likewise.
16165         * math/s_ctanf.c: Likewise.
16166         * math/s_ctanh.c: Likewise.
16167         * math/s_ctanhf.c: Likewise.
16168         * math/s_ctanhl.c: Likewise.
16169         * math/s_ctanl.c: Likewise.
16170         * math/w_fmod.c: Likewise.
16171         * math/w_fmodf.c: Likewise.
16172         * math/w_fmodl.c: Likewise.
16173         * math/w_remainder.c: Likewise.
16174         * math/w_remainderf.c: Likewise.
16175         * math/w_remainderl.c: Likewise.
16176         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16177         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16178         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16179         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16180         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16181         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16182         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16183         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16184
16185         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16186         of the number.
16187         * stdio-common/printf_fphex.c: Likewise.
16188         * stdio-common/printf_size.c: Likewise.
16189
16190         * math/e_exp10.c: Include math_private.h using <...> not "...".
16191         * math/e_exp10f.c: Likewise.
16192         * math/e_exp10l.c: Likewise.
16193         * math/e_exp2l.c: Likewise.
16194         * math/e_j0l.c: Likewise.
16195         * math/e_j1l.c: Likewise.
16196         * math/e_jnl.c: Likewise.
16197         * math/e_lgammal_r.c: Likewise.
16198         * math/e_rem_pio2l.c: Likewise.
16199         * math/e_scalb.c: Likewise.
16200         * math/e_scalbf.c: Likewise.
16201         * math/e_scalbl.c: Likewise.
16202         * math/k_cosl.c: Likewise.
16203         * math/k_sinl.c: Likewise.
16204         * math/k_tanl.c: Likewise.
16205         * math/s_cacoshf.c: Likewise.
16206         * math/s_catan.c: Likewise.
16207         * math/s_catanf.c: Likewise.
16208         * math/s_catanh.c: Likewise.
16209         * math/s_catanhf.c: Likewise.
16210         * math/s_catanhl.c: Likewise.
16211         * math/s_catanl.c: Likewise.
16212         * math/s_ccosh.c: Likewise.
16213         * math/s_ccoshf.c: Likewise.
16214         * math/s_ccoshl.c: Likewise.
16215         * math/s_cexp.c: Likewise.
16216         * math/s_cexpf.c: Likewise.
16217         * math/s_cexpl.c: Likewise.
16218         * math/s_clog.c: Likewise.
16219         * math/s_clog10.c: Likewise.
16220         * math/s_clog10f.c: Likewise.
16221         * math/s_clog10l.c: Likewise.
16222         * math/s_clogf.c: Likewise.
16223         * math/s_clogl.c: Likewise.
16224         * math/s_csin.c: Likewise.
16225         * math/s_csinf.c: Likewise.
16226         * math/s_csinh.c: Likewise.
16227         * math/s_csinhf.c: Likewise.
16228         * math/s_csinhl.c: Likewise.
16229         * math/s_csinl.c: Likewise.
16230         * math/s_csqrt.c: Likewise.
16231         * math/s_csqrtf.c: Likewise.
16232         * math/s_csqrtl.c: Likewise.
16233         * math/s_ctan.c: Likewise.
16234         * math/s_ctanf.c: Likewise.
16235         * math/s_ctanh.c: Likewise.
16236         * math/s_ctanhf.c: Likewise.
16237         * math/s_ctanhl.c: Likewise.
16238         * math/s_ctanl.c: Likewise.
16239         * math/s_ldexp.c: Likewise.
16240         * math/s_ldexpf.c: Likewise.
16241         * math/s_ldexpl.c: Likewise.
16242         * math/s_significand.c: Likewise.
16243         * math/s_significandf.c: Likewise.
16244         * math/s_significandl.c: Likewise.
16245         * math/w_acos.c: Likewise.
16246         * math/w_acosf.c: Likewise.
16247         * math/w_acosh.c: Likewise.
16248         * math/w_acoshf.c: Likewise.
16249         * math/w_acoshl.c: Likewise.
16250         * math/w_acosl.c: Likewise.
16251         * math/w_asin.c: Likewise.
16252         * math/w_asinf.c: Likewise.
16253         * math/w_asinl.c: Likewise.
16254         * math/w_atan2.c: Likewise.
16255         * math/w_atan2f.c: Likewise.
16256         * math/w_atan2l.c: Likewise.
16257         * math/w_atanh.c: Likewise.
16258         * math/w_atanhf.c: Likewise.
16259         * math/w_atanhl.c: Likewise.
16260         * math/w_cosh.c: Likewise.
16261         * math/w_coshf.c: Likewise.
16262         * math/w_coshl.c: Likewise.
16263         * math/w_dremf.c: Likewise.
16264         * math/w_exp10.c: Likewise.
16265         * math/w_exp10f.c: Likewise.
16266         * math/w_exp10l.c: Likewise.
16267         * math/w_exp2.c: Likewise.
16268         * math/w_exp2f.c: Likewise.
16269         * math/w_fmod.c: Likewise.
16270         * math/w_fmodf.c: Likewise.
16271         * math/w_fmodl.c: Likewise.
16272         * math/w_hypot.c: Likewise.
16273         * math/w_hypotf.c: Likewise.
16274         * math/w_hypotl.c: Likewise.
16275         * math/w_j0.c: Likewise.
16276         * math/w_j0f.c: Likewise.
16277         * math/w_j0l.c: Likewise.
16278         * math/w_j1.c: Likewise.
16279         * math/w_j1f.c: Likewise.
16280         * math/w_j1l.c: Likewise.
16281         * math/w_jn.c: Likewise.
16282         * math/w_jnf.c: Likewise.
16283         * math/w_jnl.c: Likewise.
16284         * math/w_lgamma.c: Likewise.
16285         * math/w_lgamma_r.c: Likewise.
16286         * math/w_lgammaf.c: Likewise.
16287         * math/w_lgammaf_r.c: Likewise.
16288         * math/w_lgammal.c: Likewise.
16289         * math/w_lgammal_r.c: Likewise.
16290         * math/w_log.c: Likewise.
16291         * math/w_log10.c: Likewise.
16292         * math/w_log10f.c: Likewise.
16293         * math/w_log10l.c: Likewise.
16294         * math/w_log2.c: Likewise.
16295         * math/w_log2f.c: Likewise.
16296         * math/w_log2l.c: Likewise.
16297         * math/w_logf.c: Likewise.
16298         * math/w_logl.c: Likewise.
16299         * math/w_pow.c: Likewise.
16300         * math/w_powf.c: Likewise.
16301         * math/w_powl.c: Likewise.
16302         * math/w_remainder.c: Likewise.
16303         * math/w_remainderf.c: Likewise.
16304         * math/w_remainderl.c: Likewise.
16305         * math/w_scalb.c: Likewise.
16306         * math/w_scalbf.c: Likewise.
16307         * math/w_scalbl.c: Likewise.
16308         * math/w_sinh.c: Likewise.
16309         * math/w_sinhf.c: Likewise.
16310         * math/w_sinhl.c: Likewise.
16311         * math/w_sqrt.c: Likewise.
16312         * math/w_sqrtf.c: Likewise.
16313         * math/w_sqrtl.c: Likewise.
16314         * math/w_tgamma.c: Likewise.
16315         * math/w_tgammaf.c: Likewise.
16316         * math/w_tgammal.c: Likewise.
16317
16318         * po/ja.po: Update from translation team.
16319
16320 2011-09-29  Andreas Jaeger  <aj@suse.de>
16321
16322         [BZ #13179]
16323         * sunrpc/netname.c (netname2host): Fix logic.
16324
16325         [BZ #6779]
16326         [BZ #6783]
16327         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16328         correctly.
16329         * math/w_remainder.c (__remainder): Likewise.
16330         * math/w_remainderf.c (__remainderf): Likewise.
16331         * math/libm-test.inc (remainder_test): Add test cases.
16332
16333 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16334
16335         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16336         sdiv_qrnnd.
16337
16338 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16339
16340         * string/test-memcmp.c: Avoid unncessary #defines.
16341         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16342
16343 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16344
16345         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16346         Use new sse2 version for core i3 - i7 as it's faster
16347         than sse42 version.
16348         (bit_Prefer_PMINUB_for_stringop): New.
16349         * sysdeps/x86_64/rawmemchr.S: Update.
16350         Replace with faster SSE2 version.
16351         * sysdeps/x86_64/memrchr.S: New file.
16352         * sysdeps/x86_64/memchr.S: Update.
16353         Replace with faster SSE2 version.
16354
16355 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16356
16357         * elf/dl-load.c (lose): Add cast to avoid warning.
16358
16359 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16360
16361         * po/ca.po: Update from translation team.
16362
16363         * inet/getnetgrent_r.c: Hook up nscd.
16364         * nscd/Makefile (routines): Add nscd_netgroup.
16365         (nscd-modules): Add netgroupcache.
16366         (CFLAGS-netgroupcache.c): Define.
16367         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16368         (cache_search): Add const to second parameter.
16369         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16370         INNETGR.
16371         (dbs): Add netgrdb entry.
16372         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16373         (verify_persistent_db): Handle netgrdb.
16374         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16375         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16376         GETFDNETGR.
16377         (netgroup_response_header): Define.
16378         (innetgroup_response_header): Define.
16379         (datahead): Add netgroup_response_header and innetgroup_response_header
16380         elements.
16381         * nscd/nscd.conf: Add entries for netgroup cache.
16382         * nscd/nscd.h (dbtype): Add netgrdb.
16383         (_PATH_NSCD_NETGROUP_DB): Define.
16384         (netgroup_iov_disabled): Declare.
16385         (xmalloc, xcalloc, xrealloc): Move declarations here.
16386         (cache_search): Adjust prototype.
16387         Add netgroup-related prototypes.
16388         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16389         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16390         (__nscd_innetgr): Declare.
16391         * nscd/selinux.c (perms): Use access_vector_t as element type and
16392         add netgroup-related initializers.
16393         * nscd/netgroupcache.c: New file.
16394         * nscd/nscd_netgroup.c: New file.
16395         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16396         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16397         For four parameters use innetgr.
16398         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16399         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16400         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16401         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16402
16403         * nscd/connections.c (register_traced_file): Don't register file
16404         for disabled databases.
16405
16406 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16407
16408         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16409
16410         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16411         from tree and freeing node.
16412
16413 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16414
16415         * nss/nsswitch.c (__nss_database_lookup): Handle
16416         nss_parse_service_list out of memory case.
16417
16418 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16419
16420         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16421         out of memory case.
16422
16423 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16424
16425         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16426         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16427         pass it down.
16428         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16429         elf_machine_rela, elf_machine_lazy_rel.
16430         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16431         (ELF_DYNAMIC_DO_REL): Likewise.
16432         (ELF_DYNAMIC_DO_RELA): Likewise.
16433         (ELF_DYNAMIC_RELOCATE): Likewise.
16434         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16435         to ELF_DYNAMIC_DO_REL.
16436         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16437         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16438         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16439         elf_machine_rela.
16440         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16441         skip_ifunc, don't call ifunc function if non-zero.
16442         (elf_machine_rela): Likewise.
16443         (elf_machine_lazy_rel): Likewise.
16444         (elf_machine_lazy_rela): Likewise.
16445         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16446         (elf_machine_lazy_rel): Likewise.
16447         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16448         Likewise.
16449         (elf_machine_lazy_rel): Likewise.
16450         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16451         Likewise.
16452         (elf_machine_lazy_rel): Likewise.
16453         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16454         (elf_machine_lazy_rel): Likewise.
16455         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16456         (elf_machine_lazy_rel): Likewise.
16457         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16458         (elf_machine_lazy_rel): Likewise.
16459         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16460         (elf_machine_lazy_rel): Likewise.
16461         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16462         (elf_machine_lazy_rel): Likewise.
16463         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16464         (elf_machine_lazy_rel): Likewise.
16465
16466 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16467
16468         * nss/nss_files/files-init.c (_nss_files_init): Use static
16469         initialization for all the *_traced_file variables.
16470
16471 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16472
16473         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16474
16475 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16476
16477         [BZ #13226]
16478         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16479
16480 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16481
16482         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16483         Reread the line before reparsing it.
16484
16485 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16486
16487         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16488
16489 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16490             Maxim Kuvyrkov  <maxim@codesourcery.com>
16491             Joseph Myers  <joseph@codesourcery.com>
16492
16493         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16494         if needed for __stack_chk_guard.
16495
16496 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16497
16498         * sysdeps/posix/spawni.c (script_execute): Always define it.
16499         It will be optimized away if unused.
16500         (maybe_script_execute): New function.
16501         (__spawni): Call it.
16502
16503         * Makerules: Don't include tls.make.
16504         (config-tls): Always set to thread.
16505         * tls.make.c: File removed.
16506
16507 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16508
16509         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16510         * config.make.in (CPPFLAGS-config): New substituted variable.
16511
16512 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16513
16514         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16515
16516         [BZ #13192]
16517         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16518         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16519
16520 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16521
16522         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16523         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16524         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16525         (CALL_FAIL): Likewise.
16526         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16527         (CALL_FAIL): Macro removed.
16528         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16529
16530 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16531
16532         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16533         for __FINITE_MATH_ONLY__ == 1.
16534
16535 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16536
16537         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16538         __ieee754_sqrt instead of sqrt.
16539         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16540         __ieee754_sqrtf instead of sqrtf.
16541         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16542         __floorf instead of floorf.
16543         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16544         __floorf, __truncf instead of floorf, truncf.
16545
16546 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16547
16548         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16549
16550         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16551         __extern_always_inline.
16552         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16553         32-bit.
16554
16555 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16556
16557         * elf/rtld.c (dl_main): Also relocate in dependency order when
16558         doing symbol dependency testing.
16559
16560 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16561
16562         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16563         Always define `refsym'.
16564
16565 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16566
16567         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16568         (__FD_ELT): Renamed from __FDELT.
16569         * misc/bits/select2.h (__FD_ELT): Likewise.
16570         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16571         __FD_MASK instead of __FDELT, __FDMASK.
16572         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16573         Likewise.
16574         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16575         Likewise.
16576
16577         * elf/Makefile (gen-ldd): Fix pattern.
16578
16579         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16580         (init_tls): Likewise.
16581
16582 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16583
16584         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16585
16586 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16587
16588         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16589         `struct cmsghdr *' instead of `void *'.
16590         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16591         Likewise.
16592
16593 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16594
16595         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16596         if non-absolute.
16597         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16598         ldd_rewrite_script.
16599
16600 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16601
16602         * configure.in: Remove --with-tls option.
16603         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16604         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16605         out in case it is missing.
16606         * sysdeps/ia64/elf/configure.in: Likewise.
16607         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16608         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16609         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16610         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16611         * sysdeps/sh/elf/configure.in: Likewise.
16612         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16613         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16614         * sysdeps/x86_64/elf/configure.in: Likewise.
16615         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16616         * sysdeps/mach/hurd/tls.h: Likewise.
16617
16618         [BZ #13067]
16619         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16620
16621         [BZ #13090]
16622         * configure.in: Fix use of AC_INIT.
16623
16624         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16625
16626 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16627
16628         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16629         __set_errno.
16630         * malloc/hooks.c: Likewise.
16631
16632         [BZ #11929]
16633         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16634         variables statically.
16635         (narenas): Initialize.
16636         (list_lock): Initialize.
16637         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16638         initializtion of main_arena and list_lock.  Small cleanups.
16639         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16640         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16641         Add initializers to main_arena and mp_.
16642         (malloc_state): Remove pagesize member.  Change all users to use
16643         GLRO(dl_pagesize).
16644
16645         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16646         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16647         is always initialized.
16648
16649         * malloc/malloc.c: Removed unused configurations and dead code.
16650         * malloc/arena.c: Likewise.
16651         * malloc/hooks.c: Likewise.
16652         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16653
16654         * include/tls.h: Removed.  USE___THREAD must always be defined.
16655         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16656         * elf/dl-libc.c: Likewise.
16657         * elf/dl-tsd.c: Likewise.
16658         * include/errno.h: Likewise.
16659         * include/netdb.h: Likewise.
16660         * include/resolv.h: Likewise.
16661         * inet/herrno-loc.c: Likewise.
16662         * inet/herrno.c: Likewise.
16663         * malloc/arena.c: Likewise.
16664         * malloc/hooks.c: Likewise.
16665         * malloc/malloc.c: Likewise.
16666         * resolv/res-state.c: Likewise.
16667         * resolv/res_libc.c: Likewise.
16668         * sysdeps/i386/dl-machine.h: Likewise.
16669         * sysdeps/ia64/dl-machine.h: Likewise.
16670         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16671         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16672         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16673         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16674         * sysdeps/sh/dl-machine.h: Likewise.
16675         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16676         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16677         * sysdeps/unix/i386/sysdep.S: Likewise.
16678         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16679         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16680         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16681         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16682         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16683         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16684         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16685         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16686         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16687         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16688         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16689         * sysdeps/x86_64/dl-machine.h: Likewise.
16690         * tls.make.c: Likewise.
16691
16692         * configure.in: Remove --with-__thread option.  Make tests for
16693         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16694         tls_model attribute fail if no support is available.  Remove
16695         USE_IN_LIBIO.
16696         * Makeconfig: Adjust for dropped configure option.  All features are
16697         now mandatory.
16698         * Makerules: Likewise.
16699         * Versions.def: Likewise.
16700         * argp/argp-fmtstream.c: Likewise.
16701         * argp/argp-fmtstream.h: Likewise.
16702         * argp/argp-help.c: Likewise.
16703         * assert/assert.c: Likewise.
16704         * config.h.in: Likewise.
16705         * config.make.in: Likewise.
16706         * configure: Likewise.
16707         * configure.in: Likewise.
16708         * csu/Versions: Likewise.
16709         * csu/init.c: Likewise.
16710         * elf/tst-audit2.c: Likewise.
16711         * elf/tst-tls10.c: Likewise.
16712         * elf/tst-tls10.h: Likewise.
16713         * elf/tst-tls11.c: Likewise.
16714         * elf/tst-tls12.c: Likewise.
16715         * elf/tst-tls14.c: Likewise.
16716         * elf/tst-tlsmod11.c: Likewise.
16717         * elf/tst-tlsmod12.c: Likewise.
16718         * elf/tst-tlsmod13.c: Likewise.
16719         * elf/tst-tlsmod13a.c: Likewise.
16720         * elf/tst-tlsmod14a.c: Likewise.
16721         * elf/tst-tlsmod15b.c: Likewise.
16722         * elf/tst-tlsmod16a.c: Likewise.
16723         * elf/tst-tlsmod16b.c: Likewise.
16724         * elf/tst-tlsmod7.c: Likewise.
16725         * elf/tst-tlsmod8.c: Likewise.
16726         * elf/tst-tlsmod9.c: Likewise.
16727         * gmon/gmon.c: Likewise.
16728         * grp/fgetgrent_r.c: Likewise.
16729         * grp/putgrent.c: Likewise.
16730         * hurd/fopenport.c: Likewise.
16731         * include/libc-symbols.h: Likewise.
16732         * include/tls.h: Likewise.
16733         * intl/gettextP.h: Likewise.
16734         * intl/loadinfo.h: Likewise.
16735         * locale/global-locale.c: Likewise.
16736         * locale/localeinfo.h: Likewise.
16737         * mach/devstream.c: Likewise.
16738         * malloc/arena.c: Likewise.
16739         * malloc/set-freeres.c: Likewise.
16740         * misc/err.c: Likewise.
16741         * misc/getttyent.c: Likewise.
16742         * misc/mntent_r.c: Likewise.
16743         * posix/getopt.c: Likewise.
16744         * posix/wordexp.c: Likewise.
16745         * pwd/fgetpwent_r.c: Likewise.
16746         * resolv/Versions: Likewise.
16747         * resolv/res_hconf.c: Likewise.
16748         * shadow/fgetspent_r.c: Likewise.
16749         * shadow/putspent.c: Likewise.
16750         * stdio-common/printf_fphex.c: Likewise.
16751         * stdio-common/tmpfile.c: Likewise.
16752         * stdlib/abort.c: Likewise.
16753         * stdlib/fmtmsg.c: Likewise.
16754         * sunrpc/auth_unix.c: Likewise.
16755         * sunrpc/clnt_perr.c: Likewise.
16756         * sunrpc/clnt_tcp.c: Likewise.
16757         * sunrpc/clnt_udp.c: Likewise.
16758         * sunrpc/clnt_unix.c: Likewise.
16759         * sunrpc/openchild.c: Likewise.
16760         * sunrpc/svc_simple.c: Likewise.
16761         * sunrpc/svc_tcp.c: Likewise.
16762         * sunrpc/svc_udp.c: Likewise.
16763         * sunrpc/svc_unix.c: Likewise.
16764         * sunrpc/xdr.c: Likewise.
16765         * sunrpc/xdr_array.c: Likewise.
16766         * sunrpc/xdr_rec.c: Likewise.
16767         * sunrpc/xdr_ref.c: Likewise.
16768         * sunrpc/xdr_stdio.c: Likewise.
16769
16770 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16771
16772         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16773
16774 2011-07-03  Andreas Jaeger  <aj@suse.de>
16775
16776         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16777         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16778         regenerate with gen-libm-tests.pl.
16779
16780 2010-05-12  Petr Baudis  <pasky@suse.cz>
16781
16782         [BZ #11589]
16783         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16784         around j0() zero points by switching to j1().
16785         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16786         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16787         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16788         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16789
16790 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16791
16792         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16793         instead of 0.
16794         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16795         instead of 0.                              .
16796         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16797         Patch in part by Pavel Roskin <proski@gnu.org>.
16798
16799         [BZ #13138]
16800         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16801         realloc.
16802         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16803         Free memory block if necessary.
16804
16805         [BZ #12847]
16806         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16807         be NULL.  Don't lock in this case.
16808
16809 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16810
16811         * elf/elf.h (ELFOSABI_GNU): New macro.
16812         (ELFOSABI_LINUX): Define to that.
16813
16814 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16815
16816         * string/strncat.c (strncat): Undef the symbol in case it has been
16817         defined in bits/string.h.
16818
16819 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16820
16821         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16822
16823         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16824         link map.
16825
16826 2011-08-17  Andreas Jaeger  <aj@suse.de>
16827
16828         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16829
16830 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16831             Ian Lance Taylor  <iant@google.com>
16832
16833         * math/libm-test.inc (lround_test): New testcase.
16834         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16835
16836 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16837
16838         * Makefile: Remove support for automatic cvs check-ins.
16839         * Makerules: Likewise.
16840         * config.make.in: Likewise.
16841         * configure.in: Likewise.
16842         * intl/Makefile: Likewise.
16843         * locale/Makefile: Likewise.
16844         * po/Makefile: Likewise.
16845         * posix/Makefile: Likewise.
16846         * sysdeps/gnu/Makefile: Likewise.
16847         * sysdeps/mach/hurd/Makefile: Likewise.
16848         * sysdeps/sparc/sparc32/Makefile: Likewise.
16849
16850         [BZ #13118]
16851         * posix/Makefile (bug-regex32-ENV): Define.
16852         Patch by John Stanley <jpsinthemix@verizon.net>.
16853
16854         * misc/Makefile (headers): Add bits/select2.h.
16855         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16856         * misc/bits/select2.h: New file.
16857         * include/bits/select2.h: New file.
16858         * debug/Makefile (routines): Add fdelt_chk.
16859         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16860         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16861         FD_ISSET.
16862         * debug/fdelt_chk.c: New file.
16863
16864         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16865         * wcsmbs/test-wmemcmp.c: Likewise.
16866         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16867         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16868
16869 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16870
16871         * string/Makefile (strop-tests): Add memcmp.
16872         * string/test-wmemcmp.c: New file.
16873         * string/test-memcmp.c: Add wmemcmp support.
16874
16875 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16876
16877         [BZ #13153]
16878         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16879         2011-07-19 change.
16880
16881         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16882         garbage value in a __mach_port_mod_refs call in the cases of the
16883         task-self and thread-self ports.
16884
16885 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16886
16887         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16888
16889 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16890
16891         * elf/dl-load.c (lose): Check for non-null L.
16892
16893 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16894
16895         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16896
16897         * elf/dl-libc.c (dlerror_run): Pass back error code from
16898         dl_catch_error.
16899
16900         [BZ #13123]
16901         * elf/dl-load.c (lose): Free l_origin if it is valid.
16902
16903         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16904         names.
16905         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16906         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16907         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16908         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16909         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16910         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16911
16912 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16913
16914         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16915         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16916         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16917         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16918         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16919         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16920         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16921         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16922         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16923         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16924
16925 2011-08-15  Alan Modra  <amodra@gmail.com>
16926
16927         [BZ #13092]
16928         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16929         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16930         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16931         ppc_mcount to static-only-routines.
16932         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16933         __mcount_internal.
16934         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16935         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16936
16937 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16938
16939         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16940         for finite and infinity parameters.
16941
16942 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16943
16944         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16945         and add nop instructions for throughput optimization.
16946         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16947
16948 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16949
16950         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16951         aligned copy for power7 with vector-scalar instructions.
16952         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16953
16954 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16955
16956         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16957         AVX check.
16958
16959 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16960
16961         [BZ #13144]
16962         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16963         last change.
16964
16965 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16966
16967         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16968         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16969         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16970         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16971         clock_gettime.
16972
16973 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16974
16975         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16976         Forgot to demangle the pointer.
16977
16978         * sysdeps/i386/sysdep.h: Define atom_text_section.
16979         * sysdeps/x86_64/sysdep.h: Likewise.
16980         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16981         section with atom_text_section.
16982         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16983         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16984         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16985         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16986         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16987
16988         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16989         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16990         already be defined.  Change to take two parameters and don't assign
16991         result to variable.  Adjust all users.
16992         Define INTERNAL_GETTIME if not already defined.
16993         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16994         call.
16995         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16996         HAVE_CLOCK_GETTIME_VSYSCALL.
16997         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16998
16999         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
17000         gettimeofday vsyscall, just use time.
17001
17002 2011-09-06  Andreas Schwab  <schwab@redhat.com>
17003
17004         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
17005         <errno.h>.
17006
17007 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
17008
17009         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
17010         syscall on x86-64.
17011         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
17012         syscall.
17013         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17014         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
17015         syscall if possible.
17016
17017 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17018
17019         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
17020         e_ident.  Don't pass to find_mapsXX.
17021         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
17022
17023 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17024
17025         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17026         strchr-sse2-no-bsf strrchr-sse2-no-bsf
17027         * sysdeps/x86_64/multiarch/strchr.S: Update.
17028         Check bit_slow_BSF bit.
17029         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17030         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17031         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17032
17033 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17034
17035         [BZ #13134]
17036         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17037         before glibc 2.15.
17038         (tryshell): Define.
17039         (__spawni): Change last parameter to be flag.  Test
17040         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17041         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17042         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17043         * posix/spawni.c: Likewise.
17044         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17045         * posix/spawnp.c: Likewise.  Change normal version to use
17046         SPAWN_XFLAGS_USE_PATH.
17047         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17048         SPAWN_XFLAGS_TRY_SHELL.
17049
17050         [BZ #13150]
17051         * posix/glob.h: Remove gcc 1.x support.
17052
17053         [BZ #13068]
17054         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17055
17056 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17057
17058         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17059         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17060         strrchr-sse2-bsf
17061         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17062         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17063         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17064         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17065         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17066         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17067
17068 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17069
17070         * sysdeps/x86_64/wcscmp.S: New file.
17071
17072         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17073         wcscmp-c wcscmp-sse2
17074         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17075         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17076         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17077         * wcsmbs/wcscmp.c: Allow renaming.
17078
17079 2011-09-05  David S. Miller  <davem@davemloft.net>
17080
17081         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17082         stack slot, rather than the struct return pointer slot.
17083         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17084         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17085         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17086         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17087
17088 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17089
17090         * po/ja.po: Update from translation team.
17091
17092         [BZ #13144]
17093         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17094         kernel in 64-bit binaries.
17095
17096 2011-09-01  David S. Miller  <davem@davemloft.net>
17097
17098         * elf/elf.h (HWCAP_SPARC_*): Move to..
17099         * sysdeps/sparc/sysdep.h: this new file and add new values.
17100         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17101         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17102         _DL_HWCAP_COUNT to 24.
17103         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17104         entries.
17105         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17106         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17107         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17108         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17109         instead of magic constants.
17110         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17111
17112 2011-08-31  David S. Miller  <davem@davemloft.net>
17113
17114         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17115         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17116         Reimplement to do errno handling inline.
17117         (SYSCALL_ERROR_HANDLER): New macro.
17118         (__SYSCALL_STRING): Do not do errno handling in asm.
17119         (__CLONE_SYSCALL_STRING): Delete.
17120         (__INTERNAL_SYSCALL_STRING): Delete.
17121         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17122         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17123         (PSEUDO): Reimplement to do errno handling inline.
17124         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17125         (SYSCALL_ERROR_HANDLER): New macro.
17126         (__SYSCALL_STRING): Do not do errno handling in asm.
17127         (__CLONE_SYSCALL_STRING): Delete.
17128         (__INTERNAL_SYSCALL_STRING): Delete.
17129         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17130         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17131         i386.
17132         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17133         (inline_syscall*): Add 'err' argument.
17134         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17135         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17136         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17137         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17138
17139         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17140         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17141
17142 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17143
17144         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17145
17146 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17147
17148         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17149         directive.
17150
17151 2011-08-24  David S. Miller  <davem@davemloft.net>
17152
17153         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17154
17155 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17156
17157         * elf/Makefile: Add rules to build and run unload8 test.
17158         * elf/unload8.c: New file.
17159         * elf/unload8mod1.c: New file.
17160         * elf/unload8mod1x.c: New file.
17161         * elf/unload8mod2.c: New file.
17162         * elf/unload8mod3.c: New file.
17163
17164         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17165         it wasn't used.
17166
17167 2011-08-23  David S. Miller  <davem@davemloft.net>
17168
17169         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17170         subtract stack bias.
17171         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17172         %sp not %fp in calculations.
17173         (_JMPBUF_UNWINDS_ADJ): Likewise.
17174
17175         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17176         (aio_suspend): Call it to force an exception region around the
17177         AIO_MISC_WAIT() invocation.
17178
17179 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17180
17181         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17182         backslash.
17183
17184 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17185
17186         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17187         protection macro.
17188         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17189         and <dl-machine.h>.
17190         (Elf64_FuncDesc): Remove.
17191
17192 2011-08-22  David S. Miller  <davem@davemloft.net>
17193
17194         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17195         sigaltstack check, add missing cfi directives.
17196         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17197         missing cfi directives, and sigaltstack handling.
17198
17199 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17200
17201         [BZ #11724]
17202         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17203         object is seen twice.
17204         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17205
17206         * elf/Makefile (distribute): Add tst-initorder2.c.
17207         (tests): Add tst-initorder2.
17208         (modules-names): Add tst-initorder2a tst-initorder2b
17209         tst-initorder2c tst-initorder2d.  Add rules to build them.
17210         ($(objpfx)tst-initorder2.out): New rule.
17211         * elf/tst-initorder2.c: New file.
17212         * elf/tst-initorder2.exp: New file.
17213
17214 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17215
17216         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17217
17218         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17219         dependencies back to end of function.
17220
17221         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17222         $(elfobjdir)/ld.so.
17223
17224 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17225
17226         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17227         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17228         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17229         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17230         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17231         of __vdso_gettimeofday.
17232         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17233         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17234         attribute_hidden.
17235         (_libc_vdso_platform_setup): Remove initialization of
17236         __vdso_gettimeofday and __vdso_time.
17237
17238 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17239
17240         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17241         and fgetc_unlocked.
17242         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17243         getc_unlocked.
17244
17245         * elf/dl-open.c (add_to_global): Report additions to the global scope
17246         for LD_DEBUG=scopes.
17247         (dl_open_worker): Also print scope of newly loaded dependencies.
17248         (_dl_show_scope): Indicate if there is no scope.
17249
17250         [BZ #13114]
17251         * stdio-common/Makefile (tests): Add bug24.
17252         * stdio-common/bug24.c: New file.
17253
17254 2011-08-19  Andreas Jaeger  <aj@suse.de>
17255
17256         [BZ #13114]
17257         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17258         non-existant file when using close-on-exec mode.
17259
17260 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17261
17262         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17263         the very first instruction.
17264
17265         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17266         the CFI state in the end.
17267         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17268         inclusion of dl-trampoline.h.
17269         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17270
17271 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17272
17273         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17274         expectations for long double.
17275
17276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17277         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17278
17279 2011-08-14  David S. Miller  <davem@davemloft.net>
17280
17281         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17282         artificual limit depends upon the system page size.
17283
17284 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17285
17286         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17287         * resolv/Makefile: Define CFLAGS-libresolv.
17288
17289 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17290
17291         * nss/makedb.c (compute_tables): Make variables used in nested
17292         function static.
17293
17294 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17295
17296         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17297         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17298         if buffer was too small.
17299
17300         * elf/pldd.c (main): Attach to all threads in the process.
17301         Rewrite /proc handling to use *at functions.
17302
17303 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17304
17305         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17306         specifies first scope to show.
17307         (dl_open_worker): Update callers.  Move printing scope of new
17308         object to before the relocation.
17309         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17310         * sysdeps/generic/ldsodefs.h: Update declaration.
17311
17312         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17313         string for the scope number.
17314
17315 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17316
17317         * nscd/servicescache.c (cache_addserv): Make sure written is always
17318         initialized.
17319
17320 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17321
17322         * sysdeps/i386/i486/bits/atomic.h
17323         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17324         statement expression, so as to suppress "set but not used" warning.
17325         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17326
17327         * string/strncat.c (STRNCAT): Use prototype definition.
17328
17329         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17330         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17331         -Iprograms here.
17332         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17333         (localedef-modules): Add localedef.
17334         (locale-modules): Add locale.
17335
17336         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17337         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17338         to avoid a warning.
17339
17340 2011-08-14  David S. Miller  <davem@davemloft.net>
17341
17342         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17343         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17344
17345 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17346
17347         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17348         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17349         * elf/rtld.c (dl_main): Set l_name of vDSO.
17350         Call _dl_show_scope when DL_DEBUG_SCOPES.
17351         (process_dl_debug): Recognize scopes flag and also set it for all.
17352         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17353         Declare _dl_show_scope.
17354
17355         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17356         (do_dlopen): Pass caller_dlopen to dl_open.
17357         (__libc_dlopen_mode): Initialize caller_dlopen.
17358
17359         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17360         of libc.  Make tolower call locale-independent.  Optimize a bit by
17361         using isdigit instead of isalnum.
17362         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17363
17364 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17365
17366         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17367         was a dependency or dynamically loaded.
17368
17369 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17370
17371         * intl/l10nflist.c: Allow architecture-specific pop function.
17372         * sysdeps/x86_64/l10nflist.c: New file.
17373
17374         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17375         classification.
17376
17377 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17378
17379         * include/dirent.h: Add libc_hidden_proto for scandirat and
17380         scandirat64.  Don't declare __scandirat64.
17381         * dirent/scandirat.c: Add libc_hidden_def.
17382         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17383         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17384
17385 2011-08-10  David S. Miller  <davem@davemloft.net>
17386
17387         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17388         enum.
17389         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17390         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17391         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17392
17393 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17394
17395         * Versions.def [libc]: Add GLIBC_2.15.
17396         * dirent/Makefile (routines): Add scandirat and scandirat64.
17397         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17398         GLIBC_2.15.
17399         * dirent/dirent.h: Declare scandirat and scandirat64.
17400         * dirent/scandirat.c: New file.
17401         * dirent/scandirat64.c: New file.
17402         * sysdeps/wordsize-64/scandirat.c: New file.
17403         * sysdeps/wordsize-64/scandirat64.c: New file.
17404         * dirent/opendir.c: Define opendirat.
17405         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17406         using scandirat.
17407         * dirent/scandir64.c: Adjust for scandir.c change.
17408         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17409         __scandirat64, and __scandir_cancel_handler.
17410         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17411         additional parameter and use openat instead of open (outside of ld.so).
17412         Add new __opendir as wrapper around __opendirat.
17413         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17414         here without requiring old scandirat implementation.
17415
17416 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17417
17418         * dirent/scandir.c (cancel_handler): Renamed to
17419         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17420         defined.  Adjust users.
17421         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17422         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17423
17424 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17425
17426         * string/test-string.h (IMPL): Use __STRING to expand name and then
17427         stringify it.
17428
17429         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17430         of cleanups.
17431
17432 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17433
17434         * string/Makefile: Update.
17435         (strop-tests): Append strncat.
17436         * string/test-wcscmp.c: New file.
17437         New comprehensive test for wcscmp.
17438         * string/test-strcmp.c: Update.
17439         (WIDE): New define.
17440
17441 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17442
17443         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17444         line.
17445
17446 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17447
17448         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17449         encoding to ACE if AI_IDN.
17450
17451 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17452
17453         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17454         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17455
17456 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17457
17458         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17459         Fix overflow bug in strncat.
17460         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17461
17462         * string/test-strncat.c: Update.
17463         Add new tests for checking overflow bugs.
17464
17465 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17466
17467         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17468         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17469         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17470         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17471         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17472         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17473         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17474         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17475         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17476
17477         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17478         (USE_AS_STRCAT): Define.
17479         Add strcat and strncat support.
17480         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17481
17482 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17483
17484         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17485         __n bigger than INT_MAX+1.
17486         (__strncmp_g): Likewise.
17487
17488 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17489
17490         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17491         * libio/stido.h: Likewise.
17492
17493         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17494         (AF_NFC): Define.
17495         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17496         (AF_NFC): Define.
17497
17498         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17499         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17500         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17501         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17502         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17503
17504         [BZ #13021]
17505         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17506         installed.
17507
17508         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17509         typo.
17510         (_dl_x86_64_save_sse): Likewise.
17511
17512 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17513
17514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17515         OSXSAVE.
17516         (_dl_x86_64_save_sse): Likewise.
17517
17518         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17519
17520         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17521
17522 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17523
17524         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17525         change.
17526         (_dl_x86_64_save_sse): Use correct AVX check.
17527
17528 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17529
17530         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17531         bug in strncpy/strncat.
17532         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17533
17534 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17535
17536         * string/tester.c (test_strcat): Add tests for different alignments
17537         of source and destination.
17538         (test_strncat): Likewise.
17539
17540 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17541
17542         [BZ #12852]
17543         * posix/glob.c (glob): Check passed in values before using them in
17544         expressions to avoid some overflows.
17545         (glob_in_dir): Likewise.
17546
17547         [BZ #13007]
17548         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17549         check for AVX enablement so that we don't crash with old kernels and
17550         new hardware.
17551         * elf/tst-audit4.c: Add same checks here.
17552         * elf/tst-audit6.c: Likewise.
17553
17554         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17555
17556 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17557
17558         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17559
17560 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17561
17562         * po/cs.po: Update from translation team.
17563         * po/bg.po: Likewise.
17564
17565 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17566
17567         * misc/sys/cdefs.h: Add support for const attribute.
17568         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17569         to gnu_dev_{major,minor,makedev} functions.
17570
17571 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17572
17573         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17574
17575 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17576
17577         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17578         strlen results.
17579
17580 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17581
17582         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17583         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17584         register in order to avoid conflicts with the soft frame pointer
17585         being held in r11 when necessary.
17586         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17587         (INTERNAL_VSYSCALL_NCS): Likewise.
17588
17589 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17590
17591         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17592         * elf/dl-fini.c (_dl_fini): Adjust caller.
17593         * elf/dl-close.c (_dl_close_worker): Likewise.
17594         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17595
17596 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17597
17598         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17599         "aux_cache->nlibs < 0".
17600
17601         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17602         in the reload-count case.
17603
17604 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17605
17606         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17607         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17608         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17609         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17610         * sysdeps/x86_64/multiarch/strcat.S: New file.
17611         * sysdeps/x86_64/multiarch/strncat.S: New file.
17612         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17613         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17614         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17615         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17616         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17617         (USE_AS_STRCAT): Define.
17618         Add strcat and strncat support.
17619         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17620         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17621         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17622         * string/strncat.c: Update.
17623         (USE_AS_STRNCAT): Define.
17624         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17625         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17626         and i7.
17627         * sysdeps/x86_64/multiarch/init-arch.h
17628         (bit_Prefer_PMINUB_for_stringop): New.
17629         (index_Prefer_PMINUB_for_stringop): Likewise.
17630         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17631         bit_Prefer_PMINUB_for_stringop.
17632
17633 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17634
17635         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17636         buffer64.
17637         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17638         of casting of buffer.
17639         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17640         buffer32 and buffer64.
17641         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17642         writes instead of casting of buffer.
17643         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17644         buffer32.
17645         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17646         casting of buffer.
17647
17648 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17649
17650         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17651
17652 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17653
17654         * nscd/nscd.c (termination_handler): Don't do anything for a database
17655         if it has not yet been initialized.
17656
17657 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17658
17659         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17660
17661 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17662
17663         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17664
17665 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17666
17667         * po/nl.po: Update from translation team.
17668         * po/sv.po: Likewise.
17669
17670 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17671
17672         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17673         now disallowed by GCC.
17674
17675         * configure.in (use-default-link): Default to yes if a test -shared
17676         link meets our qualifications.
17677         * configure: Regenerated.
17678
17679         * config.make.in (output-format): New variable.
17680         * configure.in: Check for ld --print-output-format support.
17681         * configure: Regenerated.
17682         * Makerules ($(common-objpfx)format.lds)
17683         [$(output-format) != unknown]: Just use $(output-format),
17684         instead of the linker-script munging.
17685
17686 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17687
17688         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17689         of $(common-objpfx)shlib.lds.
17690         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17691
17692         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17693         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17694
17695         * configure.in (-z relro check): Adjust test code to add a large
17696         writable data section after it.
17697         * configure: Regenerated.
17698
17699 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17700
17701         * configure.in (-z relro check): Fix test code to make the variable
17702         truly const.
17703         * configure: Regenerated.
17704
17705 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17706
17707         * nscd/nscd.h (struct traced_file): Define.
17708         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17709         elements.  Add traced_files.
17710         (inotify_fd): Declare.
17711         (register_traced_file): Declare.
17712         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17713         (inotify_fd): Export.
17714         (resolv_conf_descr): Remove.
17715         (nscd_init): Move inotify descriptor creation to main.
17716         Don't register files for notification here.
17717         (register_traced_file): New function.
17718         (invalidate_cache): Don't use reset_res to determine whether to call
17719         res_init, go through the list of registered files.
17720         (main_loop_poll): The inotify descriptors are now stored in the
17721         structures for the traced files.
17722         (main_loop_epoll): Likewise
17723         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17724         to __nss_disable_nscd.
17725         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17726         for a database anymore.  Check the records for all the registered
17727         files instead.
17728         * nss/Makefile (libnss_files-routines): Add files-init.
17729         (libnss_db-routines): Add db-init.
17730         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17731         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17732         * nss/nss_db/db-init.c: New file.
17733         * nss/nss_files/files-init.c: New file.
17734         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17735         __nss_lookup_function.
17736         (__nss_lookup_function): Call nss_load_library.
17737         (nss_load_all_libraries): New function.
17738         (__nss_disable_nscd): Take parameter with callback function for files
17739         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17740         used for the cached services.
17741         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17742         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17743         options for features to all the files in nscd.
17744
17745         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17746
17747 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17748
17749         * csu/elf-init.c (__libc_csu_init): Comment typo.
17750
17751 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17752
17753         * po/pl.po: Update from translation team.
17754         * po/ja.po: Likewise.
17755         * po/ru.po: Likewise.
17756         * po/ko.po: Likewise.
17757         * po/fr.po: Likewise.
17758
17759 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17760
17761         * configure.in (.ctors/.dtors header and trailer check):
17762         Use an empirical test on a built program.
17763         * configure: Regenerated.
17764
17765         * configure.in (-z relro check): Use an empirical test on a built DSO.
17766         Detect, but do not require, on ia64.
17767         * configure: Regenerated.
17768
17769         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17770         Update tests that use readelf to use $READELF instead.
17771         * configure: Regenerated.
17772
17773 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17774
17775         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17776         if the result is not used.
17777
17778 2011-07-05  Andreas Jaeger  <aj@suse.de>
17779
17780         [BZ#9696]
17781         * stdlib/tst-strtod.c: Add testcase.
17782
17783 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17784
17785         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17786         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17787         The latter has a higher limit.  Take additional parameter to pass to
17788         the new function.
17789         (__pathconf): Pass file to __statfs_link_max.
17790         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17791         __statfs_link_max.
17792         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17793         __statfs_link_max.
17794
17795         [BZ #12868]
17796         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17797         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17798         Handle Lustre.
17799         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17800         (__statfs_filesize_max): Likewise.
17801         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17802
17803 2011-07-05  Andreas Jaeger  <aj@suse.de>
17804
17805         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17806
17807 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17808
17809         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17810         `status' variable.
17811         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17812         Likewise.
17813
17814 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17815
17816         * Makefile (strop-tests): Add strncat.
17817         * string/test-strncat.c: New file.
17818
17819 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17820
17821         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17822
17823 2011-06-21  Andreas Jaeger  <aj@suse.de>
17824
17825         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17826         Copy rule from iconvdata/Makefile.
17827
17828 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17829
17830         [BZ #12922]
17831         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17832         but no long options are defined, just return 'W'.
17833
17834 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17835
17836         [BZ #9696]
17837         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17838
17839 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17840
17841         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17842         netgroups to read.
17843         (innetgr): Likewise.
17844
17845 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17846
17847         * config.make.in (install_root): Default to $(DESTDIR).
17848
17849 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17850
17851         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17852
17853 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17854
17855         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17856
17857         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17858         containing directory rather than embedding absolute directory names.
17859
17860         * scripts/check-local-headers.sh: Rewritten using awk.
17861         Match by word, not by line.  Print error messages for matches.
17862         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17863
17864         * Makerules [shlib-lds-flags empty]:
17865         ($(common-objpfx)libc_pic.opts): New target.
17866         ($(common-objpfx)libc_pic.os.clean): New target.
17867         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17868
17869         * config.make.in (OBJCOPY): New variable.
17870         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17871         * configure: Regenerated.
17872
17873         * config.make.in (use-default-link): New variable.
17874         * configure.in (use_default_link): Grok --with-default-link to set it.
17875         * configure: Regenerated.
17876         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17877         (shlib-lds, shlib-lds-flags): Define to empty.
17878
17879         * Makerules (shlib-lds): New variable.
17880         (shlib-lds-flags): New variable.
17881         (build-shlib, build-moduile, build-module-asneeded): Use it.
17882         ($(common-objpfx)libc.so): Use $(shlib-lds).
17883         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17884         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17885
17886         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17887         DT_FLAGS/DT_FLAGS_1 with zero flags.
17888
17889         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17890         linker script munging.
17891
17892 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17893
17894         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17895         as 128-bit value.
17896         * crypt/sha512.c (sha512_process_block): Perform total addition using
17897         128-bit if possible.
17898         (__sha512_finish_ctx): Likewise.
17899         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17900         as 64-bit value.
17901         * crypt/sha256.c (SWAP64): Define.
17902         (sha256_process_block): Perform total addition using 64-bit if
17903         possible.
17904         (__sha256_finish_ctx): Likewise.
17905
17906 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17907
17908         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17909         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17910         * nscd/hstcache.c (cache_addhst): Likewise.
17911         * nscd/grpcache.c (cache_addgr): Likewise.
17912         * nscd/aicache.c (addhstaiX): Likewise
17913         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17914
17915 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17916
17917         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17918         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17919         * nscd/hstcache.c (cache_addhst): Likewise.
17920         * nscd/grpcache.c (cache_addgr): Likewise.
17921         * nscd/aicache.c (addhstaiX): Likewise
17922
17923 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17924
17925         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17926         domain only when needed.
17927
17928 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17929
17930         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17931         is always restored.
17932
17933 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17934
17935         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17936         are re-adding the entry.
17937         * nscd/servicescache.c (cache_addserv): Likewise.
17938
17939 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17940
17941         * sysdeps/generic/dl-irel.h: fix protection against multiple
17942         inclusions.
17943         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17944
17945 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17946
17947         [BZ #12935]
17948         * malloc/memusage.sh: Fix quoting in message.
17949         * debug/xtrace.sh: Likewise.
17950
17951         * configure.in: Remove support for --experimental-malloc option, make
17952         it the default.
17953         * config.make.in: Likewise.
17954         * malloc/Makefile: Likewise.
17955
17956 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17957
17958         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17959         two-byte characters.
17960
17961 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17962
17963         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17964         AC_CACHE_CHECK invocation.
17965         * configure: Regenerated.
17966
17967         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17968
17969 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17970
17971         [BZ #12350]
17972         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17973         bit from old_res_options.
17974
17975         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17976
17977         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17978         value type for setfct.
17979
17980 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17981
17982         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17983         __gettimeofday instead of gettimeofday.
17984
17985 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17986
17987         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17988
17989 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17990
17991         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17992
17993         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17994         info.
17995
17996 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17997
17998         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17999         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18000         strcpy-sse2-unaligned strncpy-sse2-unaligned
18001         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
18002         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
18003         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
18004         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
18005         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
18006         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
18007         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
18008         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
18009         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
18010         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
18011         (STRCPY): Support SSE2 and SSSE3 versions.
18012
18013 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
18014
18015         [BZ #12874]
18016         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
18017         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
18018         kernels which artificially limit size of requests.
18019
18020 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18021
18022         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18023         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
18024         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
18025         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
18026         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
18027         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
18028         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18029         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18030         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18031         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18032         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18033         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18034         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18035         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18036         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18037         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18038         Enable unaligned load optimization for Intel Core i3, i5 and i7
18039         processors.
18040         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18041         Define.
18042         (index_Fast_Unaligned_Load): Define.
18043         (HAS_FAST_UNALIGNED_LOAD): Define.
18044
18045 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18046
18047         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18048
18049 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18050
18051         [BZ #12907]
18052         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18053         until it is clear that the information is realy needed.
18054         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18055
18056 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18057
18058         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18059
18060 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18061
18062         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18063         /sys/devices/system/cpu/online if it is usable.
18064
18065         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18066         reading the information from the /proc filesystem to once a second.
18067
18068 2011-06-21  Andreas Jaeger  <aj@suse.de>
18069
18070         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18071         NULL after inclusion of kernel headers.
18072
18073 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18074
18075         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18076         calls to internal_setent.
18077
18078         [BZ #12885]
18079         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18080         addresses using gethostbyname4_r ignore IPv4 addresses.
18081
18082         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18083         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18084
18085         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18086
18087 2011-06-20  David S. Miller  <davem@davemloft.net>
18088
18089         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18090         inclusions.
18091         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18092
18093         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18094         (elf_irel): Use it.
18095         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18096         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18097         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18098         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18099         * sysdeps/x86_64/dl-irel.h: Likewise.
18100
18101         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18102         * elf/dl-sym.c: Likewise.
18103
18104 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18105
18106         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18107         need to dereference resplen2.
18108
18109 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18110
18111         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18112
18113 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18114
18115         * Makeconfig: Define vardbdir and inst_vardbdir.
18116         * nss/Makefile: Add rules to install db-Makefile.
18117
18118         * nss/nss_db/db-XXX.c: Cleanup.
18119
18120         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18121         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18122         GLIBC_PRIVATE.
18123         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18124         * nss/makedb.c: Implement -g option to specify that value strings
18125         are generated and should not be added to table iterated over for
18126         get*ent calls.
18127         * nss/nss_db/db-initgroups.c: New file.
18128
18129         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18130         interface.
18131
18132         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18133         (internal_getgrouplist): Adjust to name change.
18134         Update use_initgroups_entry if this is not the first call.
18135         * nss/databases.def: Add initgroups entry.
18136
18137         * nss/makedb.c (compute_tables): Check result of multiple hash table
18138         sizes to minimize maximum chain length.
18139
18140 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18141
18142         * Versions.def: Add entry for libnss_db.
18143         * shlib-versions: Likewise.
18144         * nss/Makefile: Add rules to build libnss_db.
18145         * nss/Versions: Add libnss_db information.  Organize libnss_files
18146         entries better.
18147         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18148         makedb progra.  Some minor improvements to generate smaller files.
18149         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18150         here from...
18151         * nss/makedb.c: ...here.
18152         Improve database format to be smaller and require less memory at
18153         runtime.
18154         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18155         db anymore.
18156         * nss/nss_db/db-netgrp.c: Likewise.
18157         * nss/nss_db/db-open.c: Likewise.
18158         * nss/nss_files/flies-XXX.x: Adjust comments.
18159         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18160         * nss/nss_files/files-grp.c: Likewise.
18161         * nss/nss_files/files-hosts.c: Likewise.
18162         * nss/nss_files/files-network.c: Likewise.
18163         * nss/nss_files/files-proto.c: Likewise.
18164         * nss/nss_files/files-pwd.c: Likewise.
18165         * nss/nss_files/files-rpc.c: Likewise.
18166         * nss/nss_files/files-service.c: Likewise.
18167         * nss/nss_files/files-sgrp.c: Likewise.
18168         * nss/nss_files/files-spwd.c: Likewise.
18169         * nss/nss_db/db-alias.c: Removed.
18170         * nss/nss_db/dummy-db.h: Removed.
18171
18172 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18173
18174         * nss/makedb.c: Rewritten to not use database library.
18175         * nss/Makefile: Update to build new makedb program.
18176
18177 2011-06-14  Andreas Jaeger  <aj@suse.de>
18178
18179         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18180         memset declaration.
18181
18182 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18183
18184         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18185         tmpbuf.
18186
18187 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18188
18189         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18190         * elf/Makefile ($(objpfx)ld.so): Likewise.
18191
18192         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18193         Don't list ld.so twice in dependencies.
18194
18195         * posix/bug-regex31.c: Include <stdlib.h>.
18196
18197         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18198
18199         * nis/nss_compat/compat-spwd.c
18200         (getspent_next_nss_netgr): Remove unused variable.
18201         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18202
18203         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18204         nonmembers" output to use the right array.
18205
18206         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18207
18208         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18209
18210         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18211         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18212         * catgets/gencat.c (read_input_file): Likewise.
18213         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18214
18215         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18216         variable definition inside #if's controlling its use.
18217
18218         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18219
18220         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18221
18222         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18223
18224         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18225         unreachable code.
18226
18227         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18228
18229         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18230         * configure: Regenerated.
18231
18232         * Makerules: Revert last change.
18233         * elf/Makefile: Likewise.
18234
18235 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18236
18237         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18238         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18239         (reloc-link): Likewise.
18240
18241 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18242
18243         * elf/Makefile: Add rules to build pldd.
18244         * elf/pldd.c: New file.
18245         * elf/pldd-xx.c: New file.
18246
18247 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18248
18249         * version.h: Update for 2.15 development version.
18250
18251 2011-06-07  David S. Miller  <davem@davemloft.net>
18252
18253         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18254         ifuncs.
18255         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18256         elf_machine_lazy_rel): Likewise.
18257         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18258         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18259         elf_machine_lazy_rel): Likewise.
18260         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18261         dl_hwcap via passed in argument.
18262         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18263         Likewise.
18264
18265 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18266
18267         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18268
18269 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18270
18271         [BZ #12849]
18272         * manual/fdl-1.1.texi: New file, verbatim from:
18273         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18274         * manual/lgpl-2.1.texi: New file, verbatim from:
18275         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18276         * manual/Makefile (licenses): New variable, list those new file names.
18277         (texis): Use it.
18278         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18279
18280         * manual/fdl.texi: File removed.
18281         * manual/lesser.texi: File removed.
18282         * manual/libc.texinfo (Copying, Documentation License):
18283         Use new @include file names, put @appendix directive before @include.
18284
18285 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18286
18287         [BZ #12841]
18288         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18289         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18290         (mq_open): Add __NTH.
18291
18292 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18293
18294         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18295         Assume Intel Core i3/i5/i7 processor if AVX is available.
18296
18297 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18298
18299         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18300         typo.
18301
18302 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18303
18304         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18305         memory.  Use alloca_account.  Fix memory leak when retrying.
18306
18307 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18308
18309         * version.h (RELEASE): Bump for 2.14 release.
18310         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18311
18312         * config.make.in (RANLIB): Remove entry.
18313
18314 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18315
18316         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18317         (libc.pot): Work around missing support for .ksh extension in xgettext.
18318
18319         [BZ #12684]
18320         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18321         if both request failed.
18322         (send_dg): In case of server errors clear resplen or *resplen2.
18323
18324         [BZ #12454]
18325         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18326         when there are multiple maps.
18327         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18328         (_dl_fini): Remove test here.
18329
18330         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18331
18332 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18333
18334         [BZ #12350]
18335         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18336         bit from old_res_options.
18337         (gaih_inet): Likewise.
18338
18339         [BZ #11099]
18340         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18341         as signed.
18342
18343         * resolv/res_init.c (res_setoptions): Make the code more compact.
18344
18345         [BZ #11558]
18346         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18347         set RES_USEVC.
18348
18349         [BZ #11634]
18350         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18351
18352         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18353
18354         [BZ #11781]
18355         * malloc/malloc.h: Declare malloc hook variables as volatile.
18356
18357         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18358         in last patch.
18359
18360         [BZ #11799]
18361         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18362         raise in the comment.
18363         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18364         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18365         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18366
18367 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18368
18369         [BZ #12811]
18370         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18371         grow the buffers more if it already has to be sufficient.
18372         (build_wcs_upper_buffer): Likewise.
18373         * posix/regexec.c (check_matching): Likewise.
18374         (clean_state_log_if_needed): Likewise.
18375         (extend_buffers): Don't enlarge buffers beyond size of the input
18376         buffer.
18377         Patches mostly by Emil Wojak <emil@wojak.eu>.
18378         * posix/bug-regex32.c: New file.
18379         * posix/Makefile (tests): Add bug-regex32.
18380
18381         * locale/findlocale.c (_nl_find_locale): Return right away if
18382         _nl_explode_name failed.
18383         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18384
18385         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18386
18387         * debug/xtrace.sh: Unify messages.
18388         * malloc/memusage.sh: Likewise.
18389
18390         [BZ #12813]
18391         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18392         time symbol from vDSO.  Substitute with vsyscall if not available.
18393         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18394         __vdso_time.
18395
18396         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18397         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18398         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18399         Add sendmmsg and internal_sendmmsg.
18400         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18401         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18402         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18403
18404         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18405         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18406         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18407
18408 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18409
18410         [BZ #12813]
18411         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18412         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18413         available.
18414         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18415         __vdso_getcpu.
18416
18417         [BZ #12814]
18418         * iconvdata/Makefile (tests): Add bug-iconv9.
18419         * iconvdata/bug-iconv9.c: New file.
18420
18421 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18422
18423         [BZ #12814]
18424         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18425
18426 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18427
18428         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18429         (struct user_regs_struct): Change intcs field back to cs.
18430
18431 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18432
18433         * po/ja.po: Update from translation team.
18434
18435 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18436
18437         [BZ #12795]
18438         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18439         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18440
18441 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18442
18443         * stdlib/longlong.h: Update from GCC.
18444
18445 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18446
18447         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18448         parameter name.
18449         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18450         Add parameter name.
18451         (__sysconf): Pass it down.
18452
18453 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18454
18455         [BZ #12671]
18456         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18457         some situations.
18458         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18459         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18460         add in in __libc_use_alloca calls.  Adjust callers.
18461         (glob): Use malloc in some situations.
18462
18463         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18464         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18465         pltexit.
18466
18467 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18468
18469         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18470         and CLOCK_BOOTTIME_ALARM.
18471
18472         [BZ #12782]
18473         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18474         is returned.
18475
18476         * string/_strerror.c (__strerror_r): Print negative errors as signed
18477         numbers.
18478
18479         [BZ #12777]
18480         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18481         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18482         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18483
18484         * configure.in: Fix typo in redirection and correct removal of test
18485         files in two cases.
18486
18487         [BZ #12788]
18488         * locale/setlocale.c (new_composite_name): Fix test to check for
18489         identical name of all categories.
18490
18491         [BZ #12792]
18492         * libio/filedoalloc.c (local_isatty): New function.
18493         (_IO_file_doallocate): Use local_isatty.
18494         * stdio-common/perror.c (perror): In case a new stream is used
18495         forward the stream error.
18496         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18497         error flag.
18498
18499 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18500
18501         [BZ #11869]
18502         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18503         alloca.
18504         * include/alloca.h (extend_alloca_account): Define.
18505
18506         [BZ #11857]
18507         * posix/regex.h: Fix comments with documentation of user-accessible
18508         fields after compilation and describe correct free'ing of pattern
18509         after re_compile_pattern.
18510         Patch by Reuben Thomas <rrt@sc3d.org>.
18511
18512 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18513
18514         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18515         and -mno-altivec to prevent the compiler from using Altivec and/or
18516         VSX instructions when the corresponding registers are not available.
18517
18518 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18519
18520         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18521
18522 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18523
18524         * libio/freopen.c (freopen): Use __dup2, not dup2.
18525         * libio/freopen64.c (freopen64): Likewise.
18526
18527 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18528
18529         [BZ #12775]
18530         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18531         * math/Makefile (tests): Add test-powl.
18532         (CFLAGS-test-powl.c): Define.
18533         * math/test-powl.c: New file.
18534
18535 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18536
18537         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18538
18539 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18540
18541         [BZ #11837]
18542         * iconvdata/gb18030.c: Update to GB18020-2005.
18543
18544 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18545
18546         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18547         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18548         Patch by Aharon Robbins <arnold@skeeve.com>.
18549
18550         [BZ #11892]
18551         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18552         on the stack.
18553
18554         [BZ #11895]
18555         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18556         through underflows.
18557
18558         [BZ #12766]
18559         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18560         point to strings before performing equality test for error_one_per_line
18561         mode.
18562
18563         [BZ #11697]
18564         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18565
18566         [BZ #11820]
18567         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18568         (struct user_fpregs_struct): Avoid __uint*_t types.
18569
18570         [BZ #6420]
18571         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18572         symbol info.  Use it instead of calling _dl_addr locally.
18573         (lock_and_info): New function.
18574         (tr_freehook): Call lock_and_info and pass symbol info as additional
18575         parameter to tr_where.
18576         (tr_mallochook): Likewise.
18577         (tr_reallochook): Likewise.
18578         (tr_memalignhook): Likewise.
18579
18580         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18581         used and couldn't be at all thread-safe.
18582
18583 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18584
18585         * libio/freopen.c (freopen): Don't close old file descriptor
18586         before the new one is opened.  Instead dup the new file descriptor
18587         to the old one after the new stream is created.
18588         * libio/freopen64.c (freopen64): Likewise.
18589         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18590         * libio/fileops.c (_IO_new_file_close_it): Handle new
18591         _IO_FLAGS2_NOCLOSE flag.
18592         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18593         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18594         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18595         _IO_FLAGS2_NOCLOSE flag.
18596         * include/unistd.h: Add hidden_proto for dup3.
18597         Define __have_dup3.
18598         * io/dup3.c: Define hidden symbol.
18599         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18600
18601         [BZ #7101]
18602         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18603         when an incomplete long option is used.
18604         * posix/tst-getopt_long1.c: New file.
18605         * posix/Makefile (tests): Add tst-getopt_long1.
18606
18607         [BZ #10138]
18608         * scripts/config.guess: Update from autoconf-2.68.
18609         * scripts/config.sub: Likewise.
18610
18611         [BZ #10157]
18612         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18613         tests into ...
18614         (has_cpuclock): ...this.  New function.
18615         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18616         macro here based on has_cpuclock code.
18617
18618         [BZ #10149]
18619         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18620         First byte (not low byte) is now always NUL.
18621         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18622
18623         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18624         Use non-cancelable interfaces.
18625
18626         [BZ #9809]
18627         * locale/iso-639.def: Add entry for Sorani.
18628
18629         [BZ #11901]
18630         * include/stdlib.h: Move include protection to the right place.
18631         Define abort_msg_s.  Declare __abort_msg with it.
18632         * stdlib/abort.c (__abort_msg): Adjust type.
18633         * assert/assert.c (__assert_fail_base): New function.  Majority
18634         of code from __assert_fail.  Allocate memory for __abort_msg with
18635         mmap.
18636         (__assert_fail): Now call __assert_fail_base.
18637         * assert/assert-perr.c: Remove bulk of implementation.  Use
18638         __assert_fail_base.
18639         * include/assert.hL Declare __assert_fail_base.
18640         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18641         mmap.
18642         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18643
18644 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18645
18646         [BZ #11952]
18647         [BZ #12453]
18648         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18649         until all modules are registered in the DTV.
18650         * elf/Makefile: Add rules to build and run tst-tls19.
18651         * elf/tst-tls19.c: New file.
18652         * elf/tst-tls19mod1.c: New file.
18653         * elf/tst-tls19mod2.c: New file.
18654         * elf/tst-tls19mod3.c: New file.
18655         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18656
18657         [BZ #12083]
18658         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18659         correctly.
18660
18661         [BZ #12601]
18662         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18663         two-byte sequence errors.
18664         * iconvdata/Makefile (tests): Add bug-iconv8.
18665         * iconvdata/bug-iconv8.c: New file.
18666
18667         [BZ #12626]
18668         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18669         buf2 definition.
18670
18671         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18672
18673         [BZ #12432]
18674         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18675         (dummy_getcfa): New function.
18676         (init): Get _Unwind_GetCFA address, use dummy if not found.
18677         (backtrace_helper): In recursion check, also check whether CFA changes.
18678         (__backtrace): Completely initialize arg.
18679
18680         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18681         storing incomplete byte sequence in state object.  Avoid testing for
18682         guaranteed too small input if we know there is enough data available.
18683
18684 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18685
18686         * Makeconfig (+link-pie): Indent.
18687         * Rules (binaries-pie): Define if $(have-fpie) and
18688         $(build-shared).
18689         (binaries-shared): Also filter out $(binaries-pie).
18690         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18691         * nscd/Makefile (others-pie): Add nscd.
18692         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18693         ($(objpfx)nscd): Remove command override.
18694         * login/Makefile (others-pie): Add pt_chown.
18695         ($(objpfx)pt_chown): Remove command override.
18696         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18697         remove command overrides.
18698
18699 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18700
18701         * libio/tst_putwc.c: Fix error messages.
18702
18703         [BZ #12724]
18704         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18705         currently writing and seek to current position when not.
18706         * libio/Makefile (tests): Add bug-fclose1.
18707         * libio/bug-fclose1.c: New file.
18708
18709 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18710
18711         [BZ #12511]
18712         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18713         don't set DF_1_NODELETE here.
18714         (do_lookup_x): When entering new entry test for copy relocation
18715         and if necessary set DF_1_NODELETE flag.
18716         * elf/tst-unique4.cc: New file.
18717         * elf/tst-unique4.h: New file.
18718         * elf/tst-unique4lib.cc: New file.
18719         * elf/Makefile: Add rules to build and run tst-unique4.
18720         Patch by Piotr Bury <pbury@goahead.com>.
18721
18722 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18723
18724         [BZ #12052]
18725         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18726
18727         [BZ #12625]
18728         * misc/mntent_r.c (addmntent): Flush the stream after the output
18729
18730         [BZ #12393]
18731         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18732         (is_trusted_path_normalize): Skip initial colon.  Append slash
18733         to empty buffer.  Duplicate is_trusted_path code but allow
18734         constructed patch to be prefix.
18735         (is_dst): Allow $ORIGIN followed by /.
18736         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18737         Correct testing of result of is_trusted_path_normalize
18738         (decompose_rpath): Fix warning.
18739
18740 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18741
18742         [BZ #11257]
18743         * grp/initgroups.c (internal_getgrouplist): When we found the service
18744         list through the initgroups entry in nsswitch.conf do not always
18745         continue on a successful lookup.  Don't always use the
18746         __nss_group_database value if it is set.
18747         * nss/nsswitch.conf (initgroups): Change action for successful db
18748         lookup to continue for compatibility.
18749
18750 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18751
18752         [BZ #11532]
18753         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18754         and CP774 modules.
18755         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18756         and CP774 modules.
18757         * iconvdata/tst-tables.sh: Likewise.
18758         * iconvdata/cp770.c: New file.
18759         * iconvdata/cp771.c: New file.
18760         * iconvdata/cp772.c: New file.
18761         * iconvdata/cp773.c: New file.
18762         * iconvdata/cp774.c: New file.
18763         * iconvdata/testdata/CP770: New file.
18764         * iconvdata/testdata/CP770..UTF8: New file.
18765         * iconvdata/testdata/CP771: New file.
18766         * iconvdata/testdata/CP771..UTF8: New file.
18767         * iconvdata/testdata/CP772: New file.
18768         * iconvdata/testdata/CP772..UTF8: New file.
18769         * iconvdata/testdata/CP773: New file.
18770         * iconvdata/testdata/CP773..UTF8: New file.
18771         * iconvdata/testdata/CP774: New file.
18772         * iconvdata/testdata/CP774..UTF8: New file.
18773
18774         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18775         END CHARMAP line.
18776         * iconvdata/gen-8bit-gap.sh: Likewise.
18777         * iconvdata/gen-8bit.sh: Likewise.
18778
18779         * locale/iso-639.def: Add ary entry.
18780
18781         [BZ #11258]
18782         * locale/C-translit.h.in: Add U20A1 transliteration.
18783
18784         [BZ #12178]
18785         * locale/iso-639.def: Add wae entry.
18786         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18787
18788         [BZ #12545]
18789         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18790         for n.
18791
18792         [BZ #12711]
18793         * locale/C-translit.h.in: Add entry for U20B9.
18794         Patch by pravin.d.s@gmail.com.
18795
18796 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18797
18798         [BZ #12713]
18799         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18800         ENAMETOOLONG use generic getcwd.
18801         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18802         in rtld.  Use *stat64.
18803         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18804         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18805         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18806         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18807         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18808         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18809         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18810         __fstatat64 macros.
18811         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18812         * dirent/rewinddir.c: Add libc_hidden_def.
18813         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18814         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18815
18816         * include/dirent.h (__alloc_dir): Add flags parameter.
18817         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18818         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18819         __alloc_dir.
18820         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18821         from fdopendir if O_CLOEXEC is already set.
18822
18823 2011-03-15  Alan Modra  <amodra@gmail.com>
18824
18825         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18826         l_tls_firstbyte_offset non-zero.  Save padding offset in
18827         l_tls_firstbyte_offset for later use.
18828         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18829         freeing static tls block.
18830
18831 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18832
18833         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18834         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18835         being defined by the kernel headers.
18836
18837 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18838
18839         [BZ #12734]
18840         * resolv/resolv.h: Define RES_NOTLDQUERY.
18841         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18842         no-tld-query and set RES_NOTLDQUERY.
18843         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18844         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18845         modern BIND to search name as TLD unless forbidden.
18846
18847 2011-05-07  Petr Baudis  <pasky@suse.cz>
18848             Ulrich Drepper  <drepper@gmail.com>
18849
18850         [BZ #12393]
18851         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18852         (is_trusted_path): ...to here.
18853         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18854         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18855         using is_trusted_path_normalize() in setuid scripts.
18856
18857 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18858
18859         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18860         __BEGIN/__END_DECLS.
18861
18862 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18863
18864         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18865         NSS_STATUS_NOTFOUND if no record was found.
18866
18867 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18868
18869         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18870         (headers-not-in-tirpc): Remove rpc/netdb.h
18871         * resolv/netdb.h: Revert last change.
18872
18873 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18874
18875         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18876         circular dependency between libgcc.a and libc.a.
18877
18878 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18879
18880         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18881         * nis/Makefile: Don't install rpcsvc/*.
18882         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18883         instead of <rpc/types.h>.
18884         (MAXHOSTNAMELEN): Define.
18885
18886 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18887
18888         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18889
18890 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18891
18892         [BZ #12714]
18893         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18894         gethostbyname4_r when IPv6 results are possible.
18895
18896 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18897
18898         [BZ #12723]
18899         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18900         _PC_PIPE_BUF handling.
18901
18902 2011-04-30  Bruno Haible  <bruno@clisp.org>
18903
18904         [BZ #12717]
18905         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18906         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18907         to 'int'.
18908         * inet/getnameinfo.c (getnameinfo): Likewise.
18909
18910 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18911
18912         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18913         to groups setting in database lookup.
18914         * nss/nsswitch.conf: Add initgroups entry.
18915
18916 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18917
18918         [BZ #12685]
18919         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18920         mode string.
18921         Patch by Eric Blake <eblake@redhat.com>.
18922
18923 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18924
18925         * sunrpc/Makefile (need-export-routines): Add svc_run.
18926         (routines): Remove svc_run.
18927         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18928         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18929         * sunrpc/svc_run.c (svc_run): Likewise.
18930         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18931
18932 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18933
18934         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18935         problem in reallocation in last patch.
18936
18937 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18938
18939         * sunrpc/Makefile: Move inclusion of Rules.
18940
18941 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18942
18943         * nss/nss_files/files-initgroups.c: New file.
18944         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18945         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18946         _nss_files_initgroups_dyn.
18947
18948 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18949
18950         * elf/elf.h (R_ARM_IRELATIVE): Define.
18951
18952 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18953
18954         * po/ru.po: Update from translation team.
18955
18956 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18957
18958         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18959         dependencies.
18960
18961 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18962
18963         [BZ #12653]
18964         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18965         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18966         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18967         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18968         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18969
18970 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18971
18972         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18973         differing bytes.
18974         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18975         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18976         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18977
18978 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18979
18980         [BZ #12420]
18981         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18982         storing it.
18983         * stdlib/bug-getcontext.c: New file.
18984         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18985
18986 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18987
18988         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18989         instructions into .machine "z9-109".
18990         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18991         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18992
18993 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18994
18995         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18996         between environment variables and auxiliary vector.
18997
18998 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18999
19000         * Makefile: Add rules to build linkobj/libc.so.
19001         * include/libc-symbols.h: Define libc_hidden_nolink.
19002         * include/rpc/auth.h: Mark functions which are to be hidden.
19003         * include/rpc/auth_des.h: Likewise.
19004         * include/rpc/auth_unix.h: Likewise.
19005         * include/rpc/clnt.h: Likewise.
19006         * include/rpc/des_crypt.h: Likewise.
19007         * include/rpc/key_prot.h: Likewise.
19008         * include/rpc/pmap_clnt.h: Likewise.
19009         * include/rpc/pmap_prot.h: Likewise.
19010         * include/rpc/pmap_rmt.h: Likewise.
19011         * include/rpc/rpc_msg.h: Likewise.
19012         * include/rpc/svc.h: Likewise.
19013         * include/rpc/svc_auth.h: Likewise.
19014         * include/rpc/xdr.h: Likewise.
19015         * nis/Makefile: Link all DSOs against linkobj/libc.so.
19016         * nss/Makefile: Likewise.
19017         * sunrpc/Makefile: Don't install headers.  Build library with normal
19018         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
19019         * sunrpc/auth_des.c: Hide exported symbols by default, export some
19020         for the compat linking library.  Remove use of INTDEF/INTUSE.
19021         * sunrpc/auth_none.c: Likewise.
19022         * sunrpc/auth_unix.c: Likewise.
19023         * sunrpc/authdes_prot.c: Likewise.
19024         * sunrpc/authuxprot.c: Likewise.
19025         * sunrpc/clnt_gen.c: Likewise.
19026         * sunrpc/clnt_perr.c: Likewise.
19027         * sunrpc/clnt_raw.c: Likewise.
19028         * sunrpc/clnt_simp.c: Likewise.
19029         * sunrpc/clnt_tcp.c: Likewise.
19030         * sunrpc/clnt_udp.c: Likewise.
19031         * sunrpc/clnt_unix.c: Likewise.
19032         * sunrpc/des_crypt.c: Likewise.
19033         * sunrpc/des_soft.c: Likewise.
19034         * sunrpc/get_myaddr.c: Likewise.
19035         * sunrpc/key_call.c: Likewise.
19036         * sunrpc/key_prot.c: Likewise.
19037         * sunrpc/netname.c: Likewise.
19038         * sunrpc/pm_getmaps.c: Likewise.
19039         * sunrpc/pm_getport.c: Likewise.
19040         * sunrpc/pmap_clnt.c: Likewise.
19041         * sunrpc/pmap_prot.c: Likewise.
19042         * sunrpc/pmap_prot2.c: Likewise.
19043         * sunrpc/pmap_rmt.c: Likewise.
19044         * sunrpc/publickey.c: Likewise.
19045         * sunrpc/rpc_cmsg.c: Likewise.
19046         * sunrpc/rpc_common.c: Likewise.
19047         * sunrpc/rpc_dtable.c: Likewise.
19048         * sunrpc/rpc_prot.c: Likewise.
19049         * sunrpc/rpc_thread.c: Likewise.
19050         * sunrpc/rtime.c: Likewise.
19051         * sunrpc/svc.c: Likewise.
19052         * sunrpc/svc_auth.c: Likewise.
19053         * sunrpc/svc_authux.c: Likewise.
19054         * sunrpc/svc_raw.c: Likewise.
19055         * sunrpc/svc_run.c: Likewise.
19056         * sunrpc/svc_simple.c: Likewise.
19057         * sunrpc/svc_tcp.c: Likewise.
19058         * sunrpc/svc_udp.c: Likewise.
19059         * sunrpc/svc_unix.c: Likewise.
19060         * sunrpc/svcauth_des.c: Likewise.
19061         * sunrpc/xcrypt.c: Likewise.
19062         * sunrpc/xdr.c: Likewise.
19063         * sunrpc/xdr_array.c: Likewise.
19064         * sunrpc/xdr_float.c: Likewise.
19065         * sunrpc/xdr_intXX_t.c: Likewise.
19066         * sunrpc/xdr_mem.c: Likewise.
19067         * sunrpc/xdr_rec.c: Likewise.
19068         * sunrpc/xdr_ref.c: Likewise.
19069         * sunrpc/xdr_sizeof.c: Likewise.
19070         * sunrpc/xdr_stdio.c: Likewise.
19071
19072 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19073
19074         [BZ #12650]
19075         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19076         * sysdeps/ia64/dl-tls.h: Likewise.
19077         * sysdeps/powerpc/dl-tls.h: Likewise.
19078         * sysdeps/s390/dl-tls.h: Likewise.
19079         * sysdeps/sh/dl-tls.h: Likewise.
19080         * sysdeps/sparc/dl-tls.h: Likewise.
19081         * sysdeps/x86_64/dl-tls.h: Likewise.
19082         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19083
19084 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19085
19086         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19087         rpath element also skip the following colon.
19088         (expand_dynamic_string_token): Add is_path parameter and pass
19089         down to DL_DST_REQUIRED and _dl_dst_substitute.
19090         (decompose_rpath): Call expand_dynamic_string_token with
19091         non-zero is_path.  Ignore empty rpaths.
19092         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19093         with zero is_path.
19094
19095 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19096
19097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19098         Make cancelable.
19099
19100 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19101
19102         [BZ #12655]
19103         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19104         Patch by Filipe David Manana <fdmanana@apache.org>.
19105
19106 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19107
19108         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19109         Maintain aligned stack.
19110         (CHECK_RSP): Remove unused macro.
19111
19112 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19113
19114         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19115         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19116
19117 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19118
19119         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19120
19121         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19122
19123 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19124
19125         [BZ #12518]
19126         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19127         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19128         * sysdeps/x86_64/memmove.c: New file.
19129         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19130         (memcpy): Renamed to ...
19131         (__new_memcpy): This.
19132         (memcpy): Provide GLIBC_2_14 memcpy.
19133         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19134         (memcpy): Provide GLIBC_2_2_5 memcpy.
19135
19136 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19137
19138         [BZ #12631]
19139         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19140
19141 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19142
19143         * misc/syncfs.c: New file.
19144         * misc/Makefile (routines): Add syncfs.
19145         * posix/unistd.h: Declare syncfs.
19146         * sysdeps/unix/syscalls.list: Add syncfs.
19147
19148 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19149
19150         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19151         open_by_handle_at.
19152         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19153         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19154         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19155         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19156         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19157         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19158         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19159
19160 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19161
19162         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19163         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19164         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19165         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19166         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19167         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19168         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19169
19170         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19171         sync_file_range.c with -fexceptions.
19172         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19173         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19174         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19175         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19176         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19177         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19178         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19179         sync_file_range as cancellation point
19180         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19181         now a wrapper around __call_sync_file_range with cancellation handling.
19182         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19183         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19184         function name to __call_sync_file_range.
19185         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19186         Add call_sync_file_range.
19187
19188 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19189
19190         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19191         bits/timex.h.
19192
19193 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19194
19195         * iconv/iconv.h: Fix typo in comment.
19196         * io/fcntl.h: Likewise.
19197         * libio/stdio.h: Likewise.
19198         * posix/spawn.h: Likewise.
19199         * posix/unistd.h: Likewise.
19200         * stdlib/stdlib.h: Likewise.
19201         * time/time.h: Likewise.
19202         * wcsmbs/wchar.h: Likewise.
19203
19204         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19205         open_by_handle): Add.
19206         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19207         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19208         Augment a few comments.
19209         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19211         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19212         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19213         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19214         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19215         open_by_handle.
19216
19217         * io/fcntl.h (AT_EMPTY_PATH): Define.
19218
19219 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19220
19221         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19222         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19223         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19224         to...
19225         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19226         * Versions.def: Add GLIBC_2.14.
19227         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19228         Export.
19229
19230 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19231
19232         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19233         round counter.
19234         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19235
19236 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19237
19238         [BZ #12597]
19239         * string/test-strncmp.c (do_page_test): New function.
19240         (check2): Likewise.
19241         (test_main): Call check2.
19242         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19243
19244 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19245
19246         [BZ #12587]
19247         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19248         Handle cache information in CPU leaf 4.
19249         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19250
19251 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19252
19253         [BZ #12583]
19254         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19255         character representation.
19256         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19257
19258 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19259
19260         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19261         END(__isnan) to END(__isnanf) to match function entry point/label
19262         EALIGN(__isnanf,...).
19263
19264 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19265
19266         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19267
19268 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19269
19270         [BZ #12510]
19271         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19272         copy from the symbol referenced in the relocation to initialize the
19273         used variable.
19274         Patch by Piotr Bury <pbury@goahead.com>.
19275         * elf/Makefile: Add rules to build and tst-unique3.
19276         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19277         * elf/tst-unique3.cc: New file.
19278         * elf/tst-unique3.h: New file.
19279         * elf/tst-unique3lib.cc: New file.
19280         * elf/tst-unique3lib2.cc: New file.
19281
19282         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19283
19284 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19285
19286         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19287         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19288         to _start.
19289
19290 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19291
19292         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19293         to-be-loaded object along a path to loader is ld.so.
19294
19295 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19296             Ulrich Drepper  <drepper@gmail.com>
19297
19298         * sysdeps/x86_64/memset.S: After aligning destination, code
19299         branches to different locations depending on the value of
19300         misalignment, when multiarch is enabled. Fix this.
19301
19302 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19303
19304         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19305         Set _x86_64_preferred_memory_instruction for AMD processsors.
19306         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19307         Set bit_Prefer_SSE_for_memop for AMD processors.
19308
19309 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19310
19311         * libio/fmemopen.c (fmemopen): Optimize a bit.
19312
19313 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19314
19315         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19316
19317 2011-03-03  Roland McGrath  <roland@redhat.com>
19318
19319         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19320
19321 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19322
19323         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19324         __bzero_ultra1 instead of __memset_ultra1.
19325
19326 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19327             Ulrich Drepper  <drepper@gmail.com>
19328
19329         [BZ #12509]
19330         * include/link.h (struct link_map): Add l_orig_initfini.
19331         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19332         returning unsuccessfully.
19333         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19334         close of a file loaded at startup, restore the original l_initfini
19335         list.
19336         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19337         list, store the pointer.
19338         * elf/Makefile ($(objpfx)noload-mem): New rule.
19339         (noload-ENV): Define.
19340         (tests): Add $(objpfx)noload-mem.
19341         * elf/noload.c: Include <memcheck.h>.
19342         (main): Call mtrace.  Close all opened handles.
19343
19344 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19345
19346         [BZ #12454]
19347         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19348         dependencies are missing.
19349
19350 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19351
19352         Fix __if_freereq crash: Unlike the generic version which uses free,
19353         Hurd needs munmap.
19354         * sysdeps/mach/hurd/ifreq.h: New file.
19355
19356 2011-01-27  Petr Baudis  <pasky@suse.cz>
19357             Ulrich Drepper  <drepper@gmail.com>
19358
19359         [BZ 12445]#
19360         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19361         to extend_alloca().
19362         * stdio-common/bug23.c: New file.
19363         * stdio-common/Makefile (tests): Add bug23.
19364
19365 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19366             Ulrich Drepper  <drepper@gmail.com>
19367
19368         [BZ #12489]
19369         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19370         before performing relro protection.  At old place add assertion
19371         to make sure nothing changed.
19372
19373 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19374             Glauber de Oliveira Costa  <glommer@gmail.com>
19375
19376         * elf/elf.h: Add new ARM TLS relocs.
19377
19378 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19379
19380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19381         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19382         cast from r3.
19383         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19384         'tests' variable.
19385         * sysdeps/wordsize-64/tst-writev.c: New file.
19386
19387 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19388
19389         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19390         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19391         insns in _dl_start to prevent a TOC reference before relocs are
19392         resolved.
19393
19394 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19395
19396         [BZ #12469]
19397         * Makeconfig: Remove RANLIB definition.
19398         * Makerules: Don't use RANLIB.
19399         * aclocal.m4: Remove ranlib test.
19400         * configure.in: No need to check for ranlib.
19401         * elf/rtld-Rules: Don't use RANLIB.
19402
19403 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19404
19405         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19406         protection macro.
19407         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19408         inclusion protection macro.
19409
19410         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19411         SIGRTMIN and SIGRTMAX and print information in that case only when
19412         SIGRTMIN is defined.
19413
19414 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19415
19416         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19417         arginfo fn returning -1.
19418
19419         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19420         and thousands string is zero terminated.
19421
19422 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19423
19424         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19425         sysdeps/unix/sysv/linux/bits/socket.h.
19426
19427 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19428
19429         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19430         (__CPU_COUNT): Remove old macros.
19431         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19432         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19433         (__CPU_ALLOC, __CPU_FREE): Add macros.
19434         (__sched_cpualloc, __sched_cpufree): Add declarations.
19435
19436 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19437
19438         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19439         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19440         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19441         (readdhstai): Return value of addhstaiX call.
19442         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19443         (addgrbyX): Return value returned by cache_addgr.
19444         (readdgrbyname): Return value returned by addgrbyX.
19445         (readdgrbygid): Likewise.
19446         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19447         (addpwbyX): Return value returned by cache_addpw.
19448         (readdpwbyname): Return value returned by addhstbyX.
19449         (readdpwbyuid): Likewise.
19450         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19451         (addservbyX): Return value returned by cache_addserv.
19452         (readdservbyname): Return value returned by addservbyX:
19453         (readdservbyport): Likewise.
19454         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19455         (addhstbyX): Return value returned by cache_addhst.
19456         (readdhstbyname): Return value returned by addhstbyX.
19457         (readdhstbyaddr): Likewise.
19458         (readdhstbynamev6): Likewise.
19459         (readdhstbyaddrv6): Likewise.
19460         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19461         (readdinitgroups): Return value returned by addinitgroupsX.
19462         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19463         (prune_cache): Keep track of timeout value of re-added entries.
19464         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19465         * nscd/nscd.h: Adjust prototypes of readd* functions.
19466
19467 2011-02-04  Roland McGrath  <roland@redhat.com>
19468
19469         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19470         (nis_stats): Likewise.
19471         * nis/nis_modify.c (nis_modify): Likewise.
19472         * nis/nis_remove.c (nis_remove): Likewise.
19473         * nis/nis_add.c (nis_add): Likewise.
19474
19475         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19476
19477         * posix/fnmatch_loop.c: Add some consts.
19478
19479         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19480
19481 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19482
19483         [BZ #12460]
19484         * config.make.in (config-cflags-novzeroupper): Define.
19485         * configure.in: Substitute libc_cv_cc_novzeroupper.
19486         * elf/Makefile (AVX-CFLAGS): Define.
19487         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19488         (CFLAGS-tst-auditmod4a.c): Likewise.
19489         (CFLAGS-tst-auditmod4b.c): Likewise.
19490         (CFLAGS-tst-auditmod6b.c): Likewise.
19491         (CFLAGS-tst-auditmod6c.c): Likewise.
19492         (CFLAGS-tst-auditmod7b.c): Likewise.
19493         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19494
19495 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19496
19497         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19498         function to the callback.
19499         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19500
19501 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19502
19503         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19504         of errno.
19505
19506 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19507
19508         [BZ #11724]
19509         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19510         of constructors.
19511         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19512         of destructors.
19513         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19514
19515         [BZ #11724]
19516         * elf/Makefile: Add rules to build and run new test.
19517         * elf/tst-initorder.c: New file.
19518         * elf/tst-initorder.exp: New file.
19519         * elf/tst-initordera1.c: New file.
19520         * elf/tst-initordera2.c: New file.
19521         * elf/tst-initordera3.c: New file.
19522         * elf/tst-initordera4.c: New file.
19523         * elf/tst-initorderb1.c: New file.
19524         * elf/tst-initorderb2.c: New file.
19525         * elf/tst-order-a1.c: New file.
19526         * elf/tst-order-a2.c: New file.
19527         * elf/tst-order-a3.c: New file.
19528         * elf/tst-order-a4.c: New file.
19529         * elf/tst-order-b1.c: New file.
19530         * elf/tst-order-b2.c: New file.
19531         * elf/tst-order-main.c: New file.
19532         New test case by George Gensure <werkt0@gmail.com>.
19533
19534 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19535
19536         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19537         decoding ACE if AI_CANONIDN.
19538
19539 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19540
19541         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19542
19543 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19544
19545         * version.h (RELEASE): Bump for 2.13 release.
19546         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19547
19548         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19549
19550         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19551         MADV_NOHUGEPAGE.
19552         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19553         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19554         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19555         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19556         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19557         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19558
19559         * posix/getconf.c: Update copyright year.
19560         * catgets/gencat.c: Likewise.
19561         * csu/version.c: Likewise.
19562         * debug/catchsegv.sh: Likewise.
19563         * debug/xtrace.sh: Likewise.
19564         * elf/ldconfig.c: Likewise.
19565         * elf/ldd.bash.in: Likewise.
19566         * elf/sprof.c (print_version): Likewise.
19567         * iconv/iconv_prog.c: Likewise.
19568         * iconv/iconvconfig.c: Likewise.
19569         * locale/programs/locale.c: Likewise.
19570         * locale/programs/localedef.c: Likewise.
19571         * malloc/memusage.sh: Likewise.
19572         * malloc/mtrace.pl: Likewise.
19573         * nscd/nscd.c (print_version): Likewise.
19574         * nss/getent.c: Likewise.
19575
19576         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19577         PF_CAIF, and PF_ALG.
19578         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19579
19580 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19581
19582         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19583         (modules-names): Use them.
19584         (ifunc-test-modules, ifunc-pie-tests): Define.
19585         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19586         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19587         (test-extras): Likewise.
19588         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19589         $(compile-command.c).
19590         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19591         (all-built-dso): Define.
19592         (check-textrel.out, check-execstack.out): Depend on it.
19593
19594         * configure.in: Don't override --enable-multi-arch.
19595
19596 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19597
19598         [BZ #6812]
19599         * nscd/hstcache.c (tryagain): Define.
19600         (cache_addhst): Return tryagain not notfound for temporary errors.
19601         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19602         failed.
19603
19604 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19605
19606         [BZ #10563]
19607         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19608         to make the syscall.
19609         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19610
19611         [BZ #12378]
19612         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19613         and fall back to matching as normal character if the string ends before
19614         the matching ']' is found.  This is what POSIX requires.
19615         * posix/testfnm.c: Adjust test result.
19616         * posix/globtest.sh: Adjust test result.  Add new test.
19617         * posix/tst-fnmatch.input: Likewise.
19618         * posix/tst-fnmatch2.c: Add new test.
19619
19620 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19621
19622         * elf/Makefile (check-execstack): Revert last change.  Depend on
19623         check-execstack.h.
19624         (check-execstack.h): New target.
19625         (generated): Add check-execstack.h.
19626         * elf/check-execstack.c: Include "check-execstack.h".
19627         (main): Revert last change.
19628         (handle_file): Return zero if GNU_STACK is absent and
19629         DEFAULT_STACK_PERMS doesn't include PF_X.
19630
19631 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19632
19633         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19634         in child fails because the descriptor is already closed.
19635         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19636         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19637         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19638
19639         [BZ #12397]
19640         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19641         syscall.
19642
19643         [BZ #10484]
19644         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19645         temporary buffer used to handle multi lookups locally.
19646         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19647
19648 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19649
19650         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19651         loader is ld.so.
19652
19653 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19654
19655         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19656         alignment for SSE2.
19657
19658 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19659
19660         [BZ #12394]
19661         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19662         characters.  When rounding increased number of integer digits recompute
19663         number of groups.
19664         * stdio-common/tst-grouping.c: New file.
19665         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19666
19667 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19668
19669         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19670         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19671
19672         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19673         void.
19674         * bits/select.h: Likewise.
19675
19676 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19677
19678         * po/ja.po: Update from translation team.
19679
19680 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19681
19682         [BZ #11155]
19683         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19684         implementation just like for lxstat, fxstatat, et al.
19685
19686 2010-12-27  Jim Meyering  <meyering@redhat.com>
19687
19688         [BZ #12348]
19689         * posix/regexec.c (build_trtable): Return failure indication upon
19690         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19691
19692 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19693
19694         [BZ #12201]
19695         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19696         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19697         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19698         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19699
19700         [BZ #12207]
19701         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19702
19703         [BZ #12204]
19704         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19705         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19706
19707 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19708
19709         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19710         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19711         script has SORT_BY_INIT_PRIORITY.
19712         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19713         NO_CTORS_DTORS_SECTIONS is defined.
19714         * elf/soinit.c: Likewise.
19715         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19716         NO_CTORS_DTORS_SECTIONS is defined.
19717         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19718         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19719         * sysdeps/sh/init-first.c: Likewise.
19720         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19721
19722 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19723
19724         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19725         always use the slow path.
19726
19727 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19728
19729         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19730         similar rule which adds the sysdep directories to the header search in
19731         order to pick up the correct platform stackinfo.h.
19732         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19733         perform test if it is, otherwise return successfully without testing.
19734         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19735         DEFAULT_STACK_PERMS define in stackinfo.h.
19736         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19737         defined in stackinfo.h.
19738         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19739         DEFAULT_STACK_PERMS defined in stackinfo.h.
19740         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19741         * sysdeps/ia64/stackinfo.h: Likewise.
19742         * sysdeps/s390/stackinfo.h: Likewise.
19743         * sysdeps/sh/stackinfo.h: Likewise.
19744         * sysdeps/sparc/stackinfo.h: Likewise.
19745         * sysdeps/x86_64/stackinfo.h: Likewise.
19746         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19747         PF_X for powerpc64.  Retain PF_X for powerpc32.
19748
19749 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19750
19751         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19752         accurately.
19753         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19754         GETDENTS_64BIT_ALIGNED.
19755
19756 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19757
19758         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19759
19760 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19761
19762         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19763         _GNU_SOURCE.
19764
19765         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19766         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19767         Remove __restrict.
19768         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19769         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19770
19771 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19772
19773         [BZ #11655]
19774         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19775         are initialized.
19776
19777 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19778
19779         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19780
19781 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19782
19783         * po/it.po: Update from translation team.
19784
19785 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19786
19787         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19788         unused codes.
19789
19790 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19791
19792         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19793
19794 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19795
19796         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19797         specially.
19798         (gaih_getanswer_slice): Likewise.
19799
19800 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19801
19802         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19803
19804 2010-05-31  Petr Baudis  <pasky@suse.cz>
19805
19806         [BZ #11149]
19807         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19808         silently even in the chroot mode.
19809
19810 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19811
19812         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19813         last patch a bit.  Pretty printing
19814
19815 2010-05-31  Petr Baudis <pasky@suse.cz>
19816
19817         [BZ #10085]
19818         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19819         initialization of skip_initgroups_dyn.
19820
19821 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19822
19823         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19824         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19825
19826 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19827
19828         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19829
19830 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19831
19832         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19833         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19834         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19835         ($(objpfx)tst-fnmatch-mem): New rule.
19836         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19837         * posix/tst-fnmatch.c (main): Call mtrace.
19838
19839 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19840
19841         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19842         Support Intel processor model 6 and model 0x2c.
19843
19844 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19845
19846         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19847           signed comparison.
19848
19849 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19850
19851         [BZ #12205]
19852         * string/test-strncasecmp.c (check_result): New function.
19853         (do_one_test): Use it.
19854         (check1): New function.
19855         (test_main): Use it.
19856         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19857         Support strcasecmp and strncasecmp.
19858
19859 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19860
19861         [BZ #12194]
19862         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19863         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19864
19865 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19866
19867         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19868         IFUNC support.
19869         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19870         memset-x86-64.
19871         * sysdeps/x86_64/multiarch/bzero.S: New file.
19872         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19873         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19874         * sysdeps/x86_64/multiarch/memset.S: New file.
19875         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19876         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19877         Set bit_Prefer_SSE_for_memop for Intel processors.
19878         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19879         Define.
19880         (index_Prefer_SSE_for_memop): Define.
19881         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19882
19883 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19884
19885         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19886         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19887
19888 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19889
19890         [BZ #12191]
19891         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19892         (__x86_64_raw_data_cache_size_half): Likewise.
19893         (__x86_64_raw_shared_cache_size): Likewise.
19894         (__x86_64_raw_shared_cache_size_half): Likewise.
19895
19896         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19897         (__x86_64_raw_data_cache_size_half): Likewise.
19898         (__x86_64_raw_shared_cache_size): Likewise.
19899         (__x86_64_raw_shared_cache_size_half): Likewise.
19900         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19901         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19902         and __x86_64_raw_shared_cache_size_half.  Round
19903         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19904         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19905         to multiple of 256 bytes.
19906
19907 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19908
19909         [BZ #12167]
19910         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19911         of inacessible symlinks.  Verify result of symlink before returning it.
19912         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19913         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19914
19915 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19916
19917         * math/math.h (isinf): Fix typo in comment.
19918
19919 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19920
19921         * po/da.po: Update from translation team.
19922
19923 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19924
19925         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19926         is added to the list.
19927
19928 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19929             Ulrich Drepper  <drepper@gmail.com>
19930
19931         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19932         the global list here.  Move code to...
19933         (_dl_add_to_namespace_list): ...here.  New function.
19934         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19935         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19936         * elf/dl-load.c (lose): Don't remove the element from the list.
19937         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19938         (_dl_map_object): Likewise.
19939
19940 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19941
19942         [BZ #12159]
19943         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19944         into all bytes of SSE register.
19945         Patch by Richard Li <richardpku@gmail.com>.
19946
19947 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19948
19949         [BZ #12140]
19950         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19951         perturbing.
19952
19953 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19954
19955         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19956         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19957         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19958         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19960         submachine.
19961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19962
19963 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19964
19965         * include/dlfcn.h (__RTLD_SECURE): Define.
19966         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19967         mode & __RTLD_SECURE instead.
19968         (open_path): Rename preloaded parameter to secure.
19969         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19970         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19971         * elf/dl-deps.c (openaux): Likewise.
19972         * elf/rtld.c (struct map_args): Remove is_preloaded.
19973         (map_doit): Don't use it.
19974         (dl_main): Likewise.
19975         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19976         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19977
19978 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19979
19980         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19981         (sysd-rules-targets): Remove duplicates.
19982         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19983         rtld-%.$o dependency.
19984
19985 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19986
19987         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19988         _dl_map_object do it.
19989
19990 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19991
19992         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19993         fast fma builtins, define the macros in the C99 standard.
19994         (FP_FAST_FMAF): Likewise.
19995         (FP_FAST_FMAL): Likewise.
19996         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19997
19998         * bits/mathdef.h: Update copyright year.
19999         * sysdeps/powerpc/bits/mathdef.h: Likewise.
20000
20001 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
20002
20003         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
20004         builtins, define the macros in the C99 standard.
20005         (FP_FAST_FMAF): Likewise.
20006         (FP_FAST_FMAL): Likewise.
20007         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
20008         multiply/add.
20009         (FP_FAST_FMAF): Likewise.
20010
20011 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
20012
20013         [BZ #3268]
20014         * math/libm-test.inc (fma_test): Some new testcases.
20015         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
20016         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
20017         y and infinite z.  Do multiplication by C already in long double.
20018         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
20019         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
20020         y and infinite z.  Do bitwise or of inexact bit into u.d.
20021         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
20022         * sysdeps/i386/fpu/s_fmaf.S: Removed.
20023         * sysdeps/i386/fpu/s_fma.S: Removed.
20024         * sysdeps/i386/fpu/s_fmal.S: Removed.
20025
20026 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
20027
20028         [BZ #3268]
20029         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20030         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20031         computation is not scheduled after fetestexcept.  Fix value
20032         of minimum denormal long double.
20033
20034 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20035
20036         [BZ #3268]
20037         * math/libm-test.inc (fma_test): Add some more tests.
20038         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20039         correctly.
20040
20041 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20042
20043         * scripts/data/localplt-s390-linux-gnu.data: New file.
20044         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20045
20046 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20047
20048         [BZ #3268]
20049         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20050         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20051         instead of dbl-64.
20052         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20053         inlines.
20054         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20055         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20056         if one of x and y is very large and the other is subnormal.
20057         * sysdeps/s390/fpu/s_fmaf.c: New file.
20058         * sysdeps/s390/fpu/s_fma.c: New file.
20059         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20060         * sysdeps/powerpc/fpu/s_fma.S: New file.
20061         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20062         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20063         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20064
20065 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20066
20067         [BZ #3268]
20068         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20069         fma tests.
20070         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20071         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20072         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20073         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20074         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20075         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20076         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20077
20078 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20079
20080         [BZ #12078]
20081         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20082         * posix/bug-regex31.input: Add test case.
20083
20084 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20085
20086         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20087         * posix/bug-regex31.input: New file.
20088
20089         [BZ #12078]
20090         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20091         (parse_sub_exp): Fix last change, use postorder.
20092
20093         * posix/bug-regex31.c: New file.
20094         * posix/Makefile: Add rules to build and run bug-regex31.
20095
20096         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20097
20098         [BZ #12078]
20099         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20100
20101         [BZ #12108]
20102         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20103         to have entries in sys_siglist.
20104
20105         [BZ #12093]
20106         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20107         be NULL.
20108
20109 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20110
20111         [BZ #3268]
20112         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20113         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20114         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20115         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20116         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20117         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20118         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20119         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20120         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20121         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20122         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20123         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20124         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20125         * math/ftestexcept.c (fetestexcept): Likewise.
20126         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20127         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20128         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20129         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20130         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20131         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20132         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20133
20134 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20135
20136         [BZ #12107]
20137         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20138         newline.
20139
20140 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20141
20142         * string/bug-strstr1.c: New file.
20143         * string/Makefile: Add rules to build and run bug-strstr1.
20144
20145 2010-10-05  Eric Blake  <eblake@redhat.com>
20146
20147         [BZ #12092]
20148         * string/str-two-way.h (two_way_long_needle): Always clear memory
20149         when skipping input due to the shift table.
20150
20151 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20152
20153         [BZ #12005]
20154         * malloc/mcheck.c: Handle large requests.
20155
20156         [BZ #12077]
20157         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20158         for strncmp and strncasecmp.
20159         * string/stratcliff.c: Add tests for strcmp and strncmp.
20160         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20161
20162 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20163
20164         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20165         __set_fpscr.
20166
20167 2010-09-30  Andreas Jaeger  <aj@suse.de>
20168
20169         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20170         (CGROUP_SUPER_MAGIC): Define.
20171         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20172         Handle btrfs and cgroup file systems.
20173         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20174         Likewise.
20175
20176 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20177
20178         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20179         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20180
20181 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20182
20183         [BZ #12067]
20184         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20185         trying to locate the ELF header.
20186
20187 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20188
20189         [BZ #11611]
20190         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20191         Mask out sign-bit copies when constructing f_fsid.
20192
20193 2010-09-24  Petr Baudis <pasky@suse.cz>
20194
20195         * debug/stack_chk_fail_local.c: Add missing licence exception.
20196         * debug/warning-nop.c: Likewise.
20197
20198 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20199
20200         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20201         implementing getdents64 using getdents syscall, set d_type if
20202         __ASSUME_GETDENTS32_D_TYPE.
20203
20204 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20205
20206         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20207         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20208
20209 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20210
20211         [BZ #12037]
20212         * posix/unistd.h: Undo change of feature selection for ftruncate from
20213         2010-01-11.
20214
20215 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20216
20217         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20218         detection.
20219
20220 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20221
20222         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20223         fanotify_mark.
20224         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20225
20226 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20227
20228         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20229         variables after CHECK_SP call.
20230         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20231
20232 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20233             Ulrich Drepper  <drepper@redhat.com>
20234
20235         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20236         re-relocationg ld.so.
20237         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20238         _dl_init_paths call.
20239         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20240         here anymore.
20241
20242 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20243
20244         * resolv/res_init.c (__res_vinit): Count the default server we added.
20245
20246 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20247             Ulrich Drepper  <drepper@redhat.com>
20248
20249         [BZ #11968]
20250         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20251         (____longjmp_chk): Use %ebx for saving value across system call.
20252         Add unwind info.
20253
20254 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20255
20256         * manual/Makefile: Don't mix pattern rules with normal rules.
20257
20258 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20259
20260         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20261         operation.
20262         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20263         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20264         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20265         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20266         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20267         Likewise.
20268
20269 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20270
20271         [BZ #11979]
20272         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20273         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20274
20275 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20276
20277         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20278         * sysdeps/x86_64/addmul_1.S: Likewise.
20279         * sysdeps/x86_64/lshift.S: Likewise.
20280         * sysdeps/x86_64/mul_1.S: Likewise.
20281         * sysdeps/x86_64/rshift.S: Likewise.
20282         * sysdeps/x86_64/sub_n.S: Likewise.
20283         * sysdeps/x86_64/submul_1.S: Likewise.
20284
20285 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20286
20287         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20288         Define __sched_param instead of SCHED_* and sched_param when
20289         <bits/sched.h> is included with __need_schedparam defined.
20290         * bits/sched.h [__need_schedparam]
20291         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20292         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20293         (__defined_schedparam): Define to 1.
20294         (__sched_param): New structure, identical to sched_param.
20295         (__need_schedparam): Undefine.
20296
20297 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20298
20299         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20300         (epoll_create1): Declare.
20301
20302         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20303
20304 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20305
20306         [BZ #7066]
20307         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20308         shifting retval into place.
20309
20310 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20311
20312         * nis/rpcsvc/nis.h: Update copyright notice.
20313         * nis/rpcsvc/nis.x: Likewise.
20314         * nis/rpcsvc/nis_callback.h: Likewise.
20315         * nis/rpcsvc/nis_callback.x: Likewise.
20316         * nis/rpcsvc/nis_object.x: Likewise.
20317         * nis/rpcsvc/nis_tags.h: Likewise.
20318         * nis/rpcsvc/yp.h: Likewise.
20319         * nis/rpcsvc/yp.x: Likewise.
20320         * nis/rpcsvc/ypupd.h: Likewise.
20321         * nis/yp_xdr.c: Likewise.
20322         * nis/ypupdate_xdr.c: Likewise.
20323
20324         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20325         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20326         (pmap_getport): Use __libc_rpc_getport.
20327         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20328         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20329         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20330
20331 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20332
20333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20334         fanotify_mark.
20335
20336 2010-08-27  Roland McGrath  <roland@redhat.com>
20337
20338         * sysdeps/i386/i686/multiarch/Makefile
20339         (CFLAGS-varshift.c): New variable.
20340
20341 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20342
20343         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20344         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20345
20346         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20347
20348         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20349
20350 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20351
20352         * sysdeps/x86_64/strlen.S: Unroll the loop.
20353         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20354         strlen-sse2 strlen-sse2-bsf.
20355         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20356         __strlen_no_bsf if bit_Slow_BSF is set.
20357         (__strlen_sse42): Removed.
20358         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20359         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20360
20361 2010-08-25  Roland McGrath  <roland@redhat.com>
20362
20363         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20364         * sysdeps/x86_64/multiarch/varshift.c: New file.
20365         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20366         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20367         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20368         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20369
20370 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20371
20372         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20373         strlen-sse2 strlen-sse2-bsf.
20374         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20375         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20376         (__strlen_sse2): Removed.
20377         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20378         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20379         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20380         bit_Slow_BSF for Atom.
20381         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20382         (index_Slow_BSF): Define.
20383         (HAS_SLOW_BSF): Define.
20384
20385 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20386
20387         [BZ #10851]
20388         * resolv/res_init.c (__res_vinit): When no server address at all
20389         is given default to loopback.
20390
20391 2010-08-24  Roland McGrath  <roland@redhat.com>
20392
20393         * configure.in: Remove config-name.h generation.
20394         * configure: Regenerated.
20395         * config-name.in: File removed.
20396         * scripts/config-uname.sh: New file.
20397         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20398         ($(objdir)config-name.h): New target.
20399
20400         * sunrpc/rpc_parse.h: Avoid nested comment.
20401
20402 2010-08-24  Richard Henderson  <rth@redhat.com>
20403             Ulrich Drepper  <drepper@redhat.com>
20404             H.J. Lu  <hongjiu.lu@intel.com>
20405
20406         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20407         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20408         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20409         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20410         _mm_alignr_epi8 with _mm_loadu_si128.
20411         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20412         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20413         (__m128i_shift_right): Removed.
20414         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20415         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20416         * sysdeps/x86_64/multiarch/varshift.h: New file.
20417         * sysdeps/x86_64/multiarch/varshift.S: New file.
20418
20419 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20420
20421         * configure.in: Move assembler checks to before sysdep dir checking.
20422
20423 2010-08-20  Petr Baudis  <pasky@suse.cz>
20424
20425         * LICENSES: Sync the sunrpc license.
20426
20427 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20428
20429         * sunrpc/auth_des.c: Update copyright notice once again.
20430         * sunrpc/auth_none.c: Likewise.
20431         * sunrpc/auth_unix.c: Likewise.
20432         * sunrpc/authdes_prot.c: Likewise.
20433         * sunrpc/authuxprot.c: Likewise.
20434         * sunrpc/bindrsvprt.c: Likewise.
20435         * sunrpc/clnt_gen.c: Likewise.
20436         * sunrpc/clnt_perr.c: Likewise.
20437         * sunrpc/clnt_raw.c: Likewise.
20438         * sunrpc/clnt_simp.c: Likewise.
20439         * sunrpc/clnt_tcp.c: Likewise.
20440         * sunrpc/clnt_udp.c: Likewise.
20441         * sunrpc/clnt_unix.c: Likewise.
20442         * sunrpc/des_crypt.c: Likewise.
20443         * sunrpc/des_soft.c: Likewise.
20444         * sunrpc/get_myaddr.c: Likewise.
20445         * sunrpc/getrpcport.c: Likewise.
20446         * sunrpc/key_call.c: Likewise.
20447         * sunrpc/key_prot.c: Likewise.
20448         * sunrpc/openchild.c: Likewise.
20449         * sunrpc/pm_getmaps.c: Likewise.
20450         * sunrpc/pm_getport.c: Likewise.
20451         * sunrpc/pmap_clnt.c: Likewise.
20452         * sunrpc/pmap_prot.c: Likewise.
20453         * sunrpc/pmap_prot2.c: Likewise.
20454         * sunrpc/pmap_rmt.c: Likewise.
20455         * sunrpc/rpc/auth.h: Likewise.
20456         * sunrpc/rpc/auth_unix.h: Likewise.
20457         * sunrpc/rpc/clnt.h: Likewise.
20458         * sunrpc/rpc/des_crypt.h: Likewise.
20459         * sunrpc/rpc/key_prot.h: Likewise.
20460         * sunrpc/rpc/netdb.h: Likewise.
20461         * sunrpc/rpc/pmap_clnt.h: Likewise.
20462         * sunrpc/rpc/pmap_prot.h: Likewise.
20463         * sunrpc/rpc/pmap_rmt.h: Likewise.
20464         * sunrpc/rpc/rpc.h: Likewise.
20465         * sunrpc/rpc/rpc_des.h: Likewise.
20466         * sunrpc/rpc/rpc_msg.h: Likewise.
20467         * sunrpc/rpc/svc.h: Likewise.
20468         * sunrpc/rpc/svc_auth.h: Likewise.
20469         * sunrpc/rpc/types.h: Likewise.
20470         * sunrpc/rpc/xdr.h: Likewise.
20471         * sunrpc/rpc_clntout.c: Likewise.
20472         * sunrpc/rpc_cmsg.c: Likewise.
20473         * sunrpc/rpc_common.c: Likewise.
20474         * sunrpc/rpc_cout.c: Likewise.
20475         * sunrpc/rpc_dtable.c: Likewise.
20476         * sunrpc/rpc_hout.c: Likewise.
20477         * sunrpc/rpc_main.c: Likewise.
20478         * sunrpc/rpc_parse.c: Likewise.
20479         * sunrpc/rpc_parse.h: Likewise.
20480         * sunrpc/rpc_prot.c: Likewise.
20481         * sunrpc/rpc_sample.c: Likewise.
20482         * sunrpc/rpc_scan.c: Likewise.
20483         * sunrpc/rpc_scan.h: Likewise.
20484         * sunrpc/rpc_svcout.c: Likewise.
20485         * sunrpc/rpc_tblout.c: Likewise.
20486         * sunrpc/rpc_util.c: Likewise.
20487         * sunrpc/rpc_util.h: Likewise.
20488         * sunrpc/rpcinfo.c: Likewise.
20489         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20490         * sunrpc/rpcsvc/key_prot.x: Likewise.
20491         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20492         * sunrpc/rpcsvc/mount.x: Likewise.
20493         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20494         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20495         * sunrpc/rpcsvc/rex.x: Likewise.
20496         * sunrpc/rpcsvc/rstat.x: Likewise.
20497         * sunrpc/rpcsvc/rusers.x: Likewise.
20498         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20499         * sunrpc/rpcsvc/spray.x: Likewise.
20500         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20501         * sunrpc/rtime.c: Likewise.
20502         * sunrpc/svc.c: Likewise.
20503         * sunrpc/svc_auth.c: Likewise.
20504         * sunrpc/svc_authux.c: Likewise.
20505         * sunrpc/svc_raw.c: Likewise.
20506         * sunrpc/svc_run.c: Likewise.
20507         * sunrpc/svc_simple.c: Likewise.
20508         * sunrpc/svc_tcp.c: Likewise.
20509         * sunrpc/svc_udp.c: Likewise.
20510         * sunrpc/svc_unix.c: Likewise.
20511         * sunrpc/svcauth_des.c: Likewise.
20512         * sunrpc/xcrypt.c: Likewise.
20513         * sunrpc/xdr.c: Likewise.
20514         * sunrpc/xdr_array.c: Likewise.
20515         * sunrpc/xdr_float.c: Likewise.
20516         * sunrpc/xdr_mem.c: Likewise.
20517         * sunrpc/xdr_rec.c: Likewise.
20518         * sunrpc/xdr_ref.c: Likewise.
20519         * sunrpc/xdr_sizeof.c: Likewise.
20520         * sunrpc/xdr_stdio.c: Likewise.
20521
20522         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20523         handling.
20524
20525 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20526
20527         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20528
20529 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20530
20531         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20532         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20533         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20534         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20535         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20536         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20537         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20538         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20539         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20540         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20541         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20542         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20543         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20544         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20545
20546 2010-07-26  Anton Blanchard  <anton@samba.org>
20547
20548         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20549         * malloc/arena.c (heap_trim): Likewise.
20550
20551 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20552
20553         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20554         here.  Not...
20555         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20556         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20557
20558 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20559
20560         * sysdeps/i386/elf/Makefile: New file.
20561
20562 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20563
20564         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20565         from fanotify_init.
20566         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20567         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20568
20569 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20570
20571         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20572         of strncasecmp_l.
20573         * sysdeps/multiarch/strcmp.S: Likewise.
20574
20575 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20576
20577         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20578         strncase_l-nonascii.
20579         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20580         Add strncase_l-ssse3.
20581         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20582         * sysdeps/x86_64/strcmp.S: Likewise.
20583         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20584         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20585         * sysdeps/x86_64/strncase.S: New file.
20586         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20587         * sysdeps/x86_64/strncase_l.S: New file.
20588         * string/Makefile (strop-tests): Add strncasecmp.
20589         * string/test-strncasecmp.c: New file.
20590
20591         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20592         warning.
20593
20594         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20595         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20596
20597 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20598
20599         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20600
20601 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20602
20603         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20604         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20605         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20606
20607 2010-05-01  Alan Modra  <amodra@gmail.com>
20608
20609         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20610         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20611         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20612         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20613         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20614         tidying.  Don't tail-call __sigjmp_save for static lib.
20615         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20616         save location.
20617         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20618         (CALL_MCOUNT): Add eh info, and nop after bl.
20619         (TAIL_CALL_SYSCALL_ERROR): New macro.
20620         (PSEUDO_RET): Use it.
20621         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20622         Correct save location of integer regs and cr.
20623         (_dl_profile_resolve): Correct cr save location.  Delete nops
20624         after bl when SHARED.  Reduce cfi size a little by better
20625         placement of cfi directives.
20626         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20627         make a stack frame.  Instead use parm save area as a temp.
20628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20629         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20631         Don't make a stack frame for parent, use parm save area.
20632         Increase child stack frame to 112 bytes.  Don't save unused reg,
20633         and adjust reg usage.  Set up cfi on error recovery and
20634         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20636         (__makecontext): Add dummy nop after jump to exit.
20637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20638         Use correct parm save area and cr save, reduce stack frame.
20639         Correct cfi for possible PSEUDO_RET frame setup.
20640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20641         Branch to local label emitted by PSEUDO_RET rather than
20642         __syscall_error.
20643
20644 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20645
20646         [BZ #11904]
20647         * locale/programs/locale.c (print_assignment): New function.
20648         (show_locale_vars): Use it.
20649
20650 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20651
20652         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20653         field.
20654         (struct statfs64): Likewise.
20655         (_STATFS_F_FLAGS): Define.
20656         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20657         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20658         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20659         (ST_VALID): Define locally.
20660         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20661         __statvfs_getflags, use the provided value.
20662         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20663         __ASSUME_STATFS_F_FLAGS.
20664
20665         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20666
20667         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20668         Add sys/fanotify.h.
20669         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20670         fanotify_mask for GLIBC_2.13.
20671         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20672         fanotify_init and fanotify_mark.
20673         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20674         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20675
20676         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20677         Add prlimit.
20678         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20679         prlimit64 for GLIBC_2.13.
20680         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20681         prlimit64.
20682         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20683         syscall.
20684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20685         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20686         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20687         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20688         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20689         add prlimit alias.
20690         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20691
20692         [BZ #11903]
20693         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20694         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20695
20696         * nss/Makefile: Add rules to build and run tst-nss-test1.
20697         * shlib-versions: Add entry for libnss_test1.
20698         * nss/nss_test1.c: New file.
20699         * nss/tst-nss-test1.c: New file.
20700
20701         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20702         (__nss_configure_lookup): Set appropriate entry in
20703         __nss_configure_lookup to true.
20704         * nss/nsswitch.h: Define enum with indeces of databases in
20705         databases and __nss_database_custom arrays.  Declare
20706         __nss_database_custom.
20707         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20708         to avoid using nscd when custom rules are installed.
20709         * nss/getXXbyYY_r.c: Likewise.
20710         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20711
20712         * nss/nss_files/files-parse.c: Whitespace fixes.
20713
20714 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20715
20716         [BZ #11883]
20717         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20718         * posix/fnmatch_loop.c: Likewise.
20719
20720 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20721
20722         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20723         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20724         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20725         * Versions.def [GLIBC_2.13]: Add.
20726
20727 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20728
20729         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20730         Also fail if tpwd after pwuid call is NULL.
20731
20732 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20733
20734         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20735         when converting to ms.
20736
20737 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20738
20739         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20740         EOPNOTSUPP errors with ENOTTY.
20741         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20742         EOPNOTSUPP errors with ENOTTY.
20743
20744 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20745
20746         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20747         Add strcasecmp_l-ssse3.
20748         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20749         strcasecmp.
20750         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20751         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20752         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20753
20754 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20755
20756         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20757
20758         * string/Makefile (strop-tests): Add strcasecmp.
20759         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20760         strcasecmp_l-nonascii.
20761         (gen-as-const-headers): Add locale-defines.sym.
20762         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20763         * sysdeps/x86_64/strcasecmp.S: New file.
20764         * sysdeps/x86_64/strcasecmp_l.S: New file.
20765         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20766         * sysdeps/x86_64/locale-defines.sym: New file.
20767         * string/test-strcasecmp.c: New file.
20768
20769         * string/test-strcasestr.c: Test both ends of the range of characters.
20770         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20771
20772 2010-07-29  Roland McGrath  <roland@redhat.com>
20773
20774         [BZ #11856]
20775         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20776
20777 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20778
20779         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20780         for ld.so.
20781
20782 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20783
20784         * manual/memory.texi (Malloc Tunable Parameters): Document
20785         M_PERTURB.
20786
20787 2010-07-26  Roland McGrath  <roland@redhat.com>
20788
20789         [BZ #11840]
20790         * configure.in (-fgnu89-inline check): Set and substitute
20791         gnu89_inline, not libc_cv_gnu89_inline.
20792         * configure: Regenerated.
20793         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20794
20795 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20796
20797         * string/test-strnlen.c: New file.
20798         * string/Makefile (strop-tests): Add strnlen.
20799         * string/tester.c (test_strnlen): Add a few more test cases.
20800         * string/tst-strlen.c: Better error reporting.
20801
20802         * sysdeps/x86_64/strnlen.S: New file.
20803
20804 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20805
20806         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20807         lower-latency instructions.
20808
20809 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20810
20811         * string/test-strcasestr.c: New file.
20812         * string/test-strstr.c: New file.
20813         * string/Makefile (strop-tests): Add strstr and strcasestr.
20814         * string/str-two-way.h: Don't undefine MAX.
20815         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20816
20817 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20818
20819         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20820         strcasestr-nonascii.
20821         (CFLAGS-strcasestr-nonascii.c): Define.
20822         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20823         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20824         Remove unused attribute.
20825
20826 2010-07-20  Roland McGrath  <roland@redhat.com>
20827
20828         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20829         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20830         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20831         like LD_HWCAP_MASK can disable hwcaps.
20832
20833 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20834
20835         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20836
20837 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20838
20839         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20840         call in strcasestr.
20841         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20842         __strcasestr_sse42_nonascii.
20843         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20844         strcasestr-nonascii.c.
20845         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20846
20847 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20848
20849         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20850         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20851         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20852         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20853
20854 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20855
20856         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20857         fcntl.
20858
20859 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20860
20861         [BZ #11577]
20862         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20863         dl_signal_cerror.
20864
20865 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20866
20867         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20868         _PC_PIPE_BUF using F_GETPIPE_SZ.
20869
20870 2010-07-05  Roland McGrath  <roland@redhat.com>
20871
20872         * manual/arith.texi (Rounding Functions): Fix rint description
20873         implicit in round description.
20874
20875 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20876
20877         * elf/Makefile: Fix linking for a few tests to make recent linker
20878         happy.
20879
20880 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20881
20882         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20883         $(common-objpfx)libc_nonshared.a.
20884
20885 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20886
20887         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20888         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20889         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20890         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20891         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20892         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20893         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20894         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20909         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20910         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20911         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20912         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20913         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20914         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20915         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20916         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20917         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20918         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20919         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20920         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20935
20936 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20937
20938         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20939         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20940         * string/memmove.c (memmove): Renamed to ...
20941         (MEMMOVE): ...this.  Default to memmove.
20942         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20943         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20944         (END_CHK): Define.
20945         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20946         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20947         mempcpy-ssse3-back memmove-ssse3-back.
20948         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20949         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20950         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20951         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20952         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20953         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20954         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20955         * sysdeps/x86_64/multiarch/memmove.c: New file.
20956         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20957         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20958         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20959         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20960         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20961         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20962         Define.
20963         (index_Fast_Copy_Backward): Define.
20964         (HAS_ARCH_FEATURE): Define.
20965         (HAS_FAST_REP_STRING): Define.
20966         (HAS_FAST_COPY_BACKWARD): Define.
20967
20968 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20969
20970         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20971         Restore proper fallback handling.
20972
20973 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20974
20975         [BZ #11701]
20976         * posix/group_member.c (__group_member): Correct checking loop.
20977
20978         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20979         OOM in getpwuid_r correctly.  Return error number when the caller
20980         should return, otherwise -1.
20981         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20982         call returning > 0 value.
20983         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20984
20985 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20986
20987         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20988         libc_nonshared.a from targets in modules-names.
20989
20990 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20991
20992         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20993         requires it.
20994
20995 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20996
20997         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20998         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20999         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
21000         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
21001
21002 2010-06-02  Andreas Schwab  <schwab@redhat.com>
21003
21004         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
21005
21006 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
21007
21008         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
21009         and F_GETPIPE_SZ.
21010         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
21011         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
21012         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
21013         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
21014         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
21015         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
21016
21017 2010-06-14  Roland McGrath  <roland@redhat.com>
21018
21019         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
21020
21021 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
21022
21023         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
21024         __REDIRECT followed by __THROW.
21025         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
21026         * posix/getopt.h (getopt): Likewise.
21027
21028 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21029
21030         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21031         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21032         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21033         in AT_FLAGS.
21034         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21035         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21036
21037 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21038
21039         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21040
21041 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21042
21043         [BZ #11640]
21044         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21045         Properly check family and model.
21046
21047 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21048
21049         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21050
21051 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21052
21053         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21054
21055 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21056
21057         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21058         symbol reference.
21059
21060 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21061
21062         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21063         symbol reference.
21064
21065 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21066
21067         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21068         and internal_recvmmsg.
21069         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21070         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21071         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21072         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21073
21074         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21075         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21076         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21077
21078 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21079
21080         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21081
21082 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21083
21084         POWER7 optimizations.
21085         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21086         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21087
21088 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21089
21090         * version.h: Update for 2.13 development version.
21091
21092 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21093
21094         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21095         exceptions.  Return 0.
21096
21097 2010-05-07  Roland McGrath  <roland@redhat.com>
21098
21099         * elf/ldconfig.c (main): Add a const.
21100
21101 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21102
21103         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21104         (args_options): Add no-idn option.
21105         (ahosts_keys_int): Add idn_flags to ai_flags.
21106         (parse_option): Handle 'i' option to clear idn_flags.
21107
21108         * malloc/malloc.c (_int_free): Possible race in the most recently
21109         added check.  Only act on the data if no current modification
21110         happened.
21111
21112 See ChangeLog.17 for earlier changes.