conformtest: Fix sys/wait.h expectations for struct rusage.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
2
3         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
4         (struct rusage): Do not expect type or its members.
5
6         [BZ #3439]
7         * math/math.h (FP_NAN): Define macro to integer constant usable in
8         #if and use that to give value to enum constant.
9         (FP_INFINITE): Likewise.
10         (FP_ZERO): Likewise.
11         (FP_SUBNORMAL): Likewise.
12         (FP_NORMAL): Likewise.
13
14 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
15
16         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
17         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
18         arguments.
19
20 2012-11-02  Roland McGrath  <roland@hack.frob.com>
21
22         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
23         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
24         autoconf-time if not.
25         * configure.in: Remove AC_PREREQ.
26
27 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28
29         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
30         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
31         of the internal implementation.
32
33 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
34
35         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
36         except include of <misc/sys/syslog.h>.
37
38 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
39
40         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
41         function returns with a NULL context exit with zero.
42
43 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
44
45         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
46
47 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
48
49         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
50         (run_program_cmd): This.
51         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
52         (tst_langinfo): New variable.  Use it.
53
54 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
55
56         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
57         floating point opcodes.
58
59 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
60
61         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
62         variable.
63
64         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
65
66         * sysdeps/mach/hurd/powerpc: Remove directory.
67         * sysdeps/mach/powerpc: Likewise.
68
69 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70
71         * scripts/check-local-headers.sh: Ignore c++ headers.
72
73 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
74
75         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
76         __libc_cleanup_region_start argument.
77
78 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
79
80         [BZ #14784]
81         [BZ #14785]
82         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
83         x * y using scaling, not as x * y + z.
84         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
85         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
86         * math/libm-test.inc (fma_test): Add more tests.
87         (fma_test_towardzero): Likewise.
88         (fma_test_downward): Likewise.
89         (fma_test_upward): Likewise.
90
91 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
92
93         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
94
95 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
96
97         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
98         New variable.
99
100 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
101
102         * rt/tst-shm.c (worker): Correct checking for mmap failure.
103
104 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
105
106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
107         Fix sort order.
108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
109         Likewise.
110
111 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
112
113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
114         Fix the order of the list for glibc 2.17.
115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
116         Likewise.
117
118 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
119
120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
121
122 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
123
124         [BZ #14610]
125         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
126         for low part of x being zero before using __atanl (y).
127         * math/libm-test.inc (atan2_test): Add another test.
128
129         * manual/install.texi (Configuring and compiling): Document
130         general use of test-wrapper and test-wrapper-env.
131         * INSTALL: Regenerated.
132
133         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
134         (__fma): Do not extract and scale down low bits on after-rounding
135         systems when result rounded to normal precision would have normal
136         exponent.
137         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
138         (__fmal): Do not extract and scale down low bits on after-rounding
139         systems when result rounded to normal precision would have normal
140         exponent.
141         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
142         (__fmal): Do not extract and scale down low bits on after-rounding
143         systems when result rounded to normal precision would have normal
144         exponent.
145         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
146         macro.
147         (fma_test): Add more tests.
148         (fma_test_towardzero): Likewise.
149         (fma_test_downward): Likewise.
150         (fma_test_upward): Likewise.
151
152 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
153
154         * sysdeps/i386/tininess.h: Renamed to ...
155         * sysdeps/x86/tininess.h: This.
156         * sysdeps/x86_64/tininess.h: Removed.
157
158 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
159
160         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
161         input.  Use $(build-program-cmd).
162         ($(objpfx)tst-array1-static.out): Likewise.
163         ($(objpfx)tst-array2.out): Likewise.
164         ($(objpfx)tst-array3.out): Likewise.
165         ($(objpfx)tst-array4.out): Likewise.
166         ($(objpfx)tst-array5.out): Likewise.
167         ($(objpfx)tst-array5-static.out): Likewise.
168
169 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
170
171         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
172         if defined.
173
174         * nss/nsswitch.h (nss_interface_function): Provide new
175         macro for use with NSS functions.
176         * grp/initgroups.c: Use new macro.
177         * nss/getXXbyYY.c: Likewise.
178         * nss/getXXbyYY_r.c: Likewise.
179         * nss/getXXent.c: Likewise.
180         * nss/getXXent_r.c: Likewise.
181         * sysdeps/posix/getaddrinfo.c: Likewise.
182
183 2012-10-30  Andreas Jaeger  <aj@suse.de>
184
185         * po/ru.po: Update Russion translation from translation project.
186
187 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
188
189         [BZ #14152]
190         [BZ #14783]
191         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
192         result and shift together with sticky bit instead of replicating
193         round-to-nearest rounding.
194         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
195         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
196         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
197         missing underflow exceptions.
198         (fma_test_towardzero): Add more tests.
199         (fma_test_downward): Likewise.
200         (fma_test_upward): Likewise.
201
202         [BZ #14047]
203         * sysdeps/generic/tininess.h: New file.
204         * sysdeps/i386/tininess.h: Likewise.
205         * sysdeps/sh/tininess.h: Likewise.
206         * sysdeps/x86_64/tininess.h: Likewise.
207         * stdlib/tst-strtod-underflow.c: Likewise.
208         * stdlib/tst-tininess.c: Likewise.
209         * stdlib/strtod_l.c: Include <tininess.h>.
210         (round_and_return): Do not set errno for exact underflow cases.
211         Force an underflow exception when setting errno for underflow.
212         Determine underflow based on rounding to normal precision if
213         TININESS_AFTER_ROUNDING.
214         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
215         ERANGE for exact underflow cases.
216         * stdlib/Makefile (tests): Add tst-tininess and
217         tst-strtod-underflow.
218         ($(objpfx)tst-tininess): Use $(link-libm).
219         ($(objpfx)tst-strtod-underflow): Likewise.
220
221 2012-10-30  Andreas Jaeger  <aj@suse.de>
222
223         [BZ#14767]
224         * elf/Makefile (tests): Remove conditional for have-initfini-array
225         since this is now always required and the variable does not exist
226         anymore.
227         (tests-static): Likewise.
228         (modules-names): Likewise.
229
230         * po/eo.po: Add Esperanto translation from translation project.
231
232         * elf/tst-array1.c (fini_array): Make writeable so that it can be
233         merged with constructor/destructor.
234         (init_array): Likewise.
235         * elf/tst-array2dep.c (fini_array): Likewise.
236         (init_array): Likewise.
237
238 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
239
240         * manual/message.texi: Delete @cartouche tags.
241
242 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
243
244         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
245         EOPNOTSUPP.
246         * sysdeps/mach/hurd/fsync.c: Likewise.
247
248         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
249         [_POSIX_REALTIME_SIGNALS]: Change condition to
250         [_POSIX_REALTIME_SIGNALS > 0].
251
252 2012-10-27  Andreas Jaeger  <aj@suse.de>
253
254         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
255         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
256         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
257         [__WORDSIZE != 64]: Likewise.
258
259 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
260
261         *  iconvdata/tst-table.sh: Remove ${SHELL}.
262         *  iconvdata/tst-tables.sh: Likewise.
263
264 2012-10-25  David S. Miller  <davem@davemloft.net>
265
266         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
267         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
268         of strtoull.
269
270         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
271         ifunc-impl-list.c
272         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
273         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
274         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
275         file.
276
277 2012-10-25  Roland McGrath  <roland@hack.frob.com>
278
279         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
280         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
281         __getdirentries.
282
283 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
284             Jim Blandy  <jimb@codesourcery.com>
285
286         * scripts/cross-test-ssh.sh: New file.
287         * manual/install.texi (Configuring and compiling): Document use of
288         cross-test-ssh.sh.
289         * INSTALL: Regenerated.
290
291 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
292
293         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
294         EOPNOTSUPP.
295
296 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
297
298         * Makeconfig (run-program-prefix): Fix comment.
299
300 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
301             Jim Blandy  <jimb@codesourcery.com>
302
303         * Makeconfig (test-wrapper): New variable,
304         (test-wrapper-env): Likewise.
305         [$(cross-compiling) = yes && $(test-wrapper) != ""]
306         (run-built-tests): Define to yes.
307         (run-program-prefix): Use $(test-wrapper).
308         (built-program-cmd): Likewise.
309         * Rules (make-test-out): Use $(test-wrapper-env) and
310         $(host-built-program-cmd).
311         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
312         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
313         tst-pathopt.sh.
314         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
315         $(test-wrapper-env) to tst-rtld-load-self.sh.
316         ($(objpfx)order2.out): Use $(test-wrapper).
317         ($(objpfx)tst-initorder.out): Likewise.
318         ($(objpfx)tst-initorder2.out): Likewise.
319         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
320         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
321         (test_wrapper_env): New variable.  Use it to run ld.so.
322         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
323         Use it to run ld.so.
324         (test_wrapper_env): Likewise.
325         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
326         $(test-wrapper) to run-iconv-test.sh.
327         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
328         (ICONV): Use $test_wrapper.
329         * posix/Makefile ($(objpfx)globtest.out): Pass
330         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
331         globtest.sh, not $(run-program-prefix).
332         * posix/globtest.sh (run_via_rtld_prefix): New variable.
333         (test_wrapper): Likewise.
334         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
335         set together with run_via_rtld_prefix.
336         (run_program_prefix): Define in terms of test_wrapper and
337         run_via_rtld_prefix.
338
339 2012-10-24  Roland McGrath  <roland@hack.frob.com>
340
341         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
342         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
343         Targets removed.
344
345         [BZ #14743]
346         * include/time.h: Remove librt_hidden_proto (clock_gettime).
347         Declare __clock_getres, __clock_gettime, __clock_settime,
348         __clock_nanosleep, and __clock_getcpuclockid.
349         * rt/clock_gettime.c: Define __clock_gettime as an alias.
350         Remove librt_hidden_def (clock_gettime).
351         * sysdeps/unix/clock_gettime.c: Likewise.
352         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
353         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
354         * rt/clock_getres.c: Define __clock_getres as an alias.
355         * sysdeps/posix/clock_getres.c: Likewise.
356         * rt/clock_settime.c: Define __clock_settime as an alias.
357         * sysdeps/unix/clock_settime.c: Likewise.
358         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
359         * sysdeps/unix/clock_nanosleep.c: Likewise.
360         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
361         * rt/clock-compat.c: New file.
362         * rt/Makefile (librt-routines): Add clock-compat and move
363         $(clock-routines) to ...
364         (routines): ... here, new variable.
365         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
366         Don't add get_clockfreq here.
367         * rt/Versions (libc: GLIBC_2.17): New version set.
368         Add clock_* symbols here.
369         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
370         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
371         (GLIBC_2.17): Add clock_* symbols.
372         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
373         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
374         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
376         Likewise.
377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
378         Likewise.
379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
380         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
382         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
383         * NEWS: Mention the move.
384
385         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
386         Use __open, __read, __close rather than their public counterparts.
387         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
388         (__get_clockfreq_via_cpuinfo): Likewise.
389         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
390         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
391
392         * config.h.in (HAVE_IFUNC): New #undef.
393         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
394         was successful.
395         * configure: Regenerated.
396
397 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
398
399         * configure.in: Move READELF check to start of file.
400         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
401         libc_cv_asm_gnu_indirect_function in the process.
402         * configure: Regenerated.
403
404 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
405
406         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
407         send the output to /dev/null.
408         (libc_cv_cc_with_libunwind): Likewise.
409         (libc_cv_as_noexecstack): Likewise.
410         * configure: Regenerate.
411
412 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
413
414         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
415
416         * posix/globtest.sh (TMPDIR): Do not set.
417         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
418         (testout): Likewise.
419
420 2012-10-24  Andreas Jaeger  <aj@suse.de>
421
422         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
423         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
424         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
425         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
426         posix_fadvise64, posix_fallocate64.
427
428         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
429         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
430         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
431         Likewise.
432         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
433         Likewise.
434         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
435
436         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
437         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
438         <bits/fcntl-linux.h>.
439         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
440
441         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
442         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
443         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
444         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
445         [__WORDSIZE != 64]: Likewise.
446
447 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
448
449         * Makeconfig (run-built-tests): New variable.
450         * Rules [$(cross-compiling) = yes]: Change condition to
451         [$(run-built-tests) = no].
452         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
453         to [$(run-built-tests) = yes].
454         * elf/Makefile [$(cross-compiling) = no]: Likewise
455         * grp/Makefile [$(cross-compiling) = no]: Likewise.
456         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
457         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
458         * intl/Makefile [$(cross-compiling) = no]: Likewise.
459         * io/Makefile [$(cross-compiling) = no]: Likewise.
460         * libio/Makefile [$(cross-compiling) = no]: Likewise.
461         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
462         * misc/Makefile [$(cross-compiling) = no]: Likewise.
463         * posix/Makefile [$(cross-compiling) = no]: Likewise.
464         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
465         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
466         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
467         * string/Makefile [$(cross-compiling) = no]: Likewise.
468
469         * posix/Makefile ($(objpfx)globtest.out): Pass
470         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
471         $(rtld-installed-name).
472         * posix/globtest.sh (elf_objpfx): Remove variable.
473         (rtld_installed_name): Likewise.
474         (library_path): Likewise.
475         (run_program_prefix): New variable.  Use for running globtest
476         binary.
477
478 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
479             Joseph Myers  <joseph@codesourcery.com>
480
481         * Makeconfig (host-built-program-cmd): New variable.
482         * elf/Makefile (tst-stackguard1-ARGS): Use
483         $(host-built-program-cmd).
484         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
485         (tst-spawn-ARGS): Likewise.
486         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
487
488 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
489             Jim Blandy  <jimb@codesourcery.com>
490
491         * Makeconfig (run-via-rtld-prefix): New variable.
492         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
493         (built-program-cmd): Likewise.
494
495 2012-10-22  Andreas Jaeger  <aj@suse.de>
496
497         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
498         __O_RSYNC if it exists, otherwise to O_SYNC.
499
500 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
501             Joseph Myers  <joseph@codesourcery.com>
502
503         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
504         /dev/null.
505         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
506         from /dev/null
507         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
508         /dev/null.
509
510 2012-10-22  Andreas Jaeger  <aj@suse.de>
511
512         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
513         Define always.
514         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
515
516         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
517         bits/fcntl-linux.h.
518
519         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
520         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
521
522         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
523         to __O_LARGEFILE.
524         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
525         to __O_LARGEFILE.
526
527 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
528             Joseph Myers  <joseph@codesourcery.com>
529
530         * config.make.in (NM): New variable.
531
532 2012-10-21  Andreas Jaeger  <aj@suse.de>
533
534         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
535         definitions and declarations that are provided by
536         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
537
538 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
539
540         [BZ #14683]
541         * elf/Makefile (tests-static): Add tst-leaks1-static.
542         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
543         ($(objpfx)tst-leaks1-static): New rule.
544         ($(objpfx)tst-leaks1-static-mem): Likewise.
545         (tst-leaks1-static-ENV): New macro.
546         * elf/dl-open.c (dl_open_worker): Check the main application
547         only if SHARED is defined.
548         * elf/tst-leaks1-static.c: New file.
549
550 2012-10-20  Andreas Jaeger  <aj@suse.de>
551
552         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
553         generic values for Linux.
554         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
555         and declarations that are provided by <bits/fcntl-linux.h> and
556         include <bits/fcntl-linux.h>.
557         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
558         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
559
560 2012-10-20  Roland McGrath  <roland@hack.frob.com>
561
562         * io/fcntl.h: Move include of <bits/types.h> to the top and
563         include it unconditionally.
564
565 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
566
567         * wcsmbs/Makefile (tests-ifunc): New variable.
568         (tests): Add $(tests-ifunc).
569         * wcsmbs/test-wcschr-ifunc.c: New file.
570         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
571         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
572         * wcsmbs/test-wcslen-ifunc.c: Likewise.
573         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
574         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
575
576         * string/Makefile (tests-ifunc): New variable.
577         (tests): Add $(tests-ifunc).
578         * string/test-memccpy.c (TEST_NAME): New macro.
579         * string/test-memchr.c (TEST_NAME): Likewise.
580         * string/test-memcmp.c (TEST_NAME): Likewise.
581         * string/test-memcpy.c (TEST_NAME): Likewise.
582         * string/test-memmem.c (TEST_NAME): Likewise.
583         * string/test-memmove.c (TEST_NAME): Likewise.
584         * string/test-memset.c (TEST_NAME): Likewise.
585         * string/test-rawmemchr.c (TEST_NAME): Likewise.
586         * string/test-stpcpy.c (TEST_NAME): Likewise.
587         * string/test-stpncpy.c (TEST_NAME): Likewise.
588         * string/test-strcasecmp.c (TEST_NAME): Likewise.
589         * string/test-strcasestr.c (TEST_NAME): Likewise.
590         * string/test-strcat.c (TEST_NAME): Likewise.
591         * string/test-strchr.c (TEST_NAME): Likewise.
592         * string/test-strcmp.c(TEST_NAME): Likewise.
593         * string/test-strcpy.c (TEST_NAME): Likewise.
594         * string/test-strcspn.c (TEST_NAME): Likewise.
595         * string/test-strlen.c (TEST_NAME): Likewise.
596         * string/test-strncasecmp.c (TEST_NAME): Likewise.
597         * string/test-strncmp.c (TEST_NAME): Likewise.
598         * string/test-strncpy.c (TEST_NAME): Likewise.
599         * string/test-strnlen.c (TEST_NAME): Likewise.
600         * string/test-strpbrk.c (TEST_NAME): Likewise.
601         * string/test-strrchr.c (TEST_NAME): Likewise.
602         * string/test-strspn.c (TEST_NAME): Likewise.
603         * string/test-strstr.c (TEST_NAME): Likewise.
604         * string/test-bcopy-ifunc.c: New file.
605         * string/test-bzero-ifunc.c: Likewise.
606         * string/test-memccpy-ifunc.c: Likewise.
607         * string/test-memchr-ifunc.c: Likewise.
608         * string/test-memcmp-ifunc.c: Likewise.
609         * string/test-memcpy-ifunc.c: Likewise.
610         * string/test-memmem-ifunc.c: Likewise.
611         * string/test-memmove-ifunc.c: Likewise.
612         * string/test-mempcpy-ifunc.c: Likewise.
613         * string/test-memset-ifunc.c: Likewise.
614         * string/test-rawmemchr-ifunc.c: Likewise.
615         * string/test-stpcpy-ifunc.c: Likewise.
616         * string/test-stpncpy-ifunc.c: Likewise.
617         * string/test-strcasecmp-ifunc.c: Likewise.
618         * string/test-strcasestr-ifunc.c: Likewise.
619         * string/test-strcat-ifunc.c: Likewise.
620         * string/test-strchr-ifunc.c: Likewise.
621         * string/test-strchrnul-ifunc.c: Likewise.
622         * string/test-strcmp-ifunc.c: Likewise.
623         * string/test-strcpy-ifunc.c: Likewise.
624         * string/test-strcspn-ifunc.c: Likewise.
625         * string/test-strlen-ifunc.c: Likewise.
626         * string/test-strncasecmp-ifunc.c: Likewise.
627         * string/test-strncat-ifunc.c: Likewise.
628         * string/test-strncmp-ifunc.c: Likewise.
629         * string/test-strncpy-ifunc.c: Likewise.
630         * string/test-strnlen-ifunc.c: Likewise.
631         * string/test-strpbrk-ifunc.c: Likewise.
632         * string/test-strrchr-ifunc.c: Likewise.
633         * string/test-strspn-ifunc.c: Likewise.
634         * string/test-strstr-ifunc.c: Likewise.
635
636         * debug/Makefile (tests-ifunc): New variable.
637         (tests): Add $(tests-ifunc).
638         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
639         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
640         * debug/test-stpcpy_chk-ifunc.c: New file.
641         * debug/test-strcpy_chk-ifunc.c: Likewise.
642
643 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
644
645         [BZ #13601]
646         * elf/dl-load.c (open_verify): Retry read if the entire ELF
647         header is not read in.
648
649 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
650
651         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
652         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
653         directly.  Pass built executable to script as
654         $(built-program-cmd).
655         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
656         $testprogram without using LD_LIBRARY_PATH and $ldso.
657
658         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
659         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
660         $(rtld-installed-name).
661         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
662         (rtld_installed_name): Likewise.
663         (library_path): Likewise.
664         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
665         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
666         $(run-program-prefix) to tst-tables.sh.
667         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
668         it to run tst-table-from and tst-table-to.
669         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
670         Pass it to tst-table.sh.
671         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
672         $(run-program-prefix) to tst-gettext.sh.
673         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
674         tst-translit.sh.
675         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
676         tst-gettext2.sh.
677         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
678         to run tst-gettext.
679         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
680         to run tst-gettext2.
681         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
682         to run tst-translit.
683         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
684         $(run-program-prefix) to tst-mtrace.sh.
685         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
686         to run tst-mtrace.
687         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
688         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
689         $(rtld-installed-name).
690         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
691         (rtld_installed_name): Likewise.
692         (run_program_prefix): New variable.  Use it to run wordexp-test.
693
694         * Makeconfig (ARCH): Remove all definitions.
695         (machine): Likewise.
696         [ARCH]: Remove conditional code.
697         [!objdir]: Give error.
698         [!objdir] (objpfx): Remove.
699         [!objdir] (common-objpfx): Likewise.
700         [!objdir] (common-objdir): Likewise.
701         * configure.in (config_makefile): Remove.  Hardcode Makefile in
702         AC_CONFIG_FILES call.
703         * configure: Regenerated.
704
705         [BZ #13888]
706         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
707         or TMPDIR.
708         (testout): Likewise.
709
710         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
711         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
712         $(rtld-installed-name).
713         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
714         (rtld_installed_name): Likwise.
715         (runit): Remove function.
716         (run_getconf): New variable,  Use it for running getconf binary.
717
718 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
719
720         [BZ #14716]
721         * string/test-memmem.c (check_result): New function.
722         (do_one_test): Use it.
723         (check1): New function.
724         (test_main): Use it.
725
726 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
727
728         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
729
730 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
731
732         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
733         (_G_LSEEK64): Likewise.
734         (_G_MMAP64): Likewise.
735         (_G_FSTAT64): Likewise.
736         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
737         (_G_LSEEK64): Likewise.
738         (_G_MMAP64): Likewise.
739         (_G_FSTAT64): Likewise.
740         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
741         unconditional.  Call __mmap64 directly.
742         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
743         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
744         __lseek64 directly.
745         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
746         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
747         __mmap64 directly.
748         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
749         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
750         __lseek64 directly.
751         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
752         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
753         __lseek64 directly.
754         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
755         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
756         __lseek64 directly.
757         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
758         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
759         __fxstat64 directly.
760         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
761         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
762         unconditional.
763         (freopen64) [!_G_OPEN64]: Remove conditional code.
764         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
765         unconditional.
766         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
767         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
768         unconditional.
769         (ftello64) [!_G_LSEEK64]: Remove conditional code.
770         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
771         unconditional.
772         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
773         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
774         unconditional.
775         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
776         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
777         unconditional.
778         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
779         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
780         unconditional.
781         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
782         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
783         unconditional.
784         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
785
786 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
787
788         [BZ #12140]
789         * manual/memory.texi (Malloc Tunable Parameters): Add note
790         about free list pointers overwriting some perturb bytes.
791         Wording suggested by Roland McGrath.
792
793 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
794
795         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
796         (lgamma_test): Likewise.
797         (tgamma_test): Likewise.
798
799 2012-10-16  Florian Weimer  <fweimer@redhat.com>
800
801         [BZ #14700]
802         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
803         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
804
805 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
806
807         * NEWS: Mention BZ #14716.
808         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
809         when removing AVAILABLE1_USES_J macro.
810
811 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
812
813         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
814         (__bswap_64): __uint64_t for unsigned 64-bit int.
815
816 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
817
818         * include/string.h (memmem): Declare libc hidden alias.
819         * string/memmem.c (memmem): Define libc hidden alias.
820         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
821         __read, __close instead of open, read, close.
822
823 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
824
825         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
826         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
827         global and hidden.
828         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
829         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
830         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
831         Likewise.
832         (__rawmemchr_sse2): Likewise.
833         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
834         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
835         (__strchr_sse2): Likewise.
836         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
837         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
838         (__strcasecmp_sse2): Likewise.
839         (__strncasecmp_sse2): Likewise.
840         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
841         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
842         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
843         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
844         (__strrchr_sse2): Likewise.
845         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
846         ifunc-impl-list.c.
847         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
848         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
849         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
850         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
851         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
852         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
853         * sysdeps/x86_64/multiarch/memset.S: Likewise.
854         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
855         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
856         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
857         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
858         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
859         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
860         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
861         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
862         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
863         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
864         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
865         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
866         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
867         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
868         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
869         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
870         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
871         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
872         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
873         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
874         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
875         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
876         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
877
878         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
879         global and hidden.
880         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
881         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
882         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
883         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
884         Likewise.
885         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
886         Likewise.
887         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
888         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
889         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
890         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
891         ifunc-impl-list.c.
892         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
893         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
894         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
895         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
896         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
897         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
898         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
899         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
900         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
901         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
902         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
903         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
904         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
905         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
906         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
907         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
908         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
909         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
910         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
911         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
912         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
913         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
914         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
915         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
916         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
917         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
918         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
919         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
920         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
921         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
922         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
923         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
924         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
925         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
926         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
927         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
928         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
929         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
930         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
931         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
932         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
933
934         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
935         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
936         * include/ifunc-impl-list.h: New file.
937         * misc/ifunc-impl-list.c: Likewise.
938         * misc/Makefile (routines): Add ifunc-impl-list.
939         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
940         * string/test-string.h: Include <ifunc-impl-list.h>.
941         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
942         impl_array): New variables.
943         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
944         are defined.
945         (test_init): Call __libc_ifunc_impl_list to initialize
946         func_list if TEST_IFUNC and TEST_NAME are defined.
947
948         * string/Makefile (strop-tests): Add bcopy and bzero.
949         * string/test-bcopy.c: New file.
950         * string/test-bzero.c: Likewise.
951         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
952         defined.
953         * string/test-memset.c: Support bzero test if TEST_BZERO is
954         defined.
955         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
956         __libc_memmove.
957         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
958         __libc_memset.
959         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
960         of memset.
961
962 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
963
964         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
965         * configure: Regenerated.
966
967         * Makeconfig (+link-static-before-libc): Don't include
968         $(link-static-libc).
969
970         * libio/libio.h (_IO_pos_t): Remove.
971
972 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
973
974         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
975         McGrath.
976
977 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
978
979         * crypt/crypt-entry.c: Include fips-private.h.
980         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
981         * crypt/md5c-test.c (main): Tolerate disabled MD5.
982         * sysdeps/unix/sysv/linux/fips-private.h: New file.
983         * sysdeps/generic/fips-private.h: New file, dummy fallback.
984
985 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
986
987         * crypt/crypt-private.h: Include stdbool.h.
988         (_ufc_setup_salt_r): Return bool.
989         * crypt/crypt-entry.c: Include errno.h.
990         (__crypt_r): Return NULL with EINVAL for bad salt.
991         * crypt/crypt_util.c (bad_for_salt): New.
992         (_ufc_setup_salt_r): Check that salt is long enough and within
993         the specified alphabet.
994         * crypt/badsalttest.c: New file.
995         * crypt/Makefile (tests): Add it.
996         ($(objpfx)badsalttest): New.
997
998 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
999
1000         * NEWS: Add entry for BZ #14602.
1001
1002 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1003
1004         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1005         type-generic.
1006         * math/libm-test.inc: Update comment listing what functions and
1007         macros are tested.
1008         (isgreater_test): New function.
1009         (isgreaterequal_test): Likewise.
1010         (isless_test): Likewise.
1011         (islessequal_test): Likewise.
1012         (islessgreater_test): Likewise.
1013         (isunordered_test): Likewise.
1014         (main): Call the new functions.
1015
1016 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1017
1018         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1019         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1020         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1021         * sysdeps/i386/configure: Regenerated.
1022         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1023         * sysdeps/mach/configure: Regenerated.
1024         * sysdeps/mach/hurd/configure: Regenerated.
1025         * sysdeps/powerpc/configure: Regenerated.
1026         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1027         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1028         * sysdeps/s390/s390-32/configure: Regenerated.
1029         * sysdeps/s390/s390-64/configure: Regenerated.
1030         * sysdeps/sh/configure: Regenerated.
1031         * sysdeps/sparc/configure: Regenerated.
1032         * sysdeps/unix/sysv/linux/configure: Regenerated.
1033         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1034         * sysdeps/x86_64/configure: Regenerated.
1035
1036         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1037         defined.  Don't check if MAP is NULL.
1038
1039 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1040
1041         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1042         (_G_stat64): Likewise.
1043         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1044         (_G_stat64): Likewise.
1045         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1046         instead of struct _G_stat64.
1047         * libio/fileops.c (mmap_remap_check): Likewise.
1048         (decide_maybe_mmap): Likewise.
1049         (_IO_new_file_seekoff): Likewise.
1050         (_IO_file_stat): Likewise.
1051         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1052         _G_off64_t.
1053         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1054         instead of struct _G_stat64.
1055         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1056
1057 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1058
1059         [BZ #14602]
1060         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1061         Replace with ...
1062         (CHECK_EOL): New macro.
1063         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1064         CHECK_EOL.
1065         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1066         Replace with CHECK_EOL.
1067         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1068         Replace with CHECK_EOL.
1069
1070 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1071
1072         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1073         type-generic.
1074         * math/libm-test.inc: Update comment listing what functions and
1075         macros are tested.
1076         (finite_test): New function.
1077         (isinf_test): Likewise.
1078         (isnan_test): Likewise.
1079         (fpclassify_test): Test subnormal input.
1080         (isfinite_test): Likewise.
1081         (isnormal_test): Likewise.
1082         (main): Call the new functions.
1083
1084 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1085
1086         [BZ #14660]
1087         * Makerules (%.dynsym): Force C locale when running
1088         $(OBJDUMP) --dynamic-syms.
1089
1090 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1091
1092         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1093         <stdint.h>.
1094
1095 2012-10-06  David S. Miller  <davem@davemloft.net>
1096
1097         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1098         upper 32-bits of the length value in %o2 since we use branch-on-register
1099         tests which consider the entire 64-bit register.
1100
1101 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1102
1103         * string/test-strstr.c (check2): Add a test for page boundary.
1104
1105 2012-10-05  David S. Miller  <davem@davemloft.net>
1106
1107         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1108         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1109         file.
1110         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1111         sysdep_routines.
1112         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1113         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1114         and bzero when HWCAP_SPARC_CRYPTO is present.
1115
1116 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1117
1118         [BZ #14602]
1119         * string/test-strstr.c (check2): New function.
1120         (test_main): Call check2.
1121
1122         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1123         and bug-strchr1.
1124         * string/bug-strcasestr1.c (do_test): Moved to ...
1125         * string/test-strcasestr.c (check1): Here.  New function.
1126         (do_one_test): Break out result checking code into ...
1127         (check_result): This.  New function.
1128         (do_one_test): Call check_result.
1129         (test_main): Call check1.
1130         * string/bug-strchr1.c (do_test): Moved to ...
1131         * string/test-strchr.c (check1): Here.  New function.
1132         (do_one_test): Break out result checking code into ...
1133         (check_result): This.  New function.
1134         (do_one_test): Call check_result.
1135         (test_main): Call check1.
1136         * string/bug-strstr1.c (main): Moved to ...
1137         * string/test-strchr.c (check1): Here.  New function.
1138         (do_one_test): Break out result checking code into ...
1139         (check_result): This.  New function.
1140         (do_one_test): Call check_result.
1141         (test_main): Call check1.
1142         * string/bug-strcasestr1.c: Removed.
1143         * string/bug-strchr1.c: Likewise.
1144         * string/bug-strstr1.c: Likewise.
1145
1146         * elf/Makefile (dl-routines): Add hwcaps.
1147         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1148         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1149         (_dl_important_hwcaps): Moved to ...
1150         * elf/dl-hwcaps.c: Here.  New file.
1151         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1152
1153         [BZ #14557]
1154         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1155         if IS_IN_rtld isn't defined.
1156
1157         * elf/dl-support.c (_dl_sysinfo_map): New.
1158         Include "get-dynamic-info.h" and "setup-vdso.h".
1159         (_dl_non_dynamic_init): Call setup_vdso.
1160         * elf/dynamic-link.h: Don't include <assert.h>.
1161         (elf_get_dynamic_info): Moved to ...
1162         * elf/get-dynamic-info.h: Here.  New file.
1163         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1164         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1165         * elf/setup-vdso.h: Here.  New file.
1166         * elf/rtld.c: Include "setup-vdso.h".
1167         (dl_main): Call setup_vdso.
1168
1169 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1172         creal in comment listing functions tested.  List finite, isinf,
1173         isnan, isless, islessequal, isgreater, isgreaterequal,
1174         islessgreater, isunordered, lgamma_r and pow10 as functions and
1175         macros not tested.  Mention which functions not tested are aliases
1176         for other functions.  Fix typo.  Note that signs of NaNs are not
1177         tested.
1178
1179         * scripts/config.guess: Update from config.git.
1180         * scripts/config.sub: Likewise.
1181
1182 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1183
1184         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1185         * misc/madvise.c (madvise): Renamed to __madvise.
1186         Make madvise a weak alias.
1187         * include/sys/mman.h: Declare __madvise.
1188         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1189         * sysdeps/unix/syscalls.list
1190         (madvise): Make __madvise the strong name, and madvise a weak alias.
1191         * sysdeps/unix/sysv/linux/syscalls.list
1192         (madvise, mmap): Remove redundant entries.
1193         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1194         * malloc/malloc.c (mtrim): Likewise.
1195         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1196
1197 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1198
1199         * sysdeps/mach/hurd/dl-cache.c: File removed.
1200         * config.h.in (USE_LDCONFIG): New #undef.
1201         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1202         * configure: Regenerated.
1203         * elf/Makefile (dl-routines): Add dl-cache only under
1204         [$(use-ldconfig) = yes].
1205         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1206         cache on [USE_LDCONFIG].
1207         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1208         [USE_LDCONFIG].
1209         * elf/rtld.c (dl_main): Likewise.
1210
1211 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1212
1213         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1214         _SC_LEVEL4_CACHE_LINESIZE.
1215
1216 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1217
1218         * sysdeps/unix/bsd/confstr.h: File removed.
1219
1220 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1221
1222         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1223         sys/sdt-config.h.
1224
1225 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1226
1227         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1228         Make 'mapoff' field ElfW(Off) rather than off_t.
1229
1230 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1231
1232         * nscd/Makefile: Remove nscd-cflags and all its users.
1233         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1234         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1235
1236         [BZ #10631]
1237         * malloc.c (malloc_printerr): Clarify error message.
1238
1239 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1240
1241         [BZ #14648]
1242         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1243         Set bit_FMA_Usable if FMA is supported.
1244         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1245         macro.
1246         (bit_FMA4_Usable): Updated.
1247         (index_FMA_Usable): New macro.
1248         (CPUID_FMA): Likewise
1249         (HAS_FMA): Defined with bit_FMA_Usable.
1250
1251 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1252
1253         * bits/types.h (__swblk_t): Type removed.
1254         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1255         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1256         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1257         (__SWBLK_T_TYPE): Likewise.
1258         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1259         (__SWBLK_T_TYPE): Likewise.
1260         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1261         (__SWBLK_T_TYPE): Likewise.
1262         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1263         (__SWBLK_T_TYPE): Likewise.
1264
1265 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1266             Honza Horak <hhorak@redhat.com>
1267
1268         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1269         (xdr_mapname): Use YPMAXMAP as maxsize.
1270         (xdr_peername): Use YPMAXPEER as maxsize.
1271         (xdr_keydat): Use YPAXRECORD as maxsize.
1272         (xdr_valdat): Use YPMAXRECORD as maxsize.
1273
1274 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1275
1276         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1277
1278         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1279         * csu/init-first.c: ... here.
1280         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1281         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1282         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1283         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1284         * sysdeps/i386/init-first.c: File removed.
1285         * sysdeps/sh/init-first.c: File removed.
1286
1287 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1288
1289         [BZ #14645]
1290         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1291         if x * y might underflow to zero and z is zero.
1292         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1293         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1294         * math/libm-test.inc (min_subnorm_value): New variable.
1295         (fma_test): Add more tests.
1296         (fma_test_towardzero): Likewise.
1297         (fma_test_downward): Likewise
1298         (fma_test_upward): Likewise.
1299         (initialize): Set min_subnorm_value.
1300
1301 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1302
1303         [BZ #14638]
1304         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1305         0 + 0.
1306         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1307         mode for addition resulting in exact zero.
1308         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1309         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1310         exact 0 + 0.
1311         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1312         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1313         * math/libm-test.inc (fma_test): Add more tests.
1314         (fma_test_towardzero): New function.
1315         (fma_test_downward): Likewise.
1316         (fma_test_upward): Likewise.
1317         (main): Call the new functions.
1318
1319 2012-09-28  David S. Miller  <davem@davemloft.net>
1320
1321         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1322
1323 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1324
1325         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1326         instead of SIGALRM.
1327
1328         * sysdeps/gnu/_G_config.h: Moved to ...
1329         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1330         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1331         * sysdeps/generic/_G_config.h: ... here.
1332
1333         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1334
1335         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1336
1337         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1338         Conditionalize target on [libnss_test1.so-version].
1339
1340         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1341
1342         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1343         (elfobjdir): Move out of conditionals.
1344
1345         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1346         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1347         (__nss_lookup_function): Conditionalize label remove_from_tree on
1348         [!DO_STATIC_NSS || SHARED], matching its only use.
1349
1350 2012-09-28  David S. Miller  <davem@davemloft.net>
1351
1352         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1353         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1354         file.
1355         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1356         sysdep_routines.
1357         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1358         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1359         when HWCAP_SPARC_CRYPTO is present.
1360
1361 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1362
1363         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1364
1365 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1366
1367         [BZ #6530]
1368         * stdio-common/vfprintf.c (process_string_arg): Revert
1369         2000-07-22 change.
1370
1371 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1372
1373         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1374         for testcase.
1375         * stdio-common/tst-sprintf.c: Include <locale.h>
1376         (main): Test sprintf's handling of incomplete multibyte
1377         characters.
1378
1379 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1380
1381         * elf/dl-runtime.c (VERSYMIDX): Removed.
1382         * elf/dl-version.c (VERSYMIDX): Likewise.
1383         * elf/do-rel.h (VERSYMIDX): Likewise.
1384         (VALIDX): Likewise.
1385         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1386         * elf/rtld.c (VALIDX): Likewise.
1387         (ADDRIDX): Likewise.
1388         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1389         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1390         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1391         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1392         (VALIDX): Likewise.
1393         (ADDRIDX): Likewise.
1394
1395 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1396
1397         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1398
1399 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1400
1401         [BZ #11438]
1402         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1403         to global scope.
1404         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1405         addresses are in the same scope as 192.0.2/24.
1406         * posix/gai.conf: Document new scope table defaults.
1407
1408 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1409
1410         [BZ #5298]
1411         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1412         for ftell.  Compute offsets from write pointers instead.
1413         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1414
1415 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1416
1417         [BZ #14543]
1418         * libio/Makefile (tests): New test case tst-fseek.
1419         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1420         combination works in wide mode.
1421         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1422         state when the external buffer state changes.
1423
1424 2012-09-27  David S. Miller  <davem@davemloft.net>
1425
1426         [BZ #14376]
1427         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1428         pass reloc->r_addend in as the 'high' argument to
1429         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1430
1431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1432
1433 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1434
1435         * rt/tst-aio2.c: Include <pthread.h>.
1436         * rt/tst-aio3.c: Likewise.
1437
1438 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1439
1440         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1441
1442 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1443
1444         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1445         contents on [SHARED].
1446
1447 2012-09-26  Marek Polacek  <polacek@redhat.com>
1448
1449         [BZ #14530]
1450         [BZ #13741]
1451         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1452         for C++ and GCC <4.3 as well as for non GCC compilers.
1453
1454 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1455
1456         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1457
1458 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1459
1460         * Makefile.in (all, install): Declare with .PHONY.
1461         Reported by Michael Hope <michael.hope@linaro.org>.
1462
1463 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1464
1465         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1466         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1467         system header.
1468         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1469         Likewise.
1470         (sydep_routines): Add the new and the internal functions.
1471         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1472         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1474         (GLIBC_2.17): Add the new function.
1475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1476         (GLIBC_2.17): Likewise.
1477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1478         (GLIBC_2.17): Likewise.
1479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1480         (GLIBC_2.17): Likewise.
1481         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1482
1483 2012-09-25  Alan Modra  <amodra@gmail.com>
1484
1485         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1486         Add release barrier before setting once_control to say
1487         initialisation is done.  Add hints on lwarx.  Use macro in
1488         place of isync.
1489         (clear_once_control): Add release barrier.
1490
1491 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1492
1493         [BZ #13629]
1494         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1495         specially.
1496         * math/s_clog10.c (__clog10): Likewise.
1497         * math/s_clog10f.c (__clog10f): Likewise.
1498         * math/s_clog10l.c (__clog10l): Likewise.
1499         * math/s_clogf.c (__clogf): Likewise.
1500         * math/s_clogl.c (__clogl): Likewise.
1501         * math/Makefile (libm-calls): Add x2y2m1.
1502         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1503         (__x2y2m1): Likewise.
1504         (__x2y2m1l): Likewise.
1505         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1506         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1507         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1508         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1509         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1510         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1511         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1512         * sysdeps/i386/fpu/libm-test-ulps: Update.
1513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1514
1515         [BZ #14621]
1516         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1517         int as type of variable DEPTH.
1518         (glob): Use size_t instead of int as type of variables NEWCOUNT
1519         and OLD_PATHC.
1520
1521 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1522
1523         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1524         Add s_sincosf-sse2.
1525         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1526         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1527         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1528         macros for using routine as __sincosf_ia32.
1529         Use macro for function declaration and weak_alias.
1530         * sysdeps/i386/fpu/libm-test-ulps: Update.
1531
1532         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1533         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1534
1535         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1536         subnormal argument.
1537         * math/s_cexpf.c (__cexpf): Likewise.
1538         * math/s_csinf.c (__csinf): Likewise.
1539         * math/s_csinhf.c (__csinhf): Likewise.
1540         * math/s_ctanf.c (__ctanf): Likewise.
1541         * math/s_ctanhf.c (__ctanhf): Likewise.
1542         * math/s_ccosh.c (__ccoshf): Likewise.
1543         * math/s_cexp.c (__cexpl): Likewise.
1544         * math/s_csin.c (__csin): Likewise.
1545         * math/s_csinh.c (__csinh): Likewise.
1546         * math/s_ctan.c (__ctan): Likewise.
1547         * math/s_ctanh.c (ctanh): Likewise.
1548         * math/s_ccoshl.c (__ccoshl): Likewise.
1549         * math/s_cexpl.c (__cexpl): Likewise.
1550         * math/s_csinl.c (__csinl): Likewise.
1551         * math/s_csinhl.c (__csinhl): Likewise.
1552         * math/s_ctanl.c (__ctanl): Likewise.
1553         * math/s_ctanhl.c (__ctanhl): Likewise.
1554
1555 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1556
1557         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1558         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1559         (_IO_off_t): Define to __off_t, not _G_off_t.
1560         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1561         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1562         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1563         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1564         type of __dummy and __dummy2 fields.
1565         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1566         (_G_ssize_t): Likewise.
1567         (_G_off_t): Likewise.
1568         (_G_pid_t): Likewise.
1569         (_G_uid_t): Likewise.
1570         (_G_wchar_t): Likewise.
1571         (_G_wint_t): Likewise.
1572         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1573         (_G_ssize_t): Likewise.
1574         (_G_off_t): Likewise.
1575         (_G_pid_t): Likewise.
1576         (_G_uid_t): Likewise.
1577         (_G_wchar_t): Likewise.
1578         (_G_wint_t): Likewise.
1579         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1580         (_G_ssize_t): Likewise.
1581         (_G_off_t): Likewise.
1582         (_G_pid_t): Likewise.
1583         (_G_uid_t): Likewise.
1584         (_G_wchar_t): Likewise.
1585         (_G_wint_t): Likewise.
1586
1587 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1588
1589         * malloc/arena.c: Include malloc-sysdep.h.
1590         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1591         is sufficient to shrink the heap or an unmap is needed.
1592         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1593         new function check_may_shrink_heap.
1594         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1595         new function check_may_shrink_heap.
1596
1597 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1598
1599         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1600         comments.
1601
1602 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1603
1604         * catgets/test-gencat.sh: Add "set -e".
1605         * elf/tst-pathopt.sh: Likewise.
1606         * grp/tst_fgetgrent.sh: Likewise.
1607         * iconvdata/run-iconv-test.sh: Likewise.
1608         * intl/tst-gettext.sh: Likewise.
1609         * intl/tst-gettext2.sh: Likewise.
1610         * intl/tst-gettext4.sh: Likewise.
1611         * intl/tst-gettext6.sh: Likewise.
1612         * intl/tst-translit.sh: Likewise.
1613         * io/ftwtest-sh: Likewise.
1614         * libio/test-freopen.sh: Likewise.
1615         * malloc/tst-mtrace.sh: Likewise.
1616         * posix/globtest.sh: Likewise.
1617         * posix/tst-getconf.sh: Likewise.
1618         * posix/wordexp-tst.sh: Likewise.
1619         * stdio-common/tst-printf.sh: Likewise.
1620         * stdio-common/tst-unbputc.sh: Likewise.
1621         * stdlib/tst-fmtmsg.sh: Likewise.
1622         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1623         * catgets/Makefile: Do not specify -e option when running
1624         testsuite shell scripts.
1625         * elf/Makefile: Likewise.
1626         * grp/Makefile: Likewise.
1627         * iconvdata/Makefile: Likewise.
1628         * intl/Makefile: Likewise.
1629         * io/Makefile: Likewise.
1630         * libio/Makefile: Likewise.
1631         * malloc/Makefile: Likewise.
1632         * posix/Makefile: Likewise.
1633         * stdio-common/Makefile: Likewise.
1634         * stdlib/Makefile: Likewise.
1635         * sysdeps/x86_64/Makefile: Likewise.
1636
1637         * io/ftwtest-sh: Add copyright header.
1638         * posix/globtest.sh: Likewise.
1639         * posix/tst-getconf.sh: Likewise.
1640         * posix/wordexp-tst.sh: Likewise.
1641         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1642
1643 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1644
1645         [BZ #13679]
1646         * Makeconfig (+link): Defined as $(+link-static) if
1647         $(build-shared) isn't yes.
1648         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1649         isn't yes.
1650         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1651
1652         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1653
1654         [BZ #14562]
1655         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1656         new chunk size with MALLOC_ALIGN_MASK.
1657
1658 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1659
1660         [BZ #5044]
1661         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1662         <rounding-mode.h>.
1663         (__printf_fphex): Determine rounding using get_rounding_mode and
1664         round_away.
1665         * stdio-common/tst-printf-round.c (struct hex_test): New
1666         structure.
1667         (hex_tests): New variable.
1668         (test_hex_in_one_mode): New function.
1669         (do_test): Also run tests for hex float output.
1670
1671 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1672
1673         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1674         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1675         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1676         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1677         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1678         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1679         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1680         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1681
1682 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1683
1684         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1685         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1686         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1687         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1688
1689 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1690
1691         [BZ #14579]
1692         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1693         mode only.
1694         * elf/tst-rtld-load-self.sh: New test.
1695         * elf/Makefile: Run it.
1696
1697 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1698
1699         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1700         (tst-writev-ENV): Remove.
1701         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1702
1703 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1704
1705         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1706
1707 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1708
1709         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1710         unconditional.
1711         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1712         Likewise.
1713         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1714         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1715         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1716         Likewise.
1717
1718 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1719
1720         [BZ #14587]
1721         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1722         * config.make.in (have-cpp-asm-debuginfo): Removed.
1723         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1724         * configure: Regenerated.
1725
1726 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1727
1728         [BZ #5044]
1729         * stdio-common/printf_fp.c: Include <stdbool.h> and
1730         <rounding-mode.h>.
1731         (___printf_fp): Determine rounding using get_rounding_mode and
1732         round_away.
1733         * stdio-common/tst-printf-round.c: New file.
1734         * stdio-common/Makefile (tests): Add tst-printf-round.
1735         (link-libm): New variable.
1736         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1737
1738 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1739
1740         [BZ #14576]
1741         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1742         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1743         Likewise.
1744         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1745         Likewise.
1746
1747 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1748
1749         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1750         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1751         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1752         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1753
1754 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1755
1756         [BZ #14518]
1757         * include/rounding-mode.h: New file.
1758         * sysdeps/generic/get-rounding-mode.h: Likewise.
1759         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1760         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1761         (MAX_VALUE): New macro.
1762         (MIN_VALUE): Likewise.
1763         (overflow_value): New function.
1764         (underflow_value): Likewise.
1765         (round_and_return): Use overflow_value and underflow_value to
1766         determine return values in overflow and underflow cases.  Use
1767         round_away to determine rounding depending on rounding mode.
1768         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1769         determine return values in overflow and underflow cases.
1770         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1771         (struct test_results): New structure.
1772         (struct test): Use struct test_results to store expected results
1773         for all rounding modes.
1774         (TEST): Include expected results for all rounding modes.
1775         (test_in_one_mode): New function.
1776         (do_test): Use test_in_one_mode to compute and check results.
1777         Check results for all rounding modes.
1778         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1779         $(link-libm).
1780
1781 2012-12-09  Allan McRae  <allan@archlinux.org>
1782
1783         * sysdeps/i386/fpu/libm-test-ulps: Update
1784
1785 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1786
1787         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1788         (_G_int32_t): Likewise.
1789         (_G_uint16_t): Likewise.
1790         (_G_uint32_t): Likewise.
1791         (_G_HAVE_BOOL): Likewise.
1792         (_G_HAVE_ATEXIT): Likewise.
1793         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1794         (_G_HAVE_IO_FILE_OPEN): Likewise.
1795         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1796         (_G_int32_t): Likewise.
1797         (_G_uint16_t): Likewise.
1798         (_G_uint32_t): Likewise.
1799         (_G_HAVE_BOOL): Likewise.
1800         (_G_HAVE_ATEXIT): Likewise.
1801         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1802         (_G_HAVE_IO_FILE_OPEN): Likewise.
1803         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1804         (_G_int32_t): Likewise.
1805         (_G_uint16_t): Likewise.
1806         (_G_uint32_t): Likewise.
1807         (_G_HAVE_BOOL): Likewise.
1808         (_G_HAVE_ATEXIT): Likewise.
1809         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1810         (_G_HAVE_IO_FILE_OPEN): Likewise.
1811
1812 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1813
1814         * csu/libc-tls.c: Update copyright years.
1815
1816 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1817
1818         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1819         [!_G_USING_THUNKS]: Remove conditional code.
1820         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1821         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1822
1823         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1824         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1825         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1826         (_G_VTABLE_LABEL_PREFIX): Likewise.
1827         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1828         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1829         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1830         (_G_VTABLE_LABEL_PREFIX): Likewise.
1831         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1832         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1833         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1834         (_G_VTABLE_LABEL_PREFIX): Likewise.
1835         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1836
1837 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1838
1839         * libio/Makefile: Include ../Makeconfig before tests.
1840         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1841         only if $(build-shared) is yes.
1842
1843         * iconv/gconv_db.c: Update copyright years.
1844
1845 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1846
1847         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1848         unwind info if defined PIC. Fix special cases description.
1849         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1850
1851         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1852         DP_HI_MASK entry.
1853         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1854
1855 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1856
1857         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1858
1859         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1860         is NULL.
1861
1862         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1863         (LDLIBS-tst-chk4): This.
1864         (LDFLAGS-tst-chk5): Renamed to ...
1865         (LDLIBS-tst-chk5): This.
1866         (LDFLAGS-tst-chk6): Renamed to ...
1867         (LDLIBS-tst-chk6): This.
1868         (LDFLAGS-tst-lfschk4): Renamed to ...
1869         (LDLIBS-tst-lfschk4): This.
1870         (LDFLAGS-tst-lfschk5): Renamed to ...
1871         (LDLIBS-tst-lfschk5): This.
1872         (LDFLAGS-tst-lfschk6): Renamed to ...
1873         (LDLIBS-tst-lfschk6): This.
1874
1875         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1876         on $(common-objpfx)soversions.mk.
1877
1878 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1879
1880         [BZ #10014]
1881         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1882         example host name.
1883
1884 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1885
1886         * malloc/arena.c (arena_get_retry): New function that gets
1887         another arena for the caller to try its request on.
1888         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1889         current arena cannot fulfill the request.
1890         (__libc_memalign): Likewise.
1891         (__libc_memalign): Likewise.
1892         (__libc_pvalloc): Likewise.
1893         (__libc_calloc): Likewise.
1894
1895 2012-09-05  John Tobey  <john.tobey@gmail.com>
1896
1897         [BZ #13542]
1898         * manual/arith.texi (Operations on Complex): Fix description
1899         of carg branch cut.
1900
1901 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1902
1903         [BZ #10014]
1904         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1905         host name.
1906
1907         [BZ #10038]
1908         * manual/memory.texi (Memory): Make order of menu items match
1909         order of sections.
1910
1911 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1912
1913         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1914         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1915         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1916
1917 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         * csu/libc-tls.c (static_dtv): Renamed to ...
1920         (_dl_static_dtv): This.  Make it global.
1921         (_dl_initial_dtv): Removed.
1922         (__libc_setup_tls): Updated.
1923         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1924         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1925         DL_INITIAL_DTV.
1926
1927 2012-09-06  Petr Machata  <pmachata@redhat.com>
1928
1929         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1930         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1931         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1932         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1933
1934 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1935
1936         [BZ #14545]
1937         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1938         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1939         freeing dtv[-1].
1940
1941 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1942
1943         [BZ #14544]
1944         * Makeconfig (link-static-before-libc): Replace $(+prector)
1945         with $(+prectorT).
1946         (link-static-after-libc): Replace $(+postctor) with
1947         $(+postctorT).
1948         (link-bounded): Replace $(+prector)/$(+postctor) with
1949         $(+prectorT)/$(+postctorT).
1950         (+prectorT): New macro.
1951         (+postctorT): Likewise.
1952
1953 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1954
1955         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1956         (round_str): Handle values above the maximum for IBM long double
1957         as inexact.
1958         * stdlib/tst-strtod-round.c (tests): Regenerated.
1959
1960 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1961
1962         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1963         assembler flag.
1964         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1965         zarch_nohighgprs around the zarch optimized routines.
1966         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1967         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1968         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1969         for zarch.
1970
1971 2012-09-05  David S. Miller  <davem@davemloft.net>
1972
1973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1974
1975         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1976         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1977         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1978         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1979         entries.
1980
1981 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1982
1983         * malloc/arena.c: Fold copyright years.
1984         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1985
1986 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1987
1988         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1989
1990 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1991
1992         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1993
1994 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1995
1996         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1997         change internal state upon failure.
1998
1999 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2000
2001         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2002         * malloc/memusage.c (mmap): Likewise.
2003         (mmap64, mremap): Likewise.  Adjust name in comment.
2004
2005 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2006
2007         * libio/fileops.c: Fix typos in comments.
2008         * libio/oldfileops.c: Likewise.
2009         * libio/wfileops.c: Likewise.
2010
2011 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2012
2013         [BZ #1349]
2014         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2015         (tst-malloc-usable-ENV): Set environment for test case.
2016         * malloc/hooks.c (malloc_check_get_size): New function to get
2017         requested size.
2018         * malloc/malloc.c (musable): Use malloc_check_get_size.
2019         * malloc/tst-malloc-usable.c: New test case.
2020
2021 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2022
2023         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2024
2025 2012-09-05  Allan McRae  <allan@archlinux.org>
2026
2027         [BZ #13966]
2028         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2029         determine header location.
2030         * configure: Regenerated.
2031
2032 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2033
2034         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2035         float format.
2036         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2037         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2038         format.
2039         (test): Regenerate.
2040
2041 2012-09-04  David S. Miller  <davem@davemloft.net>
2042
2043         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2044         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2045         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2046
2047 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2048
2049         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2050         failures.
2051
2052         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2053
2054 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2055
2056         [BZ #9914]
2057         * libio/iogetdelim.c: Include <limits.h>.
2058         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2059         + len + 1 would overflow.
2060
2061 2012-09-03  Andreas Jaeger  <aj@suse.de>
2062
2063         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2064         * sysdeps/i386/fpu/libm-test-ulps: Update.
2065
2066 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2067
2068         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2069         Add s_sinf-sse2, s_conf-sse2.
2070
2071         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2072         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2073         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2074         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2075
2076         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2077         for using routine as __sinf_ia32.
2078         Use macro for function declaration and weak_alias.
2079         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2080         for using routine as __cosf_ia32.
2081         Use macro for function declaration and weak_alias.
2082
2083         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2084         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2085
2086         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2087         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2088         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2089
2090         * math/libm-test.inc (cos_test): Add more test cases.
2091         (sin_test): Likewise.
2092         (sincos_test): Likewise.
2093
2094 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2095
2096         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2097         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2098         hidden.
2099         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2100
2101 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2102
2103         [BZ #14538]
2104         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2105         first element of the GOT.
2106         (elf_machine_load_address): Return the difference between
2107         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2108
2109 2012-09-01  Allan McRae  <allan@archlinux.org>
2110
2111         [BZ #13412]
2112         * configure.in (AWK): Require gawk version 3.0 or later.
2113         * configure: Regenerated.
2114
2115 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2116
2117         * sysdeps/unix/sysv/linux/kernel-features.h
2118         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2119         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2120         [__NR_clock_getres]: Make code unconditional.
2121         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2122         (clock_getcpuclockid): Remove code left unreachable by removal of
2123         conditionals.
2124         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2125         code unconditional.
2126         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2127         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2128         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2129         Make code unconditional.
2130         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2131         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2132         * sysdeps/unix/sysv/linux/clock_settime.c
2133         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2134         conditional code.
2135         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2136         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2137
2138 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2139
2140         [BZ #14476]
2141         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2142         scripts/test-installation.pl.
2143
2144         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2145         and $ld_so_version if it is set.
2146
2147 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2148
2149         [BZ #14516]
2150         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2151         failure if reading from procfs failed.
2152         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2153
2154 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2155
2156         * sysdeps/unix/sysv/linux/kernel-features.h
2157         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2158         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2159         Remove conditional code.
2160         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2161         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2162         Remove conditional code.
2163         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2164         * sysdeps/unix/sysv/linux/i386/fxstat.c
2165         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2166         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2167         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2168         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2169         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2170         * sysdeps/unix/sysv/linux/i386/lxstat.c
2171         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2172         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2173         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2174         Remove conditional code.
2175         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2176         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2177         Remove conditional code.
2178         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2179         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2180         <kernel-features.h>.
2181         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2182         Remove.
2183         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2184         Remove conditional code.
2185         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2186         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2187         Remove conditional.
2188
2189 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2190
2191         [BZ #5400]
2192         * NEWS: Add fixed bug number.
2193
2194 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2195
2196         [BZ #14519]
2197         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2198         underflowing exponent in case of negative sign.
2199         * stdlib/tst-strtod-round-data: Add more tests.
2200         * stdlib/tst-strtod-round.c (tests): Regenerated.
2201
2202         [BZ #3479]
2203         * stdlib/strtod_l.c (NDIG): Remove.
2204         (HEXNDIG): Likewise.
2205         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2206         smallest representable value.
2207         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2208         lie within an exact representation of 1/2 ulp of the result.
2209         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2210         unconditionally.
2211         (TENS_P9_IDX): Define unconditionally.
2212         (TENS_P9_SIZE): Likewise.
2213         (TENS_P10_IDX): Likewise.
2214         (TENS_P10_SIZE): Likewise.
2215         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2216         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2217         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2218         entries for 10^2^13 and 10^2^14.
2219         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2220         (TENS_P13_IDX): Define.
2221         (TENS_P13_SIZE): Likewise.
2222         (TENS_P14_IDX): Likewise.
2223         (TENS_P14_SIZE): Likewise.
2224         (_fpioconst_pow10): Change array size to
2225         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2226         unconditional.
2227         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2228         1024]: Add entries for 10^2^13 and 10^2^14.
2229         [LAST_POW10 > _LAST_POW10]: Remove #error.
2230         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2231         (_fpioconst_pow10): Change array size to
2232         FPIOCONST_POW10_ARRAY_SIZE.
2233         * stdlib/gen-fpioconst.c: New file.
2234         * stdlib/gen-tst-strtod-round.c: Likewise.
2235         * stdlib/tst-strtod-round-data: Likewise.
2236         * stdlib/tst-strtod-round.c: Likewise.
2237         * stdlib/Makefile (tests): Add tst-strtod-round.
2238
2239         [BZ #14459]
2240         * stdlib/strtod_l.c: Include <stdint.h>.
2241         (NDEBUG): Do not define.
2242         (round_and_return): Change EXPONENT parameter to type intmax_t.
2243         Rearrange calculations to avoid internal overflow possibilities.
2244         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2245         Rearrange calculations to avoid internal overflow possibilities.
2246         Assert that number fits inside MPNSIZE limbs.
2247         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2248         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2249         calculations and add assertions to avoid internal overflow
2250         possibilities.  Add casts to avoid signed/unsigned operations.
2251         * stdlib/tst-strtod-overflow.c: New file.
2252         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2253
2254 2012-08-25  Marek Polacek  <polacek@redhat.com>
2255
2256         * time/time.h: Fix some typos in comments.
2257
2258 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2259
2260         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2261         * posix/tst-rfc3484-2.c: Likewise.
2262         * posix/tst-rfc3484-3.c: Likewise.
2263
2264 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2265
2266         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2267         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2268
2269 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2270
2271         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2272         #include of fxstatat64.c.
2273
2274 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2275
2276         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2277         * shadow/getspent_r.c: Likewise.
2278         * shadow/getspnam.c: Likewise.
2279         * shadow/getspnam_r.c: Likewise.
2280         * gshadow/getsgent.c: Likewise.
2281         * gshadow/getsgent_r.c: Likewise.
2282         * gshadow/getsgnam.c: Likewise.
2283         * gshadow/getsgnam_r.c: Likewise.
2284         * inet/getnetbyad.c: Likewise.
2285         * inet/getnetbyad_r.c: Likewise.
2286         * inet/getnetbynm.c: Likewise.
2287         * inet/getnetbynm_r.c: Likewise.
2288         * inet/getnetent.c: Likewise.
2289         * inet/getnetent_r.c: Likewise.
2290         * inet/getproto.c: Likewise.
2291         * inet/getproto_r.c: Likewise.
2292         * inet/getprtent.c: Likewise.
2293         * inet/getprtent_r.c: Likewise.
2294         * inet/getprtname.c: Likewise.
2295         * inet/getprtname_r.c: Likewise.
2296         * inet/getrpcbyname.c: Likewise.
2297         * inet/getrpcbyname_r.c: Likewise.
2298         * inet/getrpcbynumber.c: Likewise.
2299         * inet/getrpcbynumber_r.c: Likewise.
2300         * inet/getrpcent.c: Likewise.
2301         * inet/getrpcent_r.c: Likewise.
2302         * inet/getaliasent.c: Likewise.
2303         * inet/getaliasent_r.c: Likewise.
2304         * inet/getaliasname.c: Likewise.
2305         * inet/getaliasname_r.c: Likewise.
2306         * nscd/getgrgid_r.c: Likewise.
2307         * nscd/getgrnam_r.c: Likewise.
2308         * nscd/gethstbyad_r.c: Likewise.
2309         * nscd/gethstbynm3_r.c: Likewise.
2310         * nscd/getpwnam_r.c: Likewise.
2311         * nscd/getpwuid_r.c: Likewise.
2312         * nscd/getsrvbynm_r.c: Likewise.
2313         * nscd/getsrvbypt_r.c: Likewise.
2314         * nscd/gai.c: Likewise.
2315
2316         * configure.in (build_nscd): New substituted variable, set
2317         by --disable-build-nscd and defaults to $use_nscd.
2318         * configure: Regenerated.
2319         * config.make.in (build-nscd): New substituted variable.
2320         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2321         Change conditional to require [$(build-nscd) = yes] as well.
2322         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2323
2324         [BZ# 13696]
2325         * configure.in (use_nscd): New substituted variable, set by
2326         --disable-nscd.  If enabled, define USE_NSCD.
2327         * configure: Regenerated.
2328         * config.h.in: Add USE_NSCD.
2329         * config.make.in (use-nscd): New substituted variable.
2330         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2331         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2332         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2333         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2334         (CFLAGS-getgrnam_r.c): Likewise.
2335         (CFLAGS-initgroups.c): Likewise.
2336         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2337         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2338         Variables removed.
2339         * inet/getnetgrent_r.c
2340         (nscd_setnetgrent): New function, broken out of ...
2341         (setnetgrent): ... here.  Call it.
2342         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2343         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2344         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2345         * nscd/Makefile (routines, aux): Move definitions after include of
2346         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2347         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2348         Conditionalize on [USE_NSCD].
2349         (is_nscd, nscd_init_cb): Likewise.
2350         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2351         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2352         * nss/nss_db/db-init.c: Likewise.
2353         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2354         [USE_NSCD].
2355         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2356         (make_request): Use it.
2357         (cache_valid_p): New function.
2358         (__check_pf): Use it.
2359         * NEWS: Add item for --disable-nscd.
2360
2361 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2362
2363         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2364         to support sed >= 4.2.1-20-ga9bf076.
2365         * configure: Regenerated.
2366
2367 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2368
2369         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2370         Conditionalize whole body on [IREL].
2371
2372 2012-08-22  Jeff Law <law@redhat.com>
2373
2374         [BZ #14505]
2375         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2376         if the family is PF_UNSPEC.
2377
2378 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2379
2380         * Makerules (lib-version): Rename from V.
2381         (install-lib-nosubdir): Change V to lib-version.
2382
2383 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2384
2385         [BZ #14252]
2386         * powerpc32/power6/wcschr.c: New file.
2387         * powerpc32/power6/wcscpy.c: New file.
2388         * powerpc32/power6/wcsrchr.c: New file.
2389         * powerpc64/power6/wcschr.c: New file.
2390         * powerpc64/power6/wcscpy.c: New file.
2391         * powerpc64/power6/wcsrchr.c: New file.
2392
2393 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2394
2395         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2396         (two_way_short_needle): Use it.
2397         * string/strstr.c (AVAILABLE1_USES_J): Define.
2398         * string/strcasestr.c: Likewise.
2399
2400         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2401         array references.
2402         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2403
2404         [BZ #11607]
2405         * NEWS: Add an entry.
2406         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2407         define their defaults.
2408         (two_way_short_needle): Detect end-of-string on-the-fly.
2409         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2410         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2411         * string/bug-strcasestr1.c: New test.
2412         * string/Makefile: Run it.
2413
2414 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2415
2416         [BZ #11607]
2417         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2418         the first character.
2419
2420 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2421
2422         * csu/elf-init.c (__libc_csu_irel): Function removed.
2423         * csu/libc-start.c (apply_irel): New function.
2424         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2425
2426 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2427
2428         * sysdeps/unix/sysv/linux/kernel-features.h
2429         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2430         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2431         <kernel-features.h>.
2432         [__NR_fadvise64_64]: Make code unconditional.
2433         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2434         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2435         !__NR_fadvise64_64)]: Likewise.
2436         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2437         !__NR_fadvise64_64))]: Likewise.
2438         [__NR_fadvise64]: Make code unconditional.
2439         [!__NR_fadvise64]: Remove conditional code.
2440         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2441         <kernel-features.h>.
2442         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2443         unconditional.
2444         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2445         conditional code.
2446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2447         not include <kernel-features.h>.
2448         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2449         unconditional.
2450         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2451         conditional code.
2452         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2453         include <kernel-features.h>.
2454         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2455         unconditional.
2456         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2457         conditional code.
2458
2459 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2460
2461         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2462         slight instruction rearrangements per scrollpipe analysis.
2463         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2464
2465 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2466
2467         * manual/syslog.texi (syslog; vsyslog, closelog):
2468         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2469         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2470
2471         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2472         DSOCAPS to match condition on defining it.
2473
2474 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2475
2476         * sysdeps/unix/sysv/linux/kernel-features.h
2477         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2479         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2480         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2482         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2483         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2485         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2486         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2487
2488         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2489         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2490
2491         * sysdeps/unix/sysv/linux/kernel-features.h
2492         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2493         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2494         unconditional.
2495         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2496         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2497         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2498         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2499         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2500         Make code unconditional.
2501         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2502         (__mmap64) [!__NR_mmap2]: Likewise.
2503         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2504         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2505         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2506         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2507         [__NR_mmap2]: Make code unconditional.
2508         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2509         (__mmap64) [!__NR_mmap2]: Likewise.
2510
2511 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2512
2513         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2514
2515 2012-08-18  Andreas Jaeger  <aj@suse.de>
2516
2517         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2518
2519 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2520
2521         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2522         * include/unistd.h (__have_sock_cloexec): Likewise.
2523         (__have_pipe2): Likewise.
2524         (__have_dup3): Likewise.
2525
2526 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2527
2528         [BZ #9685]
2529         * include/unistd.h (__have_pipe2): Change define into an extern int.
2530         (__have_dup3): Likewise.
2531         * socket/have_sock_cloexec.c: Include fcntl.h.
2532         (__have_pipe2): New variable.
2533         (__have_dup3): Likewise.
2534
2535 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2536
2537         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2538
2539 2012-08-17  Marek Polacek  <polacek@redhat.com>
2540
2541         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2542         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2543
2544 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2545
2546         * configure.in: Add AC_SUBST for sysheaders.
2547         * configure: Regenerated.
2548         * config.make.in (sysheaders): New substituted variable.
2549
2550         * sysdeps/unix/mkfifo.c: Moved ...
2551         * sysdeps/posix/mkfifo.c: ... here.
2552         * sysdeps/unix/mkfifoat.c: Moved ...
2553         * sysdeps/posix/mkfifoat.c: ... here.
2554
2555         * sysdeps/unix/utime.c: Moved ...
2556         * sysdeps/posix/utime.c: ... here.
2557
2558         * sysdeps/unix/time.c: Moved ...
2559         * sysdeps/posix/time.c: ... here.
2560         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2561         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2562
2563         * sysdeps/unix/nice.c: Moved ...
2564         * sysdeps/posix/nice.c: ... here.
2565
2566         * sysdeps/unix/alarm.c: Moved ...
2567         * sysdeps/posix/alarm.c: ... here.
2568
2569         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2570
2571 2012-08-17  Jeff Law <law@redhat.com>
2572
2573         * intl/Makefile (codeset_mo): New variable.
2574         ($(codeset_mo)): New target.
2575         (tst-codeset.out): Depend on that.  Remove explicit rule.
2576         (tst-gettext3.out, tst-gettext5.out): Likewise.
2577         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2578         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2579         * intl/tst-codeset.sh: Remove.
2580         * intl/tst-gettext3.sh: Likewise.
2581         * intl/tst-gettext5.sh: Likewise.
2582
2583 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2584
2585         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2586         * sysdeps/unix/syscalls.list: ... here.
2587
2588         * sysdeps/posix/getaddrinfo.c
2589         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2590         (gaiconf_init, gaiconf_reload): Use them.
2591         [!_STATBUF_ST_NSEC]
2592         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2593         Define using time_t rather than struct timespec.
2594
2595         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2596         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2597         Macros removed.
2598         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2599         [!NO_THREADS].
2600         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2601         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2602         Likewise.
2603
2604         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2605         __libc_cleanup_push argument.
2606
2607         * bits/param.h: New file.
2608         * misc/sys/param.h: New file.
2609         * include/sys/param.h: New file.
2610         * misc/Makefile (headers): Add bits/param.h.
2611         * sysdeps/generic/sys/param.h: File removed.
2612         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2613         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2614         * sysdeps/mach/hurd/bits/param.h: New file.
2615         * sysdeps/mach/hurd/sys/param.h: File removed.
2616
2617         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2618         last change.
2619
2620         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2621         [_IO_MTSAFE_IO].
2622         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2623         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2624         New macros.
2625
2626         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2627         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2628         rather than -D_IO_MTSAFE_IO conditionally.
2629         * stdio-common/Makefile (CPPFLAGS): Likewise.
2630         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2631         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2632         Use $(libio-mtsafe).
2633         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2634         of -D_IO_MTSAFE_IO.
2635         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2636         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2637         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2638         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2639         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2640         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2641         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2642         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2643         (CFLAGS-fread_u_chk.c): Likewise.
2644         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2645         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2646         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2647         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2648         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2649         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2650         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2651         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2652         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2653
2654         * libio/Makefile: Test [$(libc-reentrant) = yes]
2655         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2656
2657         * Makeconfig
2658         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2659         * sysdeps/pthread/configure: File removed.
2660         * sysdeps/pthread/Makeconfig: New file.
2661         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2662         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2663
2664 2012-08-16  Gary Benson  <gbenson@redhat.com>
2665
2666         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2667         unmapping the first object in a namespace.
2668
2669 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2670
2671         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2672         (__internal_setnetgrent): ... this.  Add internal_function to
2673         definition.  Add libc_hidden_def.
2674         (setnetgrent): Update caller.
2675         (internal_endnetgrent): Renamed to ...
2676         (__internal_endnetgrent): ... this.  Add internal_function to
2677         definition.  Add libc_hidden_def.
2678         (endnetgrent): Update caller.
2679         (internal_getnetgrent_r): Renamed to ...
2680         (__internal_getnetgrent_r): ... this.  Add internal_function to
2681         definition.  Add libc_hidden_def.
2682         (__getnetgrent_r): Update caller.
2683         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2684
2685 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2686
2687         * stdlib/longlong.h: Update from GCC.
2688
2689 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2690
2691         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2692         on _QL, which is set by umul_ppmm but never used.
2693         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2694         variables, which are set by GMP macros but never used.
2695         * stdio-common/_itowa.c (_itowa): Likewise.
2696         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2697         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2698
2699 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2700
2701         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2702         struct La_sh_regs is not constant.
2703         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2704         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2705         and struct La_sparc64_regs are not constant.
2706
2707 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2708
2709         * sysdeps/unix/sysv/linux/kernel-features.h
2710         (__ASSUME_POSIX_TIMERS): Remove.
2711         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2712         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2713         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2714         Make code unconditional.
2715         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2716         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2717         Make code unconditional.
2718         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2719         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2720         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2721         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2722         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2723         Make code unconditional.
2724         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2725         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2726         (__libc_missing_posix_timers): Remove.
2727
2728 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2729
2730         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2731         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2732
2733         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2734
2735         * elf/dl-sym.c: Include <stdlib.h>.
2736
2737         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2738         constants, which avoids warnings in 32-bit builds.
2739
2740         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2741         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2742
2743         * misc/lseek.c: File moved to ...
2744         * io/lseek.c: ... here.
2745
2746         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2747
2748         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2749         shifting LEN more than 31 bits at once.
2750
2751 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2752
2753         [BZ #14195]
2754         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2755         segmentation fault for a case of two empty input strings.
2756         * string/test-strncasecmp.c (check1): Renamed to...
2757         (bz12205): ...this.
2758         (bz14195): Add new testcase for two empty input strings and N > 0.
2759         (test_main): Call new testcase, adapt for renamed function.
2760
2761 2012-08-15  Andreas Jaeger  <aj@suse.de>
2762
2763         [BZ #14090]
2764         * crypt/md5test2.c: New test, based on test supplied by Serge
2765         Belyshev <belyshev@depni.sinp.msu.ru>.
2766         * crypt/Makefile (xtests): Add md5test-giant..
2767         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2768
2769 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2770
2771         [BZ #14090]
2772         * crypt/md5.c (md5_process_block): Don't assume the buffer
2773         length is less than 2**32.
2774         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2775         length is less than 2**64.
2776
2777 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2778
2779         * string/str-two-way.h: Include <sys/param.h>.
2780         (MAX): Macro removed.
2781
2782         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2783         Move #define and #undef of memmove to just before and after
2784         including <string.h>.
2785
2786         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2787         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2788         and after including <string.h>.  Move declarations of
2789         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2790         to before #include "string/memmove.c".
2791
2792         * include/dirent.h: Declare __getdirentries.
2793
2794         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2795         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2796
2797 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2798
2799         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2800         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2801         * sysdeps/i386/configure: Regenerated.
2802         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2803         STABS_CURRENT_FILE, and STABS_FUN.
2804         (END): Remove call to STABS_FUN_END.
2805         (STABS_CURRENT_FILE1): Delete.
2806         (STABS_CURRENT_FILE): Likewise.
2807         (STABS_FUN): Likewise.
2808         (STABS_FUN_END): Likewise.
2809         (STABS_FUN2): Likewise.
2810         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2811         * sysdeps/x86_64/configure: Regenerated.
2812
2813 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2814
2815         * elf/dl-open.c: Include <atomic.h>.
2816         * elf/dl-lookup.c: Likewise.
2817
2818 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2819
2820         * sysdeps/unix/sysv/linux/kernel-features.h
2821         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2822         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2823         unconditionally.
2824         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2825         unconditionally.
2826         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2827         condition on __ASSUME_CLONE_THREAD_FLAGS.
2828
2829 2012-08-14  Andreas Jaeger  <aj@suse.de>
2830
2831         * sysdeps/i386/fpu/libm-test-ulps: Update.
2832
2833 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2834
2835         * include/atomic.h (atomic_exchange_and_add): Split into ...
2836         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2837         New atomic macros.
2838
2839 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2840
2841         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2842
2843 2012-08-13  Jeff Law <law@redhat.com>
2844
2845         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2846         null byte in the output string.
2847
2848 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2849
2850         * sysdeps/unix/sysv/linux/kernel-features.h
2851         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2852         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2853         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2854         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2855         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2856         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2857         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2858
2859 2012-08-09  Jeff Law <law@redhat.com>
2860
2861         [BZ #13939]
2862         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2863         When avoid_arena is set, don't retry in the that arena.  Pick the
2864         next one, whatever it might be.
2865         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2866         (arena_lock): Pass in new parameter to arena_get2.
2867         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2868         arena_get2.
2869         (__libc_malloc): Unify retrying after main arena failure with
2870         __libc_memalign version.
2871         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2872
2873 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2874
2875         [BZ #14166]
2876         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2877         to __redirect_strstr.
2878         (__strstr_sse42): Use typeof __redirect_strstr.
2879         (__strstr_ia32): Likewise.
2880         (__libc_strstr): New prototype.
2881         (strstr): Renamed to ...
2882         (__libc_strstr): This.
2883         (strstr): New strong alias of __libc_strstr.
2884         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2885         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2886         __redirect_time.
2887         Include <time.h>.
2888         (__libc_time): New prototype.
2889         (time_ifunc): Replace time with __libc_time.
2890         (time): New strong alias and hidden definition of __libc_time.
2891         (__GI_time): Remove strong alias.
2892         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2893         Include <stddef.h>.
2894         (memmove): Redefined to __redirect_memmove.
2895         (__memmove_sse2): Use typeof __redirect_memmove.
2896         (__memmove_ssse3): Likewise.
2897         (__memmove_ssse3_back): Likewise.
2898         (__libc_memmove): New prototype.
2899         (memmove): Renamed to ...
2900         (__libc_memmove): This.
2901         (memmove): New strong alias of __libc_memmove.
2902
2903 2012-08-08  Mark Salter  <msalter@redhat.com>
2904
2905         * elf/elf.h
2906         (R_MN10300_TLS_GD): Define.
2907         (R_MN10300_TLS_LD): Likewise.
2908         (R_MN10300_TLS_LDO): Likewise.
2909         (R_MN10300_TLS_GOTIE): Likewise.
2910         (R_MN10300_TLS_IE): Likewise.
2911         (R_MN10300_TLS_LE): Likewise.
2912         (R_MN10300_TLS_DTPMOD): Likewise.
2913         (R_MN10300_TLS_DTPOFF): Likewise.
2914         (R_MN10300_TLS_TPOFF): Likewise.
2915         (R_MN10300_SYM_DIFF): Likewise.
2916         (R_MN10300_ALIGN): Likewise.
2917         (R_MN10300_NUM): Update.
2918
2919 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2920
2921         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2922         Remove.
2923
2924 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2925
2926         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2927
2928         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2929         sysdeps/unix -> sysdeps/posix move.
2930         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2931
2932 2012-08-07      Allan McRae     <allan@archlinux.org>
2933
2934         [BZ #14303]
2935         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2936         (SUNOS_CPP): Likewise.
2937         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2938         not found.
2939         (open_input): Call CPP using execvp.
2940
2941 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2942
2943         * sysdeps/unix/sysv/linux/kernel-features.h
2944         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2945         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2946         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2947         (__ASSUME_WAITID_SYSCALL): Likewise.
2948         * sysdeps/unix/sysv/linux/dl-execstack.c
2949         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2950         code unconditional.
2951         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2952         conditional code.
2953         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2954         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2955         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2956         code.
2957         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2958         unconditional.
2959         [__ASSUME_WAITID_SYSCALL]: Likewise.
2960         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2961
2962 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2963
2964         * sysdeps/unix/closedir.c: Renamed to ...
2965         * sysdeps/posix/closedir.c: ... here.
2966         * sysdeps/unix/dirfd.c: Renamed to ...
2967         * sysdeps/posix/dirfd.c: ... here.
2968         * sysdeps/unix/dirstream.h: Renamed to ...
2969         * sysdeps/posix/dirstream.h: ... here.
2970         * sysdeps/unix/fdopendir.c: Renamed to ...
2971         * sysdeps/posix/fdopendir.c: ... here.
2972         * sysdeps/unix/opendir.c: Renamed to ...
2973         * sysdeps/posix/opendir.c: ... here.
2974         * sysdeps/unix/readdir.c: Renamed to ...
2975         * sysdeps/posix/readdir.c: ... here.
2976         * sysdeps/unix/readdir_r.c: Renamed to ...
2977         * sysdeps/posix/readdir_r.c: ... here.
2978         * sysdeps/unix/rewinddir.c: Renamed to ...
2979         * sysdeps/posix/rewinddir.c: ... here.
2980         * sysdeps/unix/seekdir.c: Renamed to ...
2981         * sysdeps/posix/seekdir.c: ... here.
2982         * sysdeps/unix/telldir.c: Renamed to ...
2983         * sysdeps/posix/telldir.c: ... here.
2984         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2985         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2986         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2987         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2988
2989         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2990         * bits/fcntl.h: ... here.
2991
2992         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2993         not 0.
2994         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2995         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2996         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2997         (struct flock): Move l_start, l_len to the beginning.
2998         Use __pid_t for l_pid.
2999         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3000         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3001         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3002         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3003         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3004         [__USE_LARGEFILE64] (struct flock64): New type.
3005         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3006
3007         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3008         * bits/dirent.h: ... here.
3009
3010         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3011         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3012
3013 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3014
3015         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3016         Change from 2.6.0 to 2.6.16.
3017         * sysdeps/unix/sysv/linux/configure: Regenerated.
3018         * sysdeps/unix/sysv/linux/kernel-features.h
3019         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3020         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3021         version.
3022         (__ASSUME_UTIMES): Likewise.
3023         (__ASSUME_CLONE_STOPPED): Remove.
3024         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3025         architectures, not kernel version.
3026         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3027         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3028         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3029         (__ASSUME_WAITID_SYSCALL): Likewise.
3030         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3031         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3032         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3033         refer to older versions.
3034
3035 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3036
3037         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3038         Define alphasort64 as an alias.
3039         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3040         Define versionsort64 as an alias.
3041         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3042         Define scandir64 as an alias.
3043         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3044         Define scandirat64 as an alias.
3045         * dirent/alphasort64.c (alphasort64):
3046         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3047         * dirent/versionsort64.c: Likewise.
3048         * dirent/scandir64.c: Likewise.
3049         * dirent/scandirat64.c: Likewise.
3050         * sysdeps/wordsize-64/alphasort.c: File removed.
3051         * sysdeps/wordsize-64/alphasort64.c: File removed.
3052         * sysdeps/wordsize-64/scandir.c: File removed.
3053         * sysdeps/wordsize-64/scandir64.c: File removed.
3054         * sysdeps/wordsize-64/scandirat.c: File removed.
3055         * sysdeps/wordsize-64/scandirat64.c: File removed.
3056         * sysdeps/wordsize-64/versionsort.c: File removed.
3057         * sysdeps/wordsize-64/versionsort64.c: File removed.
3058         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3059         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3060         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3061         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3062         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3063         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3064         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3065         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3066
3067         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3068         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3069         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3070         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3071         [defined __arch64__ || defined __sparcv9]
3072         (__INO_T_MATCHES_INO64_T): New macro.
3073         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3074         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3075         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3076         * sysdeps/unix/sysv/linux/bits/dirent.h
3077         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3078         (_DIRENT_MATCHES_DIRENT64): New macro.
3079
3080         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3081         Define lockf64 as an alias.
3082         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3083         Define fseeko64 as an alias.
3084         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3085         Define ftello64 as an alias.
3086         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3087         Define _IO_fgetpos64 and fgetpos64 as aliases.
3088         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3089         Define _IO_fsetpos64 and fsetpos64 as aliases.
3090         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3091         Conditionalize body on this.
3092         * libio/fseeko64.c: Likewise.
3093         * libio/ftello64.c: Likewise.
3094         * libio/iofgetpos64.c: Likewise.
3095         * libio/iofsetpos64.c: Likewise.
3096         * sysdeps/wordsize-64/lockf.c: File removed.
3097         * sysdeps/wordsize-64/lockf64.c: File removed.
3098         * sysdeps/wordsize-64/fseeko.c: File removed.
3099         * sysdeps/wordsize-64/fseeko64.c: File removed.
3100         * sysdeps/wordsize-64/ftello.c: File removed.
3101         * sysdeps/wordsize-64/ftello64.c: File removed.
3102         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3103         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3104         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3105         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3106         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3107         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3108         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3109         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3110         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3111         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3112         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3113         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3114         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3115         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3116
3117         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3118         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3119         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3120         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3121         [defined __arch64__ || defined __sparcv9]
3122         (__OFF_T_MATCHES_OFF64_T): New macro.
3123         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3124         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3125         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3126         (__OFF_T_MATCHES_OFF64_T): New macro.
3127
3128 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3129
3130         * stdlib/secure-getenv.c (__secure_getenv): Replace
3131         GLIBC_2_16 with GLIBC_2_17.
3132
3133 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3134
3135         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3136         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3137
3138 2012-08-03  David S. Miller  <davem@davemloft.net>
3139
3140         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3141
3142 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3143
3144         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3145         Remove.
3146         (__ASSUME_CORRECT_SI_PID): Likewise.
3147         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3148         (__ASSUME_TMPFS_NAME): Likewise.
3149         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3150         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3151         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3152         (HAVE_AUX_SECURE): Make definition unconditional.
3153         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3154         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3155
3156 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3157
3158         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3159         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3160         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3161         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3162         __eloop_threshold instead of SYMLOOP_MAX.
3163
3164         * sysdeps/generic/eloop-threshold.h: New file.
3165         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3166         of MAXSYMLINKS.
3167         * elf/chroot_canon.c (chroot_canon): Likewise.
3168
3169 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3170
3171         [BZ #13717]
3172         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3173         Change to 2.6.0 everywhere.
3174         * sysdeps/unix/sysv/linux/configure: Regenerated.
3175         * sysdeps/unix/sysv/linux/kernel-features.h
3176         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3177         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3178         kernel versions.
3179         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3180         (__ASSUME_FUTEX_REQUEUE): Remove.
3181         (__ASSUME_STATFS64): Define unconditionally.
3182         (__ASSUME_AT_SECURE): Likewise.
3183         (__ASSUME_CORRECT_SI_PID): Likewise.
3184         (__ASSUME_TGKILL): Define without depending on kernel version for
3185         i386.
3186         (__ASSUME_UTIMES): Likewise.
3187         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3188         kernel version.
3189         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3190         (__ASSUME_TMPFS_NAME): Likewise.
3191         * README: Update reference to Linux kernel versions.
3192
3193 2012-08-02  Marek Polacek  <polacek@redhat.com>
3194
3195         [BZ# 14150]
3196         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3197         libc_cv_asm_type_prefix with %.
3198         * configure: Regenerated.
3199         * include/libc-symbols.h: Remove comment about
3200         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3201         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3202         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3203         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3204         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3205         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3206         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3207         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3208         * elf/tst-unique2mod1.c: Likewise.
3209         * elf/tst-unique1mod2.c: Likewise.
3210         * elf/tst-unique1mod1.c: Likewise.
3211         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3212         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3213         Replace ASM_TYPE_DIRECTIVE with .type.
3214         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3215         * sysdeps/i386/sysdep.h: Likewise.
3216         * sysdeps/x86_64/sysdep.h: Likewise.
3217         * sysdeps/sh/sysdep.h: Likewise.
3218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3219         Do not define ASM_TYPE_DIRECTIVE.
3220         * sysdeps/powerpc/sysdep.h: Likewise.
3221         * sysdeps/powerpc/powerpc32/sysdep.h:
3222         Replace ASM_TYPE_DIRECTIVE with .type.
3223         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3224         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3225         * sysdeps/i386/fpu/e_powf.S: Likewise.
3226         * sysdeps/i386/fpu/e_expl.S: Likewise.
3227         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3228         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3229         * sysdeps/i386/fpu/e_pow.S: Likewise.
3230         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3231         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3232         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3233         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3234         * sysdeps/i386/fpu/e_log2.S: Likewise.
3235         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3236         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3237         * sysdeps/i386/fpu/e_powl.S: Likewise.
3238         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3239         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3240         * sysdeps/i386/fpu/e_logl.S: Likewise.
3241         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3242         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3243         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3244         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3245         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3246         * sysdeps/i386/fpu/e_log.S: Likewise.
3247         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3248         * sysdeps/i386/fpu/e_logf.S: Likewise.
3249         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3250         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3251         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3252         * sysdeps/i386/fpu/e_log10.S: Likewise.
3253         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3254         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3255         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3256         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3257         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3258         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3259         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3260         * sysdeps/i386/i686/strtok.S: Likewise.
3261         * sysdeps/i386/i386-mcount.S: Likewise.
3262         * sysdeps/i386/strtok.S: Likewise.
3263         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3264         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3265         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3266         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3267         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3268         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3269         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3270         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3271         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3272         * sysdeps/x86_64/_mcount.S: Likewise.
3273         * sysdeps/x86_64/strtok.S: Likewise.
3274         * sysdeps/sh/_mcount.S: Likewise.
3275
3276 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3277
3278         * libio/iofopen.c: Include <fcntl.h>.
3279         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3280         (_IO_fopen64, fopen64): Define as aliases.
3281         * libio/iofopen64.c: Include <fcntl.h>.
3282         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3283         Conditionalize body on this.
3284         * sysdeps/wordsize-64/iofopen.c: File removed.
3285         * sysdeps/wordsize-64/iofopen64.c: File removed.
3286
3287 2012-08-01  Marek Polacek  <polacek@redhat.com>
3288
3289         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3290         Use dlfcn directly instead of a variable.
3291         (binfmt-subdir): Do not define.
3292         (dlfcn): Likewise.
3293
3294 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3295
3296         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3297         Remove all definitions.
3298         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3299         <kernel-features.h>.
3300         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3301         (miss_F_GETOWN_EX): Remove all definitions.
3302         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3303         macro definition.
3304         [!__ASSUME_FCNTL64]: Remove conditional code.
3305         [__ASSUME_FCNTL64]: Make code unconditional.
3306         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3307         <kernel-features.h>.
3308         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3309         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3310         (lockf64) [__NR_fcntl64]: Make code unconditional.
3311         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3312
3313         * sysdeps/unix/sysv/linux/kernel-features.h
3314         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3315         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3316         Make code unconditional.
3317         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3318         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3320         [__NR_vfork]: Make code unconditional.
3321         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3322         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3324         [__NR_vfork]: Make code unconditional.
3325         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3326         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3327
3328 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3329
3330         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3331         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3332
3333         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3334         Define mkstemp64 as an alias.
3335         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3336         Define mkstemps64 as an alias.
3337         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3338         Define mkostemp64 as an alias.
3339         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3340         Define mkostemps64 as an alias.
3341         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3342         Conditionalize body on this.
3343         * misc/mkostemp64.c: Likewise.
3344         * misc/mkostemps64.c: Likewise.
3345         * misc/mkstemps64.c: Likewise.
3346         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3347         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3348         * sysdeps/wordsize-64/mkostemp.c: File removed.
3349         * sysdeps/wordsize-64/mkstemp.c: File removed.
3350         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3351         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3352         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3353         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3354
3355         [BZ #14138]
3356         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3357         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3358         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3359         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3360
3361         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3362         compat_symbol macros from <shlib-compat.h> rather than the underlying
3363         default_symbol_version and symbol_version macros, so that DEFAULT
3364         lines in shlib-versions are respected.
3365         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3366
3367 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3368
3369         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3370         Declare with warn_unused_result.
3371         (setgid, setregid, setegid, setresgid): Likewise.
3372         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3373         Likewise.
3374         * WUR-REPORT: Remove set*id functions.
3375
3376 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3377
3378         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3379
3380 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3381
3382         * include/sys/socket.h (__libc_accept, __libc_accept4):
3383         Add attribute_hidden.
3384         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3385
3386         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3387         use of PTR_MANGLE.
3388         * inet/getnetgrent_r.c (setup): Likewise.
3389
3390         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3391
3392 2012-07-31  David S. Miller  <davem@davemloft.net>
3393
3394         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3395
3396 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3397
3398         [BZ #13629]
3399         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3400         value between 1.0 and 2.0 and smaller part has absolute value less
3401         than 1.0.
3402         * math/s_clog10.c (__clog10): Likewise.
3403         * math/s_clog10f.c (__clog10f): Likewise.
3404         * math/s_clog10l.c (__clog10l): Likewise.
3405         * math/s_clogf.c (__clogf): Likewise.
3406         * math/s_clogl.c (__clogl): Likewise.
3407         * math/libm-test.inc (clog_test): Add more tests.
3408         (clog10_test): Likewise.
3409         * sysdeps/i386/fpu/libm-test-ulps: Update.
3410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3411
3412 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3413
3414         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3415         Exit with zero in case no suitable GID is found, and write a
3416         message to standard error.
3417
3418 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3419
3420         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3421         rather than to 1.
3422         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3423         (MAXPATHLEN): Removed.
3424         (NOGROUP, NODEV): New macros.
3425         (setbit, clrbit, isset, isclr): New macros.
3426         (howmany, roundup, powerof2): New macros.
3427         (DEV_BSIZE): New macro.
3428
3429         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3430         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3431
3432         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3433         definition on [!__NO_LONG_DOUBLE_MATH].
3434
3435         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3436         PTR_MANGLE and PTR_DEMANGLE.
3437
3438         * socket/accept4.c (accept4): Rename to __libc_accept4.
3439         Define accept4 as a weak alias.
3440
3441         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3442         on [_DIRENT_HAVE_D_TYPE].
3443         * io/ftw.c (ftw_dir): Likewise.
3444
3445         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3446
3447         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3448
3449         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3450         Use the BSD numbers rather than the arbitrary ones we had.
3451         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3452         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3453         (SIGXCPU, SIGXFSZ): New macros.
3454         (_NSIG): Now 32.
3455
3456         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3457         initializer on [_LIBC_REENTRANT].
3458
3459         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3460         definitions inside [_POSIX_MAPPED_FILES].
3461
3462         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3463
3464         * dirent/opendir.c: Include <fcntl.h>.
3465
3466         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3467         (__libc_getspecific): Likewise.
3468         (__libc_key_create): Likewise.
3469
3470         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3471         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3472         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3473         (tmpfile64): Define as alias.
3474         * sysdeps/wordsize-64/tmpfile.c: File removed.
3475         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3476         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3477         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3478
3479         * stdio-common/vfscanf.c: Include <stdbool.h>.
3480         * nss/makedb.c: Likewise.
3481         * stdio-common/_i18n_number.h: Likewise.
3482         * argp/argp-help.c: Likewise.
3483         * posix/wordexp.c: Likewise.
3484         * sysdeps/posix/spawni.c: Likewise.
3485         * nss/nss_files/files-initgroups.c: Likewise.
3486         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3487         * nss/nss_files/files-initgroups.c: Likewise.
3488         * nss/nss_db/db-netgrp.c: Likewise.
3489         * nss/nss_db/db-initgroups.c: Likewise.
3490         * io/fchmodat.c: Include <sys/stat.h>.
3491
3492         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3493         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3494
3495         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3496         [HAVE_MMAP].
3497
3498         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3499         Add multiple inclusion protection.
3500
3501 2012-07-27  David S. Miller  <davem@davemloft.net>
3502
3503         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3504
3505 2012-07-27  Gary Benson  <gbenson@redhat.com>
3506
3507         [BZ #14298]
3508         * elf/rtld.c: Include <stap-probe.h>.
3509         (dl_main): Added static probes "init_start" and "init_complete".
3510         * elf/dl-load.c: Include <stap-probe.h>.
3511         (lose): Take new parameter "nsid".
3512         Added static probe "map_failed".
3513         (_dl_map_object_from_fd): Pass namespace id to lose.
3514         Added static probe "map_start".
3515         (open_verify): Pass namespace id to lose.
3516         * elf/dl-open.c: Include <stap-probe.h>.
3517         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3518         and "reloc_complete".
3519         * elf/dl-close.c: Include <stap-probe.h>.
3520         (_dl_close_worker): Added static probes "unmap_start" and
3521         "unmap_complete".
3522         * elf/rtld-debugger-interface.txt: New file documenting the above.
3523
3524 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3525
3526         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3527         rather than a string variable.
3528         * sunrpc/rpc_main.c (h_output): Likewise.
3529         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3530
3531 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3532
3533         * inet/check_native.c: New file.
3534
3535 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3536
3537         [BZ #13629]
3538         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3539         if larger part has absolute value 1.0.
3540         * math/s_clog10.c (__clog10): Likewise.
3541         * math/s_clog10f.c (__clog10f): Likewise.
3542         * math/s_clog10l.c (__clog10l): Likewise.
3543         * math/s_clogf.c (__clogf): Likewise.
3544         * math/s_clogl.c (__clogl): Likewise.
3545         * math/libm-test.inc (clog_test): Add more tests.
3546         (clog10_test): Likewise.
3547         * sysdeps/i386/fpu/libm-test-ulps: Update.
3548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3549
3550         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3551         (pltexit): Likewise.
3552         (La_regs): Likewise.
3553         (La_retval): Likewise.
3554         (int_retval): Likewise.
3555         Update #error for removed macros to refer only to definitions in
3556         tst-audit.h.
3557         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3558         macro.
3559         (pltexit): Likewise.
3560         (La_regs): Likewise.
3561         (La_retval): Likewise.
3562         (int_retval): Likewise.
3563         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3564         macro.
3565         (pltexit): Likewise.
3566         (La_regs): Likewise.
3567         (La_retval): Likewise.
3568         (int_retval): Likewise.
3569         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3570         macro.
3571         (pltexit): Likewise.
3572         (La_regs): Likewise.
3573         (La_retval): Likewise.
3574         (int_retval): Likewise.
3575         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3576         macro.
3577         (pltexit): Likewise.
3578         (La_regs): Likewise.
3579         (La_retval): Likewise.
3580         (int_retval): Likewise.
3581         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3582         macro.
3583         (pltexit): Likewise.
3584         (La_regs): Likewise.
3585         (La_retval): Likewise.
3586         (int_retval): Likewise.
3587         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3588         macro.
3589         (pltexit): Likewise.
3590         (La_regs): Likewise.
3591         (La_retval): Likewise.
3592         (int_retval): Likewise.
3593         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3594         macro definitions in tst-audit.h.
3595         * sysdeps/i386/tst-audit.h: New file.
3596         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3597         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3598         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3599         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3600         * sysdeps/sh/tst-audit.h: Likewise.
3601         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3602         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3603         * sysdeps/x86_64/tst-audit.h: Likewise.
3604
3605 2012-07-26  Andreas Jaeger  <aj@suse.de>
3606
3607         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3608         ptrace.
3609
3610         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3611         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3612         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3613         PTRACE_O_MASK.
3614         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3615         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3616         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3617
3618         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3619         value.
3620
3621         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3622         _sigsys.
3623         (si_call_addr, si_syscall, si_arch): Define new macro.
3624         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3625         _sigsys.
3626         (si_call_addr, si_syscall, si_arch): Define new marcro.
3627         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3628         _sigsys.
3629         (si_call_addr, si_syscall, si_arch): Define new macro.
3630         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3631         _sigsys.
3632         (si_call_addr, si_syscall, si_arch): Define new macro.
3633
3634 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3635
3636         [BZ #13717]
3637         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3638         Change to 2.4.21 where previously 2.4.1.
3639         * sysdeps/unix/sysv/linux/configure: Regenerated.
3640         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3641         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3642         Linux kernel version.
3643         (__ASSUME_STD_AUXV): Remove.
3644         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3645         kernel version.
3646         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3647         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3648         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3649         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3650         (__ASSUME_NETLINK_SUPPORT): Likewise.
3651         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3652         (__no_netlink_support): Remove conditional definition.
3653         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3654         Remove.
3655         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3656         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3657         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3658         (if_nameindex_ioctl): Remove.
3659         (if_nameindex_netlink): Do not handle __no_netlink_support.
3660         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3661         code.
3662         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3663         Remove conditional code.
3664         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3665         code.
3666         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3667         unconditional.
3668         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3669         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3670         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3671         Remove.
3672         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3673         [!__ASSUME_STD_AUXV]: Remove conditional code.
3674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3675         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3676         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3678         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3679         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3680         code.
3681         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3683         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3684         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3685         conditional code.
3686         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3688         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3689         code.
3690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3691         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3692         conditional code.
3693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3694         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3695         code unconditional.
3696         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3697         conditional code.
3698         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3699         unconditional.
3700         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3701         conditional code.
3702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3703         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3704         unconditional.
3705         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3706         conditional code.
3707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3708         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3709         code unconditional.
3710         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3711         conditional code.
3712         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3713         unconditional.
3714         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3715         conditional code.
3716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3717         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3718         code unconditional.
3719         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3720         conditional code.
3721         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3722         unconditional.
3723         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3724         conditional code.
3725
3726 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3727
3728         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3729         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3730         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3731         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3732         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3733         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3734         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3735         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3736         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3737         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3738         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3739         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3740         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3741         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3742         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3743         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3744         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3745         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3746         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3747         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3748         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3749         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3750         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3751
3752 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3753
3754         * Versions.def: Add GLIBC_2.17.
3755         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3756         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3757         Introduce __libc_secure_getenv.
3758         * stdlib/Versions (2.17): Add secure_getenv
3759         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3760         * stdlib/secure-getenv.c: Rename __secure_getenv to
3761         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3762         symbol __secure_getenv for GLIBC_2.0.
3763         * stdlib/tst-secure-getenv.c: New.
3764         * stdlib/Makefile (tests): Add testcase.
3765         * manual/startup.texi (Environment Access): Document
3766         secure_getenv.
3767         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3768         __libc_secure_getenv.
3769         * inet/ruserpass.c (ruserpass): Likewise.
3770         * malloc/mtrace.c (mtrace): Likewise.
3771         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3772         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3773         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3774         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3775         HAVE_SECURE_GETENV.
3776         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3777         __secure_getenv to __libc_secure_getenv.
3778         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3779         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3780         Likewise.
3781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3782         Likewise.
3783         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3785         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3787         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3788         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3789         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3790
3791 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3792
3793         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3794         (struct La_i86_retval): Likewise.
3795         (struct La_x86_64_regs): Likewise.
3796         (struct La_x86_64_retval): Likewise.
3797         (struct La_x32_regs): Likewise.
3798         (struct La_x32_retval): Likewise.
3799         (struct La_ppc32_regs): Likewise.
3800         (struct La_ppc32_retval): Likewise.
3801         (struct La_ppc64_regs): Likewise.
3802         (struct La_ppc64_retval): Likewise.
3803         (struct La_sh_regs): Likewise.
3804         (struct La_sh_retval): Likewise.
3805         (struct La_s390_32_regs): Likewise.
3806         (struct La_s390_32_retval): Likewise.
3807         (struct La_s390_64_regs): Likewise.
3808         (struct La_s390_64_retval): Likewise.
3809         (struct La_sparc32_regs): Likewise.
3810         (struct La_sparc32_retval): Likewise.
3811         (struct La_sparc64_regs): Likewise.
3812         (struct La_sparc64_retval): Likewise.
3813         (struct audit_ifaces): Remove architecture-specific pltenter and
3814         pltexit members.
3815         * sysdeps/i386/ldsodefs.h: New file.
3816         * sysdeps/powerpc/ldsodefs.h: Likewise.
3817         * sysdeps/s390/ldsodefs.h: Likewise.
3818         * sysdeps/sh/ldsodefs.h: Likewise.
3819         * sysdeps/sparc/ldsodefs.h: Likewise.
3820         * sysdeps/x86_64/ldsodefs.h: Likewise.
3821
3822 2012-07-25  Marek Polacek  <polacek@redhat.com>
3823
3824         [BZ #6808]
3825         * math/libm-test.inc (yn_test): Add another test.
3826         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3827         to ERANGE when the result is +-Inf.
3828         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3829         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3830         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3831         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3832
3833 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3834
3835         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3836         equal to 0.
3837         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3838         clock_t.
3839         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3840
3841 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3842
3843         * configure.in <sysdeps resolving>: Correct printing
3844         Implies_before.
3845         * configure: Regenerate.
3846
3847 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3848
3849         * math/w_ilogb.c: Include <limits.h>.
3850         * math/w_ilogbl.c: Likewise.
3851
3852 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3853
3854         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3855         va_copy.  Document allowing for unavailable va_copy only as
3856         pre-C99 compatibility.
3857         * manual/string.texi (Copying and Concatenation): Use va_copy
3858         instead of __va_copy in concat example.
3859
3860 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3861
3862         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3863         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3864         it if not null.
3865
3866         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3867         with O_NOLINK passed to __file_name_lookup.
3868
3869         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3870         with O_NOLINK passed to __file_name_lookup.
3871
3872         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3873         negative N or less than NGIDS.
3874
3875         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3876         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3877         enough.  Use memcpy instead of strncpy.
3878
3879 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3880
3881         * elf/Makefile (check-data): Remove.
3882         (localplt.data): New vpath directive.
3883         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3884         instead of $(check-data).
3885         * scripts/data/localplt-generic.data: Move to ...
3886         * sysdeps/generic/localplt.data: ... here.
3887         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3888         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3889         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3891         ... here.
3892         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3894         ... here.
3895         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3897         ... here.
3898         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3899         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3900         ... here.
3901         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3902         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3903         ... here.
3904         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3905         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3906         ... here.
3907
3908 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3909
3910         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3911         PPC32 and PPC64 files.
3912         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3913         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3914
3915 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3916
3917         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3918         __makecontext_ret to ...
3919         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3920         ... here and call exit if uc_link is NULL.  New file.
3921         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3922         __makecontext_ret.S.
3923         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3924         __makecontext_ret to ...
3925         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3926         ... here and call exit if uc_link is NULL.  New file.
3927         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3928         __makecontext_ret.S.
3929
3930 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3931
3932         * elf/elf.h (R_390_IRELATIVE): New definition.
3933         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3934         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3935         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3936         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3937         (elf_machine_lazy_rel): Likewise.
3938         * sysdeps/s390/dl-irel.h: New file.
3939         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3940         * sysdeps/s390/s390-64/memset.S: New asm code.
3941         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3942         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3943         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3944         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3945         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3946         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3947         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3948         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3949         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3950         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3951         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3952         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3953         * sysdeps/s390/s390-32/memset.S: New asm code.
3954         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3955
3956 2012-07-17  Marek Polacek  <polacek@redhat.com>
3957
3958         [BZ #14349]
3959         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3960         * sysdeps/s390/s390-64/configure.in: Likewise.
3961         * sysdeps/sparc/configure.in: Likewise.
3962         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3963         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3964         * sysdeps/i386/configure.in: Likewise.
3965         * sysdeps/x86_64/configure.in: Likewise.
3966         * sysdeps/sh/configure.in: Likewise.
3967         * sysdeps/s390/s390-32/configure: Regenerated.
3968         * sysdeps/s390/s390-64/configure: Likewise.
3969         * sysdeps/x86_64/configure: Likewise.
3970         * sysdeps/sh/configure: Likewise.
3971         * sysdeps/powerpc/powerpc64/configure: Likewise.
3972         * sysdeps/powerpc/powerpc32/configure: Likewise.
3973         * sysdeps/sparc/configure: Likwise.
3974         * sysdeps/i386/configure: Likewise.
3975
3976         * elf/dl-open.c: Comment fixes.
3977
3978 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3979
3980         * Makefile [CXX] (check-data): Remove.
3981         [CXX] (c++-types.data): New vpath directive.
3982         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3983         vpath.  Do not allow for C++ type data being missing.
3984         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3985         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3986         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3987         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3988         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3989         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3990         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3992         ... here.
3993         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3995         ... here.
3996         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3997         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3998         ... here.
3999         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4000         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4001         ... here.
4002         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4004         ... here.
4005         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4006         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4007         ... here.
4008         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4009         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4010         ... here.
4011         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4012         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4013
4014         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4015         definitions to architecture-specific files.
4016         (TLS_IE): Likewise.
4017         (TLS_LD): Likewise.
4018         (TLS_GD): Likewise.
4019         * sysdeps/i386/tls-macros.h: New file.
4020         * sysdeps/powerpc/tls-macros.h: Likewise.
4021         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4022         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4023         * sysdeps/sh/tls-macros.h: Likewise.
4024         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4025         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4026         * sysdeps/x86_64/tls-macros.h: Likewise.
4027
4028 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4029
4030         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4031         zero value for regular exit case.
4032
4033         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4034         (__start_context): Preserve zero value for regular exit case.
4035
4036 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4037             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4038
4039         * manual/setjmp.texi (setcontext): Clarify normal process
4040         termination when uc_link is the null pointer.
4041         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4042         exit call.
4043
4044 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4045
4046         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4047         preprocessor.  Test for each exception mask separately.
4048
4049 2012-07-16  Andreas Jaeger  <aj@suse.de>
4050
4051         * po/ru.po: Update from translation team.
4052
4053 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4054
4055         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4056         equal to 0.
4057         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4058         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4059         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4060         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4061         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4062
4063 2012-07-13  Andreas Jaeger  <aj@suse.de>
4064
4065         * po/fr.po: Update from translation team.
4066
4067 2012-07-12  Marek Polacek  <polacek@redhat.com>
4068
4069         [BZ #14173]
4070         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4071         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4072         loop condition.
4073
4074 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4075
4076         [BZ #13717]
4077         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4078         Change to 2.4.1 where previously 2.4.0.
4079         * sysdeps/unix/sysv/linux/configure: Regenerated.
4080         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4081         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4082         version.
4083         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4084         (__ASSUME_AT_CLKTCK): Remove.
4085         (__ASSUME_AT_PAGESIZE): Likewise.
4086         (__ASSUME_AT_XID): Likewise.
4087         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4088         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4089         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4090         unconditionally.
4091         (HAVE_AUX_PAGESIZE): Likewise.
4092         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4093         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4094         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4095
4096 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4097
4098         [BZ #14307]
4099         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4100         the temporary buffer used to invoke __gethostbyname2_r,
4101         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4102         host_data / struct gaih_addrtuple.
4103         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4104         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4105         header file nss/nsswitch.h.
4106         * nss/nsswitch.h (global scope): Add definition of implementation
4107         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4108         resolv/nss_dns/dns-host.c).
4109
4110 2012-07-11  Andreas Jaeger  <aj@suse.de>
4111
4112         * po/fr.po: Update from translation team.
4113
4114         * po/sv.po: Update from translation team
4115         * po/fr.po: Another update from translation team.
4116
4117 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4118
4119         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4120         for subnormals or multiply small sinh result by itself.
4121         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4122         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4123
4124 2012-07-11  David S. Miller  <davem@davemloft.net>
4125
4126         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4127
4128 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4129
4130         [BZ #14347]
4131         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4132         (INTERNAL_MARK): Shift it here.
4133
4134 2012-07-10  Marek Polacek  <polacek@redhat.com>
4135
4136         [BZ #14151]
4137         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4138         libc_cv_asm_global_directive with .globl.
4139         * configure: Regenerated.
4140         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4141         with .globl.
4142         * sysdeps/i386/configure: Regenerated.
4143         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4144         with .globl.
4145         * sysdeps/x86_64/configure: Regenerated.
4146         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4147         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4148         * elf/tst-unique2mod2.c: Likewise.
4149         * elf/tst-unique2mod1.c: Likewise.
4150         * elf/tst-unique1mod2.c: Likewise.
4151         * elf/tst-unique1mod1.c: Likewise.
4152         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4153         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4154         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4155         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4156         * sysdeps/mach/sysdep.h: Likewise.
4157         * sysdeps/i386/sysdep.h: Likewise.
4158         * sysdeps/i386/i386-mcount.S: Likewise.
4159         * sysdeps/x86_64/_mcount.S: Likewise.
4160         * sysdeps/x86_64/sysdep.h: Likewise.
4161         * sysdeps/sh/_mcount.S: Likewise.
4162         * sysdeps/sh/sysdep.h: Likewise.
4163         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4164         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4165         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4166         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4167         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4168         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4169         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4170         * locale/localeinfo.h: Likewise.
4171         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4172         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4173
4174 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4175
4176         [BZ #14336]
4177         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4178         system".
4179         * manual/message.texi (The Uniforum approach): Likewise.
4180         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4181         (glibc iconv Implementation): Likewise.
4182
4183 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4184
4185         [BZ #14337]
4186         * math/s_clog.c (__clog): Avoid scaling a value down where that
4187         could result in underflow.
4188         * math/s_clog10.c (__clog10): Likewise.
4189         * math/s_clog10f.c (__clog10f): Likewise.
4190         * math/s_clog10l.c (__clog10l): Likewise.
4191         * math/s_clogf.c (__clogf): Likewise.
4192         * math/s_clogl.c (__clogl): Likewise.
4193         * math/libm-test.inc (clog_test): Add more tests.
4194         (clog10_test): Likewise.
4195         * sysdeps/i386/fpu/libm-test-ulps: Update.
4196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4197
4198 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4199
4200         [BZ #14283]
4201         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4202         by 7 not 8 to examine high bit of fractional part.
4203
4204         [BZ #14042]
4205         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4206         for call to __mcount_internal.
4207         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4208         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4209         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4210
4211 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4212
4213         [BZ #14154]
4214         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4215         approximation for values within 0x1p-13f of an odd multiple of
4216         pi/4.
4217         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4218         exception.  Add more tests.
4219         * sysdeps/i386/fpu/libm-test-ulps: Update.
4220
4221         [BZ #6778]
4222         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4223         inputs and return -1 for them.  Do not check for +Inf in case not
4224         reachable for +Inf.
4225         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4226         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4227         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4228         and return -1 for them.  Do not check for +Inf in case not
4229         reachable for +Inf.
4230         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4231         define.
4232         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4233         and return -1 for them.  Do not check for +Inf in case not
4234         reachable for +Inf.
4235         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4236         spurious underflow.
4237         * sysdeps/i386/fpu/libm-test-ulps: Update.
4238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4239
4240 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4241
4242         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4243
4244 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4245
4246         [BZ #14157]
4247         [BZ #14331]
4248         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4249         could result in spurious underflow.  Scale down values above
4250         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4251         * math/s_csqrtf.c (__csqrtf): Likewise.
4252         * math/s_csqrtl.c (__csqrtl): Likewise.
4253         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4254         spurious underflow.
4255         * sysdeps/i386/fpu/libm-test-ulps: Update.
4256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4257
4258 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4259
4260         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4261         xopen-msg.sed.
4262         * catgets/xopen-msg.awk: New file.
4263         * catgets/xopen-msg.sed: Removed.
4264
4265         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4266         po2text.sed.
4267         * intl/po2test.awk: New file.
4268         * intl/po2test.sed: Removed.
4269
4270 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4271
4272         [BZ #14328]
4273         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4274         or multiply small sinh result by itself.
4275         * math/s_ctanf.c (__ctanf): Likewise.
4276         * math/s_ctanh.c (__ctanh): Likewise.
4277         * math/s_ctanhf.c (__ctanhf): Likewise.
4278         * math/s_ctanhl.c (__ctanhl): Likewise.
4279         * math/s_ctanl.c (__ctanl): Likewise.
4280         * math/libm-test.inc (ctan_test_tonearest): New function.
4281         (ctan_test_towardzero): Likewise.
4282         (ctan_test_downward): Likewise.
4283         (ctan_test_upward): Likewise.
4284         (ctanh_test_tonearest): Likewise.
4285         (ctanh_test_towardzero): Likewise.
4286         (ctanh_test_downward): Likewise.
4287         (ctanh_test_upward): Likewise.
4288         (main): Call these new functions.
4289         * sysdeps/i386/fpu/libm-test-ulps: Update.
4290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4291
4292 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4293
4294         * .gitignore: Delete /ports entry.
4295
4296 2012-07-03  Andreas Jaeger  <aj@suse.de>
4297
4298         * po/bg.po: Update from translation team.
4299         * po/cs.po: Likewise.
4300         * po/de.po: Likewise.
4301         * po/hr.po: Likewise.
4302         * po/nl.pl: Likewise.
4303         * po/pl.po: Likewise.
4304         * po/vi.po: Likewise.
4305
4306 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4307
4308         * Makeconfig [!+link] (+link-before-libc): New variable.
4309         [!+link] (+link-after-libc): Likewise.
4310         [!+link] (+link-tests): Likewise.
4311         [!+link] (+link): Define in terms of $(+link-before-libc) and
4312         $(+link-after-libc).
4313         [!+link-static] (+link-static-before-libc): New variable.
4314         [!+link-static] (+link-static-after-libc): Likewise.
4315         [!+link-static] (+link-static-tests): Likewise.
4316         [!+link-static] (+link-static): Define in terms of
4317         $(+link-static-before-libc) and $(+link-static-after-libc).
4318         [build-shared] (link-libc-before-gnulib): New variable.
4319         [build-shared] (link-libc-tests): Likewise.
4320         [build-shared] (link-libc): Define in terms of
4321         $(link-libc-before-gnulib).
4322         [!build-shared] (link-libc-tests): New variable.
4323         (link-libc-static-tests): New variable.
4324         [!gnulib] (gnulib-arch): New variable.
4325         [!gnulib] (gnulib-tests): Likewise.
4326         [!gnulib] (static-gnulib-arch): Likewise.
4327         [!gnulib] (static-gnulib-tests): Likewise.
4328         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4329         Define with "=" instead of ":=".
4330         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4331         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4332         * Rules (binaries-all-notests): New variable.
4333         (binaries-all-tests): Likewise.
4334         (binaries-static-notests): Likewise.
4335         (binaries-static-tests): Likewise.
4336         (binaries-all): Define using $(binaries-all-notests) and
4337         $(binaries-all-tests).
4338         (binaries-static): Define using $(binaries-static-notests) and
4339         $(binaries-static-tests).
4340         (binaries-shared-tests): New variable.
4341         (binaries-shared-notests): Likewise.
4342         (binaries-shared): Remove variable.
4343         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4344         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4345         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4346         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4347         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4348         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4349         * elf/Makefile (sln-modules): New variable.
4350         (extra-objs): Add $(sln-modules:=.o).
4351         (ldconfig-modules): Add static-stubs.
4352         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4353         * elf/static-stubs.c: New file.
4354
4355         [BZ #14283]
4356         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4357         by 7 not 8 to examine high bit of fractional part.  Use volatile
4358         variables when splitting into final array of floats if
4359         __FLT_EVAL_METHOD__ != 0.
4360         * math/libm-test.inc (cos_test): Add another test.
4361         (sin_test): Likewise.
4362         * sysdeps/i386/fpu/libm-test-ulps: Update.
4363
4364         [BZ #14273]
4365         * math/libm-test.inc (cosh_test): Add more tests.
4366
4367         * version.h (RELEASE): Set to "development".
4368         (VERSION): Set to "2.16.90".
4369
4370 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4371
4372         * NEWS: Update copyright. Remove last-updated date.
4373         Mention math library bug fixes and timezone data changes.
4374         * README: Mention GNU/Hurd, x32, and HPPA support status.
4375
4376 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4377
4378         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4379
4380 2012-06-27  Andreas Jaeger  <aj@suse.de>
4381
4382         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4383
4384 2012-06-25  Andreas Jaeger  <aj@suse.de>
4385
4386         * sysdeps/s390/fpu/libm-test-ulps: Update.
4387
4388 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4389             Thomas Schwinge  <thomas@codesourcery.com>
4390
4391         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4392         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4393         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4394         fanotify_mark.
4395
4396 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4397
4398         * sysdeps/mach/start.c: Remove file.
4399         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4400         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4401         * sysdeps/sh/init-first.c: Likewise.
4402
4403         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4404         registers for frame unwinding purposes, add CFI directives.
4405         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4406         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4407         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4408         Likewise.
4409
4410         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4411         __fortify_fail returning.
4412         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4413
4414         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4415         sysdeps/sh/____longjmp_chk.S.
4416         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4417         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4418         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4419         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4420
4421         * sysdeps/sh/abort-instr.h: New file.
4422         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4423         process in case exit returns.
4424
4425         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4426         initialize the GOT register before use.
4427
4428         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4429         calculation of ARGC > 4.
4430
4431         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4432         meaningful names to some local labels.
4433
4434 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4435             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4436
4437         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4438         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4439         (__arch_compare_and_exchange_val_16_acq): Likewise.
4440         (__arch_compare_and_exchange_val_32_acq): Likewise.
4441         (atomic_exchange_and_add): Fix gUSA sequence.
4442         (atomic_add): Likewise.
4443         (atomic_add_negative): Likewise.
4444         (atomic_add_zero): Likewise.
4445         (atomic_bit_test_set): Likewise.
4446
4447 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4448
4449         [BZ #13579]
4450         * include/link.h (struct link_map): Add l_free_initfini.
4451         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4452         l_initfini.
4453         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4454         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4455         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4456         set.
4457
4458 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4459
4460         * configure.in: Use AC_LANG_SOURCE.
4461         * configure: Regenerate.
4462
4463 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4464
4465         * configure.in (libc_cv_localstatedir): New substituted variable.
4466         * configure: Regenerated.
4467         * config.make.in (localstatedir): New variable, substituted from
4468         libc_cv_localstatedir.
4469         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4470         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4471         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4472         * sysdeps/gnu/configure: Regenerated.
4473
4474 2012-06-21  Jeff Law  <law@redhat.com>
4475
4476         [BZ #14277]
4477         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4478         free.  Simplify list management for _LIBC case.
4479
4480 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4481
4482         [BZ #14273]
4483         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4484         Clear sign bit of 64-bit integer value before comparing against
4485         overflow value.
4486
4487         * sysdeps/mach/configure: Regenerated.
4488
4489 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4490
4491         [BZ #14278]
4492         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4493
4494 2012-06-21  Jeff Law  <law@redhat.com>
4495
4496         [BZ #13882]
4497         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4498         uint16_t for elements in the "seen" array to avoid char overflows.
4499         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4500         * elf/dl-open.c (dl_open_worker): Likewise.
4501
4502 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4503
4504         * scripts/list-sources.sh: Scan PORTS for translations.
4505         * po/libc.pot: Regenerated.
4506
4507 2012-06-21  Andreas Jaeger  <aj@suse.de>
4508
4509         [BZ #12194]
4510         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4511         warning.
4512         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4513         * bits/byteswap-16.h (__bswap_16): Likewise.
4514         * bits/byteswap.h (__bswap_constant_16): Likewise.
4515
4516 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4517
4518         [BZ #14117]
4519         * sysdeps/i386/fpu_control.h: Removed.
4520         * sysdeps/x86_64/fpu_control.h: Moved to ...
4521         * sysdeps/x86/fpu_control.h: Here.
4522
4523         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4524         (_FPU_SETCW): Likewise.
4525
4526 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4527
4528         [BZ #14117]
4529         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4530         * sysdeps/x86/fpu/bits/mathinline.h: This.
4531         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4532
4533         [BZ #14050]
4534         [BZ #14117]
4535         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4536         functions if __x86_64__ is defined.
4537
4538 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4539
4540         * string/endian.h: Add !__ASSEMBLER__ condition for including
4541         conversion interfaces.
4542
4543 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4544
4545         [BZ #14241]
4546         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4547         of ABS(x) in calculating zero to negative powers other than odd
4548         integers.
4549         * math/libm-test.inc (pow_test): Add more tests.
4550
4551 2012-06-15  Andreas Jaeger  <aj@suse.de>
4552
4553         * manual/contrib.texi (Contributors): Update entry of Liubov
4554         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4555         Machado Filho.
4556
4557 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4558
4559         * string/string.h: Add __wur to GNU version of strerror_r.
4560
4561 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4562
4563         [BZ #14229]
4564         * string/Makefile (tests): Add tst-strtok_r.
4565         * string/tst-strtok_r.c: New file.
4566         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4567         RAX_LP/RDX_LP on SAVE_PTR.
4568
4569 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4570
4571         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4572
4573 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4574
4575         * libm_test.inc (csqrt_test): Allow more spurious underflow
4576         exceptions.
4577         (j0_test): Likewise.
4578         (j1_test): Likewise.
4579         (y0_test): Likewise.
4580         (y1_test): Likewise.
4581
4582 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4583
4584         * po/Makefile (libc.pot): Use UTF-8 charset.
4585
4586 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4587
4588         [BZ #14210]
4589         Suppress sign-conversion warning from FD_SET.
4590         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4591         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4592         not unsigned long int.
4593         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4594
4595 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4596
4597         [BZ #14050]
4598         [BZ #14117]
4599         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4600         __extern_always_inline instead of __extern_inline.
4601         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4602         (__signbit): Likewise.
4603         (__signbitl): Support C++ namespace.
4604         (lrintf): New inline function.
4605         (lrint): Likewise.
4606         (llrintf): Likewise.
4607         (llrint): Likewise.
4608         (fmaxf): Likewise.
4609         (fmax): Likewise.
4610         (fminf): Likewise.
4611         (fmin): Likewise.
4612         (rint): Likewise.
4613         (rintf): Likewise.
4614         (ceil): Likewise.
4615         (ceilf): Likewise.
4616         (floor): Likewise.
4617         (floorf): Likewise.
4618         (nearbyint): Likewise.
4619         (nearbyintf): Likewise.
4620
4621 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4622
4623         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4624         non-default versions.
4625
4626 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4627
4628         [BZ #14218]
4629         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4630
4631 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4632
4633         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4634         (FE_UPWARD, FE_DOWNWARD): Don't define.
4635         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4636         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4637
4638         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4639         reading it.
4640         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4641         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4642
4643 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4644
4645         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4646         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4647         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4648         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4649
4650 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4651
4652         [BZ #14117]
4653         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4654         * sysdeps/i386/fpu/Implies: New file.
4655         * sysdeps/x86_64/fpu/Implies: Likewise.
4656         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4657         * sysdeps/x86/fpu/bits/fenv.h: This.
4658
4659         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4660         __SSE_MATH__.
4661
4662 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4663
4664         [BZ #14134]
4665         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4666         character 0xffff that matches the last element of the
4667         conversion table.
4668
4669 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4670
4671         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4672         fmodl commit.
4673
4674 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4675
4676         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4677         values higher than 25.6283.
4678
4679 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4680
4681         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4682         subnormal exponent extraction and add some __builtin_expect.
4683         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4684         Fix for subnormal mantissa calculation.
4685
4686 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4687
4688         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4689         cpu2 is -1 and errno is not ENOSYS.
4690
4691 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4692
4693         [BZ #14117]
4694         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4695         * sysdeps/x86/bits/string.h: This.
4696         * sysdeps/x86_64/bits/string.h: Removed.
4697
4698         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4699         if not compiling for x86-64, but compiling for >= i486.
4700
4701         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4702         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4703
4704         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4705         New macro from Linux kernel 3.4.0.
4706         (FP_XSTATE_MAGIC2): Likewise.
4707         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4708         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4709         (struct _fpx_sw_bytes): New struct.
4710         (struct _xsave_hdr): Likewise.
4711         (struct _ymmh_state): Likewise.
4712         (struct _xstate): Likewise.
4713
4714         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4715         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4716         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4717         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4718         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4719         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4720
4721         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4722         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4723         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4724         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4725         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4726         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4727
4728 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4729
4730         [BZ #13743]
4731         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4732         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4733         (sysdep_headers): Include sys/platform/ppc.h.
4734         * sysdeps/powerpc/test-gettimebase.c: Test for
4735         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4736         * manual/Makefile (appendices): Include platform.texi.
4737         * manual/contrib.texi (Contributors): Update @node pointers.
4738         * manual/maint.texi (Maintenance): Likewise.
4739         (Platform): New node.
4740         * manual/platform.texi: New file.  Document the new features.
4741
4742 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4743             Jakub Jelinek  <jakub@redhat.com>
4744
4745         [BZ #14188]
4746         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4747         where __builtin_expect is unavailable.
4748
4749 2012-06-03  David S. Miller  <davem@davemloft.net>
4750
4751         * stdlib/longlong.h: Updated from GCC.
4752
4753 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4754
4755         [BZ #14042]
4756         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4757         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4758         __mcount_internal.
4759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4760         (GLIBC_2.16): Likewise.
4761
4762 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4763
4764         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4765
4766 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4767
4768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4769         (default-abi): New variable.
4770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4771         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4772         variable.
4773         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4774         Likewise.
4775         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4776         Likewise.
4777         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4778         Likewise.
4779
4780         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4781         definition.  Document in comment.
4782
4783 2012-06-01  David S. Miller  <davem@davemloft.net>
4784
4785         * stdlib/longlong.h: Updated from GCC.
4786
4787 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4788
4789         [BZ #14117]
4790         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4791         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4792         sys/debugreg.h sys/io.h here.
4793         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4794         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4795         sys/io.h.
4796         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4797         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4798         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4799         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4800         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4801         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4802
4803         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4804         Define only if __x86_64__ is defined.
4805
4806 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4807
4808         [BZ #14048]
4809         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4810         Use int64_t for variable i.
4811         * math/libm-test.inc (fmod_test): Add more tests.
4812
4813         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4814         z computation is not scheduled after fetestexcept.
4815         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4816         Use math_force_eval instead of asm to ensure calculation scheduled
4817         before exception test.
4818         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4819         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4820
4821 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4822
4823         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4824         computation is not scheduled after fetestexcept.
4825
4826 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4827
4828         [BZ #14117]
4829         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4830         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4831
4832 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4833
4834         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4835         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4836
4837 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4838
4839         [BZ #14117]
4840         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4841         <bits/wordsize.h>.
4842         (__WCHAR_MIN): Support __WORDSIZE == 64.
4843         (__WCHAR_MAX): Likewise.
4844
4845         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4846         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4847
4848         [BZ #14183]
4849         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4850         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4851
4852         [BZ #14117]
4853         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4854         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4855
4856         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4857         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4858
4859         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4860         Defined to 1 if __x86_64__ isn't defined.
4861         (_STAT_VER_LINUX_OLD): New.
4862         (st_atime): Remove duplicate.
4863         (st_mtime): Likewise.
4864         (st_ctime): Likewise.
4865
4866 2012-05-31  David S. Miller  <davem@davemloft.net>
4867
4868         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4869         entries.
4870
4871 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4872
4873         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4874         gen-libm-test.pl.
4875
4876         [BZ #14132]
4877         * elf/dl-reloc.c: Include <_itoa.h>.
4878         (_dl_reloc_bad_type): Remove use of INTUSE.
4879         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4880         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4881         * stdio-common/psiginfo.c (psiginfo): Likewise.
4882         * stdio-common/psignal.c (psignal): Likewise.
4883         * string/strsignal.c (strsignal): Likewise.
4884         * include/signal.h (_sys_siglist): Declare hidden proto.
4885         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4886         INTVARDEF with libc_hidden_data_def.
4887         * stdio-common/itoa-udigits.c: Likewise.
4888         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4889         (_itoa_lower_digits_internal): Remove declaration.
4890         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4891         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4892         (_sys_sigabbrev_internal): Remove aliases.
4893         (_sys_siglist): Define hidden alias.
4894
4895 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4896
4897         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4898         bits/sysctl.h.
4899
4900 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4901
4902         [BZ #14117]
4903         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4904         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4905
4906         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4907         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4908         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4909         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4910         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4911         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4912
4913         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4914         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4915         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4916
4917         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4918         with __addr.
4919         (insw): Likewise.
4920         (insl): Likewise.
4921         (outsb): Likewise.
4922         (outsw): Likewise.
4923         (outsl): Likewise.
4924
4925         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4926         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4927         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4928
4929         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4930         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4931         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4932         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4933         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4934         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4935
4936         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4937         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4938
4939         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4940         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4941
4942         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4943         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4944         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4945
4946         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4947         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4948         to ...
4949         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4950
4951         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4952         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4953         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4954
4955         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4956         for x86-64.
4957         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4958
4959 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4960
4961         * math/math.h (M_El): Use two more decimal places.
4962         (M_LOG2El): Likewise.
4963         (M_LOG10El): Likewise.
4964         (M_LN2l): Likewise.
4965         (M_LN10l): Likewise.
4966         (M_PIl): Likewise.
4967         (M_PI_2l): Likewise.
4968         (M_PI_4l): Likewise.
4969         (M_1_PIl): Likewise.
4970         (M_2_PIl): Likewise.
4971         (M_2_SQRTPIl): Likewise.
4972         (M_SQRT2l): Likewise.
4973         (M_SQRT1_2l): Likewise.
4974
4975 2012-05-31  David S. Miller  <davem@davemloft.net>
4976
4977         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4978         values between float registers.
4979         * sysdeps/sparc/sparc64/memset.S: Likewise.
4980         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4981
4982 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4983
4984         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4985         -D_FORTIFY_SOURCE=1.
4986         (CPPFLAGS-tst-longjmp_chk.c): Define.
4987         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4988         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4989         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4990         CFLAGS-tst-wchar-h.c.
4991
4992 2012-05-31  Marek Polacek  <polacek@redhat.com>
4993
4994         [BZ #14132]
4995         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4996         __endmntent_internal): Remove declaration.
4997         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4998         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4999         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5000
5001 2012-05-30  David S. Miller  <davem@davemloft.net>
5002
5003         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5004         (___Q_simulate_exceptions): Use real FP ops rather than writing
5005         into the %fsr.
5006         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5007         Likewise.
5008
5009 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5010
5011         [BZ #14117]
5012         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5013         * sysdeps/x86/bits/xtitypes.h: This.
5014
5015         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5016         * sysdeps/x86/bits/wordsize.h: This.
5017
5018         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5019         * sysdeps/x86/bits/huge_vall.h: This.
5020
5021         * sysdeps/i386/bits/select.h: Removed.
5022         * sysdeps/x86_64/bits/select.h: Renamed to ...
5023         * sysdeps/x86/bits/select.h: This.
5024
5025         * sysdeps/i386/bits/setjmp.h: Removed.
5026         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5027         * sysdeps/x86/bits/setjmp.h: This.
5028
5029         * sysdeps/i386/bits/mathdef.h: Removed.
5030         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5031         * sysdeps/x86/bits/mathdef.h: This.
5032
5033 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5034
5035         [BZ #14132]
5036         * include/sys/socket.h (__connect_internal)
5037         (__libc_sa_len_internal): Remove declaration.
5038         (__connect, __libc_sa_len): Declare hidden_proto.
5039         (SA_LEN): Remove use of INTUSE.
5040         * socket/connect.c: Add libc_hidden_def.
5041         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5042         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5043         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5044         alias.
5045         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5046         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5047         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5048         of adding _internal alias.
5049
5050 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5051
5052         [BZ #14117]
5053         * sysdeps/i386/bits/link.h: Removed.
5054         * sysdeps/i386/bits/linkmap.h: Likewise.
5055         * sysdeps/x86_64/bits/link.h: Renamed to ...
5056         * sysdeps/x86/bits/link.h: This.
5057         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5058         * sysdeps/x86/bits/linkmap.h: This.
5059
5060         * sysdeps/i386/bits/endian.h: Removed.
5061         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5062         * sysdeps/x86/bits/endian.h: This.
5063
5064         * sysdeps/i386/bits/byteswap.h: Removed.
5065         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5066         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5067         * sysdeps/x86/bits/byteswap.h: This.
5068         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5069         * sysdeps/x86/bits/byteswap-16.h: This.
5070         * sysdeps/i386/Implies: Add x86.
5071         * sysdeps/x86_64/Implies: Likewise.
5072
5073 2012-05-30  David S. Miller  <davem@davemloft.net>
5074
5075         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5076         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5077         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5078         (FP_TRAPPING_EXCEPTIONS): Define.
5079         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5080         (FP_TRAPPING_EXCEPTIONS): Define.
5081         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5082         subnormals only when inexact has been signalled or underflow
5083         exceptions are enabled.
5084         (_FP_PACK_CANONICAL): Likewise.
5085
5086 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5087
5088         [BZ #14183]
5089         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5090         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5091
5092 2012-05-30  Richard Henderson  <rth@twiddle.net>
5093
5094         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5095         with #ifndef NOT_IN_libc.
5096
5097         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5098         marked to avoid plt entry.
5099
5100 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5101
5102         [BZ #14112]
5103         * Makeconfig (default-abi): New macro.
5104         (abi-includes): Likewise.
5105         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5106         $(abi-$(default-abi)-lib-soname) for soname if defined.
5107         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5108         abi-variants.
5109         * Makefile (installed-stubs): Likewise.
5110         * include/stubs-biarch.h: Removed.
5111         * scripts/lib-names.awk: Only handle one library at a time.
5112         * scripts/soversions.awk: Remove WORDSIZE support.
5113         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5114         entries.
5115         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5116         Removed.
5117         (syscall-list-default-condition): Likewise.
5118         (syscall-list-default-condition): Likewise.
5119         (syscall-list-includes): Likewise.
5120         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5121         syscall-list-* with abi-*.  Handle undefined abi-variants.
5122         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5123         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5124         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5125         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5126         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5127         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5128         Removed.
5129         (syscall-list-32-options): Likewise.
5130         (syscall-list-32-condition): Likewise.
5131         (syscall-list-64-options): Likewise.
5132         (syscall-list-64-condition): Likewise.
5133         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5134         macro.
5135         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5136         Renamed to ...
5137         (abi-*): This.
5138         (abi-64-ld-soname): New macro.
5139         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5140         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5141         Renamed to ...
5142         (abi-*): This.
5143         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5144         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5145
5146 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5147
5148         * sysdeps/unix/sysv/linux/kernel-features.h
5149         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5150         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5151         include <kernel-features.h>.
5152         [!__NR_ftruncate64]: Remove conditional code.
5153         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5154         [__NR_ftruncate64]: Make code unconditional.
5155         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5156         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5157         include <kernel-features.h>.
5158         [!__NR_ftruncate64]: Remove conditional code.
5159         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5160         [__NR_ftruncate64]: Make code unconditional.
5161         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5163         include <kernel-features.h>.
5164         [!__NR_ftruncate64]: Remove conditional code.
5165         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5166         [__NR_ftruncate64]: Make code unconditional.
5167         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5169         include <kernel-features.h>.
5170         [!__NR_ftruncate64]: Remove conditional code.
5171         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5172         [__NR_ftruncate64]: Make code unconditional.
5173         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5174
5175         * configure.in (libc_cv_fpie): Weaken to a compile test using
5176         LIBC_TRY_CC_OPTION.
5177         * configure: Regenerated.
5178
5179 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5180
5181         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5182         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5183         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5185         Refreshed.
5186         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5188         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5189         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5190         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5191         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5192         Refreshed.
5193
5194 2012-05-27  David S. Miller  <davem@davemloft.net>
5195
5196         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5197         (___Q_zero): New.
5198         (__Q_simulate_exceptions): Return void.  Change to simulate
5199         exceptions by writing into the %fsr.
5200         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5201         (__Qp_handle_exceptions): Likewise.
5202         (numbers): Delete.
5203         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5204         __Qp_handle_exceptions.
5205         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5206         __Qp_handle_exceptions.
5207         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5208         as unused and give dummy FP_RND_NEAREST initializer.
5209         (FP_INHIBIT_RESULTS): Define.
5210         (___Q_simulate_exceptions): Update declaration.
5211         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5212         formatting.
5213         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5214         as unused and give dummy FP_RND_NEAREST initializer.
5215         (__Qp_handle_exceptions): Update declaration.
5216         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5217         formatting.
5218
5219 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5220
5221         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5222         the temporary FPU control word.
5223         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5224         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5225         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5226         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5227         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5228         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5229         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5230         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5231         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5232         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5233         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5234
5235 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5236
5237         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5238         fields.
5239
5240 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5241
5242         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5243         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5244         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5245         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5246         Likewise.
5247         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5248         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5249         Likewise.
5250
5251 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5252
5253         * po/h.po: Update from translation team.
5254
5255 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5256
5257         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5258
5259         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5260         handling of denormals.
5261         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5262         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5263         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5264         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5265         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5266         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5267         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5268         Likewise.
5269
5270 2012-05-26  Marek Polacek  <polacek@redhat.com>
5271
5272         [BZ #14152]
5273         * math/libm-test.inc (fma_test): Don't always expect underflow
5274         exception.
5275
5276 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5277
5278         [BZ #12416]
5279         * elf/tst-execstack.c: Include stackinfo.h.
5280         (do_test): Adjust test case to ensure that pthread_getattr_np
5281         behaviour remains the same after marking stack executable.
5282
5283 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5284
5285         * sysdeps/unix/sysv/linux/kernel-features.h
5286         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5287         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5288         kernel-features.h.
5289         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5290         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5291         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5292         kernel-features.h.
5293         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5294         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5295
5296 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5297
5298         * configure.in: Define the default includes to being none.
5299         * configure: Regenerated.
5300
5301 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5302
5303         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5304         * sysdeps/x86_64/setjmp.S: Likewise.
5305         * sysdeps/i386/bsd-setjmp.S: Likewise.
5306         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5307         * sysdeps/i386/setjmp.S: Likewise.
5308         * sysdeps/i386/__longjmp.S: Likewise.
5309         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5310         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5311
5312         * include/stap-probe.h: New file.
5313         * configure.in: Handle --enable-systemtap.
5314         * configure: Regenerated.
5315         * config.h.in (USE_STAP_PROBE): New #undef.
5316         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5317         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5318         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5319
5320 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5321
5322         [BZ #13717]
5323         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5324         to 2.4.0 where earlier.
5325         * sysdeps/unix/sysv/linux/configure: Regenerated.
5326         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5327         <kernel-features.h>.
5328         [__ASSUME_32BITUIDS]: Make code unconditional.
5329         [!__ASSUME_32BITUIDS]: Remove conditional code.
5330         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5331         <kernel-features.h>.
5332         [__ASSUME_32BITUIDS]: Make code unconditional.
5333         [!__ASSUME_32BITUIDS]: Remove conditional code.
5334         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5335         [__ASSUME_32BITUIDS]: Make code unconditional.
5336         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5337         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5338         <kernel-features.h>.
5339         [__ASSUME_32BITUIDS]: Make code unconditional.
5340         [!__ASSUME_32BITUIDS]: Remove conditional code.
5341         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5342         <kernel-features.h>.
5343         [__ASSUME_32BITUIDS]: Make code unconditional.
5344         [!__ASSUME_32BITUIDS]: Remove conditional code.
5345         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5346         <kernel-features.h>.
5347         [__ASSUME_32BITUIDS]: Make code unconditional.
5348         [!__ASSUME_32BITUIDS]: Remove conditional code.
5349         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5350         <kernel-features.h>.
5351         [__ASSUME_32BITUIDS]: Make code unconditional.
5352         [!__ASSUME_32BITUIDS]: Remove conditional code.
5353         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5354         <kernel-features.h>.
5355         [__ASSUME_32BITUIDS]: Make code unconditional.
5356         [!__ASSUME_32BITUIDS]: Remove conditional code.
5357         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5358         <kernel-features.h>.
5359         [__ASSUME_32BITUIDS]: Make code unconditional.
5360         [!__ASSUME_32BITUIDS]: Remove conditional code.
5361         * sysdeps/unix/sysv/linux/i386/getuid.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/lchown.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/msgctl.c: Do not include
5370         <kernel-features.h>.
5371         [__ASSUME_32BITUIDS]: Make code unconditional.
5372         [!__ASSUME_32BITUIDS]: Remove conditional code.
5373         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5374         <kernel-features.h>.
5375         [__ASSUME_32BITUIDS]: Make code unconditional.
5376         [!__ASSUME_32BITUIDS]: Remove conditional code.
5377         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5378         <kernel-features.h>.
5379         [__NR_setresgid] (__setresgid): Do not declare.
5380         [__ASSUME_32BITUIDS]: Make code unconditional.
5381         [!__ASSUME_32BITUIDS]: Remove conditional code.
5382         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5383         <kernel-features.h>.
5384         [__NR_setresuid] (__setresuid): Do not declare.
5385         [__ASSUME_32BITUIDS]: Make code unconditional.
5386         [!__ASSUME_32BITUIDS]: Remove conditional code.
5387         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5388         <kernel-features.h>.
5389         [__ASSUME_32BITUIDS]: Make code unconditional.
5390         [!__ASSUME_32BITUIDS]: Remove conditional code.
5391         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5392         <kernel-features.h>.
5393         [__ASSUME_32BITUIDS]: Make code unconditional.
5394         [!__ASSUME_32BITUIDS]: Remove conditional code.
5395         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5396         <kernel-features.h>.
5397         [__ASSUME_32BITUIDS]: Make code unconditional.
5398         [!__ASSUME_32BITUIDS]: Remove conditional code.
5399         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5400         <kernel-features.h>.
5401         [__ASSUME_32BITUIDS]: Make code unconditional.
5402         [!__ASSUME_32BITUIDS]: Remove conditional code.
5403         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5404         <kernel-features.h>.
5405         [__ASSUME_32BITUIDS]: Make code unconditional.
5406         [!__ASSUME_32BITUIDS]: Remove conditional code.
5407         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5408         <kernel-features.h>.
5409         [__ASSUME_32BITUIDS]: Make code unconditional.
5410         [!__ASSUME_32BITUIDS]: Remove conditional code.
5411         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5412         <kernel-features.h>.
5413         [__ASSUME_32BITUIDS]: Make code unconditional.
5414         [!__ASSUME_32BITUIDS]: Remove conditional code.
5415         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5416         <kernel-features.h>.
5417         [__ASSUME_32BITUIDS]: Make code unconditional.
5418         [!__ASSUME_32BITUIDS]: Remove conditional code.
5419         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5420         <kernel-features.h>.
5421         [__ASSUME_32BITUIDS]: Make code unconditional.
5422         [!__ASSUME_32BITUIDS]: Remove conditional code.
5423         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5424         <kernel-features.h>.
5425         [__ASSUME_32BITUIDS]: Make code unconditional.
5426         [!__ASSUME_32BITUIDS]: Remove conditional code.
5427         * sysdeps/unix/sysv/linux/kernel-features.h
5428         (__ASSUME_SETRESUID_SYSCALL): Remove.
5429         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5430         (__ASSUME_32BITUIDS): Likewise.
5431         (__ASSUME_LDT_WORKS): Likewise.
5432         (__ASSUME_O_DIRECTORY): Likewise.
5433         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5434         architecture but not kernel version.
5435         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5436         (__ASSUME_MMAP2_SYSCALL): Likewise.
5437         (__ASSUME_STAT64_SYSCALL): Likewise.
5438         (__ASSUME_IPC64): Likewise.
5439         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5440         <kernel-features.h>.
5441         [__ASSUME_32BITUIDS]: Make code unconditional.
5442         [!__ASSUME_32BITUIDS]: Remove conditional code.
5443         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5444         <kernel-features.h>.
5445         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5446         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5447         132096]: Remove conditional code.
5448         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5449         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5450         <kernel-features.h>.
5451         [__ASSUME_32BITUIDS]: Make code unconditional.
5452         [!__ASSUME_32BITUIDS]: Remove conditional code.
5453         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5454         <kernel-features.h>.
5455         [__ASSUME_32BITUIDS]: Make code unconditional.
5456         [!__ASSUME_32BITUIDS]: Remove conditional code.
5457         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5458         <kernel-features.h>.
5459         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5460         unconditional.
5461         (__setresgid): Do not declare.
5462         [__ASSUME_32BITUIDS]: Make code unconditional.
5463         [!__ASSUME_32BITUIDS]: Remove conditional code.
5464         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5465         <kernel-features.h>.
5466         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5467         unconditional.
5468         (__setresuid): Do not declare.
5469         [__ASSUME_32BITUIDS]: Make code unconditional.
5470         [!__ASSUME_32BITUIDS]: Remove conditional code.
5471         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5472         <kernel-features.h>.
5473         [__ASSUME_32BITUIDS]: Make code unconditional.
5474         [!__ASSUME_32BITUIDS]: Remove conditional code.
5475         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5476         <kernel-features.h>.
5477         [__ASSUME_32BITUIDS]: Make code unconditional.
5478         [!__ASSUME_32BITUIDS]: Remove conditional code.
5479
5480 2012-05-25  Richard Henderson  <rth@twiddle.net>
5481
5482         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5483         dl_hwcap to ifunc resolver.
5484         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5485         elf_ifunc_invoke.
5486         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5487         dl_hwcap to ifunc resolver.
5488         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5489
5490 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5491
5492         [BZ #14153]
5493         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5494         for |x| <= 2**-26, not 2**-57.
5495         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5496         exception.
5497
5498 2012-05-24  Jeff Law  <law@redhat.com>
5499
5500         * stdio-common/Makefile (tests): Add bug25.
5501         * stdio-common/bug25.c: New test.
5502
5503 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5504
5505         [BZ #13576]
5506         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5507         multiple of MALLOC_ALIGNMENT in size.
5508         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5509
5510 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5511
5512         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5513         Require >= 256.
5514         (FILENAME_MAX): Use macro-int-constant.
5515         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5516         (_IOFBF): Use macro-int-constant.
5517         (_IOLBF): Likewise.
5518         (_IONBF): Likewise.
5519         (SEEK_CUR): Likewise.
5520         (SEEK_END): Likewise.
5521         (SEEK_SET): Likewise.
5522         (TMP_MAX): Likewise.
5523         (EOF): Use macro-int-constant.  Require < 0.
5524         (NULL): Use macro-constant.  Require == 0.
5525         (stdin): Require type to be FILE *.
5526         (stdout): Likewise.
5527         (stderr): Likewise.
5528         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5529         macro-int-constant.
5530         (EXIT_SUCCESS): Likewise.
5531         (NULL): Use macro-constant.  Require == 0.
5532         (RAND_MAX): Use macro-int-constant.
5533         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5534         [C99-based standards] (strtof): Require function.
5535         [C99-based standards] (strtold): Likewise.
5536         [C99-based standards] (strtoll): Likewise.
5537         [C99-based standards] (strtoull): Likewise.
5538         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5539         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5540         [ISO || ISO99 || ISO11] (math.h): Likewise.
5541         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5542         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5543         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5544
5545 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5546
5547         [BZ #14132]
5548         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5549         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5550         * intl/dgettext.c (DCGETTEXT): Likewise.
5551         * intl/gettext.c (DCGETTEXT): Likewise.
5552         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5553         * posix/regex_internal.h (gettext): Likewise.
5554         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5555         Remove declaration.
5556         * include/argz.h (__argz_count_internal)
5557         (__argz_stringify_internal): Remove declaration.
5558         (__argz_count, __argz_stringify): Declare hidden proto.
5559         * intl/dcgettext.c: Remove use of INTDEF.
5560         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5561         * string/argz-stringify.c: Likewise.
5562         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5563         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5564         Declare hidden proto.
5565         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5566         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5567         Declare hidden proto.
5568         * include/stdio.h (__asprintf_internal): Don't declare.
5569         (__asprintf): Don't define as macro.  Declare hidden proto.
5570         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5571         (__fsetlocking): Declare hidden proto.
5572         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5573         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5574         hidden proto.
5575         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5576         (_IO_setlinebuf): Remove use of INTUSE.
5577         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5578         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5579         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5580         Remove declaration.
5581         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5582         (_IO_do_flush): Remove use of INTUSE.
5583         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5584         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5585         (_IO_adjust_column, _IO_least_wmarker)
5586         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5587         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5588         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5589         (_IO_default_doallocate, _IO_wdefault_doallocate)
5590         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5591         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5592         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5593         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5594         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5595         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5596         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5597         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5598         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5599         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5600         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5601         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5602         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5603         proto.
5604         (_IO_flush_all_internal, _IO_adjust_column_internal)
5605         (_IO_default_uflow_internal, _IO_default_finish_internal)
5606         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5607         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5608         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5609         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5610         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5611         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5612         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5613         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5614         (_IO_file_close_internal, _IO_file_close_it_internal)
5615         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5616         (_IO_file_init_internal, _IO_file_attach_internal)
5617         (_IO_file_fopen_internal, _IO_file_read_internal)
5618         (_IO_file_sync_internal, _IO_file_seek_internal)
5619         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5620         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5621         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5622         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5623         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5624         (_IO_list_all_internal, _IO_link_in_internal)
5625         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5626         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5627         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5628         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5629         (_IO_do_write_internal, _IO_padn_internal)
5630         (_IO_getline_info_internal, _IO_getline_internal)
5631         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5632         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5633         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5634         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5635         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5636         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5637         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5638         with libc_hidden_ver, remove use of INTUSE.
5639         * libio/genops.c: Likewise.
5640         * libio/freopen.c: Likewise.
5641         * libio/freopen64.c: Likewise.
5642         * libio/iofclose.c: Likewise.
5643         * libio/iofdopen.c: Likewise.
5644         * libio/iofflush.c: Likewise.
5645         * libio/iofflush_u.c: Likewise.
5646         * libio/iofgets.c: Likewise.
5647         * libio/iofgets_u.c: Likewise.
5648         * libio/iofopen.c: Likewise.
5649         * libio/iofopncook.c: Likewise.
5650         * libio/iofread.c: Likewise.
5651         * libio/iofread_u.c: Likewise.
5652         * libio/ioftell.c: Likewise.
5653         * libio/iofwrite.c: Likewise.
5654         * libio/iogetline.c: Likewise.
5655         * libio/iogets.c: Likewise.
5656         * libio/iogetwline.c: Likewise.
5657         * libio/iopadn.c: Likewise.
5658         * libio/iopopen.c: Likewise.
5659         * libio/ioseekoff.c: Likewise.
5660         * libio/ioseekpos.c: Likewise.
5661         * libio/iosetbuffer.c: Likewise.
5662         * libio/iosetvbuf.c: Likewise.
5663         * libio/ioungetc.c: Likewise.
5664         * libio/ioungetwc.c: Likewise.
5665         * libio/iovdprintf.c: Likewise.
5666         * libio/iovsprintf.c: Likewise.
5667         * libio/iovsscanf.c: Likewise.
5668         * libio/memstream.c: Likewise.
5669         * libio/obprintf.c: Likewise.
5670         * libio/oldfileops.c: Likewise.
5671         * libio/oldiofclose.c: Likewise.
5672         * libio/oldiofdopen.c: Likewise.
5673         * libio/oldiofopen.c: Likewise.
5674         * libio/oldiopopen.c: Likewise.
5675         * libio/oldstdfiles.c: Likewise.
5676         * libio/putc.c: Likewise.
5677         * libio/setbuf.c: Likewise.
5678         * libio/setlinebuf.c: Likewise.
5679         * libio/stdfiles.c: Likewise.
5680         * libio/strops.c: Likewise.
5681         * libio/vasprintf.c: Likewise.
5682         * libio/vscanf.c: Likewise.
5683         * libio/vsnprintf.c: Likewise.
5684         * libio/vswprintf.c: Likewise.
5685         * libio/wfiledoalloc.c: Likewise.
5686         * libio/wfileops.c: Likewise.
5687         * libio/wgenops.c: Likewise.
5688         * libio/wmemstream.c: Likewise.
5689         * libio/wstrops.c: Likewise.
5690         * libio/__fpurge.c: Likewise.
5691         * libio/__fsetlocking.c: Likewise.
5692         * assert/assert.c: Likewise.
5693         * debug/fgets_chk.c: Likewise.
5694         * debug/fgets_u_chk.c: Likewise.
5695         * debug/fread_chk.c: Likewise.
5696         * debug/fread_u_chk.c: Likewise.
5697         * debug/gets_chk.c: Likewise.
5698         * debug/obprintf_chk.c: Likewise.
5699         * debug/vasprintf_chk.c: Likewise.
5700         * debug/vdprintf_chk.c: Likewise.
5701         * debug/vsnprintf_chk.c: Likewise.
5702         * debug/vsprintf_chk.c: Likewise.
5703         * malloc/mtrace.c: Likewise.
5704         * misc/error.c: Likewise.
5705         * misc/syslog.c: Likewise.
5706         * stdio-common/asprintf.c: Likewise.
5707         * stdio-common/fxprintf.c: Likewise.
5708         * stdio-common/getw.c: Likewise.
5709         * stdio-common/isoc99_fscanf.c: Likewise.
5710         * stdio-common/isoc99_scanf.c: Likewise.
5711         * stdio-common/isoc99_vfscanf.c: Likewise.
5712         * stdio-common/isoc99_vscanf.c: Likewise.
5713         * stdio-common/isoc99_vsscanf.c: Likewise.
5714         * stdio-common/printf-prs.c: Likewise.
5715         * stdio-common/printf_fp.c: Likewise.
5716         * stdio-common/printf_fphex.c: Likewise.
5717         * stdio-common/printf_size.c: Likewise.
5718         * stdio-common/putw.c: Likewise.
5719         * stdio-common/scanf.c: Likewise.
5720         * stdio-common/sprintf.c: Likewise.
5721         * stdio-common/tmpfile.c: Likewise.
5722         * stdio-common/vfprintf.c: Likewise.
5723         * stdio-common/vfscanf.c: Likewise.
5724         * stdlib/strfmon_l.c: Likewise.
5725         * sunrpc/openchild.c: Likewise.
5726         * sunrpc/xdr_stdio.c: Likewise.
5727         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5728         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5729
5730 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5731
5732         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5733
5734         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5735         in the third column, to generate for the shared library an IFUNC
5736         that uses _dl_vdso_vsym.
5737         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5738         * Makeconfig (object-suffixes-noshared): New variable.
5739
5740         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5741         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5742         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5743         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5744
5745         [BZ #14132]
5746         * include/sys/time.h (__gettimeofday): Remove macro.
5747         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5748         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5749         Remove INTDEF.
5750         (__gettimeofday): Add libc_hidden_def.
5751         (gettimeofday): Add libc_hidden_weak.
5752         * sysdeps/mach/gettimeofday.c: Likewise.
5753         * sysdeps/posix/gettimeofday.c: Likewise.
5754         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5755         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5756         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5757         (__gettimeofday_internal): Remove strong_alias.
5758         (__gettimeofday): Add libc_hidden_def.
5759         (gettimeofday): Add libc_hidden_weak.
5760         * sysdeps/unix/syscalls.list (gettimeofday):
5761         Remove __gettimeofday_internal alias.
5762
5763 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5764             H.J. Lu  <hongjiu.lu@intel.com>
5765
5766         [BZ #12495]
5767         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5768         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5769         (largebin_index_32_big): New.
5770         (largebin_index): Use it for 16-byte alignment.
5771         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5772         correction with front_misalign.
5773
5774 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5775
5776         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5777         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5778         Likewise.
5779         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5780         Likewise.
5781         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5782         Likewise.
5783         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5784         Likewise.
5785         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5786         Likewise.
5787         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5788         Likewise.
5789         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5790         Likewise.
5791         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5792         Likewise.
5793         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5794         Likewise.
5795         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5796         Likewise.
5797         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5798         Likewise.
5799         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5800         Likewise.
5801
5802         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5803         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5804
5805 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5806
5807         [BZ #10846]
5808         [BZ #14036]
5809         * math/libm-test.inc (exp_test): Add test from bug 14036.
5810         (pow_test): Add test from bug 10846.
5811
5812         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5813         and other flags.
5814         (special_function): Do not include flags in test name.
5815         (parse_args): Likewise.
5816         * sysdeps/i386/fpu/libm-test-ulps: Update.
5817         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5818         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5819         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5821
5822         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5823         exceptions.
5824         * math/libm-test.inc ("Philosophy"): Update comment about
5825         exception testing.
5826         (UNDERFLOW_EXCEPTION): New macro.
5827         (UNDERFLOW_EXCEPTION_OK): Likewise.
5828         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5829         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5830         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5831         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5832         (INVALID_EXCEPTION_OK): Update value.
5833         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5834         (OVERFLOW_EXCEPTION_OK): Likewise.
5835         (IGNORE_ZERO_INF_SIGN): Likewise.
5836         (test_exceptions): Handle underflow exceptions.
5837         (acos_test): Update for underflow exception expectations.
5838         (cexp_test): Likewise.
5839         (clog_test): Likewise.
5840         (clog10_test): Likewise.
5841         (csqrt_test): Likewise.
5842         (ctan_test): Likewise.
5843         (ctanh_test): Likewise.
5844         (exp_test): Likewise.
5845         (exp10_test): Likewise.
5846         (exp2_test): Likewise.
5847         (expm1_test): Likewise.
5848         (fma_test): Likewise.
5849         (j0_test): Likewise.
5850         (jn_test): Likewise.
5851         (nexttoward_test): Likewise.
5852         (pow_test): Likewise.
5853         (scalbn_test): Likewise.
5854         (scalbln_test): Likewise.
5855         (tan_test): Likewise.
5856         (y1_test): Likewise.
5857         * sysdeps/i386/fpu/libm-test-ulps: Update.
5858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5859
5860 2012-05-23  David S. Miller  <davem@davemloft.net>
5861
5862         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5863         (__libc_sigaction): Remove unused local variables.
5864
5865 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5866
5867         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5868
5869 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5870
5871         mktime: avoid signed integer overflow
5872         * time/mktime.c (__mktime_internal): Do not mishandle the case
5873         where diff == INT_MIN.
5874
5875         mktime: simplify computation of average
5876         * time/mktime.c (ranged_convert): Use new time_t_avg function
5877         instead of rolling our own (probably-slower) code.
5878
5879         mktime: do not assume signed right shift propagates sign bit
5880         * time/mktime.c (isdst_differ): New static function.
5881         (__mktime_internal): No need to normalize tm_isdst now.
5882         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5883         tm_isdst values.
5884
5885         mktime: merge another wrapv change from gnulib
5886         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5887         from some compilers.
5888
5889         mktime: remove incorrect attempt at unusual arithmetics
5890         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5891         The code didn't really work on such machines anyway.
5892         (TYPE_MINIMUM): Assume two's complement.
5893         (twos_complement_arithmetic): Verify that long_int and time_t
5894         are two's complement (or unsigned, in the latter case).
5895
5896         mktime: check signed shifts on long_int and time_t, too
5897         * time/mktime.c (SHR): Check that shifts work as desired
5898         on the types long_int and time_t too, as SHR is used on
5899         such types.
5900
5901         mktime: do not assume 'long' is wide enough
5902         * time/mktime.c (verify): Move decl up.
5903         (long_int): New type.
5904         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5905         to remove assumption in the code that 'long' is wide enough to
5906         store year values.  This assumption is not true on x32 and on
5907         some non-glibc platforms.
5908
5909         mktime: merge wrapv change from gnulib
5910         * time/mktime.c (WRAPV): New macro.
5911         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5912         (guess_time_tm, __mktime_internal): Do not assume that signed
5913         integer overflow wraps around; modern compilers generate code
5914         where this assumption is no longer valid.
5915
5916 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5917
5918         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5919         Replace "jmp L(pseudo_end)" with "ret".
5920         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5921         Likewise.
5922
5923 2012-05-23  Andreas Jaeger  <aj@suse.de>
5924
5925         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5926         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5927
5928 2012-05-23  Andreas Jaeger  <aj@suse.de>
5929             Maximilian Attems  <max@stro.at>
5930
5931         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5932         New macros.
5933
5934 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5935
5936         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5937         code so that pseudo_end is just ret and the stack pointer is
5938         correct also for static library in error case.
5939
5940 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5941
5942         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5943         move to syscalls.list.
5944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5948
5949         * manual/install.texi (Running make install): Do not mention Linux
5950         kernel version for which pt_chown is not needed.
5951         (Linux): Do not mention problems with nscd with 2.0 kernels.
5952         * INSTALL: Regenerated.
5953
5954 2012-05-23  Andreas Jaeger  <aj@suse.de>
5955
5956         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5957         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5958         macro.
5959         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5960         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5961         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5962         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5963         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5964         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5965         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5966         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5967         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5968         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5969         * sysdeps/unix/sysv/linux/bits/in.h
5970         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5971
5972 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5973
5974         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5975         (PREPARE_VERSION): Just use assert instead, it will be elided
5976         under [NDEBUG] anyway.
5977
5978 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5979
5980         * sysdeps/unix/sysv/linux/Makefile: Include
5981         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5982         (sysdep_routines): Remove sysctl.
5983         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5984         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5985         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5986         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5987         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5988
5989 2012-05-22  Andreas Jaeger  <aj@suse.de>
5990
5991         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5992         that pseudo_end is just ret and the stack pointer is correct also
5993         for static library in error case.
5994
5995 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5996
5997         [BZ #14122]
5998         * nss/nsswitch.c (defconfig_entries): New variable.
5999         (__nss_database_lookup): Don't leak defconfig entries.
6000         (nss_parse_service_list): Don't leak on error paths.
6001         (free_database_entries): New function.
6002         (free_defconfig): New function.
6003         (free_mem): Move common code to free_database_entries.
6004
6005 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6006
6007         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6008         Add arch_prctl.
6009         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6010
6011         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6012         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6013         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6014         New macro.
6015         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6016         (INTERNAL_SYSCALL_TYPES): Likewise.
6017         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6018         (LOAD_REGS_TYPES_[1-6]): Likewise.
6019         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6020         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6021
6022 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6023
6024         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6025         copysignl for GLIBC_2_0.
6026         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6027         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6028         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6029         logbl for GLIBC_2_0.
6030         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6031         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6032
6033 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6034
6035         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6036         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6037
6038         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6039         Use "neg %eax".
6040
6041         * time/mktime.c: Update copyright years.
6042
6043 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6044
6045         mktime: merge comment-quoting-style change from gnulib
6046         * time/mktime.c: Quote 'like this' in comments.
6047         The GNU coding standards suggest that we no longer quote `like this',
6048         as "`" and "'" are typically rendered asymmetrically nowadays.
6049         The typical gnulib style is to quote 'like this' when quoting
6050         code, and "like this" when quoting English.
6051
6052         * time/mktime.c (compile-command): Add "-I.".
6053
6054         mktime: merge mktime-internal.h change from gnulib
6055         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6056
6057         mktime: merge time_r change from gnulib
6058         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6059
6060         mktime: merge DEBUG change from gnulib
6061         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6062         case system <time.h> has a #define.
6063
6064         mktime: merge <sys/types.h> change from gnulib
6065         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6066         since <time.t> is now guaranteed to define time_t.
6067
6068         mktime: merge HAVE_CONFIG_H change from gnulib
6069         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6070
6071 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6072
6073         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6074         Use "neg %eax".
6075
6076         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6077         __rlim_t cast.
6078         (struct rusage): Use anonymous union to pad each field to
6079         __syscall_slong_t.
6080
6081 2012-05-21  David S. Miller  <davem@davemloft.net>
6082
6083         * Makefules (o-iterator): Remove .s cases.
6084         (compile-command.s): Delete.
6085         (COMPILE.s): Delete.
6086         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6087
6088 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6089
6090         * configure.in (libc_cv_predef_stack_protector): Only consider
6091         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6092         * configure: Regenerated.
6093
6094 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6095
6096         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6097         New macro.  Use R*LP on int and pointer.
6098         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6099         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6100         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6101         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6102
6103         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6104         [__WORDSIZE_TIME64_COMPAT32] instead of
6105         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6106         (struct utmp): Likewise.
6107         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6108         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6109         Renamed to ...
6110         (__WORDSIZE_TIME64_COMPAT32): This.
6111         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6112         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6113         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6114         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6115         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6116         (__WORDSIZE_TIME64_COMPAT32): New macro.
6117
6118 2012-05-21  Andreas Jaeger  <aj@suse.de>
6119
6120         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6121         only if [SHARED]. Add prototype for __wcschr_ia32.
6122
6123 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6124
6125         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6126         of %rbp unmolested in the jmp_buf while mangling the low bits.
6127         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6128         unmolested high bits of %rbp while demangling the low bits.
6129         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6130
6131 2012-05-21  Andreas Jaeger  <aj@suse.de>
6132
6133         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6134         * sunrpc/svc_simple.c: Use it for registerrpc.
6135         * sunrpc/xcrypt.c: Use it for passwd2des.
6136
6137         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6138
6139 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6140
6141         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6142         Don't define if [__SYSCALL_WORDSIZE != 32].
6143         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6144         New macro.
6145
6146 2012-05-21  Bruno Haible  <bruno@clisp.org>
6147             Andreas Jaeger  <aj@suse.de>
6148
6149         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6150         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6151         inptr and inend for must_buffer_ch.
6152         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6153         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6154         * stdio-common/Makefile (tests): Remove bug15.
6155         (bug15-ENV): Remove macro.
6156         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6157         anymore.
6158
6159 2012-05-19  Andreas Jaeger  <aj@suse.de>
6160             Roland McGrath  <roland@hack.frob.com>
6161
6162         * manual/contrib.texi: Completely rewritten. It contains now an
6163         alphabetical list of contributors and their contributions.
6164
6165 2012-05-21  Richard Henderson  <rth@twiddle.net>
6166
6167         * misc/getauxval.c (__getauxval): Use unsigned long int.
6168         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6169         (getauxval): Use unsigned long int.
6170
6171 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6172
6173         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6174
6175 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6176
6177         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6178         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6179         __alignof__ (long double).
6180
6181 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6182
6183         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6184
6185 2012-05-20  Richard Henderson  <rth@twiddle.net>
6186
6187         * misc/getauxval.c: New file.
6188         * misc/sys/auxv.h: New file.
6189         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6190         (routines): Add getauxval.
6191         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6192         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6193         * elf/dl-sysdep.c (_dl_auxv): Remove.
6194         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6195         * elf/dl-support.c (_dl_auxv): New variable.
6196         (_dl_aux_init): Initialize it.
6197         * manual/startup.texi (Auxiliary Vector): New node.
6198         * sysdeps/generic/bits/hwcap.h: New file.
6199         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6200         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6201         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6202         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6203         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6204         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6206         Update.
6207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6208         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6209         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6210         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6211         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6212         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6215
6216 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6217
6218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6219
6220 2012-05-19  David S. Miller  <davem@davemloft.net>
6221
6222         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6223
6224 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6225
6226         [BZ #14123]
6227         * math/s_ccosh.c: Include <float.h>
6228         (__ccosh): Avoid internal overflow calculating sinh and cosh
6229         values before multiplying by sin and cos values.
6230         * math/s_ccoshf.c: Likewise.
6231         * math/s_ccoshl.c: Likewise.
6232         * math/s_csin.c: Likewise.
6233         * math/s_csinf.c: Likewise.
6234         * math/s_csinl.c: Likewise.
6235         * math/s_csinh.c: Likewise.
6236         * math/s_csinhf.c: Likewise.
6237         * math/s_csinhl.c: Likewise.
6238         * math/libm-test.inc (ccos_test): Add more tests.
6239         (ccosh_test): Likewise.
6240         (csin_test): Likewise.
6241         (csinh_test): Likewise.
6242         * sysdeps/i386/fpu/libm-test-ulps: Update.
6243         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6244
6245 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6246
6247         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6248         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6249
6250         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6251
6252 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6253
6254         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6255         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6256         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6257         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6258         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6259         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6260         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6261         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6262         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6263         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6264         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6265         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6266         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6267         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6268         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6269         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6270         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6271         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6272         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6273         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6274         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6275         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6276         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6277         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6278         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6279         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6280         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6281         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6282         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6283         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6284         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6285
6286 2012-05-18  Andreas Jaeger  <aj@suse.de>
6287
6288         * csu/.gitignore: Delete.
6289
6290 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6291
6292         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6293         (timex): Use __syscall_slong_t.
6294
6295 2012-05-18  Andreas Jaeger  <aj@suse.de>
6296             Carlos O'Donell  <carlos_odonell@mentor.com>
6297
6298         * manual/install.texi (Configuring and compiling): Update
6299         description about files modified in the source directory.
6300         * INSTALL: Regenerated.
6301
6302 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6303
6304         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6305         value.  Use "or" to set return value to -1.
6306         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6307         negate return value.
6308
6309 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6310
6311         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6312         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6313         failure if the compiler has Graphite support disabled.
6314         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6315         Likewise.
6316         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6317         CFLAGS-memmove.c): Likewise.
6318         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6319         Likewise.
6320
6321 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6322
6323         * sysdeps/x86_64/x32/_itoa.h: New file.
6324
6325         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6326         getdents system call only if kernel and user dirents have the
6327         same d_ino and d_off.
6328
6329         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6330         LLONG_MAX != LONG_MAX.
6331         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6332         (_fitoa_word): Likewise.
6333
6334         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6335         years.
6336         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6337         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6338         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6339
6340         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6341         include <bits/wordsize.h>.  Check __x86_64__ instead of
6342         __WORDSIZE.
6343         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6344         if __x86_64__ is defined.  Use anonymous union on fpstate.
6345
6346         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6347         anonymous union.
6348
6349 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6350
6351         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6352         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6353         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6354         Refer to _rtld_local_ro instead of _rtld_global_ro.
6355         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6356         Likewise.
6357         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6358         Likewise.
6359         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6360         Likewise.
6361         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6362         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6363         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6364
6365         * sysdeps/powerpc/powerpc32/dl-machine.c
6366         (__elf_machine_runtime_setup) [PROF]: Don't reference
6367         _dl_prof_resolve.
6368
6369 2012-05-18  Andreas Jaeger  <aj@suse.de>
6370
6371         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6372         function only available for GCCs before 3.4 since GCC 3.4
6373         introduced a builtin.
6374         (lrint): Likewise.
6375         (llrintf): Likewise.
6376         (llrint): Likewise.
6377         (fmaxf): Likewise.
6378         (fmax): Likewise.
6379         (fminf): Likewise.
6380         (fmin): Likewise.
6381         (rint): Likewise.
6382         (rintf): Likewise.
6383         (nearbyint): Likewise.
6384         (nearbyintf): Likewise.
6385         (ceil): Likewise.
6386         (ceilf): Likewise.
6387         (floor): Likewise.
6388         (floorf): Likewise.
6389
6390 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6393         on both fields and cast pointer to __syscall_ulong_t.
6394
6395         * bits/types.h (__fsword_t): New type.
6396         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6397         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6398         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6399         (__FSWORD_T_TYPE): Likewise.
6400         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6401         (__FSWORD_T_TYPE): Likewise.
6402         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6403         (__FSWORD_T_TYPE): Likewise.
6404         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6405         (__FSWORD_T_TYPE): Likewise.
6406         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6407         __SWORD_TYPE with __fsword_t.
6408         (statfs64): Likewise.
6409
6410 2012-05-17  David S. Miller  <davem@davemloft.net>
6411
6412         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6413
6414 2012-05-17  Andreas Jaeger  <aj@suse.de>
6415
6416         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6417         warning.
6418
6419 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6420
6421         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6422
6423 2012-05-17  Andreas Jaeger  <aj@suse.de>
6424
6425         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6426         when it is used.
6427
6428 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6429
6430         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6431
6432 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6433
6434         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6435         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6436
6437 2012-05-17  Andreas Jaeger  <aj@suse.de>
6438             Carlos O'Donell  <carlos_odonell@mentor.com>
6439
6440         [BZ #14059]
6441         * sysdeps/x86_64/multiarch/init-arch.h
6442         (bit_YMM_Usable): Rename to...
6443         (bit_AVX_Usable): ... this.
6444         (bit_FMA4_Usable): New macro.
6445         (bit_XMM_state): New macro.
6446         (bit_YMM_state): New macro.
6447         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6448         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6449         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6450         (CPUID_OSXSAVE): New macro.
6451         (CPUID_AVX): New macro.
6452         (CPUID_FMA4): New macro.
6453         (index_YMM_Usable): Rename to...
6454         (index_AVX_Usable): ... this.
6455         (HAS_AVX): Use HAS_ARCH_FEATURE.
6456         (HAS_FMA4): Likewise.
6457         (HAS_YMM_USABLE): Remove.
6458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6459         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6460         are present.
6461         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6462         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6463         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6464         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6465         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6466
6467 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6468
6469         * math/libm-test.c: Support platforms without multiple rounding modes.
6470         * math/bug-nextafter.c: Support platforms without FP exceptions.
6471         * math/bug-nexttoward.c: Likewise.
6472         * math/test-fenv.c: Likewise.
6473         * math/test-misc.c: Likewise.
6474         * stdlib/bug-getcontext.c: Likewise.
6475
6476 2012-05-17  Andreas Jaeger  <aj@suse.de>
6477
6478         * manual/examples/search.c (critter_cmp): Change signature to
6479         avoid warnings.
6480         * manual/string.texi (Collation Functions): Likewise.
6481
6482 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6483
6484         * bits/types.h: Fold copyright years.
6485         * bits/typesizes.h: Likewise.
6486         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6487         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6488         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6489         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6490         * time/time.h: Likewise.
6491
6492 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6493
6494         [BZ #208]
6495         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6496         in instead of returning them.  Return void.
6497         (__libc_mallinfo): Accumulate over all arenas.
6498         (__malloc_stats): Adjust for change in int_mallinfo interface.
6499
6500 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6501
6502         [BZ #10375]
6503         * configure.in (NM): Add AC_CHECK_TOOL for it.
6504         (libc_extra_cflags): New substituted variable.
6505         Check for -fstack-protector being used implicitly.
6506         * configure: Regenerated.
6507         * config.make.in (config-extra-cflags): New variable,
6508         gets @libc_extra_cflags@.
6509         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6510
6511         [BZ #10375]
6512         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6513         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6514         * configure: Regenerated.
6515         * config.make.in (CPPUNDEFS): New substituted variable.
6516         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6517         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6518         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6519
6520 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6521
6522         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6523         (mq_attr): Use __syscall_slong_t.
6524
6525 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6526
6527         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6528         Check __x86_64__ instead of __WORDSIZE.
6529         (_STAT_VER_LINUX): Likewise.
6530         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6531         __syscall_ulong_t and __syscall_slong_t.
6532         (stat64): Likewise.
6533
6534 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6535
6536         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6537
6538 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6539
6540         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6541
6542 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6543
6544         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6545         __syscall_ulong_t.
6546
6547         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6548         include <bits/wordsize.h>.  Check __x86_64__ instead of
6549         __WORDSIZE.
6550         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6551         defined.
6552         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6553
6554         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6555         include <bits/wordsize.h>.  Check __x86_64__ instead of
6556         __WORDSIZE.
6557         (user_regs_struct): Use "__extension__ unsigned long long"
6558         instead of "unsigned long" if __x86_64__ is defined.
6559         (user): Likewise.  Pad after pointer field if __ILP32__ is
6560         defined.
6561
6562 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6563
6564         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6565         versions 5 to 9.
6566         * configure: Regenerated.
6567         * manual/install.texi (texinfo): Increase version requirement to
6568         4.5 or later.
6569         * INSTALL: Regenerated.
6570
6571         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6572
6573 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6574
6575         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6576
6577         * sysdeps/x86_64/x32/ffs.c: New file.
6578
6579         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6580         __syscall_ulong_t.
6581         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6582         defined.  Use __syscall_ulong_t.
6583         (shminfo): Use __syscall_ulong_t.
6584         (shm_info): Likewise.
6585
6586         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6587         __syscall_ulong_t.
6588
6589         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6590         <bits/wordsize.h>.
6591         (msgqnum_t): Use __syscall_ulong_t.
6592         (msglen_t): Likewise.
6593         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6594         __syscall_ulong_t.
6595
6596         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6597         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6598
6599         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6600
6601         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6602         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6603
6604         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6605         __syscall_slong_t.
6606
6607         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6608         include <bits/wordsize.h>.  Check __x86_64__ instead of
6609         __WORDSIZE.
6610
6611         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6612         "unsigned long long int" if __x86_64__ is defined.
6613         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6614
6615         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6616         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6617         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6618
6619         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6620         <stdint.h>.
6621         (GET_PC): Cast to uintptr_t first.
6622         (GET_FRAME): Likewise.
6623         (GET_STACK): Likewise.
6624
6625         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6626         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6627         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6628         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6629         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6630         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6631         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6632         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6633         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6634         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6635         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6636         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6637         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6638         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6639         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6640         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6641         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6642         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6643         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6644         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6645         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6646         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6647         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6648         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6649         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6650         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6651         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6652         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6653         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6654
6655 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6656
6657         * Makerules (+depfiles): Also collect depfiles from .oS in
6658         $(extra-objs).
6659         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6660         .oS, $(libnldbl-routines)).
6661
6662         * Makerules (native-compile-mkdep-flags): Define.
6663         * sunrpc/Makefile (extra-objs): Add $(addprefix
6664         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6665         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6666         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6667         calling $(make-target-directory).
6668
6669 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6670
6671         * bits/types.h (__snseconds_t): Removed.
6672         * time/time.h (struct timespec): Replace __snseconds_t with
6673         __syscall_slong_t.
6674         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6675         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6676         Likewise.
6677         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6678         (__SNSECONDS_T_TYPE): Likewise.
6679         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6680         (__SNSECONDS_T_TYPE): Likewise.
6681         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6682         (__SNSECONDS_T_TYPE): Likewise.
6683
6684 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6685
6686         * sysdeps/mach/hurd/bits/typesizes.h
6687         (__SYSCALL_SLONG_TYPE): New macro.
6688         (__SYSCALL_ULONG_TYPE): Likewise.
6689
6690 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         * bits/types.h (__syscall_slong_t): New type.
6693         (__syscall_ulong_t): Likewise.
6694
6695         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6696         (__SYSCALL_ULONG_TYPE): Likewise.
6697         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6698         (__SYSCALL_SLONG_TYPE): Likewise.
6699         (__SYSCALL_ULONG_TYPE): Likewise.
6700         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6701         (__SYSCALL_SLONG_TYPE): Likewise.
6702         (__SYSCALL_ULONG_TYPE): Likewise.
6703         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6704         (__SYSCALL_SLONG_TYPE): Likewise.
6705         (__SYSCALL_ULONG_TYPE): Likewise.
6706
6707 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6708
6709         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6710         Add sigaltstack-offsets.sym.
6711         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6712         <sigaltstack-offsets.h>.
6713         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6714         longjmp_msg pointer.
6715         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6716         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6717         signal stack.
6718         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6719
6720 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6721
6722         * elf/stackguard-macros.h: Remove file.
6723         * sysdeps/generic/stackguard-macros.h: New file.
6724         * sysdeps/i386/stackguard-macros.h: Likewise.
6725         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6726         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6727         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6728         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6729         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6730         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6731         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6732         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6733         <elf/stackguard-macros.h>.
6734
6735         [BZ #14109]
6736         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6737         __aligned__ in attribute.
6738         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6739         (gregset_t): Likewise.
6740
6741 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6742
6743         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6744         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6745         * sysdeps/x86_64/x32/Implies-after: New file.
6746
6747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6748
6749         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6750         and access return value for _dl_profile_fixup.  Use R10_LP to
6751         load frame size.
6752
6753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6754
6755         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6756
6757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6758
6759         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6760         * sysdeps/x86_64/x32/sysdep.h: New file.
6761
6762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6763
6764         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6765         * sysdeps/x86_64/setjmp.S: Likewise.
6766
6767 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6768
6769         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6770         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6771         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6772         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6773         remove unused global constant.
6774
6775 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6776
6777         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6778         include of <not-cancel.h>.
6779
6780 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6781
6782         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6783
6784 2012-05-15  Jeff Law  <law@redhat.com>
6785             Andreas Jaeger  <aj@suse.de>
6786
6787         [BZ #13594]
6788         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6789         out from...
6790         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6791         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6792         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6793         code changing __hst_map_handle.map.
6794
6795 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6796
6797         * configure.in (sysnames): Look for Implies-before and Implies-after
6798         files.
6799         * configure: Regenerated.
6800
6801 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6802
6803         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6804         8-byte data alignment with LP_SIZE alignment.
6805
6806 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6807
6808         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6809         into R10_LP.
6810
6811 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6812
6813         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6814
6815 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6816
6817         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6818         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6819         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6820         Likewise.
6821         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6822
6823 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6824
6825         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6826         (stackinfo_sub_sp): Likewise.
6827
6828 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6829
6830         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6831         RAX_LP.
6832
6833 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6834
6835         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6836         into R*_LP.
6837
6838 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6839
6840         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6841         sizes into R*_LP.
6842
6843 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6844
6845         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6846
6847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6848
6849         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6850         into R11_LP and load __x86_64_shared_cache_size_half into
6851         R8_LP.
6852
6853 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6854
6855         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6856         R8_LP.
6857
6858 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6859
6860         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6861         logb for POWER7.
6862         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6863         logbf for POWER7.
6864         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6865         logbl for POWER7.
6866         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6867         powerpc32/power7/fpu/s_logb.c via #include.
6868         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6869         powerpc32/power7/fpu/s_logbf.c via #include.
6870         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6871         powerpc32/power7/fpu/s_logbl.c via #include.
6872
6873 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6874
6875         * README.libm: Remove file.
6876
6877 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6878
6879         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6880         count for x32.  Use R*_LP and omit operand-size suffix.
6881
6882 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6883
6884         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6885         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6886         * sysdeps/x86_64/x32/shlib-versions: New file.
6887
6888 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6889
6890         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6891         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6892         Use _dl_fatal_printf instead.
6893
6894 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6895
6896         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6897         set if not set by the user.  Do not allow for being unset.
6898         * sysdeps/unix/sysv/linux/configure: Regenerated.
6899
6900 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6901
6902         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6903         the `q' suffix from lea and replace .quad with ASM_ADDR.
6904
6905 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6906
6907         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6908         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6909         instead of $17.
6910         (PTR_DEMANGLE): Likewise.
6911
6912 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6913
6914         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6915         (LP_OP): Likewise.
6916         (ASM_ADDR): Likewise.
6917         (RAX_LP): Likewise.
6918         (RBP_LP): Likewise.
6919         (RBX_LP): Likewise.
6920         (RCX_LP): Likewise.
6921         (RDI_LP): Likewise.
6922         (RSI_LP): Likewise.
6923         (RSP_LP): Likewise.
6924         (R8_LP): Likewise.
6925         (R9_LP): Likewise.
6926         (R10_LP): Likewise.
6927         (R10_LP): Likewise.
6928         (R11_LP): Likewise.
6929         (R12_LP): Likewise.
6930         (R13_LP): Likewise.
6931         (R14_LP): Likewise.
6932         (R15_LP): Likewise.
6933
6934 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6935
6936         * sysdeps/x86_64/x32/dl-machine.h: New file.
6937
6938 2012-05-14  Andreas Jaeger  <aj@suse.de>
6939
6940         * manual/Makefile (subdir): Remove export of subdir.
6941         (all): Remove target.
6942         (.PHONY): Remove all from list.
6943         (mkinstalldirs): Remove.
6944         (.PHONY): Remove installdirs from list.
6945         ($(inst_infodir)/libc.info): Use make-target-directory.
6946         (installdirs): Remove.
6947         (subdir_%): Remove.
6948         (glibc-targets): Remove.
6949         (lib): Remove.
6950         (stubs): Remove.
6951         ($(objpfx)stubs ../po/manual.pot): Remove.
6952         ($(objpfx)stamp%): Remove.
6953         (make-target-directory): Remove.
6954         (subdir_install): Remove.
6955         (routines): Remove.
6956         (aux): Remove.
6957         (sources): Remove.
6958         (objects): Remove.
6959         (headers): Remove.
6960
6961         [BZ #13750]
6962         * manual/.gitignore: Remove, it's not needed anymore.
6963         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6964         all files in it.
6965         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6966         directory.
6967         (texis): Renamed to $(objpfx)texis.
6968         (texis-path): New, contains path to generated files.
6969         (chapters.%): Use texis-path for complete path, add extra argument
6970         libc-texinfo.sh.
6971         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6972         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6973         (summary,texi, stamp-summary): Use complete path of
6974         files. Generate files in build dir.
6975         (dir-add.texi): Build in build dir.
6976         (libm-err.texi,stamp-libm-err): Likewise.
6977         (version.texi, stamp-version): Likewise.
6978         (.%c.texi): Likewise.
6979         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6980         (mostlyclean): Remove target.
6981         (realclean): Remove target.
6982         (generated): Add new variable with contents from mostlyclean and
6983         realclean, remove entries duplicated in common-mostlyclean, add
6984         stamp-libm-err and stamp-version.
6985         (generated-dirs): Add libc directory.
6986         ($(inst_infodir)/libc.info): Install files from build dir.
6987
6988         * manual/install.texi (Configuring and compiling): Adjust since
6989         the info files are not part of the tar ball anymore.
6990
6991 2012-05-14  Andreas Jaeger  <aj@suse.de>
6992
6993         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6994         variable.
6995
6996 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6997
6998         [BZ #13717]
6999         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7000         to 2.2.0 where earlier.
7001         * sysdeps/unix/sysv/linux/configure: Regenerated.
7002         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7003         Remove conditional code.
7004         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7005         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7006         Remove conditional code.
7007         [!__NR_lchown]: Likewise.
7008         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7009         [__NR_lchown]: Likewise.
7010         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7011         comment referencing __ASSUME_LCHOWN_SYSCALL.
7012         * sysdeps/unix/sysv/linux/i386/sigaction.c
7013         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7014         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7015         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7016         Remove conditional code.
7017         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7018         (__protocol_available): Remove #if 0 code.
7019         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7020         conditional code.
7021         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7022         * sysdeps/unix/sysv/linux/kernel-features.h
7023         (__ASSUME_GETCWD_SYSCALL): Don't define.
7024         (__ASSUME_REALTIME_SIGNALS): Likewise.
7025         (__ASSUME_PREAD_SYSCALL): Likewise.
7026         (__ASSUME_PWRITE_SYSCALL): Likewise.
7027         (__ASSUME_POLL_SYSCALL): Likewise.
7028         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7029         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7030         non-SPARC.
7031         (__ASSUME_SIOCGIFNAME): Don't define.
7032         (__ASSUME_MSG_NOSIGNAL): Likewise.
7033         (__ASSUME_SENDFILE): Define unconditionally.
7034         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7035         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7036         conditional code.
7037         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7038         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7039         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7040         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7041         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7042         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7043         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7045         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7046         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7048         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7049         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7051         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7052         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7054         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7055         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7057         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7058         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7060         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7061         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7063         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7064         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7066         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7067         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7068         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7069         Remove conditional code.
7070         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7071         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7072         Remove conditional code.
7073         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7074         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7075         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7076         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7077         Remove conditional code.
7078         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7079         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7080         Remove conditional code.
7081         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7082         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7083         Remove conditional code.
7084         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7085         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7086         Remove conditional code.
7087         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7088         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7089         Remove conditional code.
7090         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7091         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7092         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7093         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7094         * sysdeps/unix/sysv/linux/sigaction.c
7095         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7096         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7097         * sysdeps/unix/sysv/linux/sigpending.c
7098         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7099         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7100         * sysdeps/unix/sysv/linux/sigprocmask.c
7101         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7102         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7103         * sysdeps/unix/sysv/linux/sigsuspend.c
7104         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7105         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7106         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7107         (__libc_missing_rt_sigs): Remove.
7108         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7109         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7110         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7111         Remove conditional code.
7112         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7113         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7114         return 1.
7115         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7116         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7117         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7118         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7119
7120 2012-05-14  Andreas Jaeger  <aj@suse.de>
7121
7122         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7123         it's not used in glibc.
7124         (__coshm1): Likewise.
7125         (__acosh1p): Likewise.
7126         (__sgn): Likewise.
7127
7128         * manual/string.texi (Copying and Concatenation): Add missing
7129         variable in concat example.
7130         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7131
7132 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7133
7134         [BZ #14103]
7135         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7136         __builtin_clzl with __builtin_clzll.
7137
7138 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7139
7140         [BZ #14104]
7141         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7142         libc_freeres_ptr.
7143
7144 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7145
7146         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7147         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7148         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7149         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7150
7151 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7152
7153         * NEWS: Update ia64 info.
7154
7155 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7156
7157         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7158         used as bcopy.
7159
7160 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7161
7162         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7163         * sysdeps/unix/syscalls.list (dup3): Likewise.
7164         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7165         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7166
7167 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7168
7169         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7170         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7171
7172 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7173
7174         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7175         thread pointer.
7176         (TLS_IE): Use mov/add instead of movq/addq to load thread
7177         pointer.
7178         (TLS_GD_PREFIX): New.
7179         (TLS_GD): Use it.
7180
7181 2012-05-11  David S. Miller  <davem@davemloft.net>
7182
7183         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7184         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7185         (_FPU_SETCW): Likewise.
7186
7187 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7188
7189         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7190         is 32-byte aligned.
7191
7192 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7193
7194         [BZ #11837]
7195         * iconvdata/gb18030.c: Update tables.
7196         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7197         characters specially.
7198         (BODY for TO_LOOP): Add encoding of missing ranges.
7199
7200 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7201
7202         [BZ #13673]
7203         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7204         * sysdeps/mach/hurd/dup3.c: Likewise.
7205         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7206         * sysdeps/powerpc/memmove.c:: Likewise.
7207
7208 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7209
7210         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7211         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7212
7213 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7214
7215         * elf/elf.h (R_X86_64_RELATIVE64): New.
7216         (R_X86_64_NUM): Updated.
7217         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7218         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7219         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7220         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7221         tst-quad1pie tst-quad2pie
7222         (modules-names): Add tst-quadmod1 tst-quadmod2.
7223         ($(objpfx)tst-quad1): New dependency.
7224         ($(objpfx)tst-quad2): Likewise.
7225         ($(objpfx)tst-quad1pie): Likewise.
7226         ($(objpfx)tst-quad2pie): Likewise.
7227         * sysdeps/x86_64/tst-quad1.c: New file.
7228         * sysdeps/x86_64/tst-quad1pie.c: New file.
7229         * sysdeps/x86_64/tst-quad2.c: Likewise.
7230         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7231         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7232         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7233         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7234         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7235
7236 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7237
7238         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7239         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7240         * streams/stropts.h (t_scalar_t): Define type.
7241
7242         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7243         (_PATH_PRESERVE): Set to "/var/lib".
7244         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7245
7246         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7247         instead of int.
7248
7249         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7250         if __dir_mkfile succeeded.
7251
7252         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7253         checking for _hurd_dtablesize.  Unlock it right after having
7254         finished _hurd_dtable allocation.
7255
7256 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7257
7258         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7259         * sysdeps/mach/hurd/configure: Regenerated.
7260         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7261         special-casing to...
7262         * sysdeps/gnu/configure.in: ... this new file.
7263         * sysdeps/unix/sysv/linux/configure: Regenerated.
7264         * sysdeps/gnu/configure: New generated file.
7265
7266         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7267         for Linux: use nsec instead of usec, as well as:
7268         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7269         members of type struct timespec.
7270         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7271         New macros.
7272         (struct stat64): Likewise.
7273         (_STATBUF_ST_NSEC): New macro.
7274         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7275
7276         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7277         __strtoul_internal rather than strtoul.
7278
7279 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7280
7281         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7282         and reject them.
7283
7284 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7285
7286         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7287         which preserves existing values.
7288         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7289
7290 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7291
7292         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7293         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7294         greater than FD_SETSIZE.
7295
7296 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7297
7298         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7299         allocated, call __vm_protect to finish enabling the existing space, and
7300         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7301         allocate the remainder.
7302
7303 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7304
7305         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7306         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7307
7308 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7309
7310         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7311         sysdeps/mach/hurd/readlink.c.
7312
7313         * posix/tst-sysconf.c (posix_options): Only use
7314         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7315         _POSIX_SYNCHRONIZED_IO when they are defined
7316         * sysdeps/mach/hurd/bits/posix_opt.h:
7317         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7318         (_XOPEN_REALTIME): Undefine macro.
7319         (_XOPEN_REALTIME_THREADS): Undefine macro.
7320         (_XOPEN_SHM): Undefine macro.
7321         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7322         macro to -1.
7323         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7324         macro to -1.
7325         (_POSIX_ASYNC_IO): Undefine macro.
7326         (_POSIX_PRIORITIZED_IO): Undefine macro.
7327         (_POSIX_SPIN_LOCKS): Define macro to -1.
7328
7329         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7330         SA_NODEFER, SA_RESETHAND.
7331         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7332         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7333         F_DUPFD_CLOEXEC.
7334
7335 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7336
7337         * elf/Makefile (pldd-modules): Define unconditionally.
7338
7339 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7340
7341         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7342
7343 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7344
7345         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7346         Return ENOENT when name is empty.
7347         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7348
7349 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7350
7351         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7352
7353         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7354
7355 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7356
7357         Fix mlock in all cases except non-readable pages.
7358         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7359         instead of VM_PROT_ALL as parameter to __vm_wire function.
7360
7361         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7362         (__mkdir): When path is `/', just fail with EEXIST.
7363         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7364
7365 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7366
7367         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7368         <sys/uio.h> (for writev).
7369         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7370         and <sys/param.h> (for MIN).
7371
7372 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7373
7374         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7375         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7376         if interrupted.
7377
7378 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7379
7380         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7381         Depend on against $(link-rpcuserlibs).
7382
7383 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7384
7385         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7386         (__libc_stack_end): Do not use attribute_relro.
7387         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7388         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7389         to libthread-provided value.
7390         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7391         attribute_relro.
7392
7393 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7394
7395         [BZ #3748]
7396         * bits/libc-lock.h (__libc_once_get): New macro.
7397         * sysdeps/mach/bits/libc-lock.h: Likewise.
7398         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7399         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7400         instead of using implementation details.
7401
7402         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7403         * libio/freopen.c: Likewise.
7404         * libio/freopen64.c: Likewise.
7405         * misc/syslog.c: Likewise.
7406         * nscd/connections.c: Likewise.
7407         * nscd/netgroupcache.c: Likewise.
7408         * sysdeps/posix/getcwd.c: Likewise.
7409
7410 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7411
7412         * math/w_ilogbf.c: Add #include <limits.h>.
7413
7414 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7415
7416         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7417         path instead of returning without unlocking.
7418
7419         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7420         immediate-write ioctls.
7421         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7422
7423 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7424
7425         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7426         __builtin_frame_address instead of making assumptions about the
7427         location of the return address relative to DATA.  Force early load of
7428         the return address.
7429         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7430         __builtin_frame_address.
7431
7432         dup3 for GNU Hurd.
7433         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7434         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7435         implement dup3 and do some further code clean-ups.
7436         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7437         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7438
7439 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7440
7441         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7442
7443         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7444         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7445         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7446         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7447         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7448         d->port.lock.
7449
7450         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7451         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7452         when handler == SIG_ERR, not when handler != SIG_ERR.
7453
7454 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7455
7456         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7457         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7458         definitions.
7459
7460         accept4 for GNU Hurd.
7461         * include/sys/socket.h (__libc_accept4): New prototype.
7462         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7463         to implement __libc_accept4.
7464         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7465         __libc_accept4.
7466         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7467
7468         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7469         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7470         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7471         signal-defines.sym.
7472
7473 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7474
7475         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7476
7477 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7478
7479         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7480         assertion on O_CLOEXEC flag.
7481         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7482         * hurd/intern-fd.c: Likewise.
7483         * hurd/port2fd.c: Likewise.
7484
7485 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7486
7487         [BZ #3906]
7488         * bits/in.h (IPV6_PKTINFO): Define new macro.
7489         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7490
7491 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7492
7493         [BZ #13954]
7494         [BZ #13955]
7495         [BZ #13956]
7496         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7497         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7498         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7499         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7500         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7501         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7502         * math/libm-test.inc (logb_test) : Additional logb tests.
7503
7504 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7505             Andreas Jaeger  <aj@suse.de>
7506
7507         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7508         * configure: Regenerated.
7509         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7510         * config.make.in (link-obsolete-rpc): New substituted variable.
7511         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7512         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7513         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7514         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7515         so that libc.a contains the symbols.
7516         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7517         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7518         * sunrpc/auth_none.c: Likewise.
7519         * sunrpc/auth_unix.c: Likewise.
7520         * sunrpc/authdes_prot.c: Likewise.
7521         * sunrpc/authuxprot.c: Likewise.
7522         * sunrpc/clnt_gen.c: Likewise.
7523         * sunrpc/clnt_perr.c: Likewise.
7524         * sunrpc/clnt_raw.c: Likewise.
7525         * sunrpc/clnt_simp.c: Likewise.
7526         * sunrpc/clnt_tcp.c: Likewise.
7527         * sunrpc/clnt_udp.c: Likewise.
7528         * sunrpc/clnt_unix.c: Likewise.
7529         * sunrpc/des_crypt.c: Likewise.
7530         * sunrpc/des_soft.c: Likewise.
7531         * sunrpc/get_myaddr.c: Likewise.
7532         * sunrpc/key_call.c: Likewise.
7533         * sunrpc/key_prot.c: Likewise.
7534         * sunrpc/netname.c: Likewise.
7535         * sunrpc/pm_getmaps.c: Likewise.
7536         * sunrpc/pm_getport.c: Likewise.
7537         * sunrpc/pmap_clnt.c: Likewise.
7538         * sunrpc/pmap_prot.c: Likewise.
7539         * sunrpc/pmap_prot2.c: Likewise.
7540         * sunrpc/pmap_rmt.c: Likewise.
7541         * sunrpc/publickey.c: Likewise.
7542         * sunrpc/rpc_cmsg.c: Likewise.
7543         * sunrpc/rpc_common.c: Likewise.
7544         * sunrpc/rpc_dtable.c: Likewise.
7545         * sunrpc/rpc_prot.c: Likewise.
7546         * sunrpc/rpc_thread.c: Likewise.
7547         * sunrpc/rtime.c: Likewise.
7548         * sunrpc/svc.c: Likewise.
7549         * sunrpc/svc_auth.c: Likewise.
7550         * sunrpc/svc_raw.c: Likewise.
7551         * sunrpc/svc_run.c: Likewise.
7552         * sunrpc/svc_tcp.c: Likewise.
7553         * sunrpc/svc_udp.c: Likewise.
7554         * sunrpc/svc_unix.c: Likewise.
7555         * sunrpc/svcauth_des.c: Likewise.
7556         * sunrpc/xcrypt.c: Likewise.
7557         * sunrpc/xdr.c: Likewise.
7558         * sunrpc/xdr_array.c: Likewise.
7559         * sunrpc/xdr_float.c: Likewise.
7560         * sunrpc/xdr_intXX_t.c: Likewise.
7561         * sunrpc/xdr_mem.c: Likewise.
7562         * sunrpc/xdr_rec.c: Likewise.
7563         * sunrpc/xdr_ref.c: Likewise.
7564         * sunrpc/xdr_sizeof.c: Likewise.
7565         * sunrpc/xdr_stdio.c: Likewise.
7566
7567 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7568
7569         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7570         change.  Update copyright years.
7571
7572 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7573
7574         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7575
7576 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7577             Joseph Myers  <joseph@codesourcery.com>
7578             Paul Pluzhnikov  <ppluzhnikov@google.com>
7579
7580         [BZ #14012]
7581         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7582         requiring rpcgen.
7583         [cross-compiling] (extra-libs): Likewise.
7584         [cross-compiling] (extra-libs-others): Likewise.
7585         [cross-compiling] (librpcsvc-routines): Likewise.
7586         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7587         [cross-compiling] (omit-deps): Likewise.
7588         (sunrpc-CPPFLAGS): New variable.
7589         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7590         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7591         (cross-rpcgen-objs): New variable.
7592         (extra-objs): Append $(cross-rpcgen-objs).
7593         ($(cross-rpcgen-objs)): New rule.
7594         ($(objpfx)cross-rpcgen): Likewise.
7595         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7596         comment.
7597         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7598         ($(objpfx)x%.stmp): Likewise.
7599         * sunrpc/proto.h [IS_IN_build] (_): Define.
7600         [IS_IN_build] (_libc_intl_domainname): Likewise.
7601
7602 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7603
7604         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7605         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7606         and R_X86_64_TPOFF64.
7607
7608 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7609
7610         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7611         sysdeps/unix/sysv/syscalls.list.
7612         (stime): Likewise.
7613         (utime): Likewise.
7614         * sysdeps/unix/sysv/syscalls.list: Remove file.
7615
7616 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         [BZ #3440]
7619         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7620         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7621         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7622         (__LC_IDENTIFICATION): Make these macros useful in #if
7623         expressions, as required by C99.
7624
7625 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7626
7627         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7628         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7629         after this.
7630
7631 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7632
7633         * stdlib/longlong.h: Updated from GCC.
7634
7635 2012-05-09  Andreas Jaeger  <aj@suse.de>
7636
7637         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7638         default is first entry.
7639         (run_mode): Set type.
7640         (main): Remove informal message about syslog.
7641         (options): Fix typo.
7642
7643         [BZ #14053]
7644         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7645         to asm.
7646         (lrint): Likewise.
7647         (llrintf): Likewise.
7648         (llrint): Likewise.
7649         (rint): Likewise.
7650         (rintf): Likewise.
7651         (nearbyint): Likewise.
7652         (nearbyintf): Likewise.
7653
7654 2012-05-09  Andreas Jaeger  <aj@suse.de>
7655             Pedro Alves  <palves@redhat.com>
7656
7657         * nscd/nscd.c (run_mode): Use enum.
7658         (main): Cleanup coding style issue.
7659
7660 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7661             Andreas Jaeger  <aj@suse.de>
7662
7663         * nscd/nscd.c (go_background): Replaced with...
7664         (run_mode): ... this.
7665         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7666         (options): Add -F --foreground.
7667         (main): Implement it.
7668         (parse_opt): Parse it.
7669
7670 2012-05-09  Andreas Jaeger  <aj@suse.de>
7671
7672         [BZ #14083]
7673         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7674         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7675         -Wconversion warning.
7676         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7677         Likewise.
7678
7679 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7680
7681         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7682         == 0.
7683         (LC_ALL): Use macro-int-constant.
7684         (LC_COLLATE): Likewise.
7685         (LC_CTYPE): Likewise.
7686         (LC_MESSAGES): Likewise.
7687         (LC_MONETARY): Likewise.
7688         (LC_NUMERIC): Likewise.
7689         (LC_TIME): Likewise.
7690         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7691         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7692         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7693         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7694         Specify type.
7695         [C99-based standards] (float_t): Expect type.
7696         [C99-based standards] (double_t): Expect type.
7697         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7698         type.
7699         [C99-based standards] (HUGE_VALL): Likewise.
7700         [C99-based standards] (INFINITY): Likewise.
7701         [C99-based standards] (NAN): Likewise.
7702         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7703         [C99-based standards] (FP_NAN): Likewise.
7704         [C99-based standards] (FP_NORMAL): Likewise.
7705         [C99-based standards] (FP_SUBNORMAL): Likewise.
7706         [C99-based standards] (FP_ZERO): Likewise.
7707         [C99-based standards] (FP_FAST_FMA): Use
7708         optional-macro-int-constant.  Specify type.  Require == 1.
7709         [C99-based standards] (FP_FAST_FMAF): Likewise.
7710         [C99-based standards] (FP_FAST_FMAL): Likewise.
7711         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7712         [C99-based standards] (FP_ILOGBNAN): Likewise.
7713         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7714         Specify type.
7715         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7716         [C99-based standards] (math_errhandling): Specify type.
7717         [ISO99 || ISO11] (signgam): Do not allow.
7718         [non-C99-based standards] (copysignf): Do not allow.
7719         [non-C99-based standards] (exp2f): Likewise.
7720         [non-C99-based standards] (log2f): Likewise.
7721         [non-C99-based standards] (modff): Allow.
7722         [non-C99-based standards] (erff): Do not allow.
7723         [non-C99-based standards] (erfcf): Likewise.
7724         [non-C99-based standards] (gammaf): Likewise.
7725         [non-C99-based standards] (hypotf): Likewise.
7726         [non-C99-based standards] (j0f): Likewise.
7727         [non-C99-based standards] (j1f): Likewise.
7728         [non-C99-based standards] (jnf): Likewise.
7729         [non-C99-based standards] (lgammaf): Likewise.
7730         [non-C99-based standards] (tgammaf): Likewise.
7731         [non-C99-based standards] (y0f): Likewise.
7732         [non-C99-based standards] (y1f): Likewise.
7733         [non-C99-based standards] (ynf): Likewise.
7734         [non-C99-based standards] (isnanf): Likewise.
7735         [non-C99-based standards] (acoshf): Likewise.
7736         [non-C99-based standards] (asinhf): Likewise.
7737         [non-C99-based standards] (atanhf): Likewise.
7738         [non-C99-based standards] (cbrtf): Likewise.
7739         [non-C99-based standards] (expm1f): Likewise.
7740         [non-C99-based standards] (ilogbf): Likewise.
7741         [non-C99-based standards] (log1pf): Likewise.
7742         [non-C99-based standards] (logbf): Likewise.
7743         [non-C99-based standards] (nextafterf): Likewise.
7744         [non-C99-based standards] (remainderf): Likewise.
7745         [non-C99-based standards] (rintf): Likewise.
7746         [non-C99-based standards] (scalbf): Likewise.
7747         [non-C99-based standards] (copysignl): Likewise.
7748         [non-C99-based standards] (exp2l): Likewise.
7749         [non-C99-based standards] (log2l): Likewise.
7750         [non-C99-based standards] (modfl): Allow.
7751         [non-C99-based standards] (erfl): Do not allow.
7752         [non-C99-based standards] (erfcl): Likewise.
7753         [non-C99-based standards] (gammal): Likewise.
7754         [non-C99-based standards] (hypotl): Likewise.
7755         [non-C99-based standards] (j0l): Likewise.
7756         [non-C99-based standards] (j1l): Likewise.
7757         [non-C99-based standards] (jnl): Likewise.
7758         [non-C99-based standards] (lgammal): Likewise.
7759         [non-C99-based standards] (tgammal): Likewise.
7760         [non-C99-based standards] (y0l): Likewise.
7761         [non-C99-based standards] (y1l): Likewise.
7762         [non-C99-based standards] (ynl): Likewise.
7763         [non-C99-based standards] (isnanl): Likewise.
7764         [non-C99-based standards] (acoshl): Likewise.
7765         [non-C99-based standards] (asinhl): Likewise.
7766         [non-C99-based standards] (atanhl): Likewise.
7767         [non-C99-based standards] (cbrtl): Likewise.
7768         [non-C99-based standards] (expm1l): Likewise.
7769         [non-C99-based standards] (ilogbl): Likewise.
7770         [non-C99-based standards] (log1pl): Likewise.
7771         [non-C99-based standards] (logbl): Likewise.
7772         [non-C99-based standards] (nextafterl): Likewise.
7773         [non-C99-based standards] (remainderl): Likewise.
7774         [non-C99-based standards] (rintl): Likewise.
7775         [non-C99-based standards] (scalbl): Likewise.
7776         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7777         [non-C99-based standards] (FP_*): Do not allow.
7778         [C99-based standards] (FP_*): Change to
7779         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7780         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7781         allow.
7782         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7783         (SIG_ERR): Likewise.
7784         [X/Open-based standards] (SIG_HOLD): Likewise.
7785         (SIG_IGN): Likewise.
7786         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7787         positive value.
7788         (SIGFPE): Likewise.
7789         (SIGILL): Likewise.
7790         (SIGINT): Likewise.
7791         (SIGSEGV): Likewise.
7792         (SIGTER): Likewise.
7793         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7794         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7795         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7796         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7797         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7798         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7799         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7800         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7801         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7802         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7803         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7804         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7805         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7806         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7807         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7808         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7809         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7810         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7811         [X/Open-based standards] (SIGTRAP): Likewise.
7812         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7813         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7814         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7815         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7816         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7817         allow.
7818
7819 2012-05-08  Ian Wienand  <ianw@vmware.com>
7820
7821         [BZ #14080]
7822         * time/tzset.c (__tzset_parse_tz): Update default rules for
7823         daylight time changes in the Energy Policy Act of 2005.
7824
7825 2012-05-09  Andreas Jaeger  <aj@suse.de>
7826
7827         [BZ #13983]
7828         * elf/ldconfig.c (parse_conf): Change string to make clear that
7829         ldconfig only issued a warning if ld.so.conf does not exist.
7830
7831 2012-05-08  David S. Miller  <davem@davemloft.net>
7832
7833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7834         movxtod instead of popping the value on the stack.
7835
7836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7837
7838 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7839
7840         * config.h.in: Add HAVE_ARM_PCS_VFP.
7841
7842 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7843
7844         [BZ #13979]
7845         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7846         checking but the checks are disabled for any reason.
7847
7848 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7849
7850         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7851         and ELF64_R_TYPE with ELFW(R_TYPE).
7852
7853 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7854
7855         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7856         (ulimit): Likewise.
7857
7858         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7859         (settimeofday): Likewise.
7860
7861 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7862
7863         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7864         a struct th_u2 inside the union, and move tu_block/tu_code into
7865         a new th_u3 union of tu_block/tu_code inside of that.  Move
7866         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7867         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7868         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7869         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7870         (th_stuff): Change to th_u1.tu_stuff.
7871         (th_data): Define.
7872         (th_msg): Change to th_u1.th_u2.tu_data.
7873
7874 2012-05-07  David S. Miller  <davem@davemloft.net>
7875
7876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7877
7878         [BZ #14074]
7879         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7880         (SETUP_PIC_REG): Use it.
7881         (SETUP_PIC_REG_LEAF): Use it.
7882
7883 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7884
7885         [BZ #13885]
7886         [BZ #13923]
7887         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7888         USE_AS_EXPM1L.
7889         (EXPL_FINITE): Likewise.
7890         (FLDLOG): Likewise.
7891         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7892         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7893         e_expl.S.
7894         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7895         USE_AS_EXPM1L.
7896         (EXPL_FINITE): Likewise.
7897         (FLDLOG): Likewise.
7898         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7899         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7900         e_expl.S.
7901         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7902         test of -max_value argument for long double.
7903         * sysdeps/i386/fpu/libm-test-ulps: Update.
7904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7905
7906 2012-05-06  David S. Miller  <davem@davemloft.net>
7907
7908         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7909         quad soft-float symbols whose references which are compiler
7910         generated.
7911         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7912
7913 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7914
7915         [BZ #13884]
7916         [BZ #13914]
7917         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7918         USE_AS_EXP10L.
7919         (EXPL_FINITE): Likewise.
7920         (FLDLOG): Likewise.
7921         (c0): Likewise.
7922         (c1): Likewise.
7923         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7924         Adjust comments for base varying.
7925         (__expl_finite): Change alias to EXPL_FINITE.
7926         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7927         e_expl.S.
7928         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7929         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7930         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7931         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7932         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7933         USE_AS_EXP10L.
7934         (EXPL_FINITE): Likewise.
7935         (FLDLOG): Likewise.
7936         (c0): Likewise.
7937         (c1): Likewise.
7938         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7939         Adjust comments for base varying.
7940         (__expl_finite): Change alias to EXPL_FINITE.
7941         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7942         tests for bugs.
7943         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7944
7945         [BZ #14064]
7946         * math/libm-test.inc (check_float_internal): Correct ulp
7947         calculation for subnormal expected results.
7948
7949 2012-05-06  Andreas Jaeger  <aj@suse.de>
7950
7951         * Makeconfig (+math-flags): New, set to -frounding-math.
7952         (+cflags): Add +math-flags so that all of glibc gets compiled with
7953         it.
7954
7955         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7956
7957 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7958
7959         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7960         Disable one test.
7961
7962         [BZ #13787]
7963         [BZ #13922]
7964         [BZ #14036]
7965         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7966         (__ieee754_expl): Allow for and saturate large arguments.
7967         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7968         (u_threshold): Likewise.
7969         (__exp): Call __ieee754_exp before checking for overflow and
7970         underflow.
7971         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7972         (u_threshold): Likewise.
7973         (__expf): Call __ieee754_expf before checking for overflow and
7974         underflow.
7975         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7976         (u_threshold): Likewise.
7977         (__expl): Call __ieee754_expl before checking for overflow and
7978         underflow.
7979         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7980         (__ieee754_expl): Allow for and saturate large arguments.
7981         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7982         missing overflow exception on overflow.
7983         (expm1_test): Do not allow missing overflow exception on overflow.
7984
7985         * sysdeps/i386/fpu/e_expl.c: Move to ...
7986         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7987         rather than using inline asm.
7988         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7989         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7990         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7991
7992         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7993         (nice): Likewise.
7994         (poll): Likewise.
7995         (signal): Likewise.
7996         (time): Likewise.
7997         (times): Likewise.
7998
7999 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8000
8001         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8002         sysdeps/unix/common/syscalls.list.
8003         (fchmod): Likewise.
8004         (fchown): Likewise.
8005         (ftruncate): Likewise.
8006         (getrusage): Likewise.
8007         (gettimeofday): Likewise.
8008         (setpgid): Likewise.
8009         (setregid): Likewise.
8010         (setreuid): Likewise.
8011         (sigaction): Likewise.
8012         (truncate): Likewise.
8013         (vhangup): Likewise.
8014         * sysdeps/unix/common/syscalls.list: Remove file.
8015         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8016         * sysdeps/unix/sysv/linux/Implies: Likewise.
8017
8018 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8019
8020         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8021         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8022         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8023         Moved to ...
8024         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8025         Here.
8026         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8027         to ...
8028         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8029         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8030         to ...
8031         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8032         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8033         to ...
8034         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8035         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8036         to ...
8037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8038         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8039         to ...
8040         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8041         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8042         to ...
8043         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8044         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8045         to ...
8046         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8047         Here.
8048         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8049         to ...
8050         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8051         Here.
8052         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8053         to ...
8054         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8055         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8056         Moved to ...
8057         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8058         Here.
8059         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8060         to ...
8061         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8062
8063 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8064
8065         * sysdeps/unix/common/bits/dirent.h: Remove file.
8066         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8067
8068         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8069         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8070         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8071         * sysdeps/unix/bsd/isatty.c: Likewise.
8072         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8073         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8074         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8075
8076 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8077
8078         [BZ #13563]
8079         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8080         long double comparison inaccuracies.
8081         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8083
8084 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8085
8086         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8087         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8088
8089 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8090
8091         [BZ #14049]
8092         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8093         nonzero digits before rounding a hex value.
8094         * stdlib/tst-strtod.c (tests): Add another test.
8095
8096 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8097
8098         * sysdeps/s390/fpu/libm-test-ulps: Update.
8099
8100 2012-05-03  Andreas Jaeger  <aj@suse.de>
8101
8102         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8103         does not get optimized out.
8104         (malloc_opt_barrier): New.
8105
8106 2012-05-03  Andreas Jaeger  <aj@suse.de>
8107             Roland McGrath  <roland@hack.frob.com>
8108
8109         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8110         intermediate file deletion.
8111         (generated): Add .symlist files.
8112
8113 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8114
8115         [BZ #13775]
8116         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8117         Redirect under this condition.
8118         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8119         [__USE_GNU] (__dprintf_chk): Not under this condition.
8120         [__USE_GNU] (__vdprintf_chk): Likewise.
8121         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8122         under this condition.
8123         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8124         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8125         [__USE_XOPEN2K8] (vdprintf): Likewise.
8126         [__USE_GNU] (__dprintf_chk): Not under this condition.
8127         [__USE_GNU] (__vdprintf_chk): Likewise.
8128         [__USE_GNU] (dprintf): Likewise.
8129         [__USE_GNU] (vdprintf): Likewise.
8130
8131 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8132
8133         * elf/Makefile (common-generated): Set this instead of generated for
8134         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8135         $(all-built-dso)-derived lists.
8136
8137 2012-05-03  Andreas Jaeger  <aj@suse.de>
8138
8139         * sysdeps/i386/fpu/libm-test-ulps: Update.
8140
8141         * FAQ: Removed.
8142         * FAQ.in: Likewise.
8143         * scripts/gen-FAQ.pl: Likewise.
8144         * manual/install.texi (Installation): Point to online location of
8145         FAQ.
8146         * Makefile (files-for-dist): Remove FAQ.
8147         (FAQ): Remove.
8148
8149 2012-05-02  Allan McRae  <allan@archlinux.org>
8150
8151         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8152         (LDFLAGS-reldepmod5.so): Likewise.
8153         (LDFLAGS-reldep6mod1.so): Likewise.
8154         (LDFLAGS-reldep6mod4.so): Likewise.
8155         (LDFLAGS-reldep8mod3.so): Likewise.
8156         (LDFLAGS-unload4mod1.so): Likewise.
8157         (LDFLAGS-unload4mod2.so): Likewise.
8158         (LDFLAGS-tst-initorder): Likewise.
8159         (LDFLAGS-tst-initordera2.so): Likewise.
8160         (LDFLAGS-tst-initordera3.so): Likewise.
8161         (LDFLAGS-tst-initordera4.so): Likewise.
8162         (LDFLAGS-tst-initorderb2.so): Likewise.
8163         (LDFLAGS-noload): Likewise.
8164         (LDFLAGS-next): Likewise.
8165         (LDFLAGS-order2mod1.so): Likewise.
8166         (LDFLAGS-order2mod2.so): Likewise.
8167         (LDFLAGS-tst-initorder2): Likewise.
8168         (LDFLAGS-tst-initorder2a.so): Likewise.
8169         (LDFLAGS-tst-initorder2b.so): Likewise.
8170         (LDFLAGS-tst-initorder2c.so): Likewise.
8171         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8172
8173 2012-05-02  David S. Miller  <davem@davemloft.net>
8174
8175         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8176
8177 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8178
8179         [BZ #14055]
8180         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8181
8182 2012-05-02  Andreas Jaeger  <aj@suse.de>
8183
8184         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8185         since we manipulate rounding mode.
8186         (CPPFLAGS-test-idouble.c): Likewise.
8187         (CPPFLAGS-test-ifloat.c): Likewise.
8188         (CFLAGS-test-ldouble.c): Likewise.
8189         (CFLAGS-test-double.c): Likewise.
8190         (CFLAGS-test-float.c): Likewise.
8191         (CFLAGS-test-misc.c): Likewise.
8192         (CFLAGS-test-test-fenv.c): Likewise.
8193
8194 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8195
8196         [BZ #2550]
8197         [BZ #2570]
8198         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8199         comparisons to determine direction to adjust input.
8200
8201 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8202
8203         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8204         output to the target.
8205
8206         * scripts/localplt.awk: New file.
8207         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8208         (check-localplt-CFLAGS): Variable removed.
8209         ($(all-built-dso:=.jmprel)): New static pattern rule.
8210         (generated): Add those targets.
8211         (localplt-built-dso): New variable.
8212         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8213
8214         * elf/check-localplt.c: File removed.
8215
8216         * scripts/check-execstack.awk: New file.
8217         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8218         (check-execstack-CFLAGS): Variable removed.
8219         ($(objpfx)check-execstack.h): Target removed.
8220         ($(objpfx)execstack-default): New target.
8221         (generated): Add that instead of check-execstack.h.
8222         ($(all-built-dso:=.phdr)): New static pattern rule.
8223         (generated): Add those targets.
8224         * elf/check-execstack.c: File removed.
8225
8226         * scripts/check-textrel.awk: New file.
8227         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8228         (check-textrel-CFLAGS): Variable removed.
8229         (all-built-dso): Use := to define.o
8230         ($(all-built-dso:=.dyn)): New static pattern rule.
8231         (generated): Add those targets.
8232         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8233         * config.make.in (READELF): New substituted variable.
8234         * elf/check-textrel.c: File removed.
8235
8236 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8237
8238         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8239         allow.
8240         * conform/data/ctype.h-data [C99-based standards] (isblank):
8241         Expect function.
8242         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8243         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8244         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8245         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8246         Specify type.  Require positive value.
8247         (EILSEQ): Likewise.
8248         (ERANGE): Likewise.
8249         [ISO || POSIX] (EILSEQ): Do not expect.
8250         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8251         Specify type.  Require positive value.
8252         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8253         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8254         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8255         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8256         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8257         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8258         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8259         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8260         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8261         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8262         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8263         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8264         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8265         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8266         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8267         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8268         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8269         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8270         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8271         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8272         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8273         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8274         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8275         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8276         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8277         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8278         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8279         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8280         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8281         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8282         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8283         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8284         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8285         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8286         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8287         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8288         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8289         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8290         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8291         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8292         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8293         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8294         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8295         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8296         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8297         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8298         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8299         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8300         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8301         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8302         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8303         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8304         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8305         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8306         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8307         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8308         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8309         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8310         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8311         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8312         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8313         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8314         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8315         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8316         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8317         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8318         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8319         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8320         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8321         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8322         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8323         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8324         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8325         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8326         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8327         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8328         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8329         Require >= 2.
8330         (FLT_ROUNDS): Expect as macro, not constant.
8331         (FLT_MANT_DIG): Use macro-int-constant.
8332         (DBL_MANT_DIG): Likewise.
8333         (LDBL_MANT_DIG): Likewise.
8334         (FLT_DIG): Likewise.
8335         (DBL_DIG): Likewise.
8336         (LDBL_DIG): Likewise.
8337         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8338         (DBL_MIN_EXP): Likewise.
8339         (LDBL_MIN_EXP): Likewise.
8340         (FLT_MAX_EXP): Use macro-int-constant.
8341         (DBL_MAX_EXP): Likewise.
8342         (LDBL_MAX_EXP): Likewise.
8343         (FLT_MAX_10_EXP): Likewise.
8344         (DBL_MAX_10_EXP): Likewise.
8345         (LDBL_MAX_10_EXP): Likewise.
8346         (FLT_MAX): Use macro-constant.
8347         (DBL_MAX): Likewise.
8348         (LDBL_MAX): Likewise.
8349         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8350         (DBL_EPSILON): Likewise.
8351         (LDBL_EPSILON): Likewise.
8352         (FLT_MIN): Likewise.
8353         (DBL_MIN): Likewise.
8354         (LDBL_MIN): Likewise.
8355         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8356         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8357         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8358         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8359         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8360         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8361         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8362         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8363         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8364         [ISO11] (FLT_TRUE_MIN): Likewise.
8365         [ISO11] (LDBL_TRUE_MIN): Likewise.
8366         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8367         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8368         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8369         (SCHAR_MAX): Likewise.
8370         (UCHAR_MAX): Likewise.
8371         (CHAR_MIN): Likewise.
8372         (CHAR_MAX): Likewise.
8373         (MB_LEN_MAX): Use macro-int-constant.
8374         (SHRT_MIN): Use macro-int-constant.  Specify type.
8375         (SHRT_MAX): Likewise.
8376         (USHRT_MAX): Likewise.
8377         (INT_MAX): Likewise.
8378         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8379         bound negative.
8380         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8381         bound with "U".
8382         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8383         bound with "L".
8384         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8385         bound negative.  Suffix upper bound with "L".
8386         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8387         bound with "UL".
8388         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8389         Specify type.
8390         [C99-based standards] (LLONG_MAX): Likewise.
8391         [C99-based standards] (ULLONG_MAX): Likewise.
8392         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8393         == 0.
8394         [ISO11] (max_align_t): Require type.
8395         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8396
8397         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8398         from $CFLAGS, without defining away __attribute__ calls.
8399         (checknamespace): Use $CFLAGS_namespace.
8400
8401         * conform/conformtest.pl (@keywords): Only include C99 keywords
8402         for standards based on C99 or C11.
8403
8404         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8405         Disable tests.
8406         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8407         UNIX98]: Likewise.
8408
8409         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8410         usability of symbols in #if.
8411
8412         * conform/conformtest.pl: If macro or constant types start
8413         "promoted:", expect the symbol to be of the following type
8414         promoted by the integer promotions.
8415
8416         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8417         in one place.  Also handle "macro-constant".
8418
8419         * conform/conformtest.pl: Only accept expected macro values with
8420         "==".  Parse all "macro" lines in one place.
8421         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8422
8423         * conform/conformtest.pl: Handle braced types on "constant" lines
8424         instead of handling "typed-constant".
8425         * conform/data/signal.h-data: Use "constant" instead of
8426         "typed-constant".
8427
8428         * conform/conformtest.pl: Handle "optional-" at start of lines in
8429         one place rather than duplicating several cases.  Handle each
8430         format of "macro" line with initial "optional-".
8431
8432         * conform/conformtest.pl: Only accept expected constant or
8433         optional-constant values with "==".  Parse all "constant" lines in
8434         one place.  Parse all "optional-constant" lines in one place.
8435         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8436         * conform/data/fmtmsg.h-data: Likewise.
8437         * conform/data/netinet/in.h-data: Likewise.
8438         * conform/data/tar.h-data: Likewise.
8439         * conform/data/limits.h-data: Use "==" form on "constant" and
8440         "optional-constant" lines.
8441
8442         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8443         Use -std=c99 for XOPEN2K.
8444         (@knownproblems): Remove.
8445         (newtoken): Don't check %isknown.
8446
8447         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8448         Do not expect macro.
8449         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8461         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8462         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8479         [XPG3] (acosh): Likewise.
8480         [XPG3] (asinh): Likewise.
8481         [XPG3] (atanh): Likewise.
8482         [XPG3] (cbrt): Likewise.
8483         [XPG3] (expm1): Likewise.
8484         [XPG3] (ilogb): Likewise.
8485         [XPG3] (log1p): Likewise.
8486         [XPG3] (logb): Likewise.
8487         [XPG3] (nextafter): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8490         [XPG3] (remainder): Likewise.
8491         [XPG3] (rint): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8499         [UNIX98 || XOPEN2K] (scalb): Expect.
8500         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8501         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8574         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8575         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8576         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8577         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8578         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8579         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8580         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8581         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8582         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8583         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8584         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8585         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8586         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8587         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8588         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8589         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8590         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8591         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8592         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8593         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8594         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8595         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8596         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8597         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8598         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8599         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8600         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8601         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8602         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8603         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8604         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8605         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8606         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8607         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8608         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8609         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8610         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8611         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8612         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8613         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8614         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8615         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8616         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8617         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8618         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8619         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8620         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8621         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8622         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8623         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8624         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8625         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8626         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8627         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8628         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8629         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8630         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8631         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8632         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8633         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8634         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8635         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8636         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8637
8638         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8639         _XOPEN_SOURCE_EXTENDED for XPG4.
8640
8641         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8642
8643         * Makeconfig (localtime): Remove variable.
8644         (inst_localtime-file): Likewise.
8645
8646 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8647
8648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8649         Update.
8650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8651         Update.
8652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8653         Update.
8654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8655         Update.
8656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8657         Update.
8658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8659         Update.
8660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8661         Update.
8662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8663         Update.
8664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8665         Update.
8666
8667 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8668
8669         [BZ #2550]
8670         [BZ #2570]
8671         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8672         comparisons to determine direction to adjust input.
8673         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8674         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8675         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8676         Likewise.
8677         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8678         Likewise.
8679         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8680         Likewise.
8681         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8682         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8683         Likewise.
8684         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8685         Likewise.
8686         * math/libm-test.inc (nexttoward_test): Add more tests.
8687
8688 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8689
8690         [BZ #14040]
8691         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8692         in version GLIBC_2.1, not GLIBC_2.0.
8693         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8694         Likewise.
8695
8696 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8697
8698         [BZ #13942]
8699         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8700         (1 - x) * (1 + x).
8701         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8702         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8703         * math/libm-test.inc (acos_test): Add more tests.
8704         (asin_test): Likewise.
8705         * sysdeps/i386/fpu/libm-test-ulps: Update.
8706         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8707
8708         [BZ #14034]
8709         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8710         of square root.
8711         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8712         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8713         * math/libm-test.inc (acos_test_tonearest): New function.
8714         (acos_test_towardzero): Likewise.
8715         (acos_test_downward): Likewise.
8716         (acos_test_upward): Likewise.
8717         (asin_test_tonearest): Likewise.
8718         (asin_test_towardzero): Likewise.
8719         (asin_test_downward): Likewise.
8720         (asin_test_upward): Likewise.
8721         (main): Call the new functions.
8722         * sysdeps/i386/fpu/libm-test-ulps: Update.
8723         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8724
8725         [BZ #13884]
8726         [BZ #13924]
8727         * math/e_exp10.c: Include <float.h>.
8728         (__ieee754_exp10): Handle underflow here rather than multiplying
8729         large negative argument by M_LN10.
8730         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8731         of __ieee754_expf.
8732         * math/e_exp10l.c: Include <float.h>.
8733         (__ieee754_exp10l): Handle underflow here rather than multiplying
8734         large negative argument by M_LN10l.
8735         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8736         spurious overflow exception on underflow.
8737
8738 2012-04-29  Marek Polacek  <polacek@redhat.com>
8739
8740         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8741         (__fortify_function): New macro.
8742         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8743         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8744         __extern_always_inline.
8745         * libio/bits/stdio2.h: Likewise.
8746         * libio/bits/stdio.h: Likewise.
8747         * string/string.h: Likewise.
8748         * string/bits/string3.h: Likewise.
8749         * include/stdio.h: Likewise.
8750         * stdlib/bits/stdlib.h: Likewise.
8751         * stdlib/stdlib.h: Likewise.
8752         * rt/bits/mqueue2.h: Likewise.
8753         * rt/mqueue.h: Likewise.
8754         * posix/bits/unistd.h: Likewise.
8755         * posix/unistd.h: Likewise.
8756         * io/bits/poll2.h: Likewise.
8757         * io/bits/fcntl2.h: Likewise.
8758         * io/fcntl.h: Likewise.
8759         * io/sys/poll.h: Likewise.
8760         * misc/bits/syslog.h: Likewise.
8761         * misc/bits/syslog-ldbl.h: Likewise.
8762         * misc/sys/syslog.h: Likewise.
8763         * socket/bits/socket2.h: Likewise.
8764         * socket/sys/socket.h: Likewise.
8765         * debug/tst-chk1.c: Likewise.
8766         * wcsmbs/bits/wchar2.h: Likewise.
8767         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8768         * wcsmbs/wchar.h: Likewise.
8769
8770 2012-04-29  Andreas Jaeger  <aj@suse.de>
8771
8772         * Makerules (tests): Remove enable-check-abi protection.
8773         (check-abi-warn): Remove.
8774         (check-abi-%): Remove check-abi-warn usage.
8775
8776         * configure.in: Remove check-abi configure option.
8777         * configure: Regenerated.
8778         * config.make.in (enable-check-abi): Remove.
8779
8780 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8781
8782         [BZ #14033]
8783         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8784         double functions to double *_finite functions.
8785
8786         [BZ #13941]
8787         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8788         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8789         LDBL_MIN_EXP.
8790         * stdio-common/Makefile (tests): Add tst-sprintf3.
8791         * stdio-common/tst-sprintf3.c: New file.
8792
8793         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8794         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8795
8796 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8797
8798         * conform/conformtest.pl: Remove duplicate typed-constant
8799         handling.
8800
8801 2012-04-28  David S. Miller  <davem@davemloft.net>
8802
8803         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8804         (check-abi-%): Remove AWK script prerequisite and explicit
8805         abilist directory.
8806         (check-abi): Rewrite to just diff the symlist with the abilist.
8807         (config-tls, config-abi-config): Delete, no longer used.
8808         (update-abi-%): Remove AWK script and explicit abilist directory.
8809         (update-abi): Rewrite to simply compare and conditionally copy the
8810         symlist and the sysdep abilist file.  Remove update-abi-config
8811         checks.
8812         * abilist/ld.abilist: Remove.
8813         * abilist/libBrokenLocale.abilist: Remove.
8814         * abilist/libanl.abilist: Remove.
8815         * abilist/libcrypt.abilist: Remove.
8816         * abilist/libdl.abilist: Remove.
8817         * abilist/librt.abilist: Remove.
8818         * abilist/libthread_db.abilist: Remove.
8819         * abilist/libutil.abilist: Remove.
8820         * scripts/extract-abilist.awk: Remove.
8821         * scripts/merge-abilist.awk: Remove.
8822         * sysdeps/generic/libcidn.abilist: New file.
8823         * sysdeps/generic/libnss_compat.abilist: New file.
8824         * sysdeps/generic/libnss_db.abilist: New file.
8825         * sysdeps/generic/libnss_dns.abilist: New file.
8826         * sysdeps/generic/libnss_files.abilist: New file.
8827         * sysdeps/generic/libnss_hesiod.abilist: New file.
8828         * sysdeps/generic/libnss_nis.abilist: New file.
8829         * sysdeps/generic/libnss_nisplus.abilist: New file.
8830         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8831         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8832         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8833         file.
8834         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8835         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8836         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8837         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8838         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8839         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8840         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8841         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8842         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8843         file.
8844         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8845         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8846         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8847         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8848         file.
8849         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8850         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8851         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8852         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8853         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8854         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8855         file.
8856         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8857         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8858         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8859         file.
8860         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8861         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8862         New file.
8863         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8864         New file.
8865         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8866         New file.
8867         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8868         New file.
8869         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8870         New file.
8871         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8872         New file.
8873         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8874         New file.
8875         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8876         New file.
8877         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8878         New file.
8879         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8880         New file.
8881         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8882         New file.
8883         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8884         New file.
8885         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8886         New file.
8887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8888         file.
8889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8890         New file.
8891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8892         New file.
8893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8894         file.
8895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8896         New file.
8897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8898         New file.
8899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8900         file.
8901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8902         New file.
8903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8904         New file.
8905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8906         New file.
8907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8908         New file.
8909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8910         New file.
8911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8912         New file.
8913         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8914         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8915         file.
8916         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8917         New file.
8918         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8919         file.
8920         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8921         file.
8922         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8923         file.
8924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8925         file.
8926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8927         file.
8928         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8929         New file.
8930         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8931         file.
8932         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8933         file.
8934         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8935         New file.
8936         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8937         file.
8938         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8939         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8940         file.
8941         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8942         New file.
8943         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8944         file.
8945         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8946         file.
8947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8948         file.
8949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8950         file.
8951         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8952         file.
8953         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8954         New file.
8955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8956         file.
8957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8958         file.
8959         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8960         New file.
8961         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8962         file.
8963         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8964         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8965         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8966         file.
8967         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8968         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8969         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8970         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8971         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8972         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8973         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8974         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8975         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8976         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8977         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8979         file.
8980         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8981         New file.
8982         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8983         file.
8984         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8985         file.
8986         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8987         file.
8988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8989         file.
8990         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8991         file.
8992         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8993         New file.
8994         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8995         New file.
8996         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8997         file.
8998         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8999         New file.
9000         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9001         file.
9002         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9003         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9004         file.
9005         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9006         New file.
9007         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9008         file.
9009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9010         file.
9011         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9012         file.
9013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9014         file.
9015         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9016         file.
9017         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9018         New file.
9019         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9020         New file.
9021         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9022         file.
9023         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9024         New file.
9025         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9026         file.
9027
9028 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9029
9030         * conform/conformtest.pl: Fix typo in handling typed-constant from
9031         allow-header.
9032
9033 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9034
9035         * README: Cut down references to pre-2.6 Linux kernels and
9036         Linuxthreads.  Update lists of configurations in libc and ports
9037         and sort alphabetically.  Say "or newer" with Linux kernel version
9038         requirements.
9039
9040         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9041
9042 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9043
9044         [BZ #887]
9045         * math/libm-test.inc (logb_test_downward): New test to expose
9046         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9047         rounding mode.
9048
9049 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9050
9051         [BZ #14027]
9052         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9053         to be done.
9054         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9055         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9056
9057 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9058
9059         * sysdeps/unix/i386/brk.S: Remove file.
9060         * sysdeps/unix/i386/dl-brk.S: Likewise.
9061         * sysdeps/unix/i386/pipe.S: Likewise.
9062         * sysdeps/unix/i386/sigreturn.S: Likewise.
9063         * sysdeps/unix/i386/syscall.S: Likewise.
9064         * sysdeps/unix/i386/vfork.S: Likewise.
9065         * sysdeps/unix/i386/wait.S: Likewise.
9066
9067         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9068         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9069
9070         * configure.in (arm*-none*): Do not allow without
9071         --enable-hacker-mode.
9072         (netbsd*): Remove case setting base_os.
9073         (386bsd*): Likewise.
9074         (freebsd*): Likewise.
9075         (bsdi*): Likewise.
9076         (osf*): Likewise.
9077         (sunos*): Likewise.
9078         (ultrix*): Likewise.
9079         (newsos*): Likewise.
9080         (dynix*): Likewise.
9081         (*bsd*): Likewise.
9082         (sysv*): Likewise.
9083         (isc*): Likewise.
9084         (esix*): Likewise.
9085         (sco*): Likewise.
9086         (minix*): Likewise.
9087         (irix4*): Likewise.
9088         (irix6*): Likewise.
9089         (solaris[2-9]*): Likewise.
9090         (none): Likewise.
9091         * configure: Regenerated.
9092
9093 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9094
9095         [BZ #11521]
9096         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9097         overflow or cancellation in calculating denominator.
9098         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9099         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9100         down expression to avoid unexpected rounding in newer GCCs.
9101         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9102
9103 2012-04-26  David S. Miller  <davem@davemloft.net>
9104
9105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9106         long-double compat symbols.
9107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9113         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9114         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9115         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9116         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9120
9121 2012-04-25  David S. Miller  <davem@davemloft.net>
9122
9123         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9124         HWCAP_* values only after the memory barriers have been defined.
9125         (atomic_full_barrier): Define.
9126         (atomic_read_barrier): Define.
9127         (atomic_write_barrier): Define.
9128
9129 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9130
9131         * shlib-versions: Add libgcc_s version information.
9132         * sysdeps/generic/libgcc_s.h: Remove.
9133         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9134         libgcc_s.h.
9135         * sysdeps/gnu/unwind-resume.c: Likewise.
9136         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9137
9138 2012-04-25  David S. Miller  <davem@davemloft.net>
9139
9140         * sysdeps/unix/sparc/brk.S: Delete.
9141         * sysdeps/unix/sparc/dl-brk.S: Delete.
9142         * sysdeps/unix/sparc/pipe.S: Delete.
9143         * sysdeps/unix/sparc/sysdep.S: Delete.
9144         * sysdeps/unix/sparc/sysdep.h: Delete.
9145         * sysdeps/unix/sparc/vfork.S: Delete.
9146         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9147         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9148         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9149         ret_ERRVAL, r0, r1, MOVE): Define.
9150         (JUMPTARGET): Remove.
9151         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9152         sysdeps/unix/sparc/sysdep.h
9153         (ENTRY, END): Remove.
9154         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9155
9156 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9157
9158         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9159         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9160         -DIS_IN_build.
9161
9162         * timezone/README: Update upstream location and email address for
9163         tzcode and tzdata.
9164         * timezone/zdump.c: Update from tzcode 2012b.
9165         * timezone/zic.c: Likewise.
9166
9167         * configure.in (libc_cv_as_needed): Remove test.
9168         * configure: Regenerated.
9169         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9170         conditional definition.
9171         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9172         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9173         * config.make.in (have-as-needed): Remove variable.
9174
9175 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9176             Paul Pluzhnikov  <ppluzhnikov@google.com>
9177
9178         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9179         strings correctly.
9180
9181 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9182
9183         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9184         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9185         * sysdeps/sh/strlen.S: Likewise.
9186
9187 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9188
9189         * sysdeps/unix/fork.S: Remove file.
9190         * sysdeps/unix/i386/fork.S: Likewise.
9191         * sysdeps/unix/sparc/fork.S: Likewise.
9192
9193         * sysdeps/unix/system.c: Remove file.
9194         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9195
9196         * sysdeps/unix/getegid.S: Remove file.
9197         * sysdeps/unix/geteuid.S: Likewise.
9198
9199 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9200
9201         * scripts/check-localplt.awk: New file.
9202         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9203         of diff.
9204         * scripts/data/localplt-generic.data: Add a comment.
9205
9206         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9207         NODE when __dir_mkfile failed.
9208         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9209         Reported by Ludovic Courtès <ludo@gnu.org>.
9210
9211 2012-04-24  Andreas Jaeger  <aj@suse.de>
9212
9213         * Makerules (common-clean): Also remove gen-as-const-headers
9214         files.
9215
9216 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9217
9218         * Makerules (native-compile): Do not change working directory for
9219         build.  Use $(OUTPUT_OPTION) in command.
9220         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9221
9222 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9223
9224         [BZ #13886]
9225         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9226         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9227         * math/libm-test.inc (floor_test): Add more tests.
9228         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9229
9230 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9231
9232         * sysdeps/unix/getdents.c: Remove file.
9233         * sysdeps/unix/sysv/getdents.c: Likewise.
9234         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9235
9236         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9237         sysdeps/unix/mman/syscalls.list.
9238         (mmap): Likewise.
9239         (mprotect): Likewise.
9240         (msync): Likewise.
9241         (munmap): Likewise.
9242         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9243         * sysdeps/unix/mman/syscalls.list: Remove.
9244         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9245
9246         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9247         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9248         * configure: Regenerated.
9249         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9250         $(libgcc_s_suffix).
9251         * config.make.in (libgcc_s_suffix): Remove variable.
9252
9253 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9254
9255         * sysdeps/unix/sysv/gethostname.c: Move to ...
9256         * sysdeps/posix/gethostname.c: ... here.
9257
9258         * sysdeps/unix/execve.S: Remove file.
9259
9260         * sysdeps/unix/_exit.S: Remove file.
9261
9262 2012-04-23  Andreas Jaeger  <aj@suse.de>
9263
9264         [BZ #13739]
9265         * manual/Makefile: Remove make dist support, there's no
9266         need for a stand-alone documentation tar ball.
9267         (TEXI2DVI): Define always, it's not in Makeconfig.
9268         (dist): Removed.
9269         (tar-it): Removed.
9270         (edition): Removed.
9271         (glibc-doc-$(edition).tar): Removed
9272         (%.Z): Removed.
9273         (%.gz): Removed.
9274         (%.uu): Removed.
9275         (ETAGS): Remove, it's in Makeconfig.
9276         (move-if-change): Remove, it's in Makeconfig.
9277
9278 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9279
9280         [BZ #13970]
9281         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9282         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9283         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9284         (strtod_l, strtof_l, strtold_l): Remove __wur.
9285         It is not necessarily an error to ignore strtol's return value.
9286         One can reliably look at the stored endptr to decide whether
9287         the number had valid syntax.
9288
9289 2012-04-21  Andreas Jaeger  <aj@suse.de>
9290
9291         [BZ #13739]
9292         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9293
9294 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9295
9296         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9297         * sysdeps/unix/sysv/Versions: Remove file.
9298
9299 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9300
9301         [BZ #13927]
9302         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9303
9304 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9305
9306         [BZ #7064]
9307         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9308         version from __vm86.
9309
9310 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9311
9312         * sysdeps/unix/common/lxstat.c: Remove file.
9313         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9314
9315         * sysdeps/unix/sysv/Makefile: Remove file.
9316
9317         * sysdeps/unix/sysv/direct.h: Remove file.
9318
9319         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9320         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9321         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9322         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9323         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9324         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9325         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9326
9327         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9328
9329         * sysdeps/unix/xmknod.c: Remove file.
9330         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9331
9332         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9333
9334         * sysdeps/unix/sysv/i386/time.S: Remove file.
9335
9336         * sysdeps/unix/fxstat.c: Remove file.
9337         * sysdeps/unix/xstat.c: Likewise.
9338         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9339
9340         * sysdeps/unix/sysv/sigaction.c: Remove file.
9341
9342         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9343         (sysdep_headers): Remove variable.
9344         [termio.h not in sysdep_headers] (generated): Likewise.
9345         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9346         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9347         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9348         * sysdeps/unix/sysv/tcflow.c: Likewise.
9349         * sysdeps/unix/sysv/tcflush.c: Likewise.
9350         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9351         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9352         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9353         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9354         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9355
9356         * sysdeps/unix/siglist.c: Remove file.
9357
9358         * sysdeps/unix/getppid.S: Remove file.
9359
9360         * sysdeps/unix/mkdir.c: Remove file.
9361         * sysdeps/unix/rmdir.c: Likewise.
9362
9363 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9364
9365         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9366         ERR_MAX value.
9367         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9368         errlist-compat value.
9369
9370 2012-04-18  David S. Miller  <davem@davemloft.net>
9371
9372         * sysdeps/generic/memcopy.h (reg_char): Delete.
9373         * debug/strcat_chk.c: Use char, not reg_char.
9374         * debug/strcpy_chk.c: Likewise.
9375         * debug/strncat_chk.c: Likewise.
9376         * debug/strncpy_chk.c: Likewise.
9377         * string/memchr.c: Likewise.
9378         * string/memrchr.c: Likewise.
9379         * string/rawmemchr.c: Likewise.
9380         * string/strcat.c: Likewise.
9381         * string/strchr.c: Likewise.
9382         * string/strchrnul.c: Likewise.
9383         * string/strcmp.c: Likewise.
9384         * string/strcpy.c: Likewise.
9385         * string/strncat.c: Likewise.
9386         * string/strncmp.c: Likewise.
9387         * string/strncpy.c: Likewise.
9388
9389 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9390
9391         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9392         __builtin_memcopy is called when src and dest ranges are known to not
9393         overlap.
9394
9395 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9396
9397         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9398         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9399         fwd_align_merge macro call.
9400         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9401         bwd_align_merge macro call.
9402         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9403
9404 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9405
9406         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9407         bwd_align_merge macros.
9408         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9409         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9410         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9411
9412 2012-04-18  David S. Miller  <davem@davemloft.net>
9413
9414         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9415
9416 2012-04-18  Andreas Jaeger  <aj@suse.de>
9417
9418         [BZ# 6794]
9419         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9420         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9421         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9422
9423         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9424         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9425         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9426
9427         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9428         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9429         Adjust for changed ldbl-128 files.
9430
9431         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9432         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9433         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9434
9435 2012-04-17  David S. Miller  <davem@davemloft.net>
9436
9437         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9438
9439 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9440
9441         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9442         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9443         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9444         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9445         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9446         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9447
9448 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9449
9450         [BZ #6794]
9451         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9452         * math/libm-test.inc: Add ilogb errno and exception tests.
9453         * math/w_ilogb.c: New file: ilogb wrapper.
9454         * math/w_ilogbf.c: New file: ilogbf wrapper.
9455         * math/w_ilogbl.c: New file: ilogbl wrapper.
9456         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9457         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9458         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9459         exception being thrown with 0.0 as argument.
9460         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9461         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9462         exception being thrown with 0.0 as argument.
9463         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9464         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9465         exception being thrown with 0.0 as argument.
9466         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9467         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9468         exception being thrown with 0.0 as argument.
9469         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9470         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9471         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9472         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9473         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9474         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9475         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9476         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9477         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9478
9479 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9480
9481         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9482         with altivec.
9483
9484 2012-04-16  Marek Polacek  <polacek@redhat.com>
9485
9486         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9487
9488 2012-04-16  Marek Polacek  <polacek@redhat.com>
9489
9490         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9491         operands of fdivp instruction.
9492
9493 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9494
9495         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9496         * elf/tst-auditmod3b.c: Likewise.
9497         * elf/tst-auditmod4b.c: Likewise.
9498         * elf/tst-auditmod5b.c: Likewise.
9499         * elf/tst-auditmod6b.c: Likewise.
9500         * elf/tst-auditmod6c.c: Likewise.
9501         * elf/tst-auditmod7b.c: Likewise.
9502         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9503         * sysdeps/x86_64/preconfigure.in: Likewise.
9504         * sysdeps/x86_64/preconfigure: Regenerated.
9505
9506 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9507
9508         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9509         __ILP32__.
9510
9511 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9512
9513         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9514         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9515
9516 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9517
9518         [BZ #13973]
9519         * locale/iso-639.def: Fix gl language name. Spotted by
9520         Yaron Shahrabani.
9521
9522 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9523
9524         [BZ #2074]
9525         * libio/libio.h (__io_write_fn): Update comment.
9526
9527 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9528
9529         [BZ #2074]
9530         * stdio.texi (Hook Functions): The user provided writer function
9531         is not allowed to return -1.
9532
9533 2012-04-11  David S. Miller  <davem@davemloft.net>
9534
9535         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9536
9537 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9538
9539         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9540         Add a leading slash to rtkaio.
9541
9542 2012-04-11  Jim Meyering  <meyering@redhat.com>
9543
9544         [BZ #11959]
9545         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9546         It is not necessarily an error to ignore fwrite's return
9547         value.  One can reliably use ferror to test for errors after
9548         the fact.
9549
9550 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9551
9552         * bits/types.h (__snseconds_t): New type.
9553         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9554
9555         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9556         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9557         (__SNSECONDS_T_TYPE): Likewise.
9558         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9559         (__SNSECONDS_T_TYPE): Likewise.
9560         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9561         (__SNSECONDS_T_TYPE): Likewise.
9562
9563 2012-04-10  Andreas Jaeger  <aj@suse.de>
9564
9565         [BZ #2636]
9566         * manual/time.texi (Processor Time): Return type of times is
9567         elapsed real time since an arbitrary point in the past.
9568         (CPU Time): Move CLK_TCK from here...
9569         (Processor Time): ...to here.  Correct description.
9570         * manual/conf.texi (Constants for Sysconf): Correct description of
9571         _SC_CLK_TCK.
9572
9573 2012-04-10  David S. Miller  <davem@davemloft.net>
9574
9575         [BZ #13967]
9576         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9577         where the is a gap between DT_REL(A) and DT_JMPREL.
9578
9579 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9580
9581         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9582         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9583         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9584
9585 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9586
9587         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9588         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9589         (dl_main): Handle --inhibit-cache.
9590         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9591         _dl_inhibit_cache.
9592         * elf/dl-load.c (_dl_map_object): Use it.
9593         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9594
9595 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9596
9597         [BZ #13872]
9598         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9599         (__ieee754_powl): Saturate large exponents rather than testing for
9600         overflow of y*log2(x).
9601         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9602         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9603         exceptions.
9604
9605         [BZ #11521]
9606         * math/s_ctan.c: Include <float.h>.
9607         (__ctan): Avoid internal overflow or cancellation in calculating
9608         denominator.
9609         * math/s_ctanf.c: Likewise.
9610         * math/s_ctanl.c: Likewise.
9611         * math/s_ctanh.c: Likewise.
9612         * math/s_ctanhf.c: Likewise.
9613         * math/s_ctanhl.c: Likewise.
9614         * math/libm-test.inc (ctan_test): Add more tests.
9615         (ctanh_test): Likewise.
9616         * sysdeps/i386/fpu/libm-test-ulps: Update.
9617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9618
9619 2012-04-09  Andreas Jaeger  <aj@suse.de>
9620
9621         [BZ #6894]
9622         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9623         is an optional BSD extension.
9624
9625         [BZ #10254]
9626         * manual/stdio.texi (Opening Streams): Document additional fopen
9627         parameters.
9628
9629 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9630
9631         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9632         %eax without telling the compiler.
9633
9634 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9635
9636         [BZ # 13963]
9637         * manual/install.texi: Use sourceware.org.
9638
9639 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9640
9641         [BZ #13873]
9642         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9643         (__ieee754_pow): Generate overflow and underflow using huge*huge
9644         and tiny*tiny rather than just returning constant infinity or zero
9645         for large exponents.
9646         * math/libm-test.inc (pow_test): Require overflow exceptions for
9647         applicable cases of large exponents.
9648
9649         [BZ #706]
9650         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9651         (__ieee754_pow): Use iterative multiplication algorithm only for
9652         integer exponents with absolute value below 1024.  Check for odd
9653         integer exponents when using algorithm for real exponents.
9654         * math/libm-test.inc (pow_test): Add more tests.
9655         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9656
9657 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9658
9659         [BZ #13705]
9660         * math/libm-test.inc (exp_test): Do not allow overflow exception
9661         on underflow test.
9662
9663 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9664
9665         [BZ #13705]
9666         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9667         instead of __kernel_standard_f.
9668
9669 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9670
9671         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9672         * sysdeps/x86_64/memset_chk.S: Likewise.
9673
9674 2012-04-08  Andreas Jaeger  <aj@suse.de>
9675
9676         [BZ #10153]
9677         * manual/startup.texi (Environment Access): Describe return value
9678         for putenv and setenv.
9679
9680         [BZ #6895]
9681         * manual/filesys.texi (Directory Entries): Add description for
9682         DT_LNK.
9683
9684         [BZ #6890]
9685         * manual/filesys.texi (Directory Entries): Clarify that it's file
9686         system not operating system in the description of DT_UNKNOWN.
9687
9688         [BZ #6578]
9689         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9690
9691 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9692
9693         [BZ #6649]
9694         * manual/llio.texi (Opening and Closing Files): Add cross
9695         reference to explain mode argument.
9696
9697 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9698
9699         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9700         * sysdeps/x86_64/memset_chk.S: Likewise.
9701
9702 2012-04-07  David S. Miller  <davem@davemloft.net>
9703
9704         * elf/elf.h (R_SPARC_WDISP10): Define.
9705         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9706         R_SPARC_SIZE32.
9707         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9708         R_SPARC_SIZE64 and R_SPARC_H34.
9709
9710 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9711
9712         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9713         conditions and remove no longer applicable assertion.
9714
9715 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9716
9717         * bits/byteswap.h: Include <features.h>.
9718         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9719         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9720
9721 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9722
9723         * bits/byteswap.h (__bswap_16): Removed.
9724         Include <bits/byteswap-16.h> to get __bswap_16.
9725         * sysdeps/i386/bits/byteswap.h: Likewise.
9726         * sysdeps/s390/bits/byteswap.h: Likewise.
9727         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9728         * bits/byteswap-16.h: New file.
9729         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9730         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9731         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9732         * string/Makefile (headers): Add bits/byteswap-16.h.
9733
9734 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9735
9736         [BZ #13895]
9737         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9738         extra indirection.
9739         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9740         * nss/tst-nss-static.c: New.
9741
9742 2012-04-06  Robert Millan  <rmh@gnu.org>
9743
9744         [BZ #6486]
9745         * manual/llio.texi (File Position Primitive): lseek
9746         refers to WHENCE when it really means OFFSET.
9747
9748 2012-04-06  Andreas Jaeger  <aj@suse.de>
9749
9750         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9751         strncmp declarations.
9752
9753         * abilist/libc.abilist: Add __poll and __ppoll.
9754
9755 2012-04-05  David S. Miller  <davem@davemloft.net>
9756
9757         * scripts/check-local-headers.sh: Accept a host triplet in the
9758         path matched by the exclude regexp.
9759
9760         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9761         definition.
9762         * sysdeps/powerpc/powerpc32/dl-machine.h
9763         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9764         * sysdeps/s390/s390-32/dl-machine.h
9765         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9766         * sysdeps/sparc/sparc32/dl-machine.h
9767         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9768         * sysdeps/sparc/sparc64/dl-machine.h
9769         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9770
9771         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9772         lazy binding.
9773         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9774         undefined symbol errors.
9775
9776         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9777         DT_NEEDED entries.
9778
9779 2012-04-05  Michael Matz  <matz@suse.de>
9780
9781         [BZ #13592]
9782         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9783
9784 2012-04-05  Andreas Jaeger  <aj@suse.de>
9785
9786         [BZ #13908]
9787         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9788         comment.
9789
9790 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9791
9792         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9793         which ROUND is no valid rounding mode.
9794
9795 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9796
9797         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9798         read again.
9799         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9800
9801 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9802
9803         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9804         an exception using FPU order intentionally.
9805
9806 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9807
9808         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9809         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9810         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9811         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9812
9813 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9814
9815         [BZ #12340]
9816         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9817         EINVAL when BUFLEN is too smal.
9818
9819 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9820
9821         [BZ #13553]
9822         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9823         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9824
9825 2012-04-03  Andreas Jaeger  <aj@suse.de>
9826
9827         [BZ #13938]
9828         * manual/setjmp.texi (System V contexts): Fix sentence.
9829
9830         [BZ #13926]
9831         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9832         New macro for this case.
9833         [!__GNUC__] (__bswap_64): New inline function for this case.
9834         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9835         * bits/byteswap.h: Likewise.
9836         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9837         ull, guard with __GLIBC_HAVE_LONG_LONG.
9838
9839         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9840         __GLIBC_HAVE_LONG_LONG.
9841
9842         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9843         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9844
9845 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9846
9847         [BZ #13691]
9848         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9849         inptr and inend, rather than using last_ch.
9850
9851 2012-04-02  David S. Miller  <davem@davemloft.net>
9852
9853         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9854         * stdio-common/printf-parse.h (read_int): Change return type to
9855         'int', return -1 on INT_MAX overflow.
9856         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9857         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9858         overflows INT_MAX.  Check for overflow of in-format-string precision
9859         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9860         SIZE_MAX not INT_MAX for integer overflow test.
9861         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9862         skip the construct in the format string but do not record anything.
9863         * stdio-common/bug22.c: Adjust to test both width/prevision
9864         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9865         explicitly for proper errno values.
9866
9867 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9868
9869         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9870         CHAR_MAX.
9871         * string/test-strcmp.c [! WIDE]: Likewise.
9872         * time/tst-mktime2.c: Likewise for INT_MAX.
9873         * string/test-string.h: #include <sys/param.h> for MIN.
9874
9875         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9876         * sysdeps/i386/init-first.c (init): Likewise.
9877         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9878         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9879         * sysdeps/sh/init-first.c (init): Likewise.
9880
9881 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9882
9883         * po/ru.po: Update from translation team.
9884         * po/vi.po: Likewise.
9885
9886 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9887
9888         * resolv/nss_dns/dns-host.c: Merge copyright years.
9889
9890 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9891
9892         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9893         Optimize memcpy with prefetch if
9894         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9895         src, dst pointers have unequal 16 byte alignments.
9896
9897 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9898
9899         [BZ #13928]
9900         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9901         from a CNAME entry and return the minimum ttl for the query.
9902         (gaih_getanswer_slice): Likewise.
9903
9904 2012-03-30  Jeff Law  <law@redhat.com>
9905
9906         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9907         due to long keys.
9908         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9909         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9910
9911         * resolv/nss_dns/dns-host.c: Update copyright year.
9912
9913 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9914
9915         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9916         requests to save a system call.  Fix check that all bytes are sent.
9917
9918         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9919         comments for sendmmsg.
9920
9921 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9922
9923         [BZ #13691]
9924         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9925         with only 1 character between 0x0041 and 0x01b0.
9926         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9927         * wcsmbs/tst-mbsnrtowcs.c: New file.
9928
9929 2012-03-29  David S. Miller  <davem@davemloft.net>
9930
9931         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9932         small copies by hand.
9933
9934 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9935
9936         [BZ #13761]
9937         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9938         _nss_compat_initgroups_dyn): Fall back to malloc/free
9939         for large group memberships.
9940
9941 2012-03-28  David S. Miller  <davem@davemloft.net>
9942
9943         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9944         that branches into memcpy.
9945         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9946         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9947         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9948         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9949         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9950         bits.
9951         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9952         implementation too.
9953         * sysdeps/sparc/mempcpy.S: New file.
9954
9955         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9956         the IFUNC routine in the libc case.
9957         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9958
9959         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9960         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9961         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9962         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9963         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9964         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9965         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9966         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9967
9968         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9969         loop to 256 bytes instead of 64 bytes and fix test signedness.
9970
9971         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9972         * sysdeps/sparc/sparc32/Makefile: rather than here...
9973         * sysdeps/sparc/sparc64/Makefile: and here.
9974
9975 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9976
9977         * malloc/mallocbug.c: Avoid warnings about unused variables.
9978
9979 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9980
9981         [BZ #13760]
9982         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9983         in the right place. Discard and retry query if response is
9984         larger than input buffer size.
9985
9986 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9987
9988         [BZ #369]
9989         [BZ #2678]
9990         [BZ #3866]
9991         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9992         x for large integer exponent.
9993         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9994         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9995         sign of result as needed afterwards.
9996         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9997         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9998         result for underflowing pow the same as for overflow.
9999         (__kernel_standard_l): Handle powl overflow and underflow here
10000         rather than calling __kernel_standard.
10001         * math/libm-test.inc (pow_test): Add more tests.
10002
10003         [BZ #3868]
10004         [BZ #13879]
10005         [BZ #13910]
10006         [BZ #13911]
10007         [BZ #13912]
10008         [BZ #13913]
10009         [BZ #13915]
10010         [BZ #13916]
10011         [BZ #13917]
10012         [BZ #13918]
10013         [BZ #13919]
10014         [BZ #13920]
10015         [BZ #13921]
10016         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10017         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10018         (__kernel_standard_l): New function.
10019         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10020         __kernel_standard.
10021         * math/w_acosl.c (__acosl): Likewise.
10022         * math/w_asinl.c (__asinl): Likewise.
10023         * math/w_atan2l.c (__atan2l): Likewise.
10024         * math/w_atanhl.c (__atanhl): Likewise.
10025         * math/w_coshl.c (__coshl): Likewise.
10026         * math/w_exp10l.c (__exp10l): Likewise.
10027         * math/w_exp2l.c (__exp2l): Likewise.
10028         * math/w_fmodl.c (__fmodl): Likewise.
10029         * math/w_hypotl.c (__hypotl): Likewise.
10030         * math/w_j0l.c (__j0l, __y0l): Likewise.
10031         * math/w_j1l.c (__j1l, __y1l): Likewise.
10032         * math/w_jnl.c (__jnl, __ynl): Likewise.
10033         * math/w_lgammal.c (__lgammal): Likewise.
10034         * math/w_log10l.c (__log10l): Likewise.
10035         * math/w_log2l.c (__log2l): Likewise.
10036         * math/w_logl.c (__logl): Likewise.
10037         * math/w_powl.c (__powl): Likewise.
10038         * math/w_remainderl.c (__remainderl): Likewise.
10039         * math/w_scalbl.c (sysv_scalbl): Likewise.
10040         * math/w_sinhl.c (__sinhl): Likewise.
10041         * math/w_sqrtl.c (__sqrtl): Likewise.
10042         * math/w_tgammal.c (__tgammal): Likewise.
10043         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10044         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10045         * math/libm-test.inc (acos_test): Add more tests.
10046         (acosh_test): Likewise.
10047         (asin_test): Likewise.
10048         (atanh_test): Likewise.
10049         (exp_test): Likewise.
10050         (exp10_test): Likewise.
10051         (exp2_test): Likewise.
10052         (expm1_test): Likewise.
10053         (lgamma_test): Likewise.
10054         (log_test): Likewise.
10055         (log10_test): Likewise.
10056         (log1p_test): Likewise.
10057         (log2_test): Likewise.
10058         (pow_test): Do not allow some spurious overflow exceptions.
10059         (sqrt_test): Add more tests.
10060         (tgamma_test): Likewise.
10061         (y0_test): Likewise.
10062         (y1_test): Likewise.
10063         (yn_test): Likewise.
10064
10065 2012-03-27  Anton Blanchard  <anton@samba.org>
10066
10067         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10068         MAP_HUGETLB.
10069         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10070         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10071         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10072
10073 2012-03-27  David S. Miller  <davem@davemloft.net>
10074
10075         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10076
10077         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10078         have-as-vis3 check.
10079
10080 2012-03-27  Andreas Jaeger  <aj@suse.de>
10081
10082         * sysdeps/x86_64/elf/configure.in: Moved to ...
10083         * sysdeps/x86_64/configure.in: ... here.
10084         * sysdeps/x86_64/elf/start.S: Moved to ...
10085         * sysdeps/x86_64/start.S: ... here.
10086         * sysdeps/x86_64/elf/configure: Delete.
10087
10088         * sysdeps/x86_64/configure.in: Merge contents from
10089         sysdeps/i386/configure.in (without i686 check).
10090
10091         * sysdeps/i386/elf/Versions: Merge into ...
10092         * sysdeps/i386/Versions: ... this.
10093         * sysdeps/i386/elf/Versions: Delete file.
10094         * sysdeps/i386/elf/start.S: Moved to ...
10095         * sysdeps/i386/start.S: ...here.
10096         * sysdeps/i386/elf/configure.in: Merge into...
10097         * sysdeps/i386/configure.in: ...here.
10098         * sysdeps/i386/elf/configure.in: Delete file.
10099         * sysdeps/i386/elf/configure: Delete file.
10100
10101         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10102         * debug/backtracesyms.c: ... here.
10103         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10104         * debug/backtracesymsfd.c: ... here.
10105         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10106         * sysdeps/generic/ifunc-sel.h: ... here.
10107
10108         * sysdeps/unix/i386/start.c: Delete file.
10109         * sysdeps/unix/sparc/start.c: Delete file.
10110         * sysdeps/unix/start.c: Delete file.
10111
10112         * sysdeps/sh/elf/configure.in: Moved to ...
10113         * sysdeps/sh/configure.in: ... here.
10114         * sysdeps/sh/elf/start.S: Moved to ...
10115         * sysdeps/sh/start.S: ... here.
10116         * sysdeps/sh/elf/configure: Delete file.
10117
10118         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10119         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10120         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10121         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10122         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10123         * sysdeps/powerpc/powerpc64/start.S: here.
10124         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10125         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10126         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10127         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10128         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10129
10130         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10131         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10132         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10133         * sysdeps/powerpc/powerpc32/start.S: ... here.
10134         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10135         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10136         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10137
10138         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10139         * sysdeps/powerpc/ifunc-sel.h: ... here.
10140         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10141         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10142
10143         * sysdeps/sparc/elf/configure.in: Moved to ...
10144         * sysdeps/sparc/configure.in: ... here.
10145         * sysdeps/sparc/elf/configure: Delete file.
10146         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10147         * sysdeps/sparc/sparc32/start.S: ... here.
10148         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10149         * sysdeps/sparc/sparc64/start.S: ... here.
10150         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10151         * sysdeps/sparc/sparc32/Makefile: ... this.
10152         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10153         * sysdeps/sparc/sparc64/Makefile: ... this.
10154
10155         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10156         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10157         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10158         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10159         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10160         * sysdeps/s390/s390-32/setjmp.S: ... here.
10161         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10162         * sysdeps/s390/s390-32/configure.in: ... here.
10163         * sysdeps/s390/s390-32/elf/configure: Delete file.
10164         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10165         * sysdeps/s390/s390-32/start.S: ... here.
10166
10167         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10168         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10169         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10170         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10171         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10172         * sysdeps/s390/s390-64/setjmp.S: ... here.
10173         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10174         * sysdeps/s390/s390-64/configure.in: ... here
10175         * sysdeps/s390/s390-64/elf/configure: Delete file.
10176         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10177         * sysdeps/s390/s390-64/start.S: ... here.
10178         * sysdeps/s390/s390-64/elf/configure: Delete.
10179
10180         * configure.in: Remove support for elf directories in sysdeps.
10181
10182         * configure: Regenerated.
10183         * sysdeps/i386/configure: Regenerated.
10184         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10185         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10186         * sysdeps/s390/s390-32/configure: Regenerated.
10187         * sysdeps/s390/s390-64/configure: Regenerated.
10188         * sysdeps/sh/configure: Regenerated.
10189         * sysdeps/sparc/configure: Regenerated.
10190         * sysdeps/x86_64/configure: Regenerated.
10191
10192 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10193
10194         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10195
10196         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10197         denormal result into account.
10198
10199 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10200
10201         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10202         Reported by Allan McRae <allan@archlinux.org>.
10203
10204 2012-03-23  Jeff Law  <law@redhat.com>
10205
10206         * nss/getnssent.c (__nss_getent): Fix typo.
10207
10208 2012-03-23  David S. Miller  <davem@davemloft.net>
10209
10210         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10211
10212 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10213
10214         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10215         to pad to uint64_t for each field.
10216         (dl_tls_index): Replace unsigned long with uint64_t.
10217
10218 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10219         Paul Pluzhnikov  <ppluzhnikov@google.com>
10220
10221         [BZ #6528]
10222         * grp/Makefile (otherlibs): Don't set it.
10223         * inet/Makefile (otherlibs): Likewise.
10224         * login/Makefile (otherlibs): Likewise.
10225         * nscd/Makefile (otherlibs): Likewise.
10226         * posix/Makefile (otherlibs): Likewise.
10227         * pwd/Makefile (otherlibs): Likewise.
10228         * rt/Makefile (otherlibs): Likewise.
10229         * sunrpc/Makefile (otherlibs): Likewise.
10230         * nss/Makefile (otherlibs): Likewise.
10231         Add libnss_files to routines and static-only-routines.
10232         ($(objpfx)getent): Remove rule.
10233         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10234         static-only-routines.
10235
10236 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10237
10238         [BZ #13892]
10239         * math/s_cexp.c: Include <float.h>.
10240         (__cexp): Handle exp result overflowing not necessarily
10241         overflowing both real and imaginary parts of result.
10242         * math/s_cexpf.c: Likewise.
10243         * math/s_cexpl.c: Likewise.
10244         * math/libm-test.inc (cexp_test): Add more tests.
10245         * sysdeps/i386/fpu/libm-test-ulps: Update.
10246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10247
10248 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10249
10250         * include/link.h (ELFW): New macro.
10251         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10252         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10253
10254 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10255
10256         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10257         with uint64_t.
10258
10259 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10260
10261         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10262         declaration.
10263         (struct La_x32_retval): Likewise.
10264
10265 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10266
10267         * sysdeps/x86_64/preconfigure.in: New file.
10268         * sysdeps/x86_64/preconfigure: New generated file.
10269
10270 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10271
10272         [BZ #13824]
10273         * math/e_exp2l.c: Include <float.h>.
10274         (__ieee754_exp2l): Handle overflow and underflow cases
10275         separately.  Only pass fractional part of argument to
10276         __ieee754_expl.
10277         * math/libm-test.inc (exp2_test): Add more tests.
10278
10279         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10280         negating x to take absolute value.
10281         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10282         Likewise.
10283         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10284         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10285         Likewise.
10286         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10287         computing low part if x was negated.
10288         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10289
10290 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10291
10292         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10293         la_x32_gnu_pltexit.
10294         (pltexit): Cast int_retval to ptrdiff_t.
10295         * elf/tst-auditmod3b.c: Likewise.
10296         * elf/tst-auditmod4b.c: Likewise.
10297         * elf/tst-auditmod5b.c: Likewise.
10298         * elf/tst-auditmod6b.c: Likewise.
10299         * elf/tst-auditmod6c.c: Likewise.
10300         * elf/tst-auditmod7b.c: Likewise.
10301
10302         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10303         and x32_gnu_pltexit.
10304
10305         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10306         __ELF_NATIVE_CLASS.
10307         (La_x32_regs): New macro.
10308         (La_x32_retval): Likewise.
10309         (la_x32_gnu_pltenter): New function prototype.
10310         (la_x32_gnu_pltexit): Likewise.
10311
10312 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10313
10314         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10315         exponent.
10316
10317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10318
10319         * configure.in (libc_cv_cc_nofma): Check for option to disable
10320         generation of FMA instructions.
10321         * configure: Regenerate.
10322         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10323         * sysdeps/ieee754/dbl-64/Makefile: New file.
10324         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10325         Remove brandred-fma4.
10326         (CFLAGS-brandred-fma4.c): Remove.
10327         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10328         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10329         define.
10330         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10331         define.
10332
10333 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10334
10335         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10336         LLONG_MAX != LONG_MAX.
10337         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10338         (_fitoa_word): Likewise.
10339         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10340         LLONG_MAX != LONG_MAX.
10341         * stdio-common/_itowa.h: Include <_itoa.h>.
10342         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10343         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10344         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10345         only if not defined.
10346         (_ITOA_WORD_TYPE): Likewise.
10347         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10348         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10349
10350 2012-03-21  David S. Miller  <davem@davemloft.net>
10351
10352         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10353
10354 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10355
10356         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10357         of x86_64 when setting libc_cv_slibdir, libdir and
10358         libc_cv_localedir.
10359         * sysdeps/unix/sysv/linux/configure: Regenerated.
10360
10361 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10362
10363         * manual/lang.texi (Old Varargs): Remove section.
10364         (How Variadic): Update menu.
10365         (va_start): Do not mention varargs.h.
10366
10367 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10368             Joseph Myers  <joseph@codesourcery.com>
10369
10370         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10371         link test.
10372         * configure: Regenerated.
10373
10374 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10375
10376         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10377         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10378         conformtest.pl
10379
10380 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10381
10382         * NOTES: Remove.
10383         * Makefile (files-for-dist): Remove NOTES.
10384         (NOTES): Remove rule.
10385         * README: Don't refer to NOTES.
10386         * manual/creature.texi: Don't include macros.texi.
10387         * manual/intro.texi (creature.texi): Remove comment referring to
10388         NOTES.
10389
10390         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10391         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10392         * configure: Regenerated.
10393         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10394         LIBC_TRY_CC_OPTION.
10395         (libc_cv_as_i686): Likewise.
10396         (libc_cv_cc_avx): Likewise.
10397         (libc_cv_cc_sse2avx): Likewise.
10398         (libc_cv_cc_fma4): Likewise.
10399         (libc_cv_cc_novzeroupper): Likewise.
10400         * sysdeps/i386/configure: Regenerated.
10401
10402         [BZ #13883]
10403         * sysdeps/i386/fpu/s_cexp.S: Remove.
10404         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10405         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10406         * math/libm-test.inc (cexp_test): Add more tests.
10407         * sysdeps/i386/fpu/libm-test-ulps: Update.
10408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10409
10410 2012-03-21  Allan McRae  <allan@archlinux.org>
10411
10412         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10413
10414 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10415
10416         [BZ #13871]
10417         * math/w_exp2.c: Do not include <float.h>.
10418         (o_threshold, u_threshold): Remove.
10419         (__exp2): Calculate result before checking finiteness and calling
10420         __kernel_standard.
10421         * math/w_exp2f.c: Likewise.
10422         * math/w_exp2l.c: Likewise.
10423         * math/libm-test.inc (exp2_test): Require overflow exception for
10424         1e6 input.
10425
10426         [BZ #3866]
10427         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10428         range of signed 64-bit integers before using fistpll.  Remove
10429         checks for whether integers fit in mantissa bits.
10430         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10431         the range of signed 32-bit integers before using fistpl.  Remove
10432         checks for whether integers fit in mantissa bits.
10433         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10434         (__ieee754_powl): Test for y outside the range of signed 64-bit
10435         integers before using fistpll.  Reduce 64-bit values to 63-bit
10436         ones as needed.
10437         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10438         divide-by-zero is raised for zero to large negative powers.
10439         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10440         (__ieee754_powl): Test for y outside the range of signed 64-bit
10441         integers before using fistpll.  Reduce 64-bit values to 63-bit
10442         ones as needed.
10443         * math/libm-test.inc (pow_test): Add more tests.
10444
10445 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10446
10447         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10448         <stdio-common/_itoa.h>.
10449         * debug/segfault.c: Likewise.
10450         * elf/dl-cache.c: Likewise.
10451         * elf/dl-minimal.c: Likewise.
10452         * elf/dl-misc.c: Likewise.
10453         * elf/dl-sysdep.c: Likewise.
10454         * elf/dl-version.c: Likewise.
10455         * elf/rtld.c: Likewise.
10456         * hurd/hurdsock.c: Likewise.
10457         * hurd/lookup-retry.c: Likewise.
10458         * malloc/malloc.c: Likewise.
10459         * malloc/mtrace.c: Likewise.
10460         * nscd/nscd_getgr_r.c: Likewise.
10461         * nscd/nscd_getpw_r.c: Likewise.
10462         * nscd/nscd_getserv_r.c: Likewise.
10463         * posix/getopt_init.c: Likewise.
10464         * posix/wordexp.c: Likewise.
10465         * stdio-common/_itoa.c: Likewise.
10466         * stdio-common/printf_fphex.c: Likewise.
10467         * stdio-common/vfprintf.c: Likewise.
10468         * string/_strerror.c: Likewise.
10469         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10470         * sysdeps/i386/i686/hp-timing.h: Likewise.
10471         * sysdeps/mach/_strerror.c: Likewise.
10472         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10473         * sysdeps/mach/hurd/sethostid.c: Likewise.
10474         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10475         * sysdeps/mach/xpg-strerror.c: Likewise.
10476         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10477         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10478         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10479         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10480         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10481         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10482         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10483         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10484         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10485         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10486         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10487         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10488         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10489         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10490         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10491         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10492         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10493         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10494         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10495         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10496         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10497
10498         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10499
10500         * stdio-common/_itoa.h: Moved to ...
10501         * sysdeps/generic/_itoa.h: Here.
10502
10503         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10504
10505         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10506         instead of "_itoa.h" and "_itowa.h".
10507         * stdio-common/vfprintf.: Likewise.
10508
10509 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10510
10511         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10512         <bits/wordsize.h>.
10513         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10514         (__signbit): Likwise.
10515         (llrintf): Likwise.
10516         (llrint): Likwise.
10517
10518 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10519
10520         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10521         __WORDSIZE != 64.
10522
10523 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10524
10525         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10526         OVERFLOW_EXCEPTION_OK.
10527         * math/libm-test.inc ("Philosophy"): Update comment about
10528         exception testing.
10529         (OVERFLOW_EXCEPTION): Define.
10530         (OVERFLOW_EXCEPTION_OK): Likewise.
10531         (INVALID_EXCEPTION_OK): Renumber.
10532         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10533         (IGNORE_ZERO_INF_SIGN): Likewise.
10534         (test_exceptions): Handle FE_OVERFLOW.
10535         (exp10_test): Expect overflow exceptions.
10536         (exp2_test): Likewise.
10537         (expm1_test): Likewise.
10538         (nextafter_test): Likewise.
10539         (pow_test): Likewise.
10540         (scalbn_test): Likewise.
10541         (scalbln_test): Likewise.
10542
10543 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10544
10545         * sysdeps/x86_64/bits/atomic.h
10546         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10547         64bit integer.
10548         (atomic_exchange_acq): Likewise.
10549         (__arch_exchange_and_add_body): Likewise.
10550         (__arch_add_body): Likewise.
10551         (atomic_add_negative): Likewise.
10552         (atomic_add_zero): Likewise.
10553
10554 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10555
10556         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10557         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10558
10559 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10560
10561         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10562         Check __x86_64__ instead of __WORDSIZE.
10563
10564 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10565
10566         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10567
10568 2012-03-19  David S. Miller  <davem@davemloft.net>
10569
10570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10571
10572         * sysdeps/sparc/fpu/fenv_private.h: New file.
10573         * sysdeps/sparc/fpu/math_private.h: Use it.
10574         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10575         Remove.
10576         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10577         (libc_feholdexcept_setroundl): Remove.
10578         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10579         Remove.
10580         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10581         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10582
10583 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10584
10585         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10586         int64_t instead of long int.
10587         (INSERT_WORDS64): Likwise.
10588
10589 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10590
10591         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10592         _Unwind_GetCFA return to _Unwind_Ptr first.
10593
10594 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10595
10596         [BZ #13629]
10597         * math/s_clog.c: Include <float.h>.
10598         (__clog): Scale large or subnormal inputs.
10599         * math/s_clogf.c: Likewise.
10600         * math/s_clogl.c: Likewise.
10601         * math/s_clog10.c: Include <float.h>.
10602         (M_LOG10_2): Define.
10603         (__clog10): Scale large or subnormal inputs.
10604         * math/s_clog10f.c: Likewise.
10605         * math/s_clog10l.c: Likewise.
10606         * math/libm-test.inc (clog_test): Add more tests.
10607         (clog10_test): Likewise.
10608         * sysdeps/i386/fpu/libm-test-ulps: Update.
10609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10610
10611         [BZ #11451]
10612         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10613         x and y.
10614         * math/libm-test.inc (atan2_test): Add another test.
10615
10616         * Makerules (common-objdir-compile): Remove.
10617         * sysdeps/unix/Makefile (config-generated): Do not add
10618         $(unix-generated) to variable.
10619         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10620         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10621         Remove rule.
10622         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10623         Likewise.
10624         [generic bits/local_lim.h] (before-compile): Do not append to
10625         variable.
10626         [generic bits/local_lim.h] (common-generated): Likewise.
10627         [generic sys/param.h] (before-compile): Do not append to variable.
10628         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10629         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10630         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10631         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10632         include.
10633         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10634         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10635         [generic sys/param.h] ($(addprefix
10636         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10637         [generic sys/param.h] (common-generated): Do not append to
10638         variable.
10639         [generic sys/param.h] (sysdep_headers): Likewise.
10640         [generic bits/errno.h] (before-compile): Do not append to
10641         variable.
10642         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10643         rule.
10644         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10645         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10646         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10647         [generic bits/errno.h] (common-generated): Do not append to
10648         variable.
10649         [generic bits/ioctls.h] (before-compile): Do not append to
10650         variable.
10651         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10652         rule.
10653         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10654         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10655         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10656         rule.
10657         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10658         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10659         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10660         [generic bits/ioctls.h] (common-generated): Do not append to
10661         variable.
10662         [generic sys/syscall.h] (syscall.h): Remove variable.
10663         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10664         rule.
10665         [generic sys/syscall.h] (before-compile): Do not append to
10666         variable.
10667         [generic sys/syscall.h] (common-generated): Likewise.
10668         * sysdeps/unix/errnos-tmpl.c: Remove file.
10669         * sysdeps/unix/errnos.awk: Likewise.
10670         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10671         * sysdeps/unix/ioctls.awk: Likewise.
10672         * sysdeps/unix/mk-local_lim.c: Likewise.
10673         * sysdeps/unix/snarf-ioctls: Likewise.
10674
10675 2012-03-19  Richard Henderson  <rth@twiddle.net>
10676
10677         * sysdeps/i386/fpu/fenv_private.h: New file.
10678         * sysdeps/i386/fpu/math_private.h: Use it.
10679         (math_opt_barrier, math_force_eval): Remove.
10680         (libc_feholdexcept_setround_53bit): Remove.
10681         (libc_feupdateenv_53bit): Remove.
10682         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10683         (math_opt_barrier, math_force_eval): Remove.
10684         (libc_feholdexcept): Remove.
10685         (libc_feholdexcept_setround): Remove.
10686         (libc_fetestexcept, libc_fesetenv): Remove.
10687         (libc_feupdateenv_test): Remove.
10688         (libc_feupdateenv, libc_feholdsetround): Remove.
10689         (libc_feresetround): Remove.
10690
10691         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10692         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10693
10694         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10695         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10696         (libc_feupdateenv_testl): New.
10697         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10698         (libc_feupdateenv_testf): New.
10699         (libc_feupdateenv): Use libc_feupdateenv_test.
10700         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10701         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10702
10703         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10704         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10705         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10706         (libc_feresetround_noex): New.
10707         (libc_feresetround_noexf): New.
10708         (libc_feresetround_noexl): New.
10709         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10710         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10711         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10712         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10713         SET_RESTORE_ROUND.
10714         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10715         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10716         (__cos): Likewise.
10717         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10718         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10719         SET_RESTORE_ROUND_NOEX.
10720         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10721         SET_RESTORE_ROUND_NOEXF.
10722         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10723         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10724         (libc_feholdsetroundf): New.
10725         (libc_feresetround, libc_feresetroundf): New.
10726
10727         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10728         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10729         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10730
10731         * sysdeps/generic/math_private.h: Include <fenv.h>.
10732         (default_libc_feholdexcept): New.
10733         (default_libc_feholdexcept_setround): New.
10734         (default_libc_fesetenv, default_libc_feupdateenv): New.
10735         (libc_feholdexcept): Only define if undefined.
10736         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10737         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10738         (libc_feholdexcept_setroundl): Likewise.
10739         (libc_feholdexcept_setround_53bit): Likewise.
10740         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10741         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10742         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10743         (libc_feupdateenv_53bit): Likewise.
10744         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10745         (libc_feholdexcept): Convert from macro to inline function.
10746         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10747         (libc_fesetenv, libc_feupdateenv): Likewise.
10748
10749         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10750         not previously defined.
10751         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10752         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10753         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10754         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10755         * sysdeps/ieee754/flt-32/math_private.h: New file.
10756         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10757         math_private.h below SET_FLOAT_WORD.
10758         (__isnan, __isinf_ns, __finite): Remove.
10759         (__isnanf, __isinf_nsf, __finitef): Remove.
10760
10761 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10762
10763         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10764
10765 2012-03-17  David S. Miller  <davem@davemloft.net>
10766
10767         [BZ #6471]
10768         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10769         for 2.16.
10770
10771 2012-03-16  David S. Miller  <davem@davemloft.net>
10772
10773         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10774         warnings.
10775
10776         [BZ #6471]
10777         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10778         properly.
10779         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10780         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10781         sysdep_routines when subdir is sysvipc.
10782         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10783         __getshmlba helper.
10784
10785         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10786
10787 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10788
10789         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10790         [__LP64__].
10791
10792 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10793
10794         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10795         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10796         (__lround): Renamed to ...
10797         (__llround): This.  Replace long int with long long int.
10798         Define lround functions as aliases of llround functions.
10799         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10800
10801 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10802
10803         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10804         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10805         adresses to uintptr_t.  Replace "long int" and "unsigned long
10806         int" with "greg_t" on va_arg.
10807
10808 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10809
10810         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10811         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10812
10813         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10814         Move e_machine check before EI_CLASS check.  Handle x32
10815         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10816         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10817         SKIP_EM_IA_64 and include
10818         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10819
10820         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10821         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10822         (add_system_dir): New macro.
10823
10824         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10825         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10826
10827 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10828
10829         [BZ #2551]
10830         [BZ #2552]
10831         [BZ #2553]
10832         [BZ #2554]
10833         [BZ #2562]
10834         [BZ #2563]
10835         [BZ #2565]
10836         [BZ #2566]
10837         [BZ #2576]
10838         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10839         (y0): Likewise.
10840         * math/w_j0f.c (j0f): Likewise.
10841         (y0f): Likewise.
10842         * math/w_j0l.c (__j0l): Likewise.
10843         (__y0l): Likewise.
10844         * math/w_j1.c (j1): Likewise.
10845         (y1): Likewise.
10846         * math/w_j1f.c (j1f): Likewise.
10847         (y1f): Likewise.
10848         * math/w_j1l.c (__j1l): Likewise.
10849         (__y1l): Likewise.
10850         * math/w_jn.c (jn): Likewise.
10851         (yn): Likewise.
10852         * math/w_jnf.c (jnf): Likewise.
10853         (ynf): Likewise.
10854         * math/w_jnl.c (__jnl): Likewise.
10855         (__ynl): Likewise.
10856         * math/libm-test.inc (j0_test): Add more tests.
10857         (j1_test): Likewise.
10858         (jn_test): Likewise.  Add trailing semicolon to existing test.
10859         (y0_test): Likewise.
10860         (y1_test): Likewise.
10861         * sysdeps/i386/fpu/libm-test-ulps: Update.
10862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10863
10864         [BZ #13851]
10865         [BZ #13854]
10866         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10867         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10868         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10869         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10870         (__tanl): Set errno for infinite argument.
10871         * sysdeps/i386/fpu/mptan.c: Remove.
10872         * sysdeps/i386/fpu/s_tan.S: Likewise.
10873         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10874         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10875         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10876         * math/libm-test.inc (tan_test): Add more tests and enable more
10877         tests for double and long double.
10878         * sysdeps/i386/fpu/libm-test-ulps: Update.
10879         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10880
10881 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10882
10883         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10884         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10885
10886 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10887
10888         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10889         * configure.in: Use it for both main tree and add-ons.
10890         * configure: Regenerated.
10891
10892 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10893
10894         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10895
10896 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10897
10898         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10899         in comment.
10900
10901         [BZ #13851]
10902         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10903         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10904         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10905         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10906         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10907         infinite argument.
10908         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10909         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10910         != 0 for prec == 2.
10911         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10912         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10913         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10914         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10915         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10916         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10917         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10918         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10919         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10920         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10921         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10922         * math/libm-test.inc (cos_test): Add more tests and enable more
10923         tests for long double.
10924         (sin_test): Likewise.
10925         (sincos_test): Likewise.
10926         * sysdeps/i386/fpu/libm-test-ulps: Update.
10927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10928
10929 2012-03-16  David S. Miller  <davem@davemloft.net>
10930
10931         * sysdeps/sparc/fpu/math_private.h: New file.
10932
10933 2012-03-15  David S. Miller  <davem@davemloft.net>
10934
10935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10936         file.
10937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10939         file.
10940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10941         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10942         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10945         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10946         sysdep routines.
10947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10948
10949         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10950         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10951
10952         * sysdeps/sparc/sparc-ifunc.h: New file.
10953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10954         sparc-ifunc.h
10955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10957         Likewise.
10958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10959         Likewise.
10960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10964         Likewise.
10965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10970         Likewise.
10971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10972         Likewise.
10973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10977         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10978         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10979         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10980         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10981         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10982         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10984         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10986         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10987         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10988         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10989         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10990         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10991         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10992         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10997
10998 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10999
11000         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11001         scaling.
11002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11003
11004 2012-03-15  Andreas Jaeger  <aj@suse.de>
11005
11006         [BZ #13852]
11007         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11008         ieee754/flt-32 implementation for sin, cos and sincos.
11009         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11010         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11011         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11012         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11013         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11014         ieee754/flt-32 implementation for tan.
11015
11016         * math/libm-test.inc (cos_test): Enable some large input tests for
11017         float as well
11018         (sin_test): Likewise.
11019         (sincos_test): Likewise.
11020         (tan_test): Add tests for large input.
11021
11022         * sysdeps/i386/fpu/libm-test-ulps: Update.
11023
11024 2012-03-15  Andreas Jaeger  <aj@suse.de>
11025
11026         [BZ #13658]
11027         * math/libm-test.inc (cos_test): Add more test cases.
11028         (sin_test): Likewise.
11029         (sincos_test): Likewise.
11030
11031 2012-03-15  Andreas Jaeger  <aj@suse.de>
11032
11033         [BZ #13837]
11034         * math/libm-test.inc (cos_test): Add a test case for large input
11035         value.
11036         (sin_test): Likewise.
11037         (sincos_test): Likewise.
11038
11039 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11040         Joseph Myers  <joseph@codesourcery.com>
11041
11042         [BZ #13658]
11043         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11044         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11045         * sysdeps/i386/fpu/branred.c: Likewise.
11046         * sysdeps/i386/fpu/dosincos.c: Likewise.
11047         * sysdeps/i386/fpu/mpa.c: Likewise.
11048         * sysdeps/i386/fpu/s_cos.S: Likewise.
11049         * sysdeps/i386/fpu/s_sin.S: Likewise.
11050         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11051         * sysdeps/i386/fpu/sincos32.c: Likewise.
11052
11053         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11054         Define.
11055         (libc_feupdateenv_53bit): Define.
11056         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11057         Define.
11058         (libc_feupdateenv_53bit): Define.
11059
11060         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11061         53 bit (without extend i386 double precision).
11062
11063         * math/libm-test.inc (sincos_test): Add tests for large input.
11064         (sin): Likewise.
11065         (cos): Likewise.
11066
11067         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11068
11069 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11070
11071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11072
11073 2012-03-15  David S. Miller  <davem@davemloft.net>
11074
11075         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11076         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11077         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11078         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11079         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11081         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11082         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11083         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11084         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11085         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11086         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11087         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11091         file.
11092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11094         file.
11095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11097         file.
11098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11100         file.
11101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11102         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11103         fmin/fmax sysdep routines.
11104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11105
11106 2012-03-14  David S. Miller  <davem@davemloft.net>
11107
11108         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11109         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11110         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11111         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11112         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11113         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11114         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11115         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11116         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11117         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11118         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11119         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11120         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11121         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11122         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11123         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11124         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11125         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11126         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11127         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11128         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11129         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11130         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11131         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11132         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11133         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11134         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11135         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11136         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11137         routines.
11138         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11139         file.
11140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11142         file.
11143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11145         file.
11146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11148         file.
11149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11151         file.
11152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11154         file.
11155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11156         file.
11157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11158         file.
11159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11160         file.
11161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11162         New file.
11163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11164         file.
11165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11166         file.
11167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11169         file.
11170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11172         file.
11173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11175         file.
11176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11178         VIS3 routines.
11179
11180         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11181         New file.
11182
11183         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11184
11185         * sysdeps/sparc/configure.in: New file.
11186         * sysdeps/sparc/configure: Generate.
11187         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11188         * configure: Regenerate.
11189         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11190         * config.make.in (have-as-vis3): New.
11191         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11192         available use -Av9d instead of -Av9a.
11193         * sysdeps/sparc/sparc64/Makefile: Likewise.
11194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11196         New file.
11197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11198         file.
11199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11200         New file.
11201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11202         file.
11203         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11204         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11205         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11206         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11207         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11208
11209         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11210         fzeros/fnegs to load 0x80000000 into a float register instead of
11211         using the stack.
11212         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11213
11214 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11215
11216         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11217         bits/syscall.h.
11218         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11219         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11220         ($(inst_includedir)/bits/syscall.h): Remove rule.
11221         ($(objpfx)bits/syscall.d): Include instead of
11222         $(objpfx)syscall-list.d.
11223         (generated): Change syscall-list.h and syscall-list.d to
11224         bits/syscall.h and bits/syscall.d.
11225
11226 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11227
11228         [BZ #13846]
11229         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11230
11231 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11232
11233         [BZ #13841]
11234         * math/s_csqrt.c: Include <float.h>.
11235         (__csqrt): Scale large or subnormal inputs.
11236         * math/s_csqrtf.c: Likewise.
11237         * math/s_csqrtl.c: Likewise.
11238         * math/libm-test.inc (csqrt_test): Add more tests.
11239         * sysdeps/i386/fpu/libm-test-ulps: Update.
11240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11241
11242         [BZ #13840]
11243         * math/libm-test.inc (hypot_test): Add more tests.
11244
11245 2012-03-13  David S. Miller  <davem@davemloft.net>
11246
11247         [BZ #13840]
11248         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11249         double-precision for the calculation instead of scaling.
11250
11251 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11252
11253         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11254         manipulate bits before adding and subtracting TWO52[sx].
11255         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11256         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11257         Likewise.
11258         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11259
11260 2012-03-13  David S. Miller  <davem@davemloft.net>
11261
11262         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11263         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11264         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11265         rtld-global-offsets.h
11266         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11267
11268         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11269         large parameters.
11270
11271         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11272
11273         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11274         'err' in the ifdef scope in which it is actually used.
11275
11276         * nss/nss_db/db-init.c: Include string.h
11277
11278 2012-03-12  David S. Miller  <davem@davemloft.net>
11279
11280         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11281         masking out of the most significant byte of random value used.
11282         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11283         Fix coding style in previous change.
11284
11285         * sysdeps/unix/sysv/linux/kernel-features.h
11286         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11287         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11288         expression.
11289         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11290         later.
11291
11292 2012-03-11  David S. Miller  <davem@davemloft.net>
11293
11294         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11295         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11296         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11297         for 'resultvar' otherwise things get truncated on 64-bit.
11298
11299         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11300         Fix masking out of the most significant byte of random value used.
11301
11302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11303
11304 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11305
11306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11307
11308 2012-03-09  David S. Miller  <davem@davemloft.net>
11309
11310         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11311         variables with appropriate CPP guards.
11312         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11313         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11314         on resulting framesize and the management of the outregs buffer for pltexit.
11315         Preserve floating point return values across _dl_call_pltexit call.
11316         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11317         framesize and the management of the outregs buffer for pltexit.
11318         Preserve floating point return values across _dl_call_pltexit
11319         call.
11320         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11321         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11322         (print_exit): Fix format string for return register value.
11323
11324 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11325
11326         * sunrpc/Makefile (others): Add rpcgen.
11327         ($(objpfx)rpcgen): Remove special build rule and dependency on
11328         libc.
11329         * sunrpc/rpcgen.c: New file.
11330
11331 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11332
11333         [BZ #13673]
11334         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11335         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11336         * sysdeps/i386/crti.S: Likewise.
11337         * sysdeps/i386/crtn.S: Likewise.
11338         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11339         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11340         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11341         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11342         * sysdeps/sh/crti.S: Likewise.
11343         * sysdeps/sh/crtn.S: Likewise.
11344         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11345
11346         [BZ #13673]
11347         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11348         with URL.
11349         * locale/programs/locfile-kw.gperf: Likewise.
11350         * locale/programs/charmap-kw.h: Regenerated.
11351         * locale/programs/locfile-kw.h: Likewise.
11352
11353         [BZ #13673]
11354         * intl/plural.y: Replace FSF snail mail address with URL.
11355         * intl/plural.c: Regenerated.
11356
11357 2012-03-09  Richard Henderson  <rth@twiddle.net>
11358
11359         * include/math_private.h: Remove file.
11360         * math/math_private.h: Move file ...
11361         * sysdeps/generic/math_private.h: ... here.
11362
11363         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11364         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11365         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11366
11367         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11368         and <math_private.h>.
11369         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11370         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11371         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11372         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11373         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11374         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11375         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11376         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11377         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11378         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11379         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11394         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11395         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11396         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11397         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11398         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11399         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11400         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11401         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11402         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11403         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11404         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11405         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11406         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11407         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11408         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11409         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11410         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11411         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11412         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11413         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11414         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11415         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11416         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11417         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11418         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11419         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11420         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11421         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11422         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11423         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11424         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11425         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11426         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11427         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11428         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11429         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11430         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11431         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11432         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11433         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11434         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11435         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11436         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11437         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11438         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11439         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11440         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11441         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11442         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11443         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11444         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11445         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11446         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11447         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11448         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11449         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11450         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11451         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11452         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11453         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11454         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11455         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11456         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11457         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11458         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11459         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11460         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11461         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11462         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11463         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11464         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11465         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11466         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11467         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11468         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11469         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11470         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11471         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11472         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11473         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11474         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11475         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11476         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11477         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11478         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11479         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11480         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11481         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11482         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11483         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11484         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11485         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11486         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11487         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11488         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11489         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11490         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11491         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11492         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11493         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11494         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11495         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11496         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11497         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11498         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11499         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11500         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11501         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11502         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11503         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11504         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11505         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11506         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11507         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11508         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11509         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11510         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11511         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11512         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11513         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11514         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11515         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11516         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11517         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11518         * sysdeps/ieee754/k_standard.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11586         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11592         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11593         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11596         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11599         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11604         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11610         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11612         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11616         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11622         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11623         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11624         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11625         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11626         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11627         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11629         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11634         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11636         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11638         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11639         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11640         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11641         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11642         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11643         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11644         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11645         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11646         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11647         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11649         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11651         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11657         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11664         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11666         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11667         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11668         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11669         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11676         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11678         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11679         * sysdeps/ieee754/s_lib_version.c: Likewise.
11680         * sysdeps/ieee754/s_matherr.c: Likewise.
11681         * sysdeps/ieee754/s_signgam.c: Likewise.
11682         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11683         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11684         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11685         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11686         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11687         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11688         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11689         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11690         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11691         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11692         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11693         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11694         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11695         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11696         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11697         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11698         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11699         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11700         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11701         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11702         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11703
11704 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11705
11706         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11707         * sunrpc/rpc_main.c: Likewise.
11708         * sunrpc/rpc_svcout.c: Likewise.
11709
11710 2012-03-09  David S. Miller  <davem@davemloft.net>
11711
11712         * include/math_private.h: New file.
11713
11714 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11717         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11718         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11719         from <bits/socket_type.h>.
11720         (enum __socket_type): Don't define here.
11721         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11722         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11723         bits/socket_type.h.
11724
11725         [BZ #13566]
11726         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11727         checking __USE_GNU.
11728
11729         * Makerules ($(inst_includedir)/%.h): New rule.
11730         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11731         (install-others): Remove variable setting.
11732         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11733
11734 2012-03-08  Richard Henderson  <rth@twiddle.net>
11735
11736         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11737         from macro to inline function; merge with the
11738         !__LIBC_INTERNAL_MATH_INLINES version.
11739         (__ieee754_sqrtf): Likewise.
11740
11741         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11742         to inline function.
11743         (__rintf, __floor, __floorf): Likewise.
11744
11745         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11746         macro to inline function.
11747         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11748
11749         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11750         not <math/math_private.h>.
11751
11752 2012-03-08  David S. Miller  <davem@davemloft.net>
11753
11754         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11755         copyright year.
11756         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11757
11758 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11759
11760         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11761         normalization.
11762         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11763         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11764
11765 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11766
11767         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11768         be defined individually, they must be defined as a block.  Define
11769         S for printing a string instead of hidint the different by using a
11770         macro for adding the 'l'.
11771         * stdio-common/tst-fphex-wide.c: Adjust.
11772
11773 2012-03-07  Marek Polacek  <polacek@redhat.com>
11774
11775         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11776
11777 2012-03-08  Marek Polacek  <polacek@redhat.com>
11778
11779         [BZ #13806]
11780         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11781         * stdio-common/tst-fphex.c: Define a few macros to make the
11782         test reusable.  Use them.
11783         * stdio-common/tst-fphex-wide.c: New file.
11784
11785 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11786
11787         [BZ #6911]
11788         * manual/macros.texi (gnusystems): New macro.
11789         (nongnusystems): Likewise.
11790         (gnulinuxhurdsystems): Likewise.
11791         (gnuhurdsystems): Likewise..
11792         (gnulinuxsystems): Likewise.
11793         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11794         variants of the GNU system, not "GNU system".
11795         * manual/conf.texi: Likewise.
11796         * manual/errno.texi: Likewise.  Update example of errno macro
11797         expansion.
11798         * manual/filesys.texi: Likewise.
11799         (getumask): Document as specific to GNU/Hurd.
11800         * manual/install.texi: Likewise.  Reword some references to
11801         GNU/Linux.
11802         * manual/intro.texi: Likewise.
11803         * manual/io.texi: Likewise.
11804         (File Name Portability): Detail which constraints are inapplicable
11805         to all GNU systems and which are only inapplicable to GNU/Hurd.
11806         * manual/job.texi: Likewise.
11807         * manual/llio.texi: Likewise.
11808         (O_NOCTTY): Document as present on GNU/Linux.
11809         * manual/maint.texi: Likewise.
11810         * manual/memory.texi: Likewise.
11811         * manual/pattern.texi: Likewise.
11812         * manual/pipe.texi: Likewise.
11813         * manual/process.texi: Likewise.
11814         * manual/resource.texi: Likewise.
11815         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11816         child on GNU/Hurd.
11817         * manual/setjmp.texi: Likewise.
11818         * manual/signal.texi: Likewise.
11819         * manual/startup.texi: Likewise.
11820         * manual/stdio.texi: Likewise.
11821         * manual/terminal.texi: Likewise.
11822         (ONLCR): Document as POSIX.
11823         (OXTABS): Document availability on GNU/Linux as XTABS.
11824         (ONOEOT): Document availability separately from other bits.
11825         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11826         * manual/time.texi: Likewise.
11827         * manual/users.texi: Likewise.
11828         * INSTALL: Regenerated.
11829         * sysdeps/gnu/errlist.c: Regenerated.
11830
11831         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11832         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11833         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11834         puts.
11835         * configure: Regenerated.
11836
11837 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11838
11839         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11840         default includes instead of AC_HEADER_CHECK.
11841         * sysdeps/i386/configure: Regenerated.
11842
11843         [BZ #10716]
11844         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11845         * math/s_cacoshf.c (__cacoshf): Likewise.
11846         * math/s_cacoshl.c (__cacoshl): Likewise.
11847         * math/s_casinh.c (__casinh): Set signs of result from argument.
11848         * math/s_casinhf.c (__casinhf): Likewise.
11849         * math/s_casinhl.c (__casinhl): Likewise.
11850         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11851         (casinh_test): Add more tests.
11852         * sysdeps/i386/fpu/libm-test-ulps: Update.
11853         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11854
11855 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11856
11857         * po/zh_TW.po: Update from translation team.
11858
11859         * login/Makefile (distribute): Remove variable.
11860         * catgets/Makefile: Likewise.
11861         * mach/Makefile: Likewise.
11862         * malloc/Makefile: Likewise.
11863         * misc/Makefile: Likewise.
11864         * iconv/Makefile: Likewise.
11865         * nscd/Makefile: Likewise.
11866         * hurd/Makefile: Likewise.
11867         * manual/Makefile: Likewise.
11868         * locale/Makefile: Likewise.
11869         * intl/Makefile: Likewise.
11870         * conform/Makefile: Likewise.
11871         * nss/Makefile: Likewise.
11872         * time/Makefile: Likewise.
11873         * soft-fp/Makefile: Likewise.
11874         * dirent/Makefile: Likewise.
11875         * gmon/Makefile: Likewise.
11876         * po/Makefile: Likewise.
11877         * rt/Makefile: Likewise.
11878         * socket/Makefile: Likewise.
11879         * math/Makefile: Likewise.
11880         * signal/Makefile: Likewise.
11881         * debug/Makefile: Likewise.
11882         * elf/Makefile: Likewise.
11883         * timezone/Makefile: Likewise.
11884         * stdlib/Makefile: Likewise.
11885         * iconvdata/Makefile: Likewise.
11886         * sunrpc/Makefile: Likewise.
11887         * io/Makefile: Likewise.
11888         * argp/Makefile: Likewise.
11889         * inet/Makefile: Likewise.
11890         * hesiod/Makefile: Likewise.
11891         * grp/Makefile: Likewise.
11892         * csu/Makefile: Likewise.
11893         * wctype/Makefile: Likewise.
11894         * crypt/Makefile: Likewise.
11895         * libio/Makefile: Likewise.
11896         * string/Makefile: Likewise.
11897         * nis/Makefile: Likewise.
11898         * resolv/Makefile: Likewise.
11899         * stdio-common/Makefile: Likewise.
11900         * wcsmbs/Makefile: Likewise.
11901         * dlfcn/Makefile: Likewise.
11902         * posix/Makefile: Likewise.
11903
11904         [BZ #6959]
11905         * timezone/Makefile: Don't install timezone files, just the programs
11906         and scripts.
11907
11908 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11909
11910         * nss/databases.def: Add missing gshadow entry.
11911
11912         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11913
11914 2012-03-06  Marek Polacek  <polacek@redhat.com>
11915
11916         [BZ #13726]
11917         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11918         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11919         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11920         * stdio-common/tst-long-dbl-fphex.c: New file.
11921
11922 2012-03-06  David S. Miller  <davem@davemloft.net>
11923
11924         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11925         (set_obp_int): New function.
11926         (get_obp_int): New function.
11927         (__get_clockfreq_via_dev_openprom): Likewise.
11928         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11929         Avoid unused variable warnings on 'val' and use builtin_expect.
11930         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11931         __builtin_expect.
11932         (INLINE_CLONE_SYSCALL): Likewise.
11933
11934 2012-03-05  David S. Miller  <davem@davemloft.net>
11935
11936         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11937
11938 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11939
11940         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11941
11942         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11943         only for |x| >= 40.
11944         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11945
11946 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11947
11948         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11949         Replace gettimeofday with __vdso_gettimeofday.
11950
11951         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11952         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11953         __vdso_clock_gettime and __vdso_getcpu.
11954
11955         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11956         time with __vdso_time.
11957
11958 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11959
11960         * manual/lang.texi (size_t): Note types to which size_t may be
11961         equivalent with the GNU C Library, but do not describe when
11962         differences between them are significant.
11963
11964 2012-03-05  Andreas Jaeger  <aj@suse.de>
11965
11966         * sysdeps/i386/fpu/libm-test-ulps: Update.
11967
11968 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11969
11970         [BZ #3976]
11971         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11972         (__ieee754_pow): Save and restore rounding mode and use
11973         round-to-nearest for main computations.
11974         * math/libm-test.inc (pow_test_tonearest): New function.
11975         (pow_test_towardzero): Likewise.
11976         (pow_test_downward): Likewise.
11977         (pow_test_upward): Likewise.
11978         (main): Call the new functions.
11979         * sysdeps/i386/fpu/libm-test-ulps: Update.
11980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11981
11982         [BZ #3976]
11983         * math/libm-test.inc (cosh_test_tonearest): New function.
11984         (cosh_test_towardzero): Likewise.
11985         (cosh_test_downward): Likewise.
11986         (cosh_test_upward): Likewise.
11987         (sinh_test_tonearest): Likewise.
11988         (sinh_test_towardzero): Likewise.
11989         (sinh_test_downward): Likewise.
11990         (sinh_test_upward): Likewise.
11991         (main): Call the new functions.
11992         * sysdeps/i386/fpu/libm-test-ulps: Update.
11993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11994
11995 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11996
11997         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11998         default stack guard is set in last bytes.
11999         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12000
12001 2012-03-05  Kees Cook  <keescook@chromium.org>
12002
12003         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12004
12005         [BZ #13656]
12006         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12007         possibly allocate from heap instead of stack.
12008         * stdio-common/bug-vfprintf-nargs.c: New file.
12009         * stdio-common/Makefile (tests): Add nargs overflow test.
12010
12011 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12012
12013         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12014
12015 2012-03-03  Marek Polacek  <polacek@redhat.com>
12016
12017         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12018         * math/math_private.h: Likewise.
12019         * stdlib/tst-strtod.c: Likewise.
12020         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12021         * sysdeps/x86_64/bits/atomic.h: Likewise.
12022
12023 2012-03-02  David S. Miller  <davem@davemloft.net>
12024
12025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12029         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12030         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12031         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12032         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12033
12034 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12035
12036         [BZ #13792]
12037         * manual/examples/README: New file, says the example source files
12038         can be used under GPL>=2.
12039         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12040         line containing just "*/".
12041         * manual/examples/add.c: Add copyright header (GPL>=2).
12042         * manual/examples/argp-ex1.c: Likewise.
12043         * manual/examples/argp-ex2.c: Likewise.
12044         * manual/examples/argp-ex3.c: Likewise.
12045         * manual/examples/argp-ex4.c: Likewise.
12046         * manual/examples/atexit.c: Likewise.
12047         * manual/examples/db.c: Likewise.
12048         * manual/examples/dir.c: Likewise.
12049         * manual/examples/dir2.c: Likewise.
12050         * manual/examples/execinfo.c: Likewise.
12051         * manual/examples/filecli.c: Likewise.
12052         * manual/examples/filesrv.c: Likewise.
12053         * manual/examples/fmtmsgexpl.c: Likewise.
12054         * manual/examples/genpass.c: Likewise.
12055         * manual/examples/inetcli.c: Likewise.
12056         * manual/examples/inetsrv.c: Likewise.
12057         * manual/examples/isockad.c: Likewise.
12058         * manual/examples/longopt.c: Likewise.
12059         * manual/examples/memopen.c: Likewise.
12060         * manual/examples/memstrm.c: Likewise.
12061         * manual/examples/mkfsock.c: Likewise.
12062         * manual/examples/mkisock.c: Likewise.
12063         * manual/examples/mygetpass.c: Likewise.
12064         * manual/examples/pipe.c: Likewise.
12065         * manual/examples/popen.c: Likewise.
12066         * manual/examples/rprintf.c: Likewise.
12067         * manual/examples/search.c: Likewise.
12068         * manual/examples/select.c: Likewise.
12069         * manual/examples/setjmp.c: Likewise.
12070         * manual/examples/sigh1.c: Likewise.
12071         * manual/examples/sigusr.c: Likewise.
12072         * manual/examples/stpcpy.c: Likewise.
12073         * manual/examples/strdupa.c: Likewise.
12074         * manual/examples/strftim.c: Likewise.
12075         * manual/examples/strncat.c: Likewise.
12076         * manual/examples/subopt.c: Likewise.
12077         * manual/examples/swapcontext.c: Likewise.
12078         * manual/examples/termios.c: Likewise.
12079         * manual/examples/testopt.c: Likewise.
12080         * manual/examples/testpass.c: Likewise.
12081         * manual/examples/timeval_subtract.c: Likewise.
12082
12083         [BZ #13792]
12084         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12085         function to ...
12086         * manual/timeval_subtract.c.texi: ... here, new file.
12087
12088 2012-03-02  David S. Miller  <davem@davemloft.net>
12089
12090         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12091
12092 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12093
12094         [BZ #3976]
12095         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12096         (__sin): Save and restore rounding mode and use round-to-nearest
12097         for all computations.
12098         (__cos): Save and restore rounding mode and use round-to-nearest
12099         for all computations.
12100         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12101         <fenv.h>.
12102         (tan): Save and restore rounding mode and use round-to-nearest for
12103         all computations.
12104         * math/libm-test.inc (cos_test_tonearest): New function.
12105         (cos_test_towardzero): Likewise.
12106         (cos_test_downward): Likewise.
12107         (cos_test_upward): Likewise.
12108         (sin_test_tonearest): Likewise.
12109         (sin_test_towardzero): Likewise.
12110         (sin_test_downward): Likewise.
12111         (sin_test_upward): Likewise.
12112         (tan_test_tonearest): Likewise.
12113         (tan_test_towardzero): Likewise.
12114         (tan_test_downward): Likewise.
12115         (tan_test_upward): Likewise.
12116         (main): Call the new functions.
12117         * sysdeps/i386/fpu/libm-test-ulps: Update.
12118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12119
12120         [BZ #10135]
12121         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12122         small n, then large n, before computing and testing k+n.
12123         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12124         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12125         Likewise.
12126         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12127         Likewise.
12128         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12129         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12130         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12131         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12132         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12133         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12134         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12135         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12136         * math/libm-test.inc (scalbn_test): Add more tests.
12137         (scalbln_test): Likewise.
12138
12139         * manual/filesys.texi (mode_t): Describe constraints on size and
12140         signedness, not exact equivalence to a particular type.
12141         (ino_t): Likewise.
12142         (ino64_t): Likewise.
12143         (dev_t): Likewise.
12144         (nlink_t): Likewise.
12145         (blkcnt_t): Likewise.
12146         (blkcnt64_t): Likewise.
12147         * manual/llio.texi (off_t): Likewise.
12148
12149         [BZ #3976]
12150         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12151         (__ieee754_exp): Save and restore rounding mode and use
12152         round-to-nearest for all computations.
12153         * math/libm-test.inc (exp_test_tonearest): New function.
12154         (exp_test_towardzero): Likewise.
12155         (exp_test_downward): Likewise.
12156         (exp_test_upward): Likewise.
12157         (main): Call the new functions.
12158         * sysdeps/i386/fpu/libm-test-ulps: Update.
12159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12160
12161 2012-03-01  Chris Demetriou  <cgd@google.com>
12162
12163         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12164         have predictable order.
12165
12166 2012-03-01  David S. Miller  <davem@davemloft.net>
12167
12168         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12169
12170         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12171         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12172         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12173         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12174
12175         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12176         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12177         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12178         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12179         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12180         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12181         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12182         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12183         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12184
12185         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12186
12187         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12188         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12189         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12190
12191         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12192         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12193         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12194         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12195         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12196         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12197         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12198         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12199         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12200         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12201         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12202         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12203         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12204         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12205         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12206         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12207         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12208         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12209         * sysdeps/sparc/elf/configure: Regenerated.
12210
12211 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12212
12213         * configure.in (AS, LD): Require binutils 2.20 or later.
12214         * configure: Regenerated.
12215         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12216         as required minimum version.
12217         * INSTALL: Regenerated.
12218
12219         [BZ #2541]
12220         [BZ #4108]
12221         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12222         before squaring exponent.
12223         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12224         bottom long double and 27 bits of top long double before squaring
12225         exponent.
12226         * math/libm-test.inc (erfc_test): Add more tests.
12227         * sysdeps/i386/fpu/libm-test-ulps: Update.
12228         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12230
12231 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12232
12233         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12234         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12235         containing bit-fields.
12236         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12237         * soft-fp/single.h (_FP_UNION_S): Likewise.
12238         * soft-fp/double.h (_FP_UNION_D): Likewise.
12239
12240 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12241
12242         [BZ #13786]
12243         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12244         not include ../strcmp.S.
12245         [USE_AS_STRNCASECMP_L]: Likewise.
12246         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12247         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12248         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12249         (__strncasecmp_l_ia32): Define as alias to
12250         __strncasecmp_l_nonascii.
12251
12252         [BZ #5794]
12253         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12254         * sysdeps/i386/fpu/libm-test-ulps: Update.
12255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12256
12257         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12259
12260 2012-02-29  Jeff Law  <law@redhat.com>
12261
12262         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12263         out of bounds read.
12264
12265 2012-02-29  Marek Polacek  <polacek@redhat.com>
12266
12267         [BZ #13706]
12268         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12269         * elf/Makefile: Add rules to run tst-unused-dep.out.
12270
12271 2012-02-28  David S. Miller  <davem@davemloft.net>
12272
12273         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12274         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12276         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12277         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12278         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12279
12280 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12281
12282         * math/libm-test.inc (llround_test): Move one test from
12283         lround_test.  Use TEST_f_L in moved test.
12284         (lround_test): Move misplaced test to llround_test.  Add testcase
12285         from bug 2561.
12286
12287 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12288
12289         * sysdeps/x86_64/fpu/e_expf.S: New file.
12290         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12291
12292 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12293
12294         [BZ #13637]
12295         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12296         of remain_len that may cause incomplete multi-byte character and
12297         false match.
12298         * posix/bug-regex33.c: New file.
12299         * posix/Makefile (tests): Add bug-regex33.
12300
12301 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12302
12303         * manual/macros.texi: New file.
12304         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12305         * manual/libc.texinfo: Include macros.texi.
12306         * manual/creatute.texi: Likewise.
12307         * manual/install.texi: Likewise.
12308         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12309         @glibcadj{} in references to the GNU C Library.
12310         * manual/charset.texi: Likewise.
12311         * manual/conf.texi: Likewise.
12312         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12313         when not using those macros.
12314         * manual/creature.texi: Likewise.
12315         * manual/crypt.texi: Likewise.
12316         * manual/errno.texi: Likewise.
12317         * manual/filesys.texi: Likewise.
12318         * manual/header.texi: Likewise.
12319         * manual/install.texi: Likewise.
12320         * manual/intro.texi: Likewise.
12321         * manual/io.texi: Likewise.
12322         * manual/job.texi: Likewise.
12323         * manual/lang.texi: Likewise.
12324         * manual/libc.texiinfo: Likewise.
12325         * manual/llio.texi: Likewise.
12326         * manual/locale.texi: Likewise.
12327         * manual/maint.texi: Likewise.
12328         * manual/math.texi: Likewise.
12329         * manual/memory.texi: Likewise.
12330         * manual/message.texi: Likewise.
12331         * manual/nss.texi: Likewise.
12332         * manual/pattern.texi: Likewise.
12333         * manual/process.texi: Likewise.
12334         * manual/resource.texi: Likewise.
12335         * manual/search.texi: Likewise.
12336         * manual/setjmp.texi: Likewise.
12337         * manual/signal.texi: Likewise.
12338         * manual/socket.texi: Likewise.
12339         * manual/startup.texi: Likewise.
12340         * manual/stdio.texi: Likewise.
12341         * manual/string.texi: Likewise.
12342         * manual/sysinfo.texi: Likewise.
12343         * manual/syslog.texi: Likewise.
12344         * manual/terminal.texi: Likewise.
12345         * manual/time.texi: Likewise.
12346         * manual/users.texi: Likewise.
12347         * INSTALL: Regenerated.
12348         * NOTES: Regenerated.
12349         * sysdeps/gnu/errlist.c: Regenerated.
12350
12351 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12352
12353         * include/dirent.h: Include <dirstream.h> before
12354         <dirent/dirent.h>.
12355
12356 2012-02-28  David S. Miller  <davem@davemloft.net>
12357
12358         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12359         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12360         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12361         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12362
12363 2012-02-27  David S. Miller  <davem@davemloft.net>
12364
12365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12367         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12368         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12369
12370         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12371         frame pointer instead of stack pointer relative arg slot.
12372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12373         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12374         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12375
12376 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12377
12378         [BZ #3992]
12379         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12380
12381 2012-02-27  David S. Miller  <davem@davemloft.net>
12382
12383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12386         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12387         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12388         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12389         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12390         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12391
12392 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12393
12394         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12395         later.  Allow versions 5-9.
12396         * configure: Regenerated.
12397         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12398         required minimum version and 4.6 as recommended version.  Do not
12399         mention bugs in GCC 2.7 and 2.8.
12400         * INSTALL: Regenerated.
12401
12402 2012-02-27  David S. Miller  <davem@davemloft.net>
12403
12404         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12405         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12408         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12409         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12410         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12411         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12412
12413         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12414         manipulate bits before adding and subtracting TWO112[sx].
12415         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12416
12417 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12418
12419         [BZ #13775]
12420         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12421         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12422         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12423         being in POSIX, because they are in 1003.1-2008.
12424
12425         * rt/tst-aio.c: Include <fcntl.h>.
12426         * rt/tst-aio7.c: Likewise.
12427         * rt/tst-aio64.c: Likewise.
12428
12429         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12430
12431 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12432
12433         * manual/install.texi (--with-headers): Describe headers as
12434         interface headers, not private headers.
12435         (Specific advice for GNU/Linux systems): Describe use of headers
12436         from "make headers_install", not private headers from older
12437         kernels.
12438         * INSTALL: Regenerated.
12439         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12440         Change to 2.6.19.
12441         * sysdeps/unix/sysv/linux/configure: Regenerated.
12442
12443         * manual/llio.texi (fclean): Remove documentation.
12444
12445         * manual/Makefile (libc-texi-generated): New variable.  Include
12446         version.texi.
12447         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12448         $(libc-texi-generated), not duplicated list of files.
12449         (version.texi, stamp-version): New rules.
12450         (realclean): Remove $(libc-texi-generated), not individual files
12451         from that list.  Do not remove dir-add.texinfo.
12452         * manual/libc.texinfo: Comment out uses of edition numbers and
12453         references to printed manual.  Remove last-updated dates.
12454         (EDITION): Comment out.
12455         (ISBN): Likewise.
12456         (VERSION, UPDATED): Remove.
12457         (version.texi): Include.
12458
12459 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12460
12461         * sysdeps/posix/spawni.c: Include <signal.h>.
12462         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12463         * sysdeps/pthread/aio_fsync.c: Likewise.
12464
12465 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12466
12467         * conform/Makefile (tests): Run only when not cross-compiling and
12468         when fast-check is not defined.
12469
12470         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12471         * conform/data/limits.h-data: Fixes for POSIX2008.
12472         * conform/run-conformtest.sh: Run all tests.
12473         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12474         headers.
12475         * include/bits/dlfcn.h: Likewise.
12476         * include/langinfo.h: Likewise.
12477         * include/monetary.h: Likewise.
12478         * include/sys/poll.h: Likewise.
12479
12480         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12481         for __USE_GNU.
12482         * posix/spawn.h: Define __need_sigset_t.
12483         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12484         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12485         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12486         to get sigevent_t only.
12487         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12488         only for __USE_GNU.
12489         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12490         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12491         process_vm_writev only for __USE_GNU.
12492         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12493
12494         * conform/Makefile: For now ignore errors from run-conformtest.
12495         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12496         POSIX to avoid namespace pollution.  Don't prepend headers.
12497         * conform/data/aio.h-data: Fixes for POSIX testing.
12498         * conform/data/fcntl.h-data: Likewise.
12499         * conform/data/glob.h-data: Likewise.
12500         * conform/data/grp.h-data: Likewise.
12501         * conform/data/pthread.h-data: Likewise.
12502         * conform/data/pwd.h-data: Likewise.
12503         * conform/data/signal.h-data: Likewise.
12504         * conform/data/spawn.h-data: Likewise.
12505         * conform/data/stdio.h-data: Likewise.
12506         * conform/data/stdlib.h-data: Likewise.
12507         * conform/data/stropts.h-data: Likewise.
12508         * conform/data/sys/mman.h-data: Likewise.
12509         * conform/data/sys/stat.h-data: Likewise.
12510         * conform/data/sys/types.h-data: Likewise.
12511         * conform/data/sys/wait.h-data: Likewise.
12512         * conform/data/time.h-data: Likewise.
12513         * conform/data/unistd.h-data: Likewise.
12514         * conform/data/utime.h-data: Likewise.
12515
12516         * io/sys/stat.h: fchmod was always in POSIX.
12517         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12518         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12519         * rt/aio.h: Define __need_timespec before including <time.h>.
12520         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12521         struct.  Add forward declaration of pthread_attr_t and use it in
12522         sigevent.
12523         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12524         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12525         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12526         always remove CLK_TCK definition.
12527
12528 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12529
12530         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12531
12532 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12533
12534         * conform/run-conformtest.sh: New file.
12535         * conform/Makefile: Run run-conformtest for tests.
12536         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12537         support.
12538
12539         * conform/data/uchar.h-data: New file.
12540         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12541         * conform/data/arpa/inet.h-data: Likewise.
12542         * conform/data/assert.h-data: Likewise.
12543         * conform/data/complex.h-data: Likewise.
12544         * conform/data/cpio.h-data: Likewise.
12545         * conform/data/ctype.h-data: Likewise.
12546         * conform/data/dirent.h-data: Likewise.
12547         * conform/data/dlfcn.h-data: Likewise.
12548         * conform/data/errno.h-data: Likewise.
12549         * conform/data/fcntl.h-data: Likewise.
12550         * conform/data/float.h-data: Likewise.
12551         * conform/data/fmtmsg.h-data: Likewise.
12552         * conform/data/fnmatch.h-data: Likewise.
12553         * conform/data/ftw.h-data: Likewise.
12554         * conform/data/glob.h-data: Likewise.
12555         * conform/data/grp.h-data: Likewise.
12556         * conform/data/iconv.h-data: Likewise.
12557         * conform/data/inttypes.h-data: Likewise.
12558         * conform/data/langinfo.h-data: Likewise.
12559         * conform/data/libgen.h-data: Likewise.
12560         * conform/data/limits.h-data: Likewise.
12561         * conform/data/locale.h-data: Likewise.
12562         * conform/data/math.h-data: Likewise.
12563         * conform/data/monetary.h-data: Likewise.
12564         * conform/data/mqueue.h-data: Likewise.
12565         * conform/data/ndbm.h-data: Likewise.
12566         * conform/data/net/if.h-data: Likewise.
12567         * conform/data/netdb.h-data: Likewise.
12568         * conform/data/netinet/in.h-data: Likewise.
12569         * conform/data/nl_types.h-data: Likewise.
12570         * conform/data/poll.h-data: Likewise.
12571         * conform/data/pthread.h-data: Likewise.
12572         * conform/data/pwd.h-data: Likewise.
12573         * conform/data/regex.h-data: Likewise.
12574         * conform/data/sched.h-data: Likewise.
12575         * conform/data/search.h-data: Likewise.
12576         * conform/data/semaphore.h-data: Likewise.
12577         * conform/data/setjmp.h-data: Likewise.
12578         * conform/data/signal.h-data: Likewise.
12579         * conform/data/spawn.h-data: Likewise.
12580         * conform/data/stdarg.h-data: Likewise.
12581         * conform/data/stdio.h-data: Likewise.
12582         * conform/data/stdlib.h-data: Likewise.
12583         * conform/data/string.h-data: Likewise.
12584         * conform/data/strings.h-data: Likewise.
12585         * conform/data/stropts.h-data: Likewise.
12586         * conform/data/sys/ipc.h-data: Likewise.
12587         * conform/data/sys/mman.h-data: Likewise.
12588         * conform/data/sys/msg.h-data: Likewise.
12589         * conform/data/sys/resource.h-data: Likewise.
12590         * conform/data/sys/select.h-data: Likewise.
12591         * conform/data/sys/sem.h-data: Likewise.
12592         * conform/data/sys/shm.h-data: Likewise.
12593         * conform/data/sys/socket.h-data: Likewise.
12594         * conform/data/sys/stat.h-data: Likewise.
12595         * conform/data/sys/statvfs.h-data: Likewise.
12596         * conform/data/sys/time.h-data: Likewise.
12597         * conform/data/sys/timeb.h-data: Likewise.
12598         * conform/data/sys/times.h-data: Likewise.
12599         * conform/data/sys/types.h-data: Likewise.
12600         * conform/data/sys/uio.h-data: Likewise.
12601         * conform/data/sys/un.h-data: Likewise.
12602         * conform/data/sys/utsname.h-data: Likewise.
12603         * conform/data/sys/wait.h-data: Likewise.
12604         * conform/data/syslog.h-data: Likewise.
12605         * conform/data/tar.h-data: Likewise.
12606         * conform/data/termios.h-data: Likewise.
12607         * conform/data/utime.h-data: Likewise.
12608         * conform/data/utmpx.h-data: Likewise.
12609         * conform/data/varargs.h-data: Likewise.
12610         * conform/data/wchar.h-data: Likewise.
12611         * conform/data/wctype.h-data: Likewise.
12612         * conform/data/wordexp.h-data: Likewise.
12613
12614         * include/stropts.h: New file.
12615         * include/uchar.h: New file.
12616         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12617         * include/assert.h: Likewise.
12618         * include/ctype.h: Likewise.
12619         * include/dirent.h: Likewise.
12620         * include/dlfcn.h: Likewise.
12621         * include/fcntl.h: Likewise.
12622         * include/fnmatch.h: Likewise.
12623         * include/glob.h: Likewise.
12624         * include/grp.h: Likewise.
12625         * include/libio.h: Likewise.
12626         * include/locale.h: Likewise.
12627         * include/math.h: Likewise.
12628         * include/net/if.h: Likewise.
12629         * include/netdb.h: Likewise.
12630         * include/netinet/in.h: Likewise.
12631         * include/pthread.h: Likewise.
12632         * include/pwd.h: Likewise.
12633         * include/regex.h: Likewise.
12634         * include/sched.h: Likewise.
12635         * include/search.h: Likewise.
12636         * include/setjmp.h: Likewise.
12637         * include/signal.h: Likewise.
12638         * include/stdio.h: Likewise.
12639         * include/stdlib.h: Likewise.
12640         * include/string.h: Likewise.
12641         * include/sys/cdefs.h: Likewise.
12642         * include/sys/mman.h: Likewise.
12643         * include/sys/msg.h: Likewise.
12644         * include/sys/resource.h: Likewise.
12645         * include/sys/select.h: Likewise.
12646         * include/sys/socket.h: Likewise.
12647         * include/sys/stat.h: Likewise.
12648         * include/sys/statvfs.h: Likewise.
12649         * include/sys/time.h: Likewise.
12650         * include/sys/times.h: Likewise.
12651         * include/sys/uio.h: Likewise.
12652         * include/sys/utsname.h: Likewise.
12653         * include/sys/wait.h: Likewise.
12654         * include/termios.h: Likewise.
12655         * include/time.h: Likewise.
12656         * include/ulimit.h: Likewise.
12657         * include/unistd.h: Likewise.
12658         * include/utime.h: Likewise.
12659         * include/wchar.h: Likewise.
12660         * include/wctype.h: Likewise.
12661         * include/wordexp.h: Likewise.
12662
12663         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12664
12665         * time/time.h: TIME_UTC must be a macro.
12666         Make timespec_get available for ISO C11 only as well.
12667
12668 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12669
12670         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12671         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12672
12673 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12674
12675         * configure.in: Use -o not -a in test for unsupported multi-arch.
12676
12677 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12678
12679         * manual/texinfo.tex: Update to version 2012-01-19.16.
12680
12681 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12682
12683         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12684
12685 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12686
12687         [BZ #13738]
12688         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12689         * manual/fdl-1.3.texi: New file.
12690         * manual/fdl-1.1.texi: File removed.
12691
12692         [BZ #13738]
12693         * manual/libc.texinfo (FDL_VERSION): New @set.
12694         Use it for mention of FDL in cover text.
12695         (Documentation License): Use it in @include file name.
12696
12697 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12698             Roland McGrath  <roland@hack.frob.com>
12699
12700         [BZ #5461]
12701         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12702         not LONG_LONG_MAX and LONG_LONG_MIN.
12703         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12704         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12705         name.
12706         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12707
12708 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12709
12710         [BZ #2547]
12711         [BZ #11365]
12712         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12713         manipulate bits before adding and subtracting TWO23[sx].
12714         * math/libm-test.inc (nearbyint_test): Add more tests.
12715
12716 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12717
12718         [BZ #2548]
12719         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12720         bits before adding and subtracting TWO23[sx].
12721         * math/libm-test.inc (rint_test): Add more tests.
12722         (rint_test_tonearest): Likewise.
12723         (rint_test_towardzero): Likewise.
12724         (rint_test_downward): Likewise.
12725         (rint_test_upward: Likewise.
12726
12727 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12728
12729         [BZ #10110]
12730         * include/stdc-predef.h: New file.  Extracted from features.h.
12731         * include/features.h: Include stdc-predef.h.
12732         * Makefile (headers): Add stdc-predef.h.
12733         * CONFORMANCE (Compiler limitations): Update.
12734
12735 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12736
12737         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12738
12739 2012-02-21  David S. Miller  <davem@davemloft.net>
12740
12741         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12742         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12743
12744 2012-02-20  David S. Miller  <davem@davemloft.net>
12745
12746         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12747         using a normal save/restore sequence, rather than allocating a
12748         dummy stack frame just to store a frame pointer and restore.
12749         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12750
12751 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12752
12753         * manual/install.texi: Fix stray word in line-wrapped comment.
12754
12755 2012-02-20  David S. Miller  <davem@davemloft.net>
12756
12757         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12758         both binutils and gcc support GOTDATA.
12759
12760         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12761         "rd %pc" in the PIC register setup sequences.
12762
12763         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12764         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12765         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12766         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12767         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12768         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12769         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12770         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12771         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12772         (SYSCALL_ERROR_HANDLER): Likewise.
12773         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12774         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12775         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12776         (SYSCALL_ERROR_HANDLER): Likewise.
12777
12778         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12779         (HAVE_GCC_GOTDATA): New.
12780         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12781         relocation support in both binutils and gcc.
12782         * sysdeps/sparc/elf/configure: Regenerate.
12783
12784         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12785         * sysdeps/sparc/sparc32/elf/configure: Delete.
12786         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12787         * sysdeps/sparc/sparc64/elf/configure: Delete.
12788         * sysdeps/sparc/elf/configure.in: New file.
12789         * sysdeps/sparc/elf/configure: Generate.
12790
12791         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12792         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12793         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12794         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12795         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12796
12797 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12798
12799         * manual/install.texi: Do not mention specific glibc version
12800         numbers.
12801         * manual/libc.texinfo (VERSION, UPDATED): Update.
12802         (@copying): Use @copyright{} and range of years.
12803
12804 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12805
12806         [BZ #13695]
12807         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12808         [crti.S not in sysdirs] (generated): Do not append.
12809         [crti.S not in sysdirs] (omit-deps): Likewise.
12810         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12811         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12812         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12813         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12814         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12815         Likewise.
12816         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12817         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12818         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12819         * csu/defs.awk: Remove file.
12820         * sysdeps/generic/initfini.c: Likewise.
12821         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12822         variable.
12823         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12824         Likewise.
12825
12826 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12827
12828         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12829         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12830         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12831         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12832         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12833         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12834         <bits/epoll.h>.
12835         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12836         (__EPOLL_PACKED): Define to empty if not defined by
12837         <bits/epoll.h>.
12838         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12839         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12840         bits/epoll.h.
12841
12842 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12843
12844         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12845         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12846         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12847         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12848         <bits/timerfd.h>.
12849         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12850         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12851         bits/timerfd.h.
12852
12853 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12854
12855         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12856         in C locale.
12857         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12858         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12859         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12860         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12861
12862 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12863
12864         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12865         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12866
12867 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12868
12869         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12870         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12871         defined.
12872         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12873         Likewise.
12874         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12875         entry for 2.16.
12876
12877 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12878
12879         * math/w_acos.c: Use non-signaling floating-point comparisons.
12880         * math/w_acosf.c: Likewise.
12881         * math/w_acosh.c: Likewise.
12882         * math/w_acoshf.c: Likewise.
12883         * math/w_acoshl.c: Likewise.
12884         * math/w_acosl.c: Likewise.
12885         * math/w_asin.c: Likewise.
12886         * math/w_asinf.c: Likewise.
12887         * math/w_asinl.c: Likewise.
12888         * math/w_atanh.c: Likewise.
12889         * math/w_atanhf.c: Likewise.
12890         * math/w_atanhl.c: Likewise.
12891         * math/w_exp2.c: Likewise.
12892         * math/w_exp2f.c: Likewise.
12893         * math/w_exp2l.c: Likewise.
12894         * math/w_j0.c: Likewise.
12895         * math/w_j0f.c: Likewise.
12896         * math/w_j0l.c: Likewise.
12897         * math/w_j1.c: Likewise.
12898         * math/w_j1f.c: Likewise.
12899         * math/w_j1l.c: Likewise.
12900         * math/w_jn.c: Likewise.
12901         * math/w_jnf.c: Likewise.
12902         * math/w_log.c: Likewise.
12903         * math/w_log10.c: Likewise.
12904         * math/w_log10f.c: Likewise.
12905         * math/w_log10l.c: Likewise.
12906         * math/w_log2.c: Likewise.
12907         * math/w_log2f.c: Likewise.
12908         * math/w_log2l.c: Likewise.
12909         * math/w_logf.c: Likewise.
12910         * math/w_logl.c: Likewise.
12911         * math/w_sqrt.c: Likewise.
12912         * math/w_sqrtf.c: Likewise.
12913         * math/w_sqrtl.c: Likewise.
12914         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12915         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12916         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12917         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12918         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12919
12920 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12921
12922         [BZ #9739]
12923         * manual/string.texi (strnlen): Use correct parameter name in
12924         equivalent expression.
12925
12926 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12927
12928         [BZ #11174]
12929         * manual/users.texi (seteuid): Consistently use neweuid for
12930         argument name.
12931
12932 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12933
12934         [BZ #13704]
12935         * manual/nss.texi (Services in the NSS configuration): Correct
12936         list of services in example configuration file.
12937
12938 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12939
12940         [BZ #11322]
12941         * manual/arith.texi: Remove statements about negative zero
12942         behaving identically to zero.
12943
12944 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12945
12946         [BZ #5993]
12947         * manual/install.texi: Do not document upgrading from libc5.
12948
12949 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12950
12951         [BZ #4596]
12952         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12953
12954 2012-02-18  David S. Miller  <davem@davemloft.net>
12955
12956         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12957         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12958         %o7 across the call.
12959         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12960         instead.
12961         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12962         SETUP_PIC_REG_LEAF.
12963         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12964         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12965         * sysdeps/sparc/crtn.S: Likewise.
12966
12967 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12968
12969         * aout/Makefile: Remove.
12970
12971 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12972
12973         [BZ #13058]
12974         * manual/examples/argp-ex1.c (main): Format definition in GNU
12975         style.
12976         * manual/examples/argp-ex2.c (main): Likewise.
12977         * manual/examples/argp-ex3.c (main): Likewise.
12978         * manual/examples/argp-ex4.c (main): Likewise.
12979         * manual/examples/longopt.c (main): Use new-style prototype
12980         definition.
12981         * manual/examples/strncat.c (main): Specify return type and use
12982         (void) for arguments.
12983         * manual/examples/subopt.c (main): Use char **argv argument.
12984
12985 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12986
12987         [BZ #5077]
12988         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12989         rounding modes.
12990
12991 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12992
12993         [BZ #6907]
12994         * manual/string.texi (strchr): Change when strchrnul is
12995         recommended.
12996
12997 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12998
12999         [BZ #174]
13000         * manual/locale.texi (setlocale): Document LOCPATH.
13001
13002 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13003
13004         [BZ #10210]
13005         * manual/process.texi (execle): Move @dots{} before last argument.
13006
13007 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13008
13009         [BZ #12047]
13010         * manual/charset.texi (Generic Charset Conversion): Fix typo
13011         (LC_TYPE -> LC_CTYPE).
13012
13013 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13014
13015         [BZ #5805]
13016         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13017         (scalbnf): Likewise.
13018         (scalbnl): Likewise.
13019         (scalbln): Likewise.
13020         (scalblnf): Likewise.
13021         (scalblnl): Likewise.
13022         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13023         (vwarnx): Likewise.
13024         (verr): Likewise.
13025         (verrx): Likewise.
13026         * manual/filesys.texi (telldir): Use braces around return type.
13027         * manual/llio.texi (mmap): Add space after comma.
13028         (mmap64): Likewise.
13029         * manual/math.texi (jn): Use @var{} on parameter names.
13030         (jnf): Likewise.
13031         (jnl): Likewise.
13032         (yn): Likewise.
13033         (ynf): Likewise.
13034         (ynl): Likewise.
13035         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13036         line.
13037         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13038         "...".
13039         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13040         (sched_get_priority_max): Likewise.
13041         * manual/signal.texi (sigvec): Add space after comma.
13042         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13043         names.
13044         (if_indextoname): Likewise.
13045         (if_freenameindex): Likewise.
13046         (sendto): Use ',' instead of '.' in prototype.
13047         * manual/startup.texi (syscall): Use @dots{} instead of literal
13048         "...".
13049         * manual/stdio.texi (__fpending): Separate initial words of
13050         paragraph from @deftypefun line.
13051         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13052         "...".
13053         (vsyslog): Use @var{} on parameter names.
13054         * manual/terminal.texi (stty): Use @var{} on parameter names.
13055         * manual/users.texi (getutmp): Use @var{} on parameter names.
13056         (getutmpx): Likewise.
13057
13058 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13059
13060         [BZ #6884]
13061         * manual/stdio.texi (fopen): Fix typos in description of
13062         ",ccs=STRING".
13063
13064 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13065
13066         [BZ #4026]
13067         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13068         get clock_id definition.
13069
13070 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13071
13072         [BZ #4822]
13073         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13074         (madvise): Cast every argument to void on its own.
13075
13076 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13077
13078         [BZ #9902]
13079         * manual/startup.texi (Exit Status): Fix typo.
13080
13081 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13082
13083         [BZ #10140]
13084         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13085         * manual/examples/argp-ex2.c: Likewise.
13086         * manual/examples/argp-ex3.c: Likewise.
13087
13088 2012-02-16  Richard Henderson  <rth@redhat.com>
13089
13090         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13091         * sysdeps/s390/s390-32/initfini.c: Remove.
13092         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13093         * sysdeps/s390/s390-64/initfini.c: Remove.
13094
13095 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13096
13097         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13098         compiler output for sysdeps/generic/initfini.c.
13099         * sysdeps/sh/elf/initfini.c: Remove file.
13100
13101 2012-02-16  David S. Miller  <davem@davemloft.net>
13102
13103         [BZ #11494]
13104         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13105
13106         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13107         * sysdeps/sparc/crti.S: New file.
13108         * sysdeps/sparc/crtn.S: New file.
13109         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13110         * sysdeps/sparc/sparc64/Makefile: Likewise.
13111
13112 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13113
13114         [BZ #3335]
13115         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13116
13117 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13118
13119         [BZ #4822]
13120         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13121
13122         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13123         (write, read, close): Likewise.
13124         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13125
13126 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13127
13128         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13129         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13130         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13131         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13132         <bits/signalfd.h>.
13133         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13134         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13135         bits/signalfd.h.
13136
13137 2012-02-14  Marek Polacek  <polacek@redhat.com>
13138
13139         * sysdeps/x86_64/crti.S: New file.
13140         * sysdeps/x86_64/crtn.S: New file.
13141         * sysdeps/x86_64/elf/initfini.c: Remove file.
13142
13143 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13144
13145         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13146         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13147         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13148         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13149         <bits/inotify.h>.
13150         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13151         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13152         bits/inotify.h.
13153
13154 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13155
13156         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13157         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13158         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13159         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13160         <bits/eventfd.h>.
13161         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13162         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13163         bits/eventfd.h.
13164
13165 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13166
13167         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13168         __feraiseexcept instead of feraiseexcept.
13169
13170         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13171         nanosleep invocations.
13172         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13173         strings, and add error checking for a nanosleep invocations.
13174
13175 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13176
13177         Replace FSF snail mail address with URLs, as per GNU coding standards.
13178         Most of the snail mail addresses were wrong anyway, and omitting
13179         them makes the source code easier to maintain.  Almost all of the
13180         changes are to license notices and to locale LC_IDENTIFICATION
13181         addresses, except for this one:
13182         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13183         not its snail mail address.
13184
13185 2012-02-09  Richard Henderson  <rth@twiddle.net>
13186
13187         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13188         of kernel-features.h.
13189
13190         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13191
13192 2012-02-08  Marek Polacek  <polacek@redhat.com>
13193
13194         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13195         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13196         * sysdeps/gnu/_G_config.h: Likewise.
13197         * sysdeps/generic/_G_config.h: Likewise.
13198
13199 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13200
13201         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13202         tests.
13203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13204
13205         * sysdeps/powerpc/powerpc32/crti.S: New file.
13206         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13207         * sysdeps/powerpc/powerpc64/crti.S: New file.
13208         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13209
13210         * Makeconfig (have-initfini): Don't set.
13211         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13212         * configure.in (nopic_initfini): Don't substitute.
13213         * config.h.in (HAVE_INITFINI): Don't #undef.
13214         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13215         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13216
13217 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13218
13219         Support crti.S and crtn.S provided directly by architectures.
13220         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13221         [crti.S in sysdirs] (omit-deps): Likewise.
13222         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13223         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13224         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13225         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13226         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13227         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13228         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13229         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13230         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13231         compiler output for sysdeps/generic/initfini.c.
13232         * sysdeps/i386/elf/Makefile: Remove file.
13233         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13234
13235 2012-02-07  Marek Polacek  <polacek@redhat.com>
13236
13237         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13238         * sysdeps/gnu/_G_config.h: Likewise.
13239         * sysdeps/mach/hurd/_G_config.h: Likewise.
13240
13241 2012-02-07  Marek Polacek  <polacek@redhat.com>
13242
13243         * math/Makefile (tests): Add tst-CMPLX2.
13244         * math/tst-CMPLX2.c: New file.
13245
13246 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13247
13248         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13249
13250         * math/libm-test.inc (jn_test): Add missing L suffix.
13251
13252 2012-02-06  Marek Polacek  <polacek@redhat.com>
13253
13254         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13255         * sysdeps/i386/fpu/e_powf.S: Likewise.
13256         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13257         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13258         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13259         * sysdeps/i386/fpu/e_pow.S: Likewise.
13260         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13261         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13262         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13263         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13264         * sysdeps/i386/fpu/e_log2.S: Likewise.
13265         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13266         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13267         * sysdeps/i386/fpu/e_powl.S: Likewise.
13268         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13269         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13270         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13271         * sysdeps/i386/fpu/e_logl.S: Likewise.
13272         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13273         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13274         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13275         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13276         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13277         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13278         * sysdeps/i386/fpu/e_log.S: Likewise.
13279         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13280         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13281         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13282         * sysdeps/i386/fpu/e_logf.S: Likewise.
13283         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13284         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13285         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13286         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13287         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13288         * sysdeps/i386/fpu/e_log10.S: Likewise.
13289         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13290         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13291         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13292         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13293         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13294         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13295         * sysdeps/i386/asm-syntax.h: Likewise.
13296         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13297         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13298         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13299         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13300         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13301         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13302         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13303         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13304         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13305         * sysdeps/powerpc/sysdep.h: Likewise.
13306         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13307         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13308
13309 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13310
13311         [BZ #411]
13312         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13313
13314 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13315
13316         * sysdeps/i386/sysdep.h: Include <features.h>.
13317         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13318         version.
13319
13320 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13321
13322         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13323         Define.
13324         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13325         LOAD_PIC_REG_STR.
13326
13327 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13328
13329         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13330         (SETUP_PIC_REG): Use GET_PC_THUNK.
13331         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13332         macro.
13333
13334 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13335
13336         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13337         for non-PIC compilation.
13338         (SETUP_PIC_REG): Add .p2align directive.
13339         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13340         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13341         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13342         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13343         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13344         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13345         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13346         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13347         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13348         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13349         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13350         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13351         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13352         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13353         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13354         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13355         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13356         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13357         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13358         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13359         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13360         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13361         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13362         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13363         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13364         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13365         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13366         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13367         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13368         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13369         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13370         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13371         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13372         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13373         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13374         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13375         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13376         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13377         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13378         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13379         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13380
13381 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13382
13383         * math/tst-CMPLX.c: Include <stdio.h>.
13384
13385 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13386
13387         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13388         float.
13389         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13390         * sysdeps/sparc/bits/mathdef.h: Likewise.
13391
13392 2012-01-31  Marek Polacek  <polacek@redhat.com>
13393
13394         * libio/libio.h: Don't define _PARAMS.
13395         * locale/programs/config.h: Don't define PARAMS.
13396         * stdlib/strtol_l.c: Likewise.
13397         (__strtol_l): Remove PARAMS from the prototype.
13398
13399 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13400
13401         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13402         names.  Just use the correct names.  Remove unnecessary wrapper
13403         functions.
13404         * malloc/arena.c: Likewise.
13405         * malloc/hooks.c: Likewise.
13406
13407         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13408         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13409         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13410
13411 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13412
13413         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13414         into tail calls.
13415         (update_get_addr): New function.
13416         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13417         GET_ADDR_MODULE parameter.
13418
13419 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13420
13421         * crypt/cert.c: Remove __STDC__ conditionals.
13422         * crypt/crypt-entry.c: Likewise.
13423         * crypt/crypt_util.c: Likewise.
13424         * libio/filedoalloc.c: Likewise.
13425         * libio/fileops.c: Likewise.
13426         * libio/genops.c: Likewise.
13427         * libio/iofclose.c: Likewise.
13428         * libio/iofdopen.c: Likewise.
13429         * libio/iofopen.c: Likewise.
13430         * libio/iofopen64.c: Likewise.
13431         * libio/iogetdelim.c: Likewise.
13432         * libio/iopopen.c: Likewise.
13433         * libio/obprintf.c: Likewise.
13434         * libio/oldfileops.c: Likewise.
13435         * libio/oldiofclose.c: Likewise.
13436         * libio/oldiofdopen.c: Likewise.
13437         * libio/oldiofopen.c: Likewise.
13438         * libio/oldiopopen.c: Likewise.
13439         * libio/wfiledoalloc.c: Likewise.
13440         * libio/wgenops.c: Likewise.
13441         * locale/programs/xmalloc.c: Likewise.
13442         * misc/syslog.c: Likewise.
13443         * stdio-common/xbug.c: Likewise.
13444         * string/memchr.c: Likewise.
13445         * string/memcmp.c: Likewise.
13446         * string/memrchr.c: Likewise.
13447         * string/rawmemchr.c: Likewise.
13448         * sysdeps/posix/getcwd.c: Likewise.
13449         * time/strftime_l.c: Likewise.
13450
13451 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13452
13453         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13454         * config.make.in (config-cflags-sse2avx): Define.
13455         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13456         Fix typo.
13457
13458 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13459
13460         * scripts/config.guess: Update from upstream config git repository.
13461         * scripts/config.sub: Likewise.
13462
13463 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13464
13465         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13466         (EM_NUM): Update.
13467         (R_TILEPRO_*, R_TILEGX_*): New macros.
13468
13469         * scripts/firstversions.awk: Fix bug in version range handling.
13470
13471         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13472
13473         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13474
13475         * include/sys/epoll.h: New file.
13476         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13477         libc_hidden_def.
13478
13479 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13480
13481         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13482         Avoid unnecessary __WORDSIZE == 64 test.
13483         (fmaxf): Use VEX format if possible.
13484         (fmax): Likewise.
13485         (fminf): Likewise.
13486         (fmin): Likewise.
13487
13488         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13489         * math/math_private.h: Remove libc_fegetround* and
13490         libc_fesetround*.
13491         * sysdeps/i386/configure.in: Check for -msse2avx.
13492         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13493         also if SSE2AVX is defined.
13494         Remove libc_fegetround* and libc_fesetround*.
13495         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13496         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13497         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13498         of HAS_YMM_USABLE.
13499         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13500         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13501         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13502         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13503         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13504
13505         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13506
13507 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13508
13509         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13510         size is not set.
13511         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13512
13513 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13514
13515         [BZ #13618]
13516         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13517         relocation.
13518         * Makeconfig (libm): Define.
13519         * elf/Makefile: Add rules to build and run tst-relsort1.
13520         * elf/tst-relsort1.c: New file.
13521         * elf/tst-relsort1mod1.c: New file.
13522         * elf/tst-relsort1mod2.c: New file.
13523
13524 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13525
13526         * math/s_ldexp.c: Remove __STDC__ conditionals.
13527         * math/s_ldexpf.c: Likewise.
13528         * math/s_ldexpl.c: Likewise.
13529         * math/s_nextafter.c: Likewise.
13530         * math/s_nexttowardf.c: Likewise.
13531         * math/s_significand.c: Likewise.
13532         * math/s_significandf.c: Likewise.
13533         * math/s_significandl.c: Likewise.
13534         * math/w_jnl.c: Likewise.
13535         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13536         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13537         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13538         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13539         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13540         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13541         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13542         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13543         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13544         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13545         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13546         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13547         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13548         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13549         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13550         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13551         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13552         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13553         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13554         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13555         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13556         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13557         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13558         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13559         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13560         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13561         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13562         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13563         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13564         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13565         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13566         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13567         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13568         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13569         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13570         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13571         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13572         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13573         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13574         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13575         * sysdeps/ieee754/k_standard.c: Likewise.
13576         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13577         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13578         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13579         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13580         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13581         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13582         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13583         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13584         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13585         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13586         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13587         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13588         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13589         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13590         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13591         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13592         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13593         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13594         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13595         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13596         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13597         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13598         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13599         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13600         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13601         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13602         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13603         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13604         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13605         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13606         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13607         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13608         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13609         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13610         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13611         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13612         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13613         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13614         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13615         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13616         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13617         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13618         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13619         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13620         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13621         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13622         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13623         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13624         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13625         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13626         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13627         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13628         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13629         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13630         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13631         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13632         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13633         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13634         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13635         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13636         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13637         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13638         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13639         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13640         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13641         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13642         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13643         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13644         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13645         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13646         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13647         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13648         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13649         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13650         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13651         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13652         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13653         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13654         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13655         * sysdeps/ieee754/s_matherr.c: Likewise.
13656         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13657         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13658         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13659         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13660
13661 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13662
13663         * crypt/md5.h: Remove __STDC__ conditionals.
13664         * libio/libioP.h: Likewise.
13665         * locale/programs/config.h: Likewise.
13666         * sysdeps/generic/sysdep.h: Likewise.
13667         * sysdeps/i386/asm-syntax.h: Likewise.
13668         * sysdeps/s390/asm-syntax.h: Likewise.
13669         * sysdeps/unix/sysdep.h: Likewise.
13670         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13672
13673 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13674
13675         * libio/libio.h: Remove __STDC__ conditionals.
13676         * malloc/obstack.h: Likewise.
13677         * math/complex.h: Likewise.
13678         * math/math.h: Likewise.
13679         * sysdeps/generic/_G_config.h: Likewise.
13680         * sysdeps/gnu/_G_config.h: Likewise.
13681         * sysdeps/mach/hurd/_G_config.h: Likewise.
13682         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13683         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13684         * sysdeps/sparc/bits/mathdef.h: Likewise.
13685
13686 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13687
13688         [BZ #13583]
13689         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13690         Clean up HAS_* macros.
13691         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13692         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13693         possible.
13694         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13695         HAS_AVX.
13696         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13697         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13698         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13699         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13700         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13701
13702 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13703
13704         * elf/tst-unique3.cc (gets): Remove declaration.
13705         * elf/tst-unique3lib.cc (gets): Likewise.
13706         * elf/tst-unique3lib2.cc (gets): Likewise.
13707         * elf/tst-unique4.cc (gets): Likewise.
13708
13709 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13710
13711         * include/stdio.h: Add C++ protection.  Add gets declarations and
13712         definitions.
13713         * debug/tst-chk1.c: Don't declare gets here.
13714         * stdio-common/tst-gets.c: Likewise.
13715
13716 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13717
13718         * posix/glob: Remove directory.
13719
13720 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13721
13722         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13723
13724 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13725
13726         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13727         of the non-standard EPFNOSUPPORT.
13728
13729 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13730
13731         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13732         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13733         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13734
13735 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13736
13737         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13738
13739 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13740
13741         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13742         transient errors.
13743         * nscd/grpcache.c (cache_addgr): Likewise.
13744         * nscd/hstcache.c (cache_addhst): Likewise.
13745         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13746         * nscd/pwdcache.c (cache_addpw): Likewise.
13747         * nscd/servicescache.c (cache_addserv): Likewise.
13748
13749 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13750
13751         * malloc/malloc.c: Various cleanups.
13752         * malloc/hooks.c: Likewise.
13753
13754         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13755         * stdlib/bug-fmtmsg1.c: New file.
13756
13757         * stdlib/fmtmsg.c (init): Add missing unlock.
13758         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13759
13760 2012-01-12  Marek Polacek  <polacek@redhat.com>
13761
13762         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13763         and _GNU_SOURCE.
13764
13765 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13766
13767         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13768         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13769         macro to ensure uniqueness of label name.
13770         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13771         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13772
13773 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13774
13775         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13776
13777         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13778         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13779         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13780         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13781
13782 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13783
13784         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13785
13786         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13787         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13788         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13789
13790         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13791
13792         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13793         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13794         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13795         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13796
13797         * math/bits/math-finite.h: Add ldexp support.
13798
13799 2012-01-10  Marek Polacek  <polacek@redhat.com>
13800
13801         * locale/programs/localedef.h (show_archive_content): Add noreturn
13802         attribute.
13803
13804 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13805
13806         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13807
13808 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13809
13810         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13811
13812         * io/Makefile (headers): Add bits/poll2.h.
13813
13814 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13815
13816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13817         typo #include statement.
13818
13819 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13820
13821         * include/sys/cdefs.h: Define __attribute_alloc_size.
13822         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13823         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13824         * elf/pldd.c: Likewise.
13825         * iconv/iconv_charmap.c: Likewise.
13826         * iconv/iconvconfig.c: Likewise.
13827         * iconv/strtab.c: Likewise.
13828         * locale/programs/locale.c: Likewise.
13829         * locale/programs/localedef.h: Likewise.
13830         * locale/programs/simple-hash.c: Likewise.
13831         * nscd/nscd.h: Likewise.
13832         * nss/makedb.c: Likewise.
13833         * sysdeps/generic/ldconfig.h: Likewise.
13834         * locale/programs/localedef.c: Remove xmalloc prototype.
13835         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13836
13837 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13838
13839         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13840         appropriate.
13841
13842 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13843
13844         * math/Makefile (tests): Add tst-CMPLX.
13845         * math/tst-CMPLX.c: New file.
13846
13847         * math/complex.h (CMPLXL): Fix typo.
13848
13849         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13850         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13851         GLIBC_2.16.
13852         * debug/tst-chk1.c: Add poll and ppoll tests.
13853         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13854         * include/sys/poll.h: Add hidden proto for ppoll.
13855         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13856         * sysdeps/mach/hurd/ppoll.c: Likewise.
13857         * io/ppoll.c: Likewise.
13858         * debug/poll_chk.c: New file.
13859         * debug/ppoll_chk.c: New file.
13860         * include/bits/poll2.h: New file.
13861         * io/bits/poll2.h: New file.
13862
13863         [BZ #1350]
13864         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13865
13866         * configure.in: static is always set to yes.  Remove.
13867         * config.make.in: Don't set build-static.
13868         * Makeconfig: Remove use of build-static.
13869         * dlfcn/Makefile: Likewise.
13870         * elf/Makefile: Likewise.
13871         * math/Makefile: Likewise.
13872         * misc/Makefile: Likewise.
13873         * nptl/Makefile: Likewise.
13874         * sysdeps/mach/hurd/Makefile: Likewise.
13875
13876         * configure.in: PWD_P is not used anymore.
13877         * config.make.in: Remove PWD_P entry.
13878
13879         * configure.in: Remove last remnants of RANLIB.
13880         No need to check for signed size_t anymore.
13881         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13882         and IA-64.
13883         Remove __builtin_expect test because we require at least gcc 3.4.
13884         * aclocal.m4: Likewise.
13885
13886         * wcsmbs/mbrtoc16.c: Implement using towc function.
13887         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13888         * wcsmbs/wcsmbsload.c: Likewise.
13889         * iconv/gconv_simple.c: Likewise.
13890         * iconv/gconv_int.h: Likewise.
13891         * iconv/gconv_builtin.h: Likewise.
13892         * iconv/iconv_prog.c: Remove CHAR16 handling.
13893
13894         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13895
13896         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13897
13898         * configure.in: Remove --with-elf and --enable-bounded options.
13899         Dont set base_machine for ia64.  More non-ELF conditions removed.
13900         Remove testing and setting of leading underscore information.
13901         * config.make.in (build-bounded): Set to no.
13902         * config.h.in: Remove NO_UNDERSCORES entry.
13903         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13904         them.
13905         * csu/start.c: Remove !NO_UNDERSCORE code.
13906         * locale/localeinfo.h: Likewise.
13907         * sysdeps/generic/machine-gmon.h: Likewise.
13908         * sysdeps/generic/sysdep.h: Likewise.
13909         * sysdeps/i386/sysdep.h: Likewise.
13910         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13911         * sysdeps/mach/sysdep.h: Likewise.
13912         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13913         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13914         * sysdeps/sh/sysdep.h: Likewise.
13915         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13916         * sysdeps/unix/i386/sysdep.S: Likewise.
13917         * sysdeps/unix/sparc/start.c: Likewise.
13918         * sysdeps/unix/sparc/sysdep.S: Likewise.
13919         * sysdeps/unix/sparc/sysdep.h: Likewise.
13920         * sysdeps/unix/start.c: Likewise.
13921         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13922         * sysdeps/x86_64/sysdep.h: Likewise.
13923
13924 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13925
13926         [BZ #13553]
13927         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13928         for non-gcc.
13929         * argp/argp-fmtstream.h: Use const instead __const.
13930         * argp/argp.h: Likewise.
13931         * assert/assert.h: Likewise.
13932         * bits/fenv.h: Likewise.
13933         * bits/sched.h: Likewise.
13934         * bits/sigset.h: Likewise.
13935         * bits/sigthread.h: Likewise.
13936         * catgets/nl_types.h: Likewise.
13937         * conform/data/pthread.h-data: Likewise.
13938         * crypt/crypt-private.h: Likewise.
13939         * crypt/crypt.h: Likewise.
13940         * crypt/crypt_util.c: Likewise.
13941         * ctype/ctype.h: Likewise.
13942         * debug/execinfo.h: Likewise.
13943         * debug/mbsnrtowcs_chk.c: Likewise.
13944         * debug/mbsrtowcs_chk.c: Likewise.
13945         * debug/wcsnrtombs_chk.c: Likewise.
13946         * debug/wcsrtombs_chk.c: Likewise.
13947         * debug/wcstombs_chk.c: Likewise.
13948         * dirent/dirent.h: Likewise.
13949         * dlfcn/dlfcn.h: Likewise.
13950         * elf/neededtest4.c: Likewise.
13951         * grp/grp.h: Likewise.
13952         * gshadow/gshadow.h: Likewise.
13953         * iconv/gconv.h: Likewise.
13954         * iconv/gconv_int.h: Likewise.
13955         * iconv/gconv_simple.c: Likewise.
13956         * iconv/iconv.h: Likewise.
13957         * iconv/loop.c: Likewise.
13958         * iconv/skeleton.c: Likewise.
13959         * include/aio.h: Likewise.
13960         * include/aliases.h: Likewise.
13961         * include/argz.h: Likewise.
13962         * include/arpa/inet.h: Likewise.
13963         * include/assert.h: Likewise.
13964         * include/dirent.h: Likewise.
13965         * include/dlfcn.h: Likewise.
13966         * include/execinfo.h: Likewise.
13967         * include/fcntl.h: Likewise.
13968         * include/fenv.h: Likewise.
13969         * include/glob.h: Likewise.
13970         * include/grp.h: Likewise.
13971         * include/libintl.h: Likewise.
13972         * include/mntent.h: Likewise.
13973         * include/netdb.h: Likewise.
13974         * include/pwd.h: Likewise.
13975         * include/rpc/netdb.h: Likewise.
13976         * include/sched.h: Likewise.
13977         * include/search.h: Likewise.
13978         * include/shadow.h: Likewise.
13979         * include/signal.h: Likewise.
13980         * include/stdio.h: Likewise.
13981         * include/stdlib.h: Likewise.
13982         * include/string.h: Likewise.
13983         * include/sys/socket.h: Likewise.
13984         * include/sys/stat.h: Likewise.
13985         * include/sys/statfs.h: Likewise.
13986         * include/sys/statvfs.h: Likewise.
13987         * include/sys/syslog.h: Likewise.
13988         * include/sys/time.h: Likewise.
13989         * include/sys/uio.h: Likewise.
13990         * include/time.h: Likewise.
13991         * include/unistd.h: Likewise.
13992         * include/utmp.h: Likewise.
13993         * include/wchar.h: Likewise.
13994         * include/wctype.h: Likewise.
13995         * inet/aliases.h: Likewise.
13996         * inet/arpa/inet.h: Likewise.
13997         * inet/netinet/ether.h: Likewise.
13998         * inet/netinet/in.h: Likewise.
13999         * intl/libintl.h: Likewise.
14000         * io/bits/fcntl2.h: Likewise.
14001         * io/fcntl.h: Likewise.
14002         * io/ftw.h: Likewise.
14003         * io/sys/poll.h: Likewise.
14004         * io/sys/stat.h: Likewise.
14005         * io/sys/statfs.h: Likewise.
14006         * io/sys/statvfs.h: Likewise.
14007         * io/utime.h: Likewise.
14008         * libio/bits/stdio.h: Likewise.
14009         * libio/bits/stdio2.h: Likewise.
14010         * libio/libio.h: Likewise.
14011         * libio/libioP.h: Likewise.
14012         * libio/stdio.h: Likewise.
14013         * locale/lc-ctype.c: Likewise.
14014         * locale/locale.h: Likewise.
14015         * login/utmp.h: Likewise.
14016         * malloc/arena.c: Likewise.
14017         * malloc/malloc.c: Likewise.
14018         * malloc/malloc.h: Likewise.
14019         * malloc/mcheck.c: Likewise.
14020         * malloc/mtrace.c: Likewise.
14021         * math/bits/mathcalls.h: Likewise.
14022         * math/fenv.h: Likewise.
14023         * math/math_private.h: Likewise.
14024         * misc/bits/error.h: Likewise.
14025         * misc/bits/syslog.h: Likewise.
14026         * misc/err.h: Likewise.
14027         * misc/error.h: Likewise.
14028         * misc/fstab.h: Likewise.
14029         * misc/mntent.h: Likewise.
14030         * misc/regexp.h: Likewise.
14031         * misc/search.h: Likewise.
14032         * misc/sgtty.h: Likewise.
14033         * misc/sys/mman.h: Likewise.
14034         * misc/sys/syslog.h: Likewise.
14035         * misc/sys/uio.h: Likewise.
14036         * misc/sys/xattr.h: Likewise.
14037         * misc/ttyent.h: Likewise.
14038         * nis/rpcsvc/ypclnt.h: Likewise.
14039         * nss/nss.h: Likewise.
14040         * posix/bits/unistd.h: Likewise.
14041         * posix/fnmatch.h: Likewise.
14042         * posix/glob.h: Likewise.
14043         * posix/sched.h: Likewise.
14044         * posix/spawn.h: Likewise.
14045         * posix/sys/wait.h: Likewise.
14046         * posix/unistd.h: Likewise.
14047         * posix/wordexp.h: Likewise.
14048         * pwd/pwd.h: Likewise.
14049         * resolv/netdb.h: Likewise.
14050         * resource/sys/resource.h: Likewise.
14051         * rt/aio.h: Likewise.
14052         * rt/bits/mqueue2.h: Likewise.
14053         * rt/mqueue.h: Likewise.
14054         * shadow/shadow.h: Likewise.
14055         * signal/signal.h: Likewise.
14056         * socket/send.c: Likewise.
14057         * socket/sendto.c: Likewise.
14058         * socket/sys/socket.h: Likewise.
14059         * stdio-common/printf.h: Likewise.
14060         * stdlib/bits/stdlib.h: Likewise.
14061         * stdlib/fmtmsg.h: Likewise.
14062         * stdlib/monetary.h: Likewise.
14063         * stdlib/stdlib.h: Likewise.
14064         * stdlib/ucontext.h: Likewise.
14065         * streams/stropts.h: Likewise.
14066         * string/argz.h: Likewise.
14067         * string/bits/string2.h: Likewise.
14068         * string/string.h: Likewise.
14069         * string/strings.h: Likewise.
14070         * sunrpc/rpc/auth.h: Likewise.
14071         * sunrpc/rpc/auth_des.h: Likewise.
14072         * sunrpc/rpc/clnt.h: Likewise.
14073         * sunrpc/rpc/netdb.h: Likewise.
14074         * sunrpc/rpc/pmap_clnt.h: Likewise.
14075         * sunrpc/rpc/xdr.h: Likewise.
14076         * sysdeps/generic/inttypes.h: Likewise.
14077         * sysdeps/generic/net/if.h: Likewise.
14078         * sysdeps/generic/sys/swap.h: Likewise.
14079         * sysdeps/gnu/net/if.h: Likewise.
14080         * sysdeps/gnu/utmpx.h: Likewise.
14081         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14082         * sysdeps/i386/i486/bits/string.h: Likewise.
14083         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14084         * sysdeps/s390/bits/string.h: Likewise.
14085         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14086         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14087         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14088         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14089         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14090         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14091         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14092         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14093         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14094         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14095         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14096         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14097         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14098         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14099         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14100         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14101         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14102         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14103         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14104         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14105         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14106         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14107         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14108         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14109         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14110         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14111         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14112         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14113         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14114         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14115         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14116         * sysvipc/sys/ipc.h: Likewise.
14117         * sysvipc/sys/msg.h: Likewise.
14118         * sysvipc/sys/sem.h: Likewise.
14119         * sysvipc/sys/shm.h: Likewise.
14120         * termios/termios.h: Likewise.
14121         * time/sys/time.h: Likewise.
14122         * time/time.h: Likewise.
14123         * wcsmbs/bits/wchar2.h: Likewise.
14124         * wcsmbs/uchar.h: Likewise.
14125         * wcsmbs/wchar.h: Likewise.
14126         * wctype/wctype.h: Likewise.
14127
14128         [BZ #13551]
14129         * Makeconfig: Remove all but ELF support including AIX support.
14130         * Makerules: Likewise.
14131         * config.h.in: Likewise.
14132         * config.make.in: Likewise.
14133         * configure: Likewise.
14134         * configure.in: Likewise.
14135         * csu/Makefile: Likewise.
14136         * csu/version.c: Likewise.
14137         * debug/Makefile: Likewise.
14138         * dlfcn/Makefile: Likewise.
14139         * elf/Makefile: Likewise.
14140         * extra-lib.mk: Likewise.
14141         * iconv/Makefile: Likewise.
14142         * include/libc-symbols.h: Likewise.
14143         * include/shlib-compat.h: Likewise.
14144         * resolv/Makefile: Likewise.
14145         * resolv/res_libc.c: Likewise.
14146         * rt/Makefile: Likewise.
14147         * sysdeps/i386/asm-syntax.h: Likewise.
14148         * sysdeps/i386/sysdep.h: Likewise.
14149         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14150         * sysdeps/mach/sysdep.h: Likewise.
14151         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14152         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14153         * sysdeps/s390/asm-syntax.h: Likewise.
14154         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14155         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14156         * sysdeps/sh/sysdep.h: Likewise.
14157         * sysdeps/unix/sparc/sysdep.h: Likewise.
14158         * sysdeps/wordsize-32/divdi3.c: Likewise.
14159         * sysdeps/x86_64/sysdep.h: Likewise.
14160
14161         * argp/Versions: Remove _argp_unlock_xxx.
14162
14163         [BZ #13559]
14164         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14165         * abilist/libBrokenLocale.abilist: Likewise.
14166         * abilist/libanl.abilist: Likewise.
14167         * abilist/libc.abilist: Likewise.
14168         * abilist/libcrypt.abilist: Likewise.
14169         * abilist/libdl.abilist: Likewise.
14170         * abilist/libm.abilist: Likewise.
14171         * abilist/libnsl.abilist: Likewise.
14172         * abilist/libpthread.abilist: Likewise.
14173         * abilist/libresolv.abilist: Likewise.
14174         * abilist/librt.abilist: Likewise.
14175         * abilist/libthread_db.abilist: Likewise.
14176         * abilist/libutil.abilist: Likewise.
14177         * abilist/libnss_db.abilist: New file.
14178
14179         * scripts/abilist.awk: Add support for indirect functions.
14180
14181         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14182
14183         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14184
14185         * shlib-versions: Remove entries for ports architectures.
14186
14187         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14188         files in ports.
14189         * elf/stackguard-macros.h: Remove support for IA-64.
14190         * elf/tst-auditmod1.c: Likewise.
14191         * sysdeps/generic/ldsodefs.h: Likewise.
14192
14193         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14194         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14195         configure files.
14196
14197         [BZ #13552]
14198         * configure.in: Remove --enable-omitfp support.
14199         * FAQ.in: Adjust.
14200         * config.make.in: Likewise.
14201         * Makeconfig: Likewise.
14202         * manual/install.texi: Likewise.
14203
14204         In case anyone cares, the IA-64 architecture could move to ports.
14205         * sysdeps/ia64/*: Removed.
14206         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14207         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14208
14209         [BZ #13555]
14210         * configure.in: Remove entries for unsupported architectures.
14211
14212         [BZ #13533]
14213         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14214         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14215         routines.
14216         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14217         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14218         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14219         fall back to using wcrtomb.
14220         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14221         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14222         renaming.
14223         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14224         * wcsmbs/tst-c16c32-1.c: New file.
14225
14226         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14227         local variable.
14228
14229         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14230
14231         * elf/tst-unique3.cc: Add explicit declaration of gets.
14232         * elf/tst-unique3lib.cc: Likewise.
14233         * elf/tst-unique3lib2.cc: Likewise.
14234         * elf/tst-unique4.cc: Likewise.
14235
14236         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14237
14238 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14239
14240         [BZ #13566]
14241         * assert/assert.h (static_assert): Don't define for C++.
14242         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14243         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14244
14245 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14246
14247         * iconv/loop.c (single loop): Fix assertion in storing of
14248         remaining bytes.
14249
14250         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14251
14252 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14253
14254         * posix/getconf.c: Update copyright year.
14255         * nss/getent.c: Likewise.
14256         * nss/makedb.c: Likewise.
14257         * iconv/iconvconfig.c: Likewise.
14258         * iconv/iconv_prog.c: Likewise.
14259         * elf/ldconfig.c: Likewise.
14260         * elf/pldd.c: Likewise.
14261         * elf/sotruss.ksh: Likewise.
14262         * catgets/gencat.c: Likewise.
14263         * csu/version.c: Likewise.
14264         * elf/ldd.bash.in: Likewise.
14265         * elf/sprof.c (print_version): Likewise.
14266         * locale/programs/locale.c: Likewise.
14267         * locale/programs/localedef.c: Likewise.
14268         * login/programs/pt_chown.c: Likewise.
14269         * nscd/nscd.c (print_version): Likewise.
14270         * debug/xtrace.sh: Likewise.
14271         * malloc/memusage.sh: Likewise.
14272         * malloc/mtrace.pl: Likewise.
14273         * debug/catchsegv.sh: Likewise.
14274
14275 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14276
14277         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14278         pure attribute.
14279
14280 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14281
14282         [BZ #13533]
14283         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14284         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14285         transformations.
14286         * iconv/gconv_int.h: Likewise.
14287         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14288         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14289         from libc for GLIBC_2.16.
14290         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14291         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14292         * wcsmbs/uchar.h: Really define mbstate_t.
14293         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14294         * wcsmbs/c16rtomb.c: New file.
14295         * wcsmbs/mbrtoc16.c: New file.
14296         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14297         for C/POSIX locale.
14298         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14299         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14300
14301         * wcsmbs/wchar.h: Add missing __restrict.
14302
14303 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14304
14305         [BZ #13532]
14306         * time/Makefile (routines): Add timespec_get.
14307         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14308         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14309         timespec for ISO C11.
14310         * time/timespec_get.c: New file.
14311         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14312         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14313
14314         [BZ #13531]
14315         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14316         * stdlib/stdlib.h: Declare aligned_alloc.
14317         * Versions.def: Add GLIBC_2.16 for libc.
14318         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14319
14320         [BZ 13527]
14321         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14322         ISO C11.
14323
14324         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14325         code.
14326
14327         [BZ #13528]
14328         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14329
14330         [BZ #13529]
14331         * assert/assert.h (static_assert): Define.
14332
14333         * version.h: Update for 2.16 development version.
14334
14335         [BZ #13526]
14336         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14337         _ISOC11_SOURCE.
14338
14339         * version.h (RELEASE): Bump for 2.15 release.
14340         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14341
14342         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14343         Patch by Marek Polacek <mpolacek@redhat.com>.
14344
14345         * bits/byteswap.h: Protect long long constants with __extension__.
14346         * sysdeps/i386/bits/byteswap.h: Likewise.
14347         * sysdeps/ia64/bits/byteswap.h: Likewise.
14348         * sysdeps/s390/bits/byteswap.h: Likewise.
14349         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14350
14351 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14352
14353         [BZ #13540]
14354         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14355         destination buffer.
14356         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14357
14358 2011-12-23  Marek Polacek  <polacek@redhat.com>
14359
14360         * elf/dl-addr.c (determine_info): Add inline keyword.
14361         * elf/tst-auditmod4b.c (check_avx): Likewise.
14362         * elf/tst-auditmod6b.c (check_avx): Likewise.
14363         * elf/tst-auditmod6c.c (check_avx): Likewise.
14364         * elf/tst-auditmod7b.c (check_avx): Likewise.
14365
14366 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14367
14368         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14369         !__SSE_MATH__.
14370
14371 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14372
14373         [BZ #13540]
14374         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14375         processing for last bytes.
14376
14377 2011-08-06  Bruno Haible  <bruno@clisp.org>
14378
14379         [BZ #13061]
14380         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14381         U+0385, not to U+1FEE.
14382
14383         [BZ #13062]
14384         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14385         entry for U+00A5 U+0301.
14386
14387 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14388
14389         [BZ #13166]
14390         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14391         buffer for the output is too small.
14392
14393         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14394         optimization.
14395
14396         [BZ #13185]
14397         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14398         SSE flags if possible.
14399
14400 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14401
14402         [BZ #13540]
14403         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14404         processing for last bytes.
14405
14406 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14407
14408         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14409         (syscall-list-default-options, syscall-list-default-condition)
14410         (syscall-list-includes): Define.
14411         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14412         list of ABIs and options and #if conditions for each ABI.  Do not
14413         handle common syscalls between ABIs specially.
14414         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14415         Remove.
14416         (syscall-list-variants, syscall-list-32bit-options)
14417         (syscall-list-32bit-condition, syscall-list-64bit-options)
14418         (syscall-list-64bit-condition): Define.
14419         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14420         (syscall-list-variants, syscall-list-32bit-options)
14421         (syscall-list-32bit-condition, syscall-list-64bit-options)
14422         (syscall-list-64bit-condition): Define.
14423         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14424         Remove.
14425         (syscall-list-variants, syscall-list-32bit-options)
14426         (syscall-list-32bit-condition, syscall-list-64bit-options)
14427         (syscall-list-64bit-condition): Define.
14428         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14429         Remove.
14430         (syscall-list-variants, syscall-list-32bit-options)
14431         (syscall-list-32bit-condition, syscall-list-64bit-options)
14432         (syscall-list-64bit-condition): Define.
14433
14434 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14435
14436         * locale/iso-639.def: Add brx entry.
14437
14438         [BZ #13328]
14439         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14440         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14441
14442         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14443         __feraiseexcept_renamed.
14444
14445 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14446
14447         [BZ #13538]
14448         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14449         EPOLLET with unsigned values.
14450         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14451         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14452
14453         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14454         to large cancellation.
14455         * math/s_cacoshf.c: Likewise.
14456         * math/s_cacoshl.c: Likewise.
14457
14458 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14459
14460         [BZ #13305]
14461         [BZ #12786]
14462         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14463         * math/s_cacoshf.c: Likewise.
14464         * math/s_cacoshl.c: Likewise.
14465
14466 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14467
14468         [BZ #13439]
14469         * iconv/gconv.h: Define __GCONV_SWAP.
14470         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14471         * iconvdata/utf-16.c: Likewise.
14472         * iconvdata/utf-32.c: Likewise.
14473
14474 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14475
14476         [BZ #13524]
14477         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14478         numerator after shifting it by one limb.
14479
14480 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14481
14482         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14483         under [__USE_EXTERN_INLINES].
14484
14485 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14486
14487         [BZ #13446]
14488         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14489
14490 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14491
14492         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14493         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14494         optimized code.
14495         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14496         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14497         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14498         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14499         for strncasecmp/strncasecmp_l compilation.
14500         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14501         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14502
14503 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14504
14505         [BZ #13484]
14506         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14507         of __asm__.
14508
14509 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14510
14511         [BZ #13506]
14512         * time/tzfile.c (__tzfile_read): Check values from file header.
14513
14514 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14515
14516         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14517         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14518         * powerpc/powerpc32/dl-start.S: Likewise.
14519         * powerpc/powerpc32/elf/start.S: Likewise.
14520         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14521         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14522         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14523         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14524         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14525         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14526         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14527         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14528         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14529         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14530         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14531         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14532         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14533         * powerpc/powerpc32/memset.S: Likewise.
14534         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14535         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14536         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14537         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14538         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14539         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14540         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14541         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14542         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14543         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14544         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14545         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14546         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14547
14548 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14549
14550         * math/libm-test.inc: Added more nearbyint tests.
14551         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14552         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14553         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14554         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14555
14556 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14557
14558         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14559         FD_CLOEXEC.
14560
14561 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14562
14563         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14564         Add wcscpy-ssse3 wcscpy-c.
14565         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14566         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14567         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14568         * sysdeps/x86_64/wcschr.S: New file.
14569         * sysdeps/x86_64/wcsrchr.S: New file.
14570         * string/test-strcmp.c: Remove checking of wcscmp function for
14571         wrong alignments.
14572         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14573         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14574         wcsrchr-sse2 wcsrchr-c.
14575         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14576         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14577         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14578         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14579         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14580         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14581         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14582         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14583         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14584         * wcsmbc/wcschr.c (WCSCHR): New macro.
14585
14586 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14587
14588         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14589         * wcsmbs/test-wcsrchr.c: New file.
14590         * string/test-strrchr.c: Add wcsrchr support.
14591         (WIDE): New macro.
14592         * wcsmbs/test-wcscpy.c: New file.
14593         * string/test-strcpy.c: Add wcscpy support.
14594         (WIDE): New macro.
14595
14596 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14597
14598         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14599         the inner loop.
14600
14601 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14602
14603         [BZ #13472]
14604         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14605
14606 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14607
14608         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14609         Minor optimizations.
14610
14611         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14612         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14613         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14614
14615 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14616
14617         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14618         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14619         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14620         for gcc to avoid warnings.
14621         * inet/Makefile (tests): Add tst-checks.
14622         * inet/tst-checks.c: New file.
14623
14624         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14625         warning.
14626
14627         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14628         __wmemcmp_sse2.
14629
14630         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14631         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14632
14633         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14634
14635 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14636
14637         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14638         problem.
14639
14640         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14641
14642 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14643
14644         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14645         conditional on GCC version.
14646         (__arch_compare_and_exchange_val_8_acq)
14647         (__arch_compare_and_exchange_val_16_acq)
14648         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14649         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14650         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14651
14652 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14653
14654         * sysdeps/sh/backtrace.c: New file.
14655
14656 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14657
14658         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14659         parenthesis.
14660
14661 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14662
14663         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14664         falling back to utime.
14665
14666 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14667
14668         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14669         expectations for float.
14670
14671 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14672
14673         * locale/weight.h (findidx): Add parameter len.
14674         * locale/weightwc.h (findidx): Likewise.
14675         * posix/fnmatch_loop.c (FCT): Adjust caller.
14676         * posix/regcomp.c (build_equiv_class): Likewise.
14677         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14678         * posix/regexec.c (check_node_accept_bytes): Likewise.
14679         * string/strcoll_l.c (STRCOLL): Likewise.
14680         * string/strxfrm_l.c (STRXFRM): Likewise.
14681
14682 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14683
14684         * Makefile.in: Remove CVSOPT handling.
14685         * configure.in: Remove use of AC_REVISION.
14686         * iconvdata/Makefile (distribute): No need to filter out CVS.
14687         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14688         handling.
14689
14690 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14691
14692         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14693         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14694         [USE_AS_STRNCASECMP_L]: Likewise.
14695         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14696         NO_TLS_DIRECT_SEG_REFS.
14697         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14698         Fix argument offsets for non-PIC.
14699         [USE_AS_STRNCASECMP_L]: Likewise.
14700         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14701         NO_TLS_DIRECT_SEG_REFS.
14702
14703 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14704
14705         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14706         O_CLOEXEC.
14707         * locale/loadlocale.c (_nl_load_locale): Likewise.
14708
14709 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14710
14711         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14712         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14713         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14714         (SYSCALL_GETTIME): Set errno on error.
14715
14716         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14717         count references to noai6ai_cached.
14718
14719 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14720
14721         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14722
14723         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14724         FD_CLOEXEC for /proc/self/maps.
14725
14726         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14727         FD_CLOEXEC for /proc/meminfo.
14728
14729         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14730         gai.conf.
14731
14732         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14733         FD_CLOEXEC for given file.
14734
14735         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14736
14737         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14738         FD_CLOEXEC for /etc/hosts.
14739         (_gethtent): Likewise.
14740
14741         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14742
14743         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14744         cancellation and set FD_CLOEXEC for /etc/netgroup.
14745
14746         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14747         reading /etc/publickey.
14748
14749         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14750         allow cancellation when reading /etc/group.
14751
14752         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14753         cancellation.
14754         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14755
14756         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14757         when using data file.
14758
14759         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14760
14761         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14762         (write_nis_obj): Use "c" and "e" in fopen.
14763
14764         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14765
14766         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14767
14768         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14769
14770         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14771
14772         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14773         locale.alias.
14774
14775         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14776
14777         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14778
14779         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14780
14781         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14782         file parsing and set FD_CLOEXEC.
14783
14784 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14785
14786         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14787
14788 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14789
14790         * malloc/arena.c (arena_get2): Don't call reused_arena when
14791         _int_new_arena failed.
14792
14793 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14794
14795         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14796         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14797         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14798         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14799         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14800         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14801         to compile strcasecmp and strncasecmp.
14802         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14803         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14804
14805         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14806
14807 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14808
14809         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14810         locale-defines.sym to gen-as-const-headers.
14811         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14812         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14813         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14814         to compile strcasecmp and strncasecmp.
14815         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14816         strcasecmp_l and strncasecmp_l.
14817         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14818         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14819         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14820         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14821         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14822         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14823         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14824         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14825         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14826         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14827         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14828
14829 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14830
14831         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14832         result of SYSDEP_GETTIME_CPU to retval.
14833         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14834         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14835
14836         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14837         variable.
14838
14839         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14840         mantissa words.
14841         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14842
14843         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14844         from unused variable.
14845
14846         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14847         DWARF definitions.
14848         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14849         for assembling.
14850
14851         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14852         over namespaces.
14853
14854         * sunrpc/rpc_prot.c (rejected): Fix case value.
14855
14856         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14857         unsigned long long int to avoid warnings in shift.
14858
14859         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14860         of use of trans.
14861         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14862         variable tmp.
14863
14864         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14865         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14866         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14867
14868         * nis/nis_table.c (nis_list): Use variable of correct type for
14869         result of __follow_path call.
14870
14871 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14872
14873         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14874         of math functions ceil, trunc, floor, round, and sqrt, when
14875         avaliable on the platform.
14876         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14877         name clash.
14878         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14879         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14880         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14881
14882 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14883
14884         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14885         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14886
14887 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14888
14889         * include/unistd.h: Fix __readlink return type.
14890         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14891
14892 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14893
14894         * stdlib/ucontext.h: Undo last change for makecontext.
14895
14896 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14897
14898         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14899
14900         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14901         * setjmp/setjmp.h: Mark functions as non-leaf.
14902         * setjmp/bits/setjmp2.h: Likewise.
14903         * stdlib/ucontext.h: Likewise.
14904
14905 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14906
14907         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14908         (reused_arena): Don't check arena limit.
14909         (arena_get2): Atomically check arena limit.
14910
14911 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14912
14913         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14914         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14915
14916         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14917         instructions.
14918
14919 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14920
14921         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14922         handler when locking.
14923
14924         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14925         Fix size of allocated buffer.
14926
14927 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14928
14929         [BZ #10103]
14930         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14931         declarations for long double functions.
14932         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14933
14934         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14935
14936 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14937
14938         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14939         installed.
14940
14941         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14942         is disabled.
14943
14944 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14945
14946         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14947
14948 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14949
14950         * include/alloca.h (stackinfo_alloca_round): Define.
14951         (extend_alloca): Use it.
14952         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14953         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14954         here.
14955
14956         * scripts/check-local-headers.sh: Ignore libaudit.h.
14957
14958         * nscd/Makefile (extra-objs): Make recursively expanded.
14959
14960 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14961
14962         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14963         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14964
14965         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14966         * posix/tst-rfc3484-2.c: Likewise.
14967         * posix/tst-rfc3484-3.c: Likewise.
14968
14969         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14970         process_vm_writev.
14971         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14972         process_vm_writev.
14973         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14974         process_vm_writev from libc using GLIBC_2.15 version.
14975
14976         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14977
14978 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14979
14980         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14981         stack usage.
14982
14983 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14984
14985         [BZ #13367]
14986         * nss/getent.c (initgroups_keys): Show error message in case no group
14987         names are given.
14988
14989         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14990         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14991         __bump_nl_timestamp.
14992         * nscd/connections (nscd_init): When host database is served open
14993         netlink socket and request notification about configuration changes.
14994         (main_loop_poll): Track netlink file descriptor and bump timestamp
14995         in case data becomes available.
14996         (main_loop_epoll): Likewise.
14997         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14998         (database_pers_head): Add extra_data fileds.
14999         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15000         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15001         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15002         Adjust caller.
15003         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15004         in6ai data, call __free_in6ai.
15005         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15006         Add -DHAVE_NETLINK.
15007         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15008         interface information.  Reuse previous data if netlink timestamp
15009         is not changed.
15010         (__bump_nl_timestamp): New function.
15011         (__free_in6ai): New function.
15012
15013 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15014
15015         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15016         close_not_cancel_no_status here.
15017         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15018
15019 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15020
15021         [BZ #13276]
15022         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15023         return value.
15024
15025         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15026         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15027         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15028
15029 2011-07-03  Andreas Jaeger  <aj@suse.de>
15030
15031         [BZ #10709]
15032         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15033         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15034         * math/libm-test.inc (sin_test): Add test case.
15035
15036 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15037
15038         [BZ #13337]
15039         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15040         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15041
15042         * elf/chroot_canon.c (chroot_canon): Cleanups.
15043
15044         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15045
15046         [BZ #13335]
15047         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15048         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15049
15050         * string/test-strchr.c: Make usable for strchrnul testing.
15051         * string/test-strchrnul.c: New file.
15052         * string/Makefile (strop-tests): Add strchrnul.
15053
15054         * po/it.po: Update from translation team.
15055         * po/es.po: Likewise.
15056
15057 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15058
15059         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15060         the three constants needed as parameters.  Drop the others.
15061         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15062         __m128i_strloadu_tolower.
15063         Create and initialize variable zero and use it in all the places
15064         where _mm_setzero_si128 was used.
15065
15066         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15067         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15068         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15069         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15070         anymore.
15071         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15072         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15073         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15074         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15075         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15076         __mpranred, __mptan.
15077         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15078         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15079         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15080         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15081         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15082         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15083         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15084         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15085         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15086
15087 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15088
15089         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15090         redefine if SHARED.
15091         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15092
15093         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15094         wide char related routines to wcsmbs subdir.
15095
15096 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15097
15098         [BZ #13344]
15099         * misc/sys/cdefs.h (__THROWNL): Define.
15100         * posix/unistd.h: Use __THREADNL instead of __THREAD
15101         for memory synchronization functions.
15102
15103 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15104
15105         [BZ #13349]
15106         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15107         doesn't exist.
15108         * manual/stdio.texi (Obstack Streams): Node removed.
15109
15110 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15111
15112         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15113         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15114         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15115
15116         * math/math_private.h (math_force_eval): Allow non-addressable
15117         arguments.
15118         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15119
15120 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15121
15122         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15123         file is not needed.
15124
15125         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15126         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15127         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15128         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15129         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15130         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15131         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15132         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15133         Add AVX variants.
15134         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15135         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15136         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15137         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15138         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15139         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15140         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15141         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15142         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15143         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15144         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15145         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15146         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15147         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15148         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15149         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15150         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15151         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15152         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15153
15154         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15155         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15156
15157         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15158         place.  Use VEX encoding when compiling for AVX.
15159
15160 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15161
15162         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15163         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15164
15165         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15166
15167 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15168
15169         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15170         useless if() expression.
15171         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15172         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15173         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15174         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15175         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15176         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15177         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15178         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15179         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15180         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15181         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15182         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15183         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15184         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15185         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15186         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15187         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15188         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15189         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15190
15191         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15192
15193 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15194
15195         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15196         condition.
15197         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15198
15199 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15200
15201         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15202         .text section.  Avoid duplicate constants.
15203         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15204         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15205         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15206         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15207         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15208         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15209         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15210         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15211         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15212         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15213         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15214         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15215         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15216         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15217         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15218         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15219         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15220         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15221         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15222         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15223         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15224         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15225         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15226         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15227         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15228         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15229         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15230         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15231         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15232         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15233         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15234         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15235         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15236         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15237         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15238         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15239         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15240         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15241         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15242         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15243         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15244         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15245         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15246         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15247         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15248
15249 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15250
15251         * sysdeps/x86_64/dla.h: Move to ...
15252         * sysdeps/x86_64/fpu/dla.h: ...here.
15253         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15254         situations.  Use __builtin_fma only for gcc 4.6 and up.
15255
15256         * config.make.in: Add have-mfma4 entry.
15257         * configure.in: Substitute libc_cv_cc_fma4.
15258         * math/Makefile (dbl-only-routines): Add sincostab.
15259         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15260         Use __sincostab not sincos.
15261         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15262         name is a macro.
15263         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15264         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15265         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15266         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15267         using __copysign.
15268         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15269         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15270         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15271         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15272         and __inv.
15273         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15274         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15275         __copysign.
15276         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15277         define aliases when function name is a macro.
15278         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15279         sysdeps/ieee754/dbl-64/sincos.tbl.
15280         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15281         fma4-enabled routines.
15282         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15283         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15284         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15285         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15286         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15287         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15288         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15289         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15290         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15291         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15292         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15293         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15294         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15295         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15296         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15297         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15298         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15299         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15300         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15301         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15302         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15303         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15304         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15305         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15306         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15307         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15308         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15309         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15310         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15311         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15312
15313         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15314         rename.
15315         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15316         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15317         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15318         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15319         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15320         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15321         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15322         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15323
15324 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15325
15326         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15327
15328 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15329
15330         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15331
15332         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15333         prediction.
15334         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15335
15336         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15337         Remove unused variable magic_bits.
15338         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15339
15340         * string/strnlen.c: Define and use STRNLEN macro.
15341         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15342         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15343         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15344         * wcsmbs/wcslen.c: Define and use WCSLEN.
15345         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15346         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15347         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15348         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15349         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15350         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15351         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15352
15353 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15354
15355         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15356         strnlen-sse2-no-bsf.
15357         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15358         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15359         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15360         Add strnlen support.
15361         (USE_AS_STRNLEN): New macro.
15362         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15363         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15364         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15365         * sysdeps/x86_64/wcslen.S: New file.
15366
15367 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15368
15369         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15370         XMM-moves are used for copying on small sizes.
15371
15372 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15373
15374         * wcsmbs/Makefile (strop-tests): Add wcschr.
15375         * wcsmbs/test-wcschr.c: New file.
15376         * string/test-strchr.c: Update.
15377         Add wcschr support.
15378         (WIDE): New macro.
15379
15380 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15381
15382         * wcsmbs/Makefile (strop-tests): Add wcslen.
15383         * wcsmbs/test-wcslen.c: New file.
15384         * string/test-strlen.c: Update.
15385         Add wcslen support.
15386         (WIDE): New macro.
15387
15388 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15389
15390         * po/it.po: Update from translation team.
15391
15392 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15393
15394         * sysdeps/x86_64/wcscmp.S: Update.
15395         Fix wrong comparison semantics.
15396         wcscmp shall use signed comparison not unsigned.
15397         Don't use substraction to avoid overflow bug.
15398         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15399         * wcsmbc/wcscmp.c: Likewise.
15400         * string/test-strcmp.c: Likewise.
15401         Add new tests to check cases with negative values.
15402
15403 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15404
15405         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15406         * sysdeps/x86_64/dla.h: ...here.  New file.
15407         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15408         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15409         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15410         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15411         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15412         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15413         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15414         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15415         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15416
15417 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15418
15419         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15420         __ynl_finite aliases.
15421
15422 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15423
15424         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15425
15426         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15427         define DLA_FMA.
15428         [DLA_FMA] (EMULV): Use DLA_FMA.
15429         [DLA_FMA] (MUL12): Use EMULV.
15430         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15431         that are not needed.
15432         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15433         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15434         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15435         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15436         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15437         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15438         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15439
15440 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15441
15442         * math/s_nan.c: Undef __nan.
15443         * math/s_nanf.c: Undef __nanf.
15444         * math/s_nanl.c: Undef __nanl.
15445         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15446         "math_private.h".
15447
15448 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15449
15450         * math/s_catan.c: Add branch predictions.
15451         * math/s_catanf.c: Likewise.
15452         * math/s_catanh.c: Likewise.
15453         * math/s_catanhf.c: Likewise.
15454         * math/s_catanhl.c: Likewise.
15455         * math/s_catanl.c: Likewise.
15456         * math/s_cexp.c: Likewise.
15457         * math/s_cexpf.c: Likewise.
15458         * math/s_cexpl.c: Likewise.
15459         * math/s_clog.c: Likewise.
15460         * math/s_clog10.c: Likewise.
15461         * math/s_clog10f.c: Likewise.
15462         * math/s_clog10l.c: Likewise.
15463         * math/s_clogf.c: Likewise.
15464         * math/s_clogl.c: Likewise.
15465         * math/s_csqrt.c: Likewise.
15466         * math/s_csqrtf.c: Likewise.
15467         * math/s_csqrtl.c: Likewise.
15468         * math/s_ctanf.c: Likewise.
15469         * math/s_ctanh.c: Likewise.
15470         * math/s_ctanhf.c: Likewise.
15471         * math/s_ctanhl.c: Likewise.
15472         * math/s_ctanl.c: Likewise.
15473
15474         * math/math_private.h: Define __nan, __nanf, __nanl.
15475         * math/s_cacosh.c: Include <math_private.h>.
15476         * math/s_cacoshl.c: Likewise.
15477         * math/s_casinh.c: Likewise.
15478         * math/s_casinhf.c: Likewise.
15479         * math/s_casinhl.c: Likewise.
15480         * math/s_ccos.c: Rely entire on ccosh.
15481         * math/s_ccosf.c: Rely entire on ccoshf.
15482         * math/s_ccosl.c: Rely entirely on ccoshl.
15483         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15484         Remove tests for FE_INVALID.
15485         * math/s_ccoshf.c: Likewise.
15486         * math/s_ccoshl.c: Likewise.
15487         * math/s_csin.c: Likewise.
15488         * math/s_csinf.c: Likewise.
15489         * math/s_csinh.c Likewise.
15490         * math/s_csinhf.c: Likewise.
15491         * math/s_csinhl.c: Likewise.
15492         * math/s_csinl.c: Likewise.
15493         * math/s_ctan.c: Likewise.
15494         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15495         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15496         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15497
15498 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15499
15500         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15501         compilation problems.
15502
15503         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15504         __builtin_expect.
15505
15506 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15507
15508         * sysdeps/i386/configure.in: Test for -mfma4 option.
15509         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15510         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15511         COMMON_CPUID_INDEX_80000001.
15512         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15513         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15514         use it if FMA3 is not supported.
15515         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15516
15517         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15518         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15519
15520 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15521
15522         [BZ #12892]
15523         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15524         it would create a cycle with a link time dependency.
15525
15526 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15527
15528         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15529         instruction.
15530         * string/Makefile (strop-tests): Add rawmemchr.
15531         * string/test-rawmemchr.c: New file.
15532
15533         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15534         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15535         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15536         when compiling str{,n}casecmp and when AVX is available.  Hook up
15537         new optimized code in initializers.
15538
15539 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15540
15541         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15542         __feraiseexcept instead of feraiseexcept.
15543
15544 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15545
15546         * math/math_private.h: Define defaults for libc_fetestexcept and
15547         libc_feupdateenv.
15548         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15549         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15550         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15551         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15552         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15553         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15554         libc_fetestexcept and libc_feupdateenv.
15555
15556         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15557         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15558         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15559         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15560         libc_feholdexcept_setround.
15561
15562         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15563         Add s_nearbyint-c and s_nearbyintf-c.
15564         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15565         nearbyintf inlines.
15566         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15567         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15568         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15569         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15570
15571         * math/math_private.h: Define defaults for libc_fegetround,
15572         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15573         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15574         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15575         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15576         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15577         standard functions.
15578         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15579         Remove comments and hacks for old compiler versions.
15580         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15581         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15582         libc_feholdexceptl.
15583
15584 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15585
15586         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15587         (__feraiseexcept_renamed): Add __NTH.
15588         (feraiseexcept): Add __NTH.  Rename local variables to fix
15589         namespace violations.
15590
15591 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15592
15593         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15594
15595         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15596
15597         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15598         recently added interfaces.
15599         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15600
15601         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15602         about macro parameter expansion.
15603
15604         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15605         __NO_MATH_INLINES is defined.  Cleanups.
15606
15607         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15608         and __floorf is target has SSE4.1.
15609         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15610         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15611         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15612         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15613
15614         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15615         name.
15616         (floorf): Likewise.
15617
15618         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15619
15620 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15621
15622         * misc/sys/cdefs.h: Fix last change.
15623
15624         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15625         database lookup.
15626
15627 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15628
15629         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15630
15631         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15632         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15633         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15634         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15635         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15636         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15637         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15638         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15639         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15640         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15641         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15642         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15643         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15644         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15645         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15646         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15647         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15648         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15649         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15650         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15651         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15652         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15653
15654         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15655         ceil, ceilf, floor, floorf.
15656
15657         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15658         Perform IRELATIVE relocations last.
15659
15660         * elf/do-rel.h: Add another parameter nrelative, replacing the
15661         local variable with the same name.  Change name of the function
15662         to end in Rel or Rela (uppercase).
15663         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15664         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15665         elf_dynamic_do_##reloc function.
15666
15667 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15668
15669         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15670         is sufficient, at least on modern CPUs.
15671
15672         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15673
15674         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15675         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15676
15677         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15678         __expl_finite.
15679         * math/bits/math-finite.h: Add entries for exp.
15680         * math/e_expl.c: Add __*_finite alias.
15681         * sysdeps/i386/fpu/e_exp.S: Likewise.
15682         * sysdeps/i386/fpu/e_expf.S: Likewise.
15683         * sysdeps/i386/fpu/e_expl.c: Likewise.
15684         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15685         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15686         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15687         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15688         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15689         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15690         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15691
15692         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15693         is sufficient, at least on modern CPUs.
15694
15695         * ctype/ctype-info.c (__ctype_init): Define.
15696         * include/ctype.h (__ctype_init): Declare.
15697         (__ctype_b_loc): The variable is always initialized.
15698         (__ctype_toupper_loc): Likewise.
15699         (__ctype_tolower_loc): Likewise.
15700         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15701         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15702
15703 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15704
15705         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15706
15707         * configure.in: Also look in $cxxmachine/include for C++ system
15708         headers.
15709
15710 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15711
15712         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15713         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15714         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15715         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15716         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15717         (USE_AS_WMEMCMP): New macro.
15718         Fixing indents.
15719         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15720         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15721         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15722         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15723         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15724         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15725         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15726         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15727         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15728         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15729         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15730         (USE_AS_WMEMCMP): New macro.
15731         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15732         * sysdeps/string/test-memcmp.c: Update.
15733         Fix simple_wmemcmp.
15734         Add new tests.
15735         * wcsmbs/wmemcmp.c: Update.
15736         (WMEMCMP): New macro.
15737         Fix overflow bug.
15738
15739 2011-10-12  Andreas Jaeger  <aj@suse.de>
15740
15741         [BZ #13268]
15742         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15743
15744 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15745
15746         * libio/iofwide.c (do_length): Avoid warning.
15747
15748         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15749
15750 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15751
15752         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15753
15754         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15755         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15756         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15757         * sysdeps/i386/i686/fpu/e_log.S: New file.
15758         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15759         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15760
15761         * ctype/ctype.h: Add support for inlined isXXX functions when
15762         compiling C++ code.
15763
15764 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15765
15766         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15767
15768         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15769
15770 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15771
15772         [BZ #13291]
15773         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15774
15775 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15776
15777         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15778         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15779         feraiseexcept.
15780
15781         * sysdeps/x86_64/memrchr.S: Check for zero size.
15782
15783         * string/stratcliff.c: Add memrchr tests.
15784
15785 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15786
15787         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15788         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15789         rawmemchr-sse2 rawmemchr-sse2-bsf.
15790         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15791         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15792         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15793         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15794         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15795         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15796         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15797         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15798         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15799         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15800         * string/memrchr.c (MEMRCHR): New macro.
15801
15802 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15803
15804         Add integration with gcc's -ffinite-math-only and optimize wrapper
15805         functions in libm.
15806         * Versions.def: Define GLIBC_2.15 version for libm.
15807         * math/Makefile (headers): Add bits/math-finite.h.
15808         * math/bits/math-finite.h: New file.
15809         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15810         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15811         * math/e_acoshl.c: Add __*_finite alias.
15812         * math/e_acosl.c: Likewise.
15813         * math/e_asinl.c: Likewise.
15814         * math/e_atan2l.c: Likewise.
15815         * math/e_atanhl.c: Likewise.
15816         * math/e_coshl.c: Likewise.
15817         * math/e_exp10.c: Likewise.
15818         * math/e_exp10f.c: Likewise.
15819         * math/e_exp10l.c: Likewise.
15820         * math/e_exp2l.c: Likewise.
15821         * math/e_fmodl.c: Likewise.
15822         * math/e_gammal_r.c: Likewise.
15823         * math/e_hypotl.c: Likewise.
15824         * math/e_j0l.c: Likewise.
15825         * math/e_j1l.c: Likewise.
15826         * math/e_jnl.c: Likewise.
15827         * math/e_lgammal_r.c: Likewise.
15828         * math/e_log10l.c: Likewise.
15829         * math/e_log2l.c: Likewise.
15830         * math/e_logl.c: Likewise.
15831         * math/e_powl.c: Likewise.
15832         * math/e_sinhl.c: Likewise.
15833         * math/e_sqrtl.c: Likewise.
15834         * math/e_scalb.c: Completely rewritten and optimized.
15835         * math/e_scalbf.c: Likewise.
15836         * math/e_scalbl.c: Likewise.
15837         * math/w_acos.c: Likewise.
15838         * math/w_acosf.c: Likewise.
15839         * math/w_acosl.c: Likewise.
15840         * math/w_acosh.c: Likewise.
15841         * math/w_acoshf.c: Likewise.
15842         * math/w_acoshl.c: Likewise.
15843         * math/w_asin.c: Likewise.
15844         * math/w_asinf.c: Likewise.
15845         * math/w_asinl.c: Likewise.
15846         * math/w_atan2.c: Likewise.
15847         * math/w_atan2f.c: Likewise.
15848         * math/w_atan2l.c: Likewise.
15849         * math/w_atanh.c: Likewise.
15850         * math/w_atanhf.c: Likewise.
15851         * math/w_atanhl.c: Likewise.
15852         * math/w_exp10.c: Likewise.
15853         * math/w_exp10f.c: Likewise.
15854         * math/w_exp10l.c: Likewise.
15855         * math/w_fmod.c: Likewise.
15856         * math/w_fmodf.c: Likewise.
15857         * math/w_fmodl.c: Likewise.
15858         * math/w_j0.c: Likewise.
15859         * math/w_j0f.c: Likewise.
15860         * math/w_j0l.c: Likewise.
15861         * math/w_j1.c: Likewise.
15862         * math/w_j1f.c: Likewise.
15863         * math/w_j1l.c: Likewise.
15864         * math/w_jn.c: Likewise.
15865         * math/w_jnf.c: Likewise.
15866         * math/w_log.c: Likewise.
15867         * math/w_logf.c: Likewise.
15868         * math/w_logl.c: Likewise.
15869         * math/w_log10.c: Likewise.
15870         * math/w_log10f.c: Likewise.
15871         * math/w_log10l.c: Likewise.
15872         * math/w_log2.c: Likewise.
15873         * math/w_log2f.c: Likewise.
15874         * math/w_log2l.c: Likewise.
15875         * math/w_pow.c: Likewise.
15876         * math/w_powf.c: Likewise.
15877         * math/w_powl.c: Likewise.
15878         * math/w_remainder.c: Likewise.
15879         * math/w_remainderf.c: Likewise.
15880         * math/w_remainderl.c: Likewise.
15881         * math/w_scalb.c: Likewise.
15882         * math/w_scalbf.c: Likewise.
15883         * math/w_scalbl.c: Likewise.
15884         * math/w_sqrt.c: Likewise.
15885         * math/w_sqrtf.c: Likewise.
15886         * math/w_sqrtl.c: Likewise.
15887         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15888         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15889         used.
15890         * math/math_private.h: Declare __kernel_standard_f.
15891         * math/w_cosh.c: Remove cruft and optimize a bit.
15892         * math/w_coshf.c: Likewise.
15893         * math/w_coshl.c: Likewise.
15894         * math/w_exp2.c: Likewise.
15895         * math/w_exp2f.c: Likewise.
15896         * math/w_exp2l.c: Likewise.
15897         * math/w_hypot.c: Likewise.
15898         * math/w_hypotf.c: Likewise.
15899         * math/w_hypotl.c: Likewise.
15900         * math/w_lgamma.c: Likewise.
15901         * math/w_lgamma_r.c: Likewise.
15902         * math/w_lgammaf.c: Likewise.
15903         * math/w_lgammaf_r.c: Likewise.
15904         * math/w_lgammal.c: Likewise.
15905         * math/w_lgammal_r.c: Likewise.
15906         * math/w_sinh.c: Likewise.
15907         * math/w_sinhf.c: Likewise.
15908         * math/w_sinhl.c: Likewise.
15909         * math/w_tgamma.c: Likewise.
15910         * math/w_tgammaf.c: Likewise.
15911         * math/w_tgammal.c: Likewise.
15912         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15913         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15914         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15915         Minor optimizations.  Pretty printing.  Remove cruft.
15916         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15917         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15918         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15919         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15920         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15921         * sysdeps/i386/fpu/e_asin.S: Likewise.
15922         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15923         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15924         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15925         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15926         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15927         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15928         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15929         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15930         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15931         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15932         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15933         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15934         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15935         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15936         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15937         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15938         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15939         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15940         * sysdeps/i386/fpu/e_log.S: Likewise.
15941         * sysdeps/i386/fpu/e_log10.S: Likewise.
15942         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15943         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15944         * sysdeps/i386/fpu/e_log2.S: Likewise.
15945         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15946         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15947         * sysdeps/i386/fpu/e_logf.S: Likewise.
15948         * sysdeps/i386/fpu/e_logl.S: Likewise.
15949         * sysdeps/i386/fpu/e_pow.S: Likewise.
15950         * sysdeps/i386/fpu/e_powf.S: Likewise.
15951         * sysdeps/i386/fpu/e_powl.S: Likewise.
15952         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15953         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15954         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15955         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15956         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15957         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15958         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15959         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15960         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15961         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15962         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15963         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15964         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15965         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15966         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15967         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15968         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15969         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15970         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15971         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15972         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15973         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15974         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15975         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15976         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15977         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15978         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15979         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15980         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15981         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15982         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15983         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15984         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15985         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15986         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15987         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15988         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15989         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15990         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15991         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15992         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15993         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15994         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15995         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15996         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15997         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15998         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15999         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16000         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16001         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16002         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16003         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16004         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16005         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16006         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16007         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16008         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16009         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16010         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16011         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16012         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16013         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16014         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16015         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16016         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16017         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16018         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16019         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16020         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16021         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16022         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16023         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16024         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16025         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16026         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16027         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16028         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16029         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16030         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16031         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16032         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16033         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16034         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16035         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16036         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16037         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16038         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16039         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16040         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16041         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16042         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16043         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16044         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16045         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16046         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16047         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16048         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16049         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16050         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16051         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16052         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16053         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16054         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16055         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16056         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16057         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16058         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16059         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16060         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16061         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16062         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16063         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16064         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16065         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16066         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16067         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16068         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16069         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16070         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16071         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16072         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16073         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16074         (__isnanf): Likewise.
16075         (__isinf_ns): Likewise.
16076         (__isinf_nsf): Likewise.
16077         (__finite): Likewise.
16078         (__finitef): Likewise.
16079         (__ieee754_sqrt): Define as macro.
16080         (__ieee754_sqrtf): Define as macro.
16081         (__ieee754_sqrtl): Define as macro.
16082         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16083         inlined copy.
16084         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16085         __FINITE_MATH_ONLY__ consistent.
16086         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16087
16088 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16089
16090         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16091         of rawmemchr.
16092
16093         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16094
16095 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16096
16097         * po/ja.po: Update from translation team.
16098
16099 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16100
16101         * locale/programs/locarchive.c (prepare_address_space): New function.
16102         (create_archive, enlarge_archive, open_archive): Use it.
16103
16104         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16105         inside [SHARED], where it is used.
16106
16107         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16108
16109         * nss/getent.c (netgroup_keys): Remove unused variable.
16110         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16111
16112 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16113
16114         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16115         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16116         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16117         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16118         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16119         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16120         * math/Makefile (libm-calls): Add s_isinf_ns.
16121         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16122         * math/multc3.c: Likewise.
16123         * math/s_casin.c: Likewise.
16124         * math/s_casinf.c: Likewise.
16125         * math/s_casinl.c: Likewise.
16126         * math/s_ccos.c: Likewise.
16127         * math/s_ccosf.c: Likewise.
16128         * math/s_ccosl.c: Likewise.
16129         * math/s_ctan.c: Likewise.
16130         * math/s_ctanf.c: Likewise.
16131         * math/s_ctanh.c: Likewise.
16132         * math/s_ctanhf.c: Likewise.
16133         * math/s_ctanhl.c: Likewise.
16134         * math/s_ctanl.c: Likewise.
16135         * math/w_fmod.c: Likewise.
16136         * math/w_fmodf.c: Likewise.
16137         * math/w_fmodl.c: Likewise.
16138         * math/w_remainder.c: Likewise.
16139         * math/w_remainderf.c: Likewise.
16140         * math/w_remainderl.c: Likewise.
16141         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16142         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16143         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16144         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16145         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16146         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16147         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16148         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16149
16150         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16151         of the number.
16152         * stdio-common/printf_fphex.c: Likewise.
16153         * stdio-common/printf_size.c: Likewise.
16154
16155         * math/e_exp10.c: Include math_private.h using <...> not "...".
16156         * math/e_exp10f.c: Likewise.
16157         * math/e_exp10l.c: Likewise.
16158         * math/e_exp2l.c: Likewise.
16159         * math/e_j0l.c: Likewise.
16160         * math/e_j1l.c: Likewise.
16161         * math/e_jnl.c: Likewise.
16162         * math/e_lgammal_r.c: Likewise.
16163         * math/e_rem_pio2l.c: Likewise.
16164         * math/e_scalb.c: Likewise.
16165         * math/e_scalbf.c: Likewise.
16166         * math/e_scalbl.c: Likewise.
16167         * math/k_cosl.c: Likewise.
16168         * math/k_sinl.c: Likewise.
16169         * math/k_tanl.c: Likewise.
16170         * math/s_cacoshf.c: Likewise.
16171         * math/s_catan.c: Likewise.
16172         * math/s_catanf.c: Likewise.
16173         * math/s_catanh.c: Likewise.
16174         * math/s_catanhf.c: Likewise.
16175         * math/s_catanhl.c: Likewise.
16176         * math/s_catanl.c: Likewise.
16177         * math/s_ccosh.c: Likewise.
16178         * math/s_ccoshf.c: Likewise.
16179         * math/s_ccoshl.c: Likewise.
16180         * math/s_cexp.c: Likewise.
16181         * math/s_cexpf.c: Likewise.
16182         * math/s_cexpl.c: Likewise.
16183         * math/s_clog.c: Likewise.
16184         * math/s_clog10.c: Likewise.
16185         * math/s_clog10f.c: Likewise.
16186         * math/s_clog10l.c: Likewise.
16187         * math/s_clogf.c: Likewise.
16188         * math/s_clogl.c: Likewise.
16189         * math/s_csin.c: Likewise.
16190         * math/s_csinf.c: Likewise.
16191         * math/s_csinh.c: Likewise.
16192         * math/s_csinhf.c: Likewise.
16193         * math/s_csinhl.c: Likewise.
16194         * math/s_csinl.c: Likewise.
16195         * math/s_csqrt.c: Likewise.
16196         * math/s_csqrtf.c: Likewise.
16197         * math/s_csqrtl.c: Likewise.
16198         * math/s_ctan.c: Likewise.
16199         * math/s_ctanf.c: Likewise.
16200         * math/s_ctanh.c: Likewise.
16201         * math/s_ctanhf.c: Likewise.
16202         * math/s_ctanhl.c: Likewise.
16203         * math/s_ctanl.c: Likewise.
16204         * math/s_ldexp.c: Likewise.
16205         * math/s_ldexpf.c: Likewise.
16206         * math/s_ldexpl.c: Likewise.
16207         * math/s_significand.c: Likewise.
16208         * math/s_significandf.c: Likewise.
16209         * math/s_significandl.c: Likewise.
16210         * math/w_acos.c: Likewise.
16211         * math/w_acosf.c: Likewise.
16212         * math/w_acosh.c: Likewise.
16213         * math/w_acoshf.c: Likewise.
16214         * math/w_acoshl.c: Likewise.
16215         * math/w_acosl.c: Likewise.
16216         * math/w_asin.c: Likewise.
16217         * math/w_asinf.c: Likewise.
16218         * math/w_asinl.c: Likewise.
16219         * math/w_atan2.c: Likewise.
16220         * math/w_atan2f.c: Likewise.
16221         * math/w_atan2l.c: Likewise.
16222         * math/w_atanh.c: Likewise.
16223         * math/w_atanhf.c: Likewise.
16224         * math/w_atanhl.c: Likewise.
16225         * math/w_cosh.c: Likewise.
16226         * math/w_coshf.c: Likewise.
16227         * math/w_coshl.c: Likewise.
16228         * math/w_dremf.c: Likewise.
16229         * math/w_exp10.c: Likewise.
16230         * math/w_exp10f.c: Likewise.
16231         * math/w_exp10l.c: Likewise.
16232         * math/w_exp2.c: Likewise.
16233         * math/w_exp2f.c: Likewise.
16234         * math/w_fmod.c: Likewise.
16235         * math/w_fmodf.c: Likewise.
16236         * math/w_fmodl.c: Likewise.
16237         * math/w_hypot.c: Likewise.
16238         * math/w_hypotf.c: Likewise.
16239         * math/w_hypotl.c: Likewise.
16240         * math/w_j0.c: Likewise.
16241         * math/w_j0f.c: Likewise.
16242         * math/w_j0l.c: Likewise.
16243         * math/w_j1.c: Likewise.
16244         * math/w_j1f.c: Likewise.
16245         * math/w_j1l.c: Likewise.
16246         * math/w_jn.c: Likewise.
16247         * math/w_jnf.c: Likewise.
16248         * math/w_jnl.c: Likewise.
16249         * math/w_lgamma.c: Likewise.
16250         * math/w_lgamma_r.c: Likewise.
16251         * math/w_lgammaf.c: Likewise.
16252         * math/w_lgammaf_r.c: Likewise.
16253         * math/w_lgammal.c: Likewise.
16254         * math/w_lgammal_r.c: Likewise.
16255         * math/w_log.c: Likewise.
16256         * math/w_log10.c: Likewise.
16257         * math/w_log10f.c: Likewise.
16258         * math/w_log10l.c: Likewise.
16259         * math/w_log2.c: Likewise.
16260         * math/w_log2f.c: Likewise.
16261         * math/w_log2l.c: Likewise.
16262         * math/w_logf.c: Likewise.
16263         * math/w_logl.c: Likewise.
16264         * math/w_pow.c: Likewise.
16265         * math/w_powf.c: Likewise.
16266         * math/w_powl.c: Likewise.
16267         * math/w_remainder.c: Likewise.
16268         * math/w_remainderf.c: Likewise.
16269         * math/w_remainderl.c: Likewise.
16270         * math/w_scalb.c: Likewise.
16271         * math/w_scalbf.c: Likewise.
16272         * math/w_scalbl.c: Likewise.
16273         * math/w_sinh.c: Likewise.
16274         * math/w_sinhf.c: Likewise.
16275         * math/w_sinhl.c: Likewise.
16276         * math/w_sqrt.c: Likewise.
16277         * math/w_sqrtf.c: Likewise.
16278         * math/w_sqrtl.c: Likewise.
16279         * math/w_tgamma.c: Likewise.
16280         * math/w_tgammaf.c: Likewise.
16281         * math/w_tgammal.c: Likewise.
16282
16283         * po/ja.po: Update from translation team.
16284
16285 2011-09-29  Andreas Jaeger  <aj@suse.de>
16286
16287         [BZ #13179]
16288         * sunrpc/netname.c (netname2host): Fix logic.
16289
16290         [BZ #6779]
16291         [BZ #6783]
16292         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16293         correctly.
16294         * math/w_remainder.c (__remainder): Likewise.
16295         * math/w_remainderf.c (__remainderf): Likewise.
16296         * math/libm-test.inc (remainder_test): Add test cases.
16297
16298 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16299
16300         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16301         sdiv_qrnnd.
16302
16303 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16304
16305         * string/test-memcmp.c: Avoid unncessary #defines.
16306         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16307
16308 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16309
16310         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16311         Use new sse2 version for core i3 - i7 as it's faster
16312         than sse42 version.
16313         (bit_Prefer_PMINUB_for_stringop): New.
16314         * sysdeps/x86_64/rawmemchr.S: Update.
16315         Replace with faster SSE2 version.
16316         * sysdeps/x86_64/memrchr.S: New file.
16317         * sysdeps/x86_64/memchr.S: Update.
16318         Replace with faster SSE2 version.
16319
16320 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16321
16322         * elf/dl-load.c (lose): Add cast to avoid warning.
16323
16324 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16325
16326         * po/ca.po: Update from translation team.
16327
16328         * inet/getnetgrent_r.c: Hook up nscd.
16329         * nscd/Makefile (routines): Add nscd_netgroup.
16330         (nscd-modules): Add netgroupcache.
16331         (CFLAGS-netgroupcache.c): Define.
16332         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16333         (cache_search): Add const to second parameter.
16334         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16335         INNETGR.
16336         (dbs): Add netgrdb entry.
16337         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16338         (verify_persistent_db): Handle netgrdb.
16339         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16340         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16341         GETFDNETGR.
16342         (netgroup_response_header): Define.
16343         (innetgroup_response_header): Define.
16344         (datahead): Add netgroup_response_header and innetgroup_response_header
16345         elements.
16346         * nscd/nscd.conf: Add entries for netgroup cache.
16347         * nscd/nscd.h (dbtype): Add netgrdb.
16348         (_PATH_NSCD_NETGROUP_DB): Define.
16349         (netgroup_iov_disabled): Declare.
16350         (xmalloc, xcalloc, xrealloc): Move declarations here.
16351         (cache_search): Adjust prototype.
16352         Add netgroup-related prototypes.
16353         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16354         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16355         (__nscd_innetgr): Declare.
16356         * nscd/selinux.c (perms): Use access_vector_t as element type and
16357         add netgroup-related initializers.
16358         * nscd/netgroupcache.c: New file.
16359         * nscd/nscd_netgroup.c: New file.
16360         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16361         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16362         For four parameters use innetgr.
16363         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16364         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16365         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16366         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16367
16368         * nscd/connections.c (register_traced_file): Don't register file
16369         for disabled databases.
16370
16371 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16372
16373         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16374
16375         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16376         from tree and freeing node.
16377
16378 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16379
16380         * nss/nsswitch.c (__nss_database_lookup): Handle
16381         nss_parse_service_list out of memory case.
16382
16383 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16384
16385         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16386         out of memory case.
16387
16388 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16389
16390         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16391         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16392         pass it down.
16393         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16394         elf_machine_rela, elf_machine_lazy_rel.
16395         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16396         (ELF_DYNAMIC_DO_REL): Likewise.
16397         (ELF_DYNAMIC_DO_RELA): Likewise.
16398         (ELF_DYNAMIC_RELOCATE): Likewise.
16399         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16400         to ELF_DYNAMIC_DO_REL.
16401         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16402         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16403         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16404         elf_machine_rela.
16405         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16406         skip_ifunc, don't call ifunc function if non-zero.
16407         (elf_machine_rela): Likewise.
16408         (elf_machine_lazy_rel): Likewise.
16409         (elf_machine_lazy_rela): Likewise.
16410         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16411         (elf_machine_lazy_rel): Likewise.
16412         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16413         Likewise.
16414         (elf_machine_lazy_rel): Likewise.
16415         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16416         Likewise.
16417         (elf_machine_lazy_rel): Likewise.
16418         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16419         (elf_machine_lazy_rel): Likewise.
16420         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16421         (elf_machine_lazy_rel): Likewise.
16422         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16423         (elf_machine_lazy_rel): Likewise.
16424         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16425         (elf_machine_lazy_rel): Likewise.
16426         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16427         (elf_machine_lazy_rel): Likewise.
16428         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16429         (elf_machine_lazy_rel): Likewise.
16430
16431 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16432
16433         * nss/nss_files/files-init.c (_nss_files_init): Use static
16434         initialization for all the *_traced_file variables.
16435
16436 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16437
16438         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16439
16440 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16441
16442         [BZ #13226]
16443         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16444
16445 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16446
16447         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16448         Reread the line before reparsing it.
16449
16450 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16451
16452         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16453
16454 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16455             Maxim Kuvyrkov  <maxim@codesourcery.com>
16456             Joseph Myers  <joseph@codesourcery.com>
16457
16458         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16459         if needed for __stack_chk_guard.
16460
16461 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16462
16463         * sysdeps/posix/spawni.c (script_execute): Always define it.
16464         It will be optimized away if unused.
16465         (maybe_script_execute): New function.
16466         (__spawni): Call it.
16467
16468         * Makerules: Don't include tls.make.
16469         (config-tls): Always set to thread.
16470         * tls.make.c: File removed.
16471
16472 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16473
16474         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16475         * config.make.in (CPPFLAGS-config): New substituted variable.
16476
16477 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16478
16479         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16480
16481         [BZ #13192]
16482         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16483         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16484
16485 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16486
16487         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16488         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16489         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16490         (CALL_FAIL): Likewise.
16491         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16492         (CALL_FAIL): Macro removed.
16493         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16494
16495 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16496
16497         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16498         for __FINITE_MATH_ONLY__ == 1.
16499
16500 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16501
16502         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16503         __ieee754_sqrt instead of sqrt.
16504         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16505         __ieee754_sqrtf instead of sqrtf.
16506         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16507         __floorf instead of floorf.
16508         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16509         __floorf, __truncf instead of floorf, truncf.
16510
16511 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16512
16513         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16514
16515         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16516         __extern_always_inline.
16517         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16518         32-bit.
16519
16520 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16521
16522         * elf/rtld.c (dl_main): Also relocate in dependency order when
16523         doing symbol dependency testing.
16524
16525 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16526
16527         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16528         Always define `refsym'.
16529
16530 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16531
16532         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16533         (__FD_ELT): Renamed from __FDELT.
16534         * misc/bits/select2.h (__FD_ELT): Likewise.
16535         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16536         __FD_MASK instead of __FDELT, __FDMASK.
16537         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16538         Likewise.
16539         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16540         Likewise.
16541
16542         * elf/Makefile (gen-ldd): Fix pattern.
16543
16544         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16545         (init_tls): Likewise.
16546
16547 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16548
16549         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16550
16551 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16552
16553         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16554         `struct cmsghdr *' instead of `void *'.
16555         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16556         Likewise.
16557
16558 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16559
16560         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16561         if non-absolute.
16562         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16563         ldd_rewrite_script.
16564
16565 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16566
16567         * configure.in: Remove --with-tls option.
16568         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16569         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16570         out in case it is missing.
16571         * sysdeps/ia64/elf/configure.in: Likewise.
16572         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16573         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16574         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16575         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16576         * sysdeps/sh/elf/configure.in: Likewise.
16577         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16578         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16579         * sysdeps/x86_64/elf/configure.in: Likewise.
16580         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16581         * sysdeps/mach/hurd/tls.h: Likewise.
16582
16583         [BZ #13067]
16584         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16585
16586         [BZ #13090]
16587         * configure.in: Fix use of AC_INIT.
16588
16589         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16590
16591 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16592
16593         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16594         __set_errno.
16595         * malloc/hooks.c: Likewise.
16596
16597         [BZ #11929]
16598         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16599         variables statically.
16600         (narenas): Initialize.
16601         (list_lock): Initialize.
16602         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16603         initializtion of main_arena and list_lock.  Small cleanups.
16604         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16605         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16606         Add initializers to main_arena and mp_.
16607         (malloc_state): Remove pagesize member.  Change all users to use
16608         GLRO(dl_pagesize).
16609
16610         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16611         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16612         is always initialized.
16613
16614         * malloc/malloc.c: Removed unused configurations and dead code.
16615         * malloc/arena.c: Likewise.
16616         * malloc/hooks.c: Likewise.
16617         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16618
16619         * include/tls.h: Removed.  USE___THREAD must always be defined.
16620         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16621         * elf/dl-libc.c: Likewise.
16622         * elf/dl-tsd.c: Likewise.
16623         * include/errno.h: Likewise.
16624         * include/netdb.h: Likewise.
16625         * include/resolv.h: Likewise.
16626         * inet/herrno-loc.c: Likewise.
16627         * inet/herrno.c: Likewise.
16628         * malloc/arena.c: Likewise.
16629         * malloc/hooks.c: Likewise.
16630         * malloc/malloc.c: Likewise.
16631         * resolv/res-state.c: Likewise.
16632         * resolv/res_libc.c: Likewise.
16633         * sysdeps/i386/dl-machine.h: Likewise.
16634         * sysdeps/ia64/dl-machine.h: Likewise.
16635         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16636         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16637         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16638         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16639         * sysdeps/sh/dl-machine.h: Likewise.
16640         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16641         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16642         * sysdeps/unix/i386/sysdep.S: Likewise.
16643         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16644         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16645         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16646         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16647         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16648         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16649         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16650         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16651         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16652         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16653         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16654         * sysdeps/x86_64/dl-machine.h: Likewise.
16655         * tls.make.c: Likewise.
16656
16657         * configure.in: Remove --with-__thread option.  Make tests for
16658         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16659         tls_model attribute fail if no support is available.  Remove
16660         USE_IN_LIBIO.
16661         * Makeconfig: Adjust for dropped configure option.  All features are
16662         now mandatory.
16663         * Makerules: Likewise.
16664         * Versions.def: Likewise.
16665         * argp/argp-fmtstream.c: Likewise.
16666         * argp/argp-fmtstream.h: Likewise.
16667         * argp/argp-help.c: Likewise.
16668         * assert/assert.c: Likewise.
16669         * config.h.in: Likewise.
16670         * config.make.in: Likewise.
16671         * configure: Likewise.
16672         * configure.in: Likewise.
16673         * csu/Versions: Likewise.
16674         * csu/init.c: Likewise.
16675         * elf/tst-audit2.c: Likewise.
16676         * elf/tst-tls10.c: Likewise.
16677         * elf/tst-tls10.h: Likewise.
16678         * elf/tst-tls11.c: Likewise.
16679         * elf/tst-tls12.c: Likewise.
16680         * elf/tst-tls14.c: Likewise.
16681         * elf/tst-tlsmod11.c: Likewise.
16682         * elf/tst-tlsmod12.c: Likewise.
16683         * elf/tst-tlsmod13.c: Likewise.
16684         * elf/tst-tlsmod13a.c: Likewise.
16685         * elf/tst-tlsmod14a.c: Likewise.
16686         * elf/tst-tlsmod15b.c: Likewise.
16687         * elf/tst-tlsmod16a.c: Likewise.
16688         * elf/tst-tlsmod16b.c: Likewise.
16689         * elf/tst-tlsmod7.c: Likewise.
16690         * elf/tst-tlsmod8.c: Likewise.
16691         * elf/tst-tlsmod9.c: Likewise.
16692         * gmon/gmon.c: Likewise.
16693         * grp/fgetgrent_r.c: Likewise.
16694         * grp/putgrent.c: Likewise.
16695         * hurd/fopenport.c: Likewise.
16696         * include/libc-symbols.h: Likewise.
16697         * include/tls.h: Likewise.
16698         * intl/gettextP.h: Likewise.
16699         * intl/loadinfo.h: Likewise.
16700         * locale/global-locale.c: Likewise.
16701         * locale/localeinfo.h: Likewise.
16702         * mach/devstream.c: Likewise.
16703         * malloc/arena.c: Likewise.
16704         * malloc/set-freeres.c: Likewise.
16705         * misc/err.c: Likewise.
16706         * misc/getttyent.c: Likewise.
16707         * misc/mntent_r.c: Likewise.
16708         * posix/getopt.c: Likewise.
16709         * posix/wordexp.c: Likewise.
16710         * pwd/fgetpwent_r.c: Likewise.
16711         * resolv/Versions: Likewise.
16712         * resolv/res_hconf.c: Likewise.
16713         * shadow/fgetspent_r.c: Likewise.
16714         * shadow/putspent.c: Likewise.
16715         * stdio-common/printf_fphex.c: Likewise.
16716         * stdio-common/tmpfile.c: Likewise.
16717         * stdlib/abort.c: Likewise.
16718         * stdlib/fmtmsg.c: Likewise.
16719         * sunrpc/auth_unix.c: Likewise.
16720         * sunrpc/clnt_perr.c: Likewise.
16721         * sunrpc/clnt_tcp.c: Likewise.
16722         * sunrpc/clnt_udp.c: Likewise.
16723         * sunrpc/clnt_unix.c: Likewise.
16724         * sunrpc/openchild.c: Likewise.
16725         * sunrpc/svc_simple.c: Likewise.
16726         * sunrpc/svc_tcp.c: Likewise.
16727         * sunrpc/svc_udp.c: Likewise.
16728         * sunrpc/svc_unix.c: Likewise.
16729         * sunrpc/xdr.c: Likewise.
16730         * sunrpc/xdr_array.c: Likewise.
16731         * sunrpc/xdr_rec.c: Likewise.
16732         * sunrpc/xdr_ref.c: Likewise.
16733         * sunrpc/xdr_stdio.c: Likewise.
16734
16735 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16736
16737         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16738
16739 2011-07-03  Andreas Jaeger  <aj@suse.de>
16740
16741         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16742         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16743         regenerate with gen-libm-tests.pl.
16744
16745 2010-05-12  Petr Baudis  <pasky@suse.cz>
16746
16747         [BZ #11589]
16748         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16749         around j0() zero points by switching to j1().
16750         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16751         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16752         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16753         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16754
16755 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16756
16757         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16758         instead of 0.
16759         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16760         instead of 0.                              .
16761         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16762         Patch in part by Pavel Roskin <proski@gnu.org>.
16763
16764         [BZ #13138]
16765         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16766         realloc.
16767         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16768         Free memory block if necessary.
16769
16770         [BZ #12847]
16771         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16772         be NULL.  Don't lock in this case.
16773
16774 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16775
16776         * elf/elf.h (ELFOSABI_GNU): New macro.
16777         (ELFOSABI_LINUX): Define to that.
16778
16779 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16780
16781         * string/strncat.c (strncat): Undef the symbol in case it has been
16782         defined in bits/string.h.
16783
16784 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16785
16786         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16787
16788         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16789         link map.
16790
16791 2011-08-17  Andreas Jaeger  <aj@suse.de>
16792
16793         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16794
16795 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16796             Ian Lance Taylor  <iant@google.com>
16797
16798         * math/libm-test.inc (lround_test): New testcase.
16799         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16800
16801 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16802
16803         * Makefile: Remove support for automatic cvs check-ins.
16804         * Makerules: Likewise.
16805         * config.make.in: Likewise.
16806         * configure.in: Likewise.
16807         * intl/Makefile: Likewise.
16808         * locale/Makefile: Likewise.
16809         * po/Makefile: Likewise.
16810         * posix/Makefile: Likewise.
16811         * sysdeps/gnu/Makefile: Likewise.
16812         * sysdeps/mach/hurd/Makefile: Likewise.
16813         * sysdeps/sparc/sparc32/Makefile: Likewise.
16814
16815         [BZ #13118]
16816         * posix/Makefile (bug-regex32-ENV): Define.
16817         Patch by John Stanley <jpsinthemix@verizon.net>.
16818
16819         * misc/Makefile (headers): Add bits/select2.h.
16820         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16821         * misc/bits/select2.h: New file.
16822         * include/bits/select2.h: New file.
16823         * debug/Makefile (routines): Add fdelt_chk.
16824         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16825         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16826         FD_ISSET.
16827         * debug/fdelt_chk.c: New file.
16828
16829         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16830         * wcsmbs/test-wmemcmp.c: Likewise.
16831         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16832         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16833
16834 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16835
16836         * string/Makefile (strop-tests): Add memcmp.
16837         * string/test-wmemcmp.c: New file.
16838         * string/test-memcmp.c: Add wmemcmp support.
16839
16840 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16841
16842         [BZ #13153]
16843         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16844         2011-07-19 change.
16845
16846         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16847         garbage value in a __mach_port_mod_refs call in the cases of the
16848         task-self and thread-self ports.
16849
16850 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16851
16852         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16853
16854 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16855
16856         * elf/dl-load.c (lose): Check for non-null L.
16857
16858 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16859
16860         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16861
16862         * elf/dl-libc.c (dlerror_run): Pass back error code from
16863         dl_catch_error.
16864
16865         [BZ #13123]
16866         * elf/dl-load.c (lose): Free l_origin if it is valid.
16867
16868         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16869         names.
16870         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16871         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16872         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16873         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16874         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16875         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16876
16877 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16878
16879         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16880         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16881         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16882         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16883         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16884         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16885         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16886         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16887         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16888         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16889
16890 2011-08-15  Alan Modra  <amodra@gmail.com>
16891
16892         [BZ #13092]
16893         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16894         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16895         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16896         ppc_mcount to static-only-routines.
16897         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16898         __mcount_internal.
16899         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16900         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16901
16902 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16903
16904         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16905         for finite and infinity parameters.
16906
16907 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16908
16909         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16910         and add nop instructions for throughput optimization.
16911         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16912
16913 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16914
16915         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16916         aligned copy for power7 with vector-scalar instructions.
16917         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16918
16919 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16920
16921         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16922         AVX check.
16923
16924 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16925
16926         [BZ #13144]
16927         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16928         last change.
16929
16930 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16931
16932         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16933         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16934         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16935         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16936         clock_gettime.
16937
16938 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16939
16940         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16941         Forgot to demangle the pointer.
16942
16943         * sysdeps/i386/sysdep.h: Define atom_text_section.
16944         * sysdeps/x86_64/sysdep.h: Likewise.
16945         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16946         section with atom_text_section.
16947         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16948         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16949         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16950         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16951         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16952
16953         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16954         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16955         already be defined.  Change to take two parameters and don't assign
16956         result to variable.  Adjust all users.
16957         Define INTERNAL_GETTIME if not already defined.
16958         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16959         call.
16960         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16961         HAVE_CLOCK_GETTIME_VSYSCALL.
16962         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16963
16964         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16965         gettimeofday vsyscall, just use time.
16966
16967 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16968
16969         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16970         <errno.h>.
16971
16972 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16973
16974         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16975         syscall on x86-64.
16976         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16977         syscall.
16978         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16979         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16980         syscall if possible.
16981
16982 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16983
16984         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16985         e_ident.  Don't pass to find_mapsXX.
16986         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16987
16988 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16989
16990         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16991         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16992         * sysdeps/x86_64/multiarch/strchr.S: Update.
16993         Check bit_slow_BSF bit.
16994         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16995         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16996         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16997
16998 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16999
17000         [BZ #13134]
17001         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17002         before glibc 2.15.
17003         (tryshell): Define.
17004         (__spawni): Change last parameter to be flag.  Test
17005         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17006         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17007         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17008         * posix/spawni.c: Likewise.
17009         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17010         * posix/spawnp.c: Likewise.  Change normal version to use
17011         SPAWN_XFLAGS_USE_PATH.
17012         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17013         SPAWN_XFLAGS_TRY_SHELL.
17014
17015         [BZ #13150]
17016         * posix/glob.h: Remove gcc 1.x support.
17017
17018         [BZ #13068]
17019         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17020
17021 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17022
17023         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17024         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17025         strrchr-sse2-bsf
17026         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17027         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17028         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17029         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17030         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17031         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17032
17033 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17034
17035         * sysdeps/x86_64/wcscmp.S: New file.
17036
17037         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17038         wcscmp-c wcscmp-sse2
17039         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17040         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17041         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17042         * wcsmbs/wcscmp.c: Allow renaming.
17043
17044 2011-09-05  David S. Miller  <davem@davemloft.net>
17045
17046         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17047         stack slot, rather than the struct return pointer slot.
17048         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17049         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17051         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17052
17053 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17054
17055         * po/ja.po: Update from translation team.
17056
17057         [BZ #13144]
17058         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17059         kernel in 64-bit binaries.
17060
17061 2011-09-01  David S. Miller  <davem@davemloft.net>
17062
17063         * elf/elf.h (HWCAP_SPARC_*): Move to..
17064         * sysdeps/sparc/sysdep.h: this new file and add new values.
17065         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17066         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17067         _DL_HWCAP_COUNT to 24.
17068         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17069         entries.
17070         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17071         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17072         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17073         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17074         instead of magic constants.
17075         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17076
17077 2011-08-31  David S. Miller  <davem@davemloft.net>
17078
17079         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17080         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17081         Reimplement to do errno handling inline.
17082         (SYSCALL_ERROR_HANDLER): New macro.
17083         (__SYSCALL_STRING): Do not do errno handling in asm.
17084         (__CLONE_SYSCALL_STRING): Delete.
17085         (__INTERNAL_SYSCALL_STRING): Delete.
17086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17087         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17088         (PSEUDO): Reimplement to do errno handling inline.
17089         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17090         (SYSCALL_ERROR_HANDLER): New macro.
17091         (__SYSCALL_STRING): Do not do errno handling in asm.
17092         (__CLONE_SYSCALL_STRING): Delete.
17093         (__INTERNAL_SYSCALL_STRING): Delete.
17094         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17095         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17096         i386.
17097         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17098         (inline_syscall*): Add 'err' argument.
17099         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17100         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17101         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17102         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17103
17104         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17105         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17106
17107 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17108
17109         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17110
17111 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17112
17113         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17114         directive.
17115
17116 2011-08-24  David S. Miller  <davem@davemloft.net>
17117
17118         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17119
17120 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17121
17122         * elf/Makefile: Add rules to build and run unload8 test.
17123         * elf/unload8.c: New file.
17124         * elf/unload8mod1.c: New file.
17125         * elf/unload8mod1x.c: New file.
17126         * elf/unload8mod2.c: New file.
17127         * elf/unload8mod3.c: New file.
17128
17129         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17130         it wasn't used.
17131
17132 2011-08-23  David S. Miller  <davem@davemloft.net>
17133
17134         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17135         subtract stack bias.
17136         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17137         %sp not %fp in calculations.
17138         (_JMPBUF_UNWINDS_ADJ): Likewise.
17139
17140         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17141         (aio_suspend): Call it to force an exception region around the
17142         AIO_MISC_WAIT() invocation.
17143
17144 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17145
17146         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17147         backslash.
17148
17149 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17150
17151         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17152         protection macro.
17153         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17154         and <dl-machine.h>.
17155         (Elf64_FuncDesc): Remove.
17156
17157 2011-08-22  David S. Miller  <davem@davemloft.net>
17158
17159         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17160         sigaltstack check, add missing cfi directives.
17161         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17162         missing cfi directives, and sigaltstack handling.
17163
17164 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17165
17166         [BZ #11724]
17167         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17168         object is seen twice.
17169         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17170
17171         * elf/Makefile (distribute): Add tst-initorder2.c.
17172         (tests): Add tst-initorder2.
17173         (modules-names): Add tst-initorder2a tst-initorder2b
17174         tst-initorder2c tst-initorder2d.  Add rules to build them.
17175         ($(objpfx)tst-initorder2.out): New rule.
17176         * elf/tst-initorder2.c: New file.
17177         * elf/tst-initorder2.exp: New file.
17178
17179 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17180
17181         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17182
17183         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17184         dependencies back to end of function.
17185
17186         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17187         $(elfobjdir)/ld.so.
17188
17189 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17190
17191         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17192         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17193         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17194         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17195         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17196         of __vdso_gettimeofday.
17197         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17198         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17199         attribute_hidden.
17200         (_libc_vdso_platform_setup): Remove initialization of
17201         __vdso_gettimeofday and __vdso_time.
17202
17203 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17204
17205         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17206         and fgetc_unlocked.
17207         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17208         getc_unlocked.
17209
17210         * elf/dl-open.c (add_to_global): Report additions to the global scope
17211         for LD_DEBUG=scopes.
17212         (dl_open_worker): Also print scope of newly loaded dependencies.
17213         (_dl_show_scope): Indicate if there is no scope.
17214
17215         [BZ #13114]
17216         * stdio-common/Makefile (tests): Add bug24.
17217         * stdio-common/bug24.c: New file.
17218
17219 2011-08-19  Andreas Jaeger  <aj@suse.de>
17220
17221         [BZ #13114]
17222         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17223         non-existant file when using close-on-exec mode.
17224
17225 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17226
17227         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17228         the very first instruction.
17229
17230         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17231         the CFI state in the end.
17232         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17233         inclusion of dl-trampoline.h.
17234         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17235
17236 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17237
17238         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17239         expectations for long double.
17240
17241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17242         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17243
17244 2011-08-14  David S. Miller  <davem@davemloft.net>
17245
17246         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17247         artificual limit depends upon the system page size.
17248
17249 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17250
17251         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17252         * resolv/Makefile: Define CFLAGS-libresolv.
17253
17254 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17255
17256         * nss/makedb.c (compute_tables): Make variables used in nested
17257         function static.
17258
17259 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17260
17261         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17262         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17263         if buffer was too small.
17264
17265         * elf/pldd.c (main): Attach to all threads in the process.
17266         Rewrite /proc handling to use *at functions.
17267
17268 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17269
17270         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17271         specifies first scope to show.
17272         (dl_open_worker): Update callers.  Move printing scope of new
17273         object to before the relocation.
17274         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17275         * sysdeps/generic/ldsodefs.h: Update declaration.
17276
17277         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17278         string for the scope number.
17279
17280 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17281
17282         * nscd/servicescache.c (cache_addserv): Make sure written is always
17283         initialized.
17284
17285 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17286
17287         * sysdeps/i386/i486/bits/atomic.h
17288         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17289         statement expression, so as to suppress "set but not used" warning.
17290         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17291
17292         * string/strncat.c (STRNCAT): Use prototype definition.
17293
17294         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17295         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17296         -Iprograms here.
17297         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17298         (localedef-modules): Add localedef.
17299         (locale-modules): Add locale.
17300
17301         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17302         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17303         to avoid a warning.
17304
17305 2011-08-14  David S. Miller  <davem@davemloft.net>
17306
17307         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17308         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17309
17310 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17311
17312         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17313         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17314         * elf/rtld.c (dl_main): Set l_name of vDSO.
17315         Call _dl_show_scope when DL_DEBUG_SCOPES.
17316         (process_dl_debug): Recognize scopes flag and also set it for all.
17317         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17318         Declare _dl_show_scope.
17319
17320         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17321         (do_dlopen): Pass caller_dlopen to dl_open.
17322         (__libc_dlopen_mode): Initialize caller_dlopen.
17323
17324         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17325         of libc.  Make tolower call locale-independent.  Optimize a bit by
17326         using isdigit instead of isalnum.
17327         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17328
17329 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17330
17331         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17332         was a dependency or dynamically loaded.
17333
17334 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17335
17336         * intl/l10nflist.c: Allow architecture-specific pop function.
17337         * sysdeps/x86_64/l10nflist.c: New file.
17338
17339         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17340         classification.
17341
17342 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17343
17344         * include/dirent.h: Add libc_hidden_proto for scandirat and
17345         scandirat64.  Don't declare __scandirat64.
17346         * dirent/scandirat.c: Add libc_hidden_def.
17347         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17348         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17349
17350 2011-08-10  David S. Miller  <davem@davemloft.net>
17351
17352         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17353         enum.
17354         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17355         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17356         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17357
17358 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17359
17360         * Versions.def [libc]: Add GLIBC_2.15.
17361         * dirent/Makefile (routines): Add scandirat and scandirat64.
17362         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17363         GLIBC_2.15.
17364         * dirent/dirent.h: Declare scandirat and scandirat64.
17365         * dirent/scandirat.c: New file.
17366         * dirent/scandirat64.c: New file.
17367         * sysdeps/wordsize-64/scandirat.c: New file.
17368         * sysdeps/wordsize-64/scandirat64.c: New file.
17369         * dirent/opendir.c: Define opendirat.
17370         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17371         using scandirat.
17372         * dirent/scandir64.c: Adjust for scandir.c change.
17373         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17374         __scandirat64, and __scandir_cancel_handler.
17375         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17376         additional parameter and use openat instead of open (outside of ld.so).
17377         Add new __opendir as wrapper around __opendirat.
17378         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17379         here without requiring old scandirat implementation.
17380
17381 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17382
17383         * dirent/scandir.c (cancel_handler): Renamed to
17384         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17385         defined.  Adjust users.
17386         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17387         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17388
17389 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17390
17391         * string/test-string.h (IMPL): Use __STRING to expand name and then
17392         stringify it.
17393
17394         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17395         of cleanups.
17396
17397 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17398
17399         * string/Makefile: Update.
17400         (strop-tests): Append strncat.
17401         * string/test-wcscmp.c: New file.
17402         New comprehensive test for wcscmp.
17403         * string/test-strcmp.c: Update.
17404         (WIDE): New define.
17405
17406 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17407
17408         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17409         line.
17410
17411 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17412
17413         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17414         encoding to ACE if AI_IDN.
17415
17416 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17417
17418         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17419         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17420
17421 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17422
17423         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17424         Fix overflow bug in strncat.
17425         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17426
17427         * string/test-strncat.c: Update.
17428         Add new tests for checking overflow bugs.
17429
17430 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17431
17432         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17433         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17434         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17435         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17436         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17437         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17438         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17439         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17440         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17441
17442         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17443         (USE_AS_STRCAT): Define.
17444         Add strcat and strncat support.
17445         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17446
17447 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17448
17449         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17450         __n bigger than INT_MAX+1.
17451         (__strncmp_g): Likewise.
17452
17453 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17454
17455         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17456         * libio/stido.h: Likewise.
17457
17458         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17459         (AF_NFC): Define.
17460         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17461         (AF_NFC): Define.
17462
17463         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17464         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17465         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17466         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17467         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17468
17469         [BZ #13021]
17470         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17471         installed.
17472
17473         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17474         typo.
17475         (_dl_x86_64_save_sse): Likewise.
17476
17477 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17478
17479         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17480         OSXSAVE.
17481         (_dl_x86_64_save_sse): Likewise.
17482
17483         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17484
17485         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17486
17487 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17488
17489         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17490         change.
17491         (_dl_x86_64_save_sse): Use correct AVX check.
17492
17493 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17494
17495         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17496         bug in strncpy/strncat.
17497         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17498
17499 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17500
17501         * string/tester.c (test_strcat): Add tests for different alignments
17502         of source and destination.
17503         (test_strncat): Likewise.
17504
17505 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17506
17507         [BZ #12852]
17508         * posix/glob.c (glob): Check passed in values before using them in
17509         expressions to avoid some overflows.
17510         (glob_in_dir): Likewise.
17511
17512         [BZ #13007]
17513         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17514         check for AVX enablement so that we don't crash with old kernels and
17515         new hardware.
17516         * elf/tst-audit4.c: Add same checks here.
17517         * elf/tst-audit6.c: Likewise.
17518
17519         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17520
17521 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17522
17523         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17524
17525 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17526
17527         * po/cs.po: Update from translation team.
17528         * po/bg.po: Likewise.
17529
17530 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17531
17532         * misc/sys/cdefs.h: Add support for const attribute.
17533         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17534         to gnu_dev_{major,minor,makedev} functions.
17535
17536 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17537
17538         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17539
17540 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17541
17542         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17543         strlen results.
17544
17545 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17546
17547         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17548         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17549         register in order to avoid conflicts with the soft frame pointer
17550         being held in r11 when necessary.
17551         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17552         (INTERNAL_VSYSCALL_NCS): Likewise.
17553
17554 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17555
17556         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17557         * elf/dl-fini.c (_dl_fini): Adjust caller.
17558         * elf/dl-close.c (_dl_close_worker): Likewise.
17559         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17560
17561 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17562
17563         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17564         "aux_cache->nlibs < 0".
17565
17566         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17567         in the reload-count case.
17568
17569 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17570
17571         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17572         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17573         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17574         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17575         * sysdeps/x86_64/multiarch/strcat.S: New file.
17576         * sysdeps/x86_64/multiarch/strncat.S: New file.
17577         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17578         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17579         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17580         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17581         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17582         (USE_AS_STRCAT): Define.
17583         Add strcat and strncat support.
17584         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17585         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17586         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17587         * string/strncat.c: Update.
17588         (USE_AS_STRNCAT): Define.
17589         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17590         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17591         and i7.
17592         * sysdeps/x86_64/multiarch/init-arch.h
17593         (bit_Prefer_PMINUB_for_stringop): New.
17594         (index_Prefer_PMINUB_for_stringop): Likewise.
17595         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17596         bit_Prefer_PMINUB_for_stringop.
17597
17598 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17599
17600         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17601         buffer64.
17602         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17603         of casting of buffer.
17604         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17605         buffer32 and buffer64.
17606         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17607         writes instead of casting of buffer.
17608         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17609         buffer32.
17610         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17611         casting of buffer.
17612
17613 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17614
17615         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17616
17617 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17618
17619         * nscd/nscd.c (termination_handler): Don't do anything for a database
17620         if it has not yet been initialized.
17621
17622 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17623
17624         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17625
17626 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17627
17628         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17629
17630 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17631
17632         * po/nl.po: Update from translation team.
17633         * po/sv.po: Likewise.
17634
17635 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17636
17637         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17638         now disallowed by GCC.
17639
17640         * configure.in (use-default-link): Default to yes if a test -shared
17641         link meets our qualifications.
17642         * configure: Regenerated.
17643
17644         * config.make.in (output-format): New variable.
17645         * configure.in: Check for ld --print-output-format support.
17646         * configure: Regenerated.
17647         * Makerules ($(common-objpfx)format.lds)
17648         [$(output-format) != unknown]: Just use $(output-format),
17649         instead of the linker-script munging.
17650
17651 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17652
17653         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17654         of $(common-objpfx)shlib.lds.
17655         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17656
17657         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17658         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17659
17660         * configure.in (-z relro check): Adjust test code to add a large
17661         writable data section after it.
17662         * configure: Regenerated.
17663
17664 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17665
17666         * configure.in (-z relro check): Fix test code to make the variable
17667         truly const.
17668         * configure: Regenerated.
17669
17670 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17671
17672         * nscd/nscd.h (struct traced_file): Define.
17673         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17674         elements.  Add traced_files.
17675         (inotify_fd): Declare.
17676         (register_traced_file): Declare.
17677         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17678         (inotify_fd): Export.
17679         (resolv_conf_descr): Remove.
17680         (nscd_init): Move inotify descriptor creation to main.
17681         Don't register files for notification here.
17682         (register_traced_file): New function.
17683         (invalidate_cache): Don't use reset_res to determine whether to call
17684         res_init, go through the list of registered files.
17685         (main_loop_poll): The inotify descriptors are now stored in the
17686         structures for the traced files.
17687         (main_loop_epoll): Likewise
17688         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17689         to __nss_disable_nscd.
17690         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17691         for a database anymore.  Check the records for all the registered
17692         files instead.
17693         * nss/Makefile (libnss_files-routines): Add files-init.
17694         (libnss_db-routines): Add db-init.
17695         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17696         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17697         * nss/nss_db/db-init.c: New file.
17698         * nss/nss_files/files-init.c: New file.
17699         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17700         __nss_lookup_function.
17701         (__nss_lookup_function): Call nss_load_library.
17702         (nss_load_all_libraries): New function.
17703         (__nss_disable_nscd): Take parameter with callback function for files
17704         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17705         used for the cached services.
17706         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17707         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17708         options for features to all the files in nscd.
17709
17710         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17711
17712 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17713
17714         * csu/elf-init.c (__libc_csu_init): Comment typo.
17715
17716 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17717
17718         * po/pl.po: Update from translation team.
17719         * po/ja.po: Likewise.
17720         * po/ru.po: Likewise.
17721         * po/ko.po: Likewise.
17722         * po/fr.po: Likewise.
17723
17724 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17725
17726         * configure.in (.ctors/.dtors header and trailer check):
17727         Use an empirical test on a built program.
17728         * configure: Regenerated.
17729
17730         * configure.in (-z relro check): Use an empirical test on a built DSO.
17731         Detect, but do not require, on ia64.
17732         * configure: Regenerated.
17733
17734         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17735         Update tests that use readelf to use $READELF instead.
17736         * configure: Regenerated.
17737
17738 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17739
17740         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17741         if the result is not used.
17742
17743 2011-07-05  Andreas Jaeger  <aj@suse.de>
17744
17745         [BZ#9696]
17746         * stdlib/tst-strtod.c: Add testcase.
17747
17748 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17749
17750         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17751         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17752         The latter has a higher limit.  Take additional parameter to pass to
17753         the new function.
17754         (__pathconf): Pass file to __statfs_link_max.
17755         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17756         __statfs_link_max.
17757         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17758         __statfs_link_max.
17759
17760         [BZ #12868]
17761         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17762         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17763         Handle Lustre.
17764         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17765         (__statfs_filesize_max): Likewise.
17766         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17767
17768 2011-07-05  Andreas Jaeger  <aj@suse.de>
17769
17770         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17771
17772 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17773
17774         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17775         `status' variable.
17776         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17777         Likewise.
17778
17779 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17780
17781         * Makefile (strop-tests): Add strncat.
17782         * string/test-strncat.c: New file.
17783
17784 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17785
17786         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17787
17788 2011-06-21  Andreas Jaeger  <aj@suse.de>
17789
17790         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17791         Copy rule from iconvdata/Makefile.
17792
17793 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17794
17795         [BZ #12922]
17796         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17797         but no long options are defined, just return 'W'.
17798
17799 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17800
17801         [BZ #9696]
17802         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17803
17804 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17805
17806         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17807         netgroups to read.
17808         (innetgr): Likewise.
17809
17810 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17811
17812         * config.make.in (install_root): Default to $(DESTDIR).
17813
17814 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17815
17816         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17817
17818 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17819
17820         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17821
17822         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17823         containing directory rather than embedding absolute directory names.
17824
17825         * scripts/check-local-headers.sh: Rewritten using awk.
17826         Match by word, not by line.  Print error messages for matches.
17827         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17828
17829         * Makerules [shlib-lds-flags empty]:
17830         ($(common-objpfx)libc_pic.opts): New target.
17831         ($(common-objpfx)libc_pic.os.clean): New target.
17832         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17833
17834         * config.make.in (OBJCOPY): New variable.
17835         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17836         * configure: Regenerated.
17837
17838         * config.make.in (use-default-link): New variable.
17839         * configure.in (use_default_link): Grok --with-default-link to set it.
17840         * configure: Regenerated.
17841         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17842         (shlib-lds, shlib-lds-flags): Define to empty.
17843
17844         * Makerules (shlib-lds): New variable.
17845         (shlib-lds-flags): New variable.
17846         (build-shlib, build-moduile, build-module-asneeded): Use it.
17847         ($(common-objpfx)libc.so): Use $(shlib-lds).
17848         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17849         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17850
17851         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17852         DT_FLAGS/DT_FLAGS_1 with zero flags.
17853
17854         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17855         linker script munging.
17856
17857 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17858
17859         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17860         as 128-bit value.
17861         * crypt/sha512.c (sha512_process_block): Perform total addition using
17862         128-bit if possible.
17863         (__sha512_finish_ctx): Likewise.
17864         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17865         as 64-bit value.
17866         * crypt/sha256.c (SWAP64): Define.
17867         (sha256_process_block): Perform total addition using 64-bit if
17868         possible.
17869         (__sha256_finish_ctx): Likewise.
17870
17871 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17872
17873         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17874         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17875         * nscd/hstcache.c (cache_addhst): Likewise.
17876         * nscd/grpcache.c (cache_addgr): Likewise.
17877         * nscd/aicache.c (addhstaiX): Likewise
17878         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17879
17880 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17881
17882         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17883         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17884         * nscd/hstcache.c (cache_addhst): Likewise.
17885         * nscd/grpcache.c (cache_addgr): Likewise.
17886         * nscd/aicache.c (addhstaiX): Likewise
17887
17888 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17889
17890         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17891         domain only when needed.
17892
17893 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17894
17895         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17896         is always restored.
17897
17898 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17899
17900         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17901         are re-adding the entry.
17902         * nscd/servicescache.c (cache_addserv): Likewise.
17903
17904 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17905
17906         * sysdeps/generic/dl-irel.h: fix protection against multiple
17907         inclusions.
17908         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17909
17910 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17911
17912         [BZ #12935]
17913         * malloc/memusage.sh: Fix quoting in message.
17914         * debug/xtrace.sh: Likewise.
17915
17916         * configure.in: Remove support for --experimental-malloc option, make
17917         it the default.
17918         * config.make.in: Likewise.
17919         * malloc/Makefile: Likewise.
17920
17921 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17922
17923         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17924         two-byte characters.
17925
17926 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17927
17928         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17929         AC_CACHE_CHECK invocation.
17930         * configure: Regenerated.
17931
17932         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17933
17934 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17935
17936         [BZ #12350]
17937         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17938         bit from old_res_options.
17939
17940         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17941
17942         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17943         value type for setfct.
17944
17945 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17946
17947         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17948         __gettimeofday instead of gettimeofday.
17949
17950 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17951
17952         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17953
17954 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17955
17956         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17957
17958         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17959         info.
17960
17961 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17962
17963         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17964         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17965         strcpy-sse2-unaligned strncpy-sse2-unaligned
17966         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17967         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17968         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17969         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17970         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17971         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17972         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17973         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17974         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17975         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17976         (STRCPY): Support SSE2 and SSSE3 versions.
17977
17978 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17979
17980         [BZ #12874]
17981         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17982         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17983         kernels which artificially limit size of requests.
17984
17985 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17986
17987         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17988         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17989         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17990         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17991         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17992         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17993         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17994         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17995         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17996         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17997         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17998         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17999         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18000         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18001         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18002         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18003         Enable unaligned load optimization for Intel Core i3, i5 and i7
18004         processors.
18005         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18006         Define.
18007         (index_Fast_Unaligned_Load): Define.
18008         (HAS_FAST_UNALIGNED_LOAD): Define.
18009
18010 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18011
18012         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18013
18014 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18015
18016         [BZ #12907]
18017         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18018         until it is clear that the information is realy needed.
18019         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18020
18021 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18022
18023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18024
18025 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18026
18027         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18028         /sys/devices/system/cpu/online if it is usable.
18029
18030         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18031         reading the information from the /proc filesystem to once a second.
18032
18033 2011-06-21  Andreas Jaeger  <aj@suse.de>
18034
18035         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18036         NULL after inclusion of kernel headers.
18037
18038 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18039
18040         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18041         calls to internal_setent.
18042
18043         [BZ #12885]
18044         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18045         addresses using gethostbyname4_r ignore IPv4 addresses.
18046
18047         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18048         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18049
18050         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18051
18052 2011-06-20  David S. Miller  <davem@davemloft.net>
18053
18054         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18055         inclusions.
18056         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18057
18058         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18059         (elf_irel): Use it.
18060         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18061         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18062         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18063         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18064         * sysdeps/x86_64/dl-irel.h: Likewise.
18065
18066         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18067         * elf/dl-sym.c: Likewise.
18068
18069 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18070
18071         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18072         need to dereference resplen2.
18073
18074 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18075
18076         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18077
18078 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18079
18080         * Makeconfig: Define vardbdir and inst_vardbdir.
18081         * nss/Makefile: Add rules to install db-Makefile.
18082
18083         * nss/nss_db/db-XXX.c: Cleanup.
18084
18085         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18086         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18087         GLIBC_PRIVATE.
18088         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18089         * nss/makedb.c: Implement -g option to specify that value strings
18090         are generated and should not be added to table iterated over for
18091         get*ent calls.
18092         * nss/nss_db/db-initgroups.c: New file.
18093
18094         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18095         interface.
18096
18097         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18098         (internal_getgrouplist): Adjust to name change.
18099         Update use_initgroups_entry if this is not the first call.
18100         * nss/databases.def: Add initgroups entry.
18101
18102         * nss/makedb.c (compute_tables): Check result of multiple hash table
18103         sizes to minimize maximum chain length.
18104
18105 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18106
18107         * Versions.def: Add entry for libnss_db.
18108         * shlib-versions: Likewise.
18109         * nss/Makefile: Add rules to build libnss_db.
18110         * nss/Versions: Add libnss_db information.  Organize libnss_files
18111         entries better.
18112         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18113         makedb progra.  Some minor improvements to generate smaller files.
18114         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18115         here from...
18116         * nss/makedb.c: ...here.
18117         Improve database format to be smaller and require less memory at
18118         runtime.
18119         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18120         db anymore.
18121         * nss/nss_db/db-netgrp.c: Likewise.
18122         * nss/nss_db/db-open.c: Likewise.
18123         * nss/nss_files/flies-XXX.x: Adjust comments.
18124         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18125         * nss/nss_files/files-grp.c: Likewise.
18126         * nss/nss_files/files-hosts.c: Likewise.
18127         * nss/nss_files/files-network.c: Likewise.
18128         * nss/nss_files/files-proto.c: Likewise.
18129         * nss/nss_files/files-pwd.c: Likewise.
18130         * nss/nss_files/files-rpc.c: Likewise.
18131         * nss/nss_files/files-service.c: Likewise.
18132         * nss/nss_files/files-sgrp.c: Likewise.
18133         * nss/nss_files/files-spwd.c: Likewise.
18134         * nss/nss_db/db-alias.c: Removed.
18135         * nss/nss_db/dummy-db.h: Removed.
18136
18137 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18138
18139         * nss/makedb.c: Rewritten to not use database library.
18140         * nss/Makefile: Update to build new makedb program.
18141
18142 2011-06-14  Andreas Jaeger  <aj@suse.de>
18143
18144         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18145         memset declaration.
18146
18147 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18148
18149         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18150         tmpbuf.
18151
18152 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18153
18154         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18155         * elf/Makefile ($(objpfx)ld.so): Likewise.
18156
18157         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18158         Don't list ld.so twice in dependencies.
18159
18160         * posix/bug-regex31.c: Include <stdlib.h>.
18161
18162         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18163
18164         * nis/nss_compat/compat-spwd.c
18165         (getspent_next_nss_netgr): Remove unused variable.
18166         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18167
18168         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18169         nonmembers" output to use the right array.
18170
18171         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18172
18173         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18174
18175         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18176         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18177         * catgets/gencat.c (read_input_file): Likewise.
18178         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18179
18180         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18181         variable definition inside #if's controlling its use.
18182
18183         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18184
18185         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18186
18187         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18188
18189         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18190         unreachable code.
18191
18192         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18193
18194         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18195         * configure: Regenerated.
18196
18197         * Makerules: Revert last change.
18198         * elf/Makefile: Likewise.
18199
18200 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18201
18202         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18203         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18204         (reloc-link): Likewise.
18205
18206 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18207
18208         * elf/Makefile: Add rules to build pldd.
18209         * elf/pldd.c: New file.
18210         * elf/pldd-xx.c: New file.
18211
18212 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18213
18214         * version.h: Update for 2.15 development version.
18215
18216 2011-06-07  David S. Miller  <davem@davemloft.net>
18217
18218         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18219         ifuncs.
18220         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18221         elf_machine_lazy_rel): Likewise.
18222         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18223         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18224         elf_machine_lazy_rel): Likewise.
18225         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18226         dl_hwcap via passed in argument.
18227         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18228         Likewise.
18229
18230 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18231
18232         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18233
18234 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18235
18236         [BZ #12849]
18237         * manual/fdl-1.1.texi: New file, verbatim from:
18238         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18239         * manual/lgpl-2.1.texi: New file, verbatim from:
18240         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18241         * manual/Makefile (licenses): New variable, list those new file names.
18242         (texis): Use it.
18243         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18244
18245         * manual/fdl.texi: File removed.
18246         * manual/lesser.texi: File removed.
18247         * manual/libc.texinfo (Copying, Documentation License):
18248         Use new @include file names, put @appendix directive before @include.
18249
18250 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18251
18252         [BZ #12841]
18253         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18254         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18255         (mq_open): Add __NTH.
18256
18257 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18258
18259         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18260         Assume Intel Core i3/i5/i7 processor if AVX is available.
18261
18262 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18263
18264         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18265         typo.
18266
18267 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18268
18269         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18270         memory.  Use alloca_account.  Fix memory leak when retrying.
18271
18272 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18273
18274         * version.h (RELEASE): Bump for 2.14 release.
18275         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18276
18277         * config.make.in (RANLIB): Remove entry.
18278
18279 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18280
18281         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18282         (libc.pot): Work around missing support for .ksh extension in xgettext.
18283
18284         [BZ #12684]
18285         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18286         if both request failed.
18287         (send_dg): In case of server errors clear resplen or *resplen2.
18288
18289         [BZ #12454]
18290         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18291         when there are multiple maps.
18292         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18293         (_dl_fini): Remove test here.
18294
18295         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18296
18297 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18298
18299         [BZ #12350]
18300         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18301         bit from old_res_options.
18302         (gaih_inet): Likewise.
18303
18304         [BZ #11099]
18305         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18306         as signed.
18307
18308         * resolv/res_init.c (res_setoptions): Make the code more compact.
18309
18310         [BZ #11558]
18311         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18312         set RES_USEVC.
18313
18314         [BZ #11634]
18315         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18316
18317         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18318
18319         [BZ #11781]
18320         * malloc/malloc.h: Declare malloc hook variables as volatile.
18321
18322         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18323         in last patch.
18324
18325         [BZ #11799]
18326         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18327         raise in the comment.
18328         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18329         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18330         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18331
18332 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18333
18334         [BZ #12811]
18335         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18336         grow the buffers more if it already has to be sufficient.
18337         (build_wcs_upper_buffer): Likewise.
18338         * posix/regexec.c (check_matching): Likewise.
18339         (clean_state_log_if_needed): Likewise.
18340         (extend_buffers): Don't enlarge buffers beyond size of the input
18341         buffer.
18342         Patches mostly by Emil Wojak <emil@wojak.eu>.
18343         * posix/bug-regex32.c: New file.
18344         * posix/Makefile (tests): Add bug-regex32.
18345
18346         * locale/findlocale.c (_nl_find_locale): Return right away if
18347         _nl_explode_name failed.
18348         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18349
18350         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18351
18352         * debug/xtrace.sh: Unify messages.
18353         * malloc/memusage.sh: Likewise.
18354
18355         [BZ #12813]
18356         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18357         time symbol from vDSO.  Substitute with vsyscall if not available.
18358         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18359         __vdso_time.
18360
18361         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18362         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18363         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18364         Add sendmmsg and internal_sendmmsg.
18365         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18366         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18367         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18368
18369         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18370         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18371         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18372
18373 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18374
18375         [BZ #12813]
18376         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18377         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18378         available.
18379         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18380         __vdso_getcpu.
18381
18382         [BZ #12814]
18383         * iconvdata/Makefile (tests): Add bug-iconv9.
18384         * iconvdata/bug-iconv9.c: New file.
18385
18386 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18387
18388         [BZ #12814]
18389         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18390
18391 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18392
18393         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18394         (struct user_regs_struct): Change intcs field back to cs.
18395
18396 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18397
18398         * po/ja.po: Update from translation team.
18399
18400 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18401
18402         [BZ #12795]
18403         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18404         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18405
18406 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18407
18408         * stdlib/longlong.h: Update from GCC.
18409
18410 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18411
18412         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18413         parameter name.
18414         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18415         Add parameter name.
18416         (__sysconf): Pass it down.
18417
18418 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18419
18420         [BZ #12671]
18421         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18422         some situations.
18423         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18424         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18425         add in in __libc_use_alloca calls.  Adjust callers.
18426         (glob): Use malloc in some situations.
18427
18428         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18429         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18430         pltexit.
18431
18432 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18433
18434         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18435         and CLOCK_BOOTTIME_ALARM.
18436
18437         [BZ #12782]
18438         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18439         is returned.
18440
18441         * string/_strerror.c (__strerror_r): Print negative errors as signed
18442         numbers.
18443
18444         [BZ #12777]
18445         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18446         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18447         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18448
18449         * configure.in: Fix typo in redirection and correct removal of test
18450         files in two cases.
18451
18452         [BZ #12788]
18453         * locale/setlocale.c (new_composite_name): Fix test to check for
18454         identical name of all categories.
18455
18456         [BZ #12792]
18457         * libio/filedoalloc.c (local_isatty): New function.
18458         (_IO_file_doallocate): Use local_isatty.
18459         * stdio-common/perror.c (perror): In case a new stream is used
18460         forward the stream error.
18461         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18462         error flag.
18463
18464 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18465
18466         [BZ #11869]
18467         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18468         alloca.
18469         * include/alloca.h (extend_alloca_account): Define.
18470
18471         [BZ #11857]
18472         * posix/regex.h: Fix comments with documentation of user-accessible
18473         fields after compilation and describe correct free'ing of pattern
18474         after re_compile_pattern.
18475         Patch by Reuben Thomas <rrt@sc3d.org>.
18476
18477 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18478
18479         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18480         and -mno-altivec to prevent the compiler from using Altivec and/or
18481         VSX instructions when the corresponding registers are not available.
18482
18483 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18484
18485         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18486
18487 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18488
18489         * libio/freopen.c (freopen): Use __dup2, not dup2.
18490         * libio/freopen64.c (freopen64): Likewise.
18491
18492 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18493
18494         [BZ #12775]
18495         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18496         * math/Makefile (tests): Add test-powl.
18497         (CFLAGS-test-powl.c): Define.
18498         * math/test-powl.c: New file.
18499
18500 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18501
18502         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18503
18504 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18505
18506         [BZ #11837]
18507         * iconvdata/gb18030.c: Update to GB18020-2005.
18508
18509 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18510
18511         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18512         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18513         Patch by Aharon Robbins <arnold@skeeve.com>.
18514
18515         [BZ #11892]
18516         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18517         on the stack.
18518
18519         [BZ #11895]
18520         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18521         through underflows.
18522
18523         [BZ #12766]
18524         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18525         point to strings before performing equality test for error_one_per_line
18526         mode.
18527
18528         [BZ #11697]
18529         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18530
18531         [BZ #11820]
18532         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18533         (struct user_fpregs_struct): Avoid __uint*_t types.
18534
18535         [BZ #6420]
18536         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18537         symbol info.  Use it instead of calling _dl_addr locally.
18538         (lock_and_info): New function.
18539         (tr_freehook): Call lock_and_info and pass symbol info as additional
18540         parameter to tr_where.
18541         (tr_mallochook): Likewise.
18542         (tr_reallochook): Likewise.
18543         (tr_memalignhook): Likewise.
18544
18545         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18546         used and couldn't be at all thread-safe.
18547
18548 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18549
18550         * libio/freopen.c (freopen): Don't close old file descriptor
18551         before the new one is opened.  Instead dup the new file descriptor
18552         to the old one after the new stream is created.
18553         * libio/freopen64.c (freopen64): Likewise.
18554         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18555         * libio/fileops.c (_IO_new_file_close_it): Handle new
18556         _IO_FLAGS2_NOCLOSE flag.
18557         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18558         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18559         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18560         _IO_FLAGS2_NOCLOSE flag.
18561         * include/unistd.h: Add hidden_proto for dup3.
18562         Define __have_dup3.
18563         * io/dup3.c: Define hidden symbol.
18564         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18565
18566         [BZ #7101]
18567         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18568         when an incomplete long option is used.
18569         * posix/tst-getopt_long1.c: New file.
18570         * posix/Makefile (tests): Add tst-getopt_long1.
18571
18572         [BZ #10138]
18573         * scripts/config.guess: Update from autoconf-2.68.
18574         * scripts/config.sub: Likewise.
18575
18576         [BZ #10157]
18577         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18578         tests into ...
18579         (has_cpuclock): ...this.  New function.
18580         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18581         macro here based on has_cpuclock code.
18582
18583         [BZ #10149]
18584         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18585         First byte (not low byte) is now always NUL.
18586         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18587
18588         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18589         Use non-cancelable interfaces.
18590
18591         [BZ #9809]
18592         * locale/iso-639.def: Add entry for Sorani.
18593
18594         [BZ #11901]
18595         * include/stdlib.h: Move include protection to the right place.
18596         Define abort_msg_s.  Declare __abort_msg with it.
18597         * stdlib/abort.c (__abort_msg): Adjust type.
18598         * assert/assert.c (__assert_fail_base): New function.  Majority
18599         of code from __assert_fail.  Allocate memory for __abort_msg with
18600         mmap.
18601         (__assert_fail): Now call __assert_fail_base.
18602         * assert/assert-perr.c: Remove bulk of implementation.  Use
18603         __assert_fail_base.
18604         * include/assert.hL Declare __assert_fail_base.
18605         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18606         mmap.
18607         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18608
18609 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18610
18611         [BZ #11952]
18612         [BZ #12453]
18613         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18614         until all modules are registered in the DTV.
18615         * elf/Makefile: Add rules to build and run tst-tls19.
18616         * elf/tst-tls19.c: New file.
18617         * elf/tst-tls19mod1.c: New file.
18618         * elf/tst-tls19mod2.c: New file.
18619         * elf/tst-tls19mod3.c: New file.
18620         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18621
18622         [BZ #12083]
18623         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18624         correctly.
18625
18626         [BZ #12601]
18627         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18628         two-byte sequence errors.
18629         * iconvdata/Makefile (tests): Add bug-iconv8.
18630         * iconvdata/bug-iconv8.c: New file.
18631
18632         [BZ #12626]
18633         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18634         buf2 definition.
18635
18636         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18637
18638         [BZ #12432]
18639         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18640         (dummy_getcfa): New function.
18641         (init): Get _Unwind_GetCFA address, use dummy if not found.
18642         (backtrace_helper): In recursion check, also check whether CFA changes.
18643         (__backtrace): Completely initialize arg.
18644
18645         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18646         storing incomplete byte sequence in state object.  Avoid testing for
18647         guaranteed too small input if we know there is enough data available.
18648
18649 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18650
18651         * Makeconfig (+link-pie): Indent.
18652         * Rules (binaries-pie): Define if $(have-fpie) and
18653         $(build-shared).
18654         (binaries-shared): Also filter out $(binaries-pie).
18655         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18656         * nscd/Makefile (others-pie): Add nscd.
18657         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18658         ($(objpfx)nscd): Remove command override.
18659         * login/Makefile (others-pie): Add pt_chown.
18660         ($(objpfx)pt_chown): Remove command override.
18661         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18662         remove command overrides.
18663
18664 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18665
18666         * libio/tst_putwc.c: Fix error messages.
18667
18668         [BZ #12724]
18669         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18670         currently writing and seek to current position when not.
18671         * libio/Makefile (tests): Add bug-fclose1.
18672         * libio/bug-fclose1.c: New file.
18673
18674 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18675
18676         [BZ #12511]
18677         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18678         don't set DF_1_NODELETE here.
18679         (do_lookup_x): When entering new entry test for copy relocation
18680         and if necessary set DF_1_NODELETE flag.
18681         * elf/tst-unique4.cc: New file.
18682         * elf/tst-unique4.h: New file.
18683         * elf/tst-unique4lib.cc: New file.
18684         * elf/Makefile: Add rules to build and run tst-unique4.
18685         Patch by Piotr Bury <pbury@goahead.com>.
18686
18687 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18688
18689         [BZ #12052]
18690         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18691
18692         [BZ #12625]
18693         * misc/mntent_r.c (addmntent): Flush the stream after the output
18694
18695         [BZ #12393]
18696         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18697         (is_trusted_path_normalize): Skip initial colon.  Append slash
18698         to empty buffer.  Duplicate is_trusted_path code but allow
18699         constructed patch to be prefix.
18700         (is_dst): Allow $ORIGIN followed by /.
18701         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18702         Correct testing of result of is_trusted_path_normalize
18703         (decompose_rpath): Fix warning.
18704
18705 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18706
18707         [BZ #11257]
18708         * grp/initgroups.c (internal_getgrouplist): When we found the service
18709         list through the initgroups entry in nsswitch.conf do not always
18710         continue on a successful lookup.  Don't always use the
18711         __nss_group_database value if it is set.
18712         * nss/nsswitch.conf (initgroups): Change action for successful db
18713         lookup to continue for compatibility.
18714
18715 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18716
18717         [BZ #11532]
18718         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18719         and CP774 modules.
18720         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18721         and CP774 modules.
18722         * iconvdata/tst-tables.sh: Likewise.
18723         * iconvdata/cp770.c: New file.
18724         * iconvdata/cp771.c: New file.
18725         * iconvdata/cp772.c: New file.
18726         * iconvdata/cp773.c: New file.
18727         * iconvdata/cp774.c: New file.
18728         * iconvdata/testdata/CP770: New file.
18729         * iconvdata/testdata/CP770..UTF8: New file.
18730         * iconvdata/testdata/CP771: New file.
18731         * iconvdata/testdata/CP771..UTF8: New file.
18732         * iconvdata/testdata/CP772: New file.
18733         * iconvdata/testdata/CP772..UTF8: New file.
18734         * iconvdata/testdata/CP773: New file.
18735         * iconvdata/testdata/CP773..UTF8: New file.
18736         * iconvdata/testdata/CP774: New file.
18737         * iconvdata/testdata/CP774..UTF8: New file.
18738
18739         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18740         END CHARMAP line.
18741         * iconvdata/gen-8bit-gap.sh: Likewise.
18742         * iconvdata/gen-8bit.sh: Likewise.
18743
18744         * locale/iso-639.def: Add ary entry.
18745
18746         [BZ #11258]
18747         * locale/C-translit.h.in: Add U20A1 transliteration.
18748
18749         [BZ #12178]
18750         * locale/iso-639.def: Add wae entry.
18751         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18752
18753         [BZ #12545]
18754         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18755         for n.
18756
18757         [BZ #12711]
18758         * locale/C-translit.h.in: Add entry for U20B9.
18759         Patch by pravin.d.s@gmail.com.
18760
18761 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18762
18763         [BZ #12713]
18764         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18765         ENAMETOOLONG use generic getcwd.
18766         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18767         in rtld.  Use *stat64.
18768         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18769         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18770         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18771         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18772         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18773         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18774         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18775         __fstatat64 macros.
18776         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18777         * dirent/rewinddir.c: Add libc_hidden_def.
18778         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18779         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18780
18781         * include/dirent.h (__alloc_dir): Add flags parameter.
18782         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18783         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18784         __alloc_dir.
18785         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18786         from fdopendir if O_CLOEXEC is already set.
18787
18788 2011-03-15  Alan Modra  <amodra@gmail.com>
18789
18790         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18791         l_tls_firstbyte_offset non-zero.  Save padding offset in
18792         l_tls_firstbyte_offset for later use.
18793         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18794         freeing static tls block.
18795
18796 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18797
18798         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18799         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18800         being defined by the kernel headers.
18801
18802 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18803
18804         [BZ #12734]
18805         * resolv/resolv.h: Define RES_NOTLDQUERY.
18806         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18807         no-tld-query and set RES_NOTLDQUERY.
18808         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18809         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18810         modern BIND to search name as TLD unless forbidden.
18811
18812 2011-05-07  Petr Baudis  <pasky@suse.cz>
18813             Ulrich Drepper  <drepper@gmail.com>
18814
18815         [BZ #12393]
18816         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18817         (is_trusted_path): ...to here.
18818         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18819         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18820         using is_trusted_path_normalize() in setuid scripts.
18821
18822 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18823
18824         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18825         __BEGIN/__END_DECLS.
18826
18827 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18828
18829         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18830         NSS_STATUS_NOTFOUND if no record was found.
18831
18832 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18833
18834         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18835         (headers-not-in-tirpc): Remove rpc/netdb.h
18836         * resolv/netdb.h: Revert last change.
18837
18838 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18839
18840         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18841         circular dependency between libgcc.a and libc.a.
18842
18843 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18844
18845         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18846         * nis/Makefile: Don't install rpcsvc/*.
18847         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18848         instead of <rpc/types.h>.
18849         (MAXHOSTNAMELEN): Define.
18850
18851 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18852
18853         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18854
18855 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18856
18857         [BZ #12714]
18858         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18859         gethostbyname4_r when IPv6 results are possible.
18860
18861 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18862
18863         [BZ #12723]
18864         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18865         _PC_PIPE_BUF handling.
18866
18867 2011-04-30  Bruno Haible  <bruno@clisp.org>
18868
18869         [BZ #12717]
18870         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18871         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18872         to 'int'.
18873         * inet/getnameinfo.c (getnameinfo): Likewise.
18874
18875 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18876
18877         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18878         to groups setting in database lookup.
18879         * nss/nsswitch.conf: Add initgroups entry.
18880
18881 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18882
18883         [BZ #12685]
18884         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18885         mode string.
18886         Patch by Eric Blake <eblake@redhat.com>.
18887
18888 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18889
18890         * sunrpc/Makefile (need-export-routines): Add svc_run.
18891         (routines): Remove svc_run.
18892         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18893         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18894         * sunrpc/svc_run.c (svc_run): Likewise.
18895         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18896
18897 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18898
18899         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18900         problem in reallocation in last patch.
18901
18902 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18903
18904         * sunrpc/Makefile: Move inclusion of Rules.
18905
18906 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18907
18908         * nss/nss_files/files-initgroups.c: New file.
18909         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18910         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18911         _nss_files_initgroups_dyn.
18912
18913 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18914
18915         * elf/elf.h (R_ARM_IRELATIVE): Define.
18916
18917 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18918
18919         * po/ru.po: Update from translation team.
18920
18921 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18922
18923         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18924         dependencies.
18925
18926 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18927
18928         [BZ #12653]
18929         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18930         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18931         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18932         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18933         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18934
18935 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18936
18937         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18938         differing bytes.
18939         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18940         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18941         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18942
18943 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18944
18945         [BZ #12420]
18946         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18947         storing it.
18948         * stdlib/bug-getcontext.c: New file.
18949         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18950
18951 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18952
18953         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18954         instructions into .machine "z9-109".
18955         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18956         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18957
18958 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18959
18960         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18961         between environment variables and auxiliary vector.
18962
18963 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18964
18965         * Makefile: Add rules to build linkobj/libc.so.
18966         * include/libc-symbols.h: Define libc_hidden_nolink.
18967         * include/rpc/auth.h: Mark functions which are to be hidden.
18968         * include/rpc/auth_des.h: Likewise.
18969         * include/rpc/auth_unix.h: Likewise.
18970         * include/rpc/clnt.h: Likewise.
18971         * include/rpc/des_crypt.h: Likewise.
18972         * include/rpc/key_prot.h: Likewise.
18973         * include/rpc/pmap_clnt.h: Likewise.
18974         * include/rpc/pmap_prot.h: Likewise.
18975         * include/rpc/pmap_rmt.h: Likewise.
18976         * include/rpc/rpc_msg.h: Likewise.
18977         * include/rpc/svc.h: Likewise.
18978         * include/rpc/svc_auth.h: Likewise.
18979         * include/rpc/xdr.h: Likewise.
18980         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18981         * nss/Makefile: Likewise.
18982         * sunrpc/Makefile: Don't install headers.  Build library with normal
18983         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18984         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18985         for the compat linking library.  Remove use of INTDEF/INTUSE.
18986         * sunrpc/auth_none.c: Likewise.
18987         * sunrpc/auth_unix.c: Likewise.
18988         * sunrpc/authdes_prot.c: Likewise.
18989         * sunrpc/authuxprot.c: Likewise.
18990         * sunrpc/clnt_gen.c: Likewise.
18991         * sunrpc/clnt_perr.c: Likewise.
18992         * sunrpc/clnt_raw.c: Likewise.
18993         * sunrpc/clnt_simp.c: Likewise.
18994         * sunrpc/clnt_tcp.c: Likewise.
18995         * sunrpc/clnt_udp.c: Likewise.
18996         * sunrpc/clnt_unix.c: Likewise.
18997         * sunrpc/des_crypt.c: Likewise.
18998         * sunrpc/des_soft.c: Likewise.
18999         * sunrpc/get_myaddr.c: Likewise.
19000         * sunrpc/key_call.c: Likewise.
19001         * sunrpc/key_prot.c: Likewise.
19002         * sunrpc/netname.c: Likewise.
19003         * sunrpc/pm_getmaps.c: Likewise.
19004         * sunrpc/pm_getport.c: Likewise.
19005         * sunrpc/pmap_clnt.c: Likewise.
19006         * sunrpc/pmap_prot.c: Likewise.
19007         * sunrpc/pmap_prot2.c: Likewise.
19008         * sunrpc/pmap_rmt.c: Likewise.
19009         * sunrpc/publickey.c: Likewise.
19010         * sunrpc/rpc_cmsg.c: Likewise.
19011         * sunrpc/rpc_common.c: Likewise.
19012         * sunrpc/rpc_dtable.c: Likewise.
19013         * sunrpc/rpc_prot.c: Likewise.
19014         * sunrpc/rpc_thread.c: Likewise.
19015         * sunrpc/rtime.c: Likewise.
19016         * sunrpc/svc.c: Likewise.
19017         * sunrpc/svc_auth.c: Likewise.
19018         * sunrpc/svc_authux.c: Likewise.
19019         * sunrpc/svc_raw.c: Likewise.
19020         * sunrpc/svc_run.c: Likewise.
19021         * sunrpc/svc_simple.c: Likewise.
19022         * sunrpc/svc_tcp.c: Likewise.
19023         * sunrpc/svc_udp.c: Likewise.
19024         * sunrpc/svc_unix.c: Likewise.
19025         * sunrpc/svcauth_des.c: Likewise.
19026         * sunrpc/xcrypt.c: Likewise.
19027         * sunrpc/xdr.c: Likewise.
19028         * sunrpc/xdr_array.c: Likewise.
19029         * sunrpc/xdr_float.c: Likewise.
19030         * sunrpc/xdr_intXX_t.c: Likewise.
19031         * sunrpc/xdr_mem.c: Likewise.
19032         * sunrpc/xdr_rec.c: Likewise.
19033         * sunrpc/xdr_ref.c: Likewise.
19034         * sunrpc/xdr_sizeof.c: Likewise.
19035         * sunrpc/xdr_stdio.c: Likewise.
19036
19037 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19038
19039         [BZ #12650]
19040         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19041         * sysdeps/ia64/dl-tls.h: Likewise.
19042         * sysdeps/powerpc/dl-tls.h: Likewise.
19043         * sysdeps/s390/dl-tls.h: Likewise.
19044         * sysdeps/sh/dl-tls.h: Likewise.
19045         * sysdeps/sparc/dl-tls.h: Likewise.
19046         * sysdeps/x86_64/dl-tls.h: Likewise.
19047         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19048
19049 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19050
19051         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19052         rpath element also skip the following colon.
19053         (expand_dynamic_string_token): Add is_path parameter and pass
19054         down to DL_DST_REQUIRED and _dl_dst_substitute.
19055         (decompose_rpath): Call expand_dynamic_string_token with
19056         non-zero is_path.  Ignore empty rpaths.
19057         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19058         with zero is_path.
19059
19060 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19061
19062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19063         Make cancelable.
19064
19065 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19066
19067         [BZ #12655]
19068         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19069         Patch by Filipe David Manana <fdmanana@apache.org>.
19070
19071 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19072
19073         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19074         Maintain aligned stack.
19075         (CHECK_RSP): Remove unused macro.
19076
19077 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19078
19079         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19080         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19081
19082 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19083
19084         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19085
19086         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19087
19088 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19089
19090         [BZ #12518]
19091         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19092         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19093         * sysdeps/x86_64/memmove.c: New file.
19094         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19095         (memcpy): Renamed to ...
19096         (__new_memcpy): This.
19097         (memcpy): Provide GLIBC_2_14 memcpy.
19098         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19099         (memcpy): Provide GLIBC_2_2_5 memcpy.
19100
19101 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19102
19103         [BZ #12631]
19104         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19105
19106 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19107
19108         * misc/syncfs.c: New file.
19109         * misc/Makefile (routines): Add syncfs.
19110         * posix/unistd.h: Declare syncfs.
19111         * sysdeps/unix/syscalls.list: Add syncfs.
19112
19113 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19114
19115         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19116         open_by_handle_at.
19117         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19118         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19119         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19120         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19121         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19122         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19123         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19124
19125 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19126
19127         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19128         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19129         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19130         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19131         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19132         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19133         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19134
19135         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19136         sync_file_range.c with -fexceptions.
19137         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19138         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19139         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19140         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19141         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19142         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19143         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19144         sync_file_range as cancellation point
19145         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19146         now a wrapper around __call_sync_file_range with cancellation handling.
19147         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19148         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19149         function name to __call_sync_file_range.
19150         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19151         Add call_sync_file_range.
19152
19153 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19154
19155         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19156         bits/timex.h.
19157
19158 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19159
19160         * iconv/iconv.h: Fix typo in comment.
19161         * io/fcntl.h: Likewise.
19162         * libio/stdio.h: Likewise.
19163         * posix/spawn.h: Likewise.
19164         * posix/unistd.h: Likewise.
19165         * stdlib/stdlib.h: Likewise.
19166         * time/time.h: Likewise.
19167         * wcsmbs/wchar.h: Likewise.
19168
19169         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19170         open_by_handle): Add.
19171         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19172         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19173         Augment a few comments.
19174         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19175         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19176         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19177         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19178         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19179         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19180         open_by_handle.
19181
19182         * io/fcntl.h (AT_EMPTY_PATH): Define.
19183
19184 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19185
19186         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19187         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19188         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19189         to...
19190         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19191         * Versions.def: Add GLIBC_2.14.
19192         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19193         Export.
19194
19195 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19196
19197         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19198         round counter.
19199         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19200
19201 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19202
19203         [BZ #12597]
19204         * string/test-strncmp.c (do_page_test): New function.
19205         (check2): Likewise.
19206         (test_main): Call check2.
19207         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19208
19209 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19210
19211         [BZ #12587]
19212         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19213         Handle cache information in CPU leaf 4.
19214         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19215
19216 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19217
19218         [BZ #12583]
19219         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19220         character representation.
19221         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19222
19223 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19224
19225         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19226         END(__isnan) to END(__isnanf) to match function entry point/label
19227         EALIGN(__isnanf,...).
19228
19229 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19230
19231         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19232
19233 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19234
19235         [BZ #12510]
19236         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19237         copy from the symbol referenced in the relocation to initialize the
19238         used variable.
19239         Patch by Piotr Bury <pbury@goahead.com>.
19240         * elf/Makefile: Add rules to build and tst-unique3.
19241         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19242         * elf/tst-unique3.cc: New file.
19243         * elf/tst-unique3.h: New file.
19244         * elf/tst-unique3lib.cc: New file.
19245         * elf/tst-unique3lib2.cc: New file.
19246
19247         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19248
19249 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19250
19251         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19252         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19253         to _start.
19254
19255 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19256
19257         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19258         to-be-loaded object along a path to loader is ld.so.
19259
19260 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19261             Ulrich Drepper  <drepper@gmail.com>
19262
19263         * sysdeps/x86_64/memset.S: After aligning destination, code
19264         branches to different locations depending on the value of
19265         misalignment, when multiarch is enabled. Fix this.
19266
19267 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19268
19269         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19270         Set _x86_64_preferred_memory_instruction for AMD processsors.
19271         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19272         Set bit_Prefer_SSE_for_memop for AMD processors.
19273
19274 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19275
19276         * libio/fmemopen.c (fmemopen): Optimize a bit.
19277
19278 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19279
19280         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19281
19282 2011-03-03  Roland McGrath  <roland@redhat.com>
19283
19284         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19285
19286 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19287
19288         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19289         __bzero_ultra1 instead of __memset_ultra1.
19290
19291 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19292             Ulrich Drepper  <drepper@gmail.com>
19293
19294         [BZ #12509]
19295         * include/link.h (struct link_map): Add l_orig_initfini.
19296         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19297         returning unsuccessfully.
19298         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19299         close of a file loaded at startup, restore the original l_initfini
19300         list.
19301         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19302         list, store the pointer.
19303         * elf/Makefile ($(objpfx)noload-mem): New rule.
19304         (noload-ENV): Define.
19305         (tests): Add $(objpfx)noload-mem.
19306         * elf/noload.c: Include <memcheck.h>.
19307         (main): Call mtrace.  Close all opened handles.
19308
19309 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19310
19311         [BZ #12454]
19312         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19313         dependencies are missing.
19314
19315 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19316
19317         Fix __if_freereq crash: Unlike the generic version which uses free,
19318         Hurd needs munmap.
19319         * sysdeps/mach/hurd/ifreq.h: New file.
19320
19321 2011-01-27  Petr Baudis  <pasky@suse.cz>
19322             Ulrich Drepper  <drepper@gmail.com>
19323
19324         [BZ 12445]#
19325         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19326         to extend_alloca().
19327         * stdio-common/bug23.c: New file.
19328         * stdio-common/Makefile (tests): Add bug23.
19329
19330 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19331             Ulrich Drepper  <drepper@gmail.com>
19332
19333         [BZ #12489]
19334         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19335         before performing relro protection.  At old place add assertion
19336         to make sure nothing changed.
19337
19338 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19339             Glauber de Oliveira Costa  <glommer@gmail.com>
19340
19341         * elf/elf.h: Add new ARM TLS relocs.
19342
19343 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19344
19345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19346         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19347         cast from r3.
19348         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19349         'tests' variable.
19350         * sysdeps/wordsize-64/tst-writev.c: New file.
19351
19352 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19353
19354         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19355         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19356         insns in _dl_start to prevent a TOC reference before relocs are
19357         resolved.
19358
19359 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19360
19361         [BZ #12469]
19362         * Makeconfig: Remove RANLIB definition.
19363         * Makerules: Don't use RANLIB.
19364         * aclocal.m4: Remove ranlib test.
19365         * configure.in: No need to check for ranlib.
19366         * elf/rtld-Rules: Don't use RANLIB.
19367
19368 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19369
19370         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19371         protection macro.
19372         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19373         inclusion protection macro.
19374
19375         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19376         SIGRTMIN and SIGRTMAX and print information in that case only when
19377         SIGRTMIN is defined.
19378
19379 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19380
19381         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19382         arginfo fn returning -1.
19383
19384         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19385         and thousands string is zero terminated.
19386
19387 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19388
19389         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19390         sysdeps/unix/sysv/linux/bits/socket.h.
19391
19392 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19393
19394         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19395         (__CPU_COUNT): Remove old macros.
19396         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19397         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19398         (__CPU_ALLOC, __CPU_FREE): Add macros.
19399         (__sched_cpualloc, __sched_cpufree): Add declarations.
19400
19401 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19402
19403         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19404         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19405         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19406         (readdhstai): Return value of addhstaiX call.
19407         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19408         (addgrbyX): Return value returned by cache_addgr.
19409         (readdgrbyname): Return value returned by addgrbyX.
19410         (readdgrbygid): Likewise.
19411         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19412         (addpwbyX): Return value returned by cache_addpw.
19413         (readdpwbyname): Return value returned by addhstbyX.
19414         (readdpwbyuid): Likewise.
19415         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19416         (addservbyX): Return value returned by cache_addserv.
19417         (readdservbyname): Return value returned by addservbyX:
19418         (readdservbyport): Likewise.
19419         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19420         (addhstbyX): Return value returned by cache_addhst.
19421         (readdhstbyname): Return value returned by addhstbyX.
19422         (readdhstbyaddr): Likewise.
19423         (readdhstbynamev6): Likewise.
19424         (readdhstbyaddrv6): Likewise.
19425         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19426         (readdinitgroups): Return value returned by addinitgroupsX.
19427         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19428         (prune_cache): Keep track of timeout value of re-added entries.
19429         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19430         * nscd/nscd.h: Adjust prototypes of readd* functions.
19431
19432 2011-02-04  Roland McGrath  <roland@redhat.com>
19433
19434         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19435         (nis_stats): Likewise.
19436         * nis/nis_modify.c (nis_modify): Likewise.
19437         * nis/nis_remove.c (nis_remove): Likewise.
19438         * nis/nis_add.c (nis_add): Likewise.
19439
19440         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19441
19442         * posix/fnmatch_loop.c: Add some consts.
19443
19444         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19445
19446 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19447
19448         [BZ #12460]
19449         * config.make.in (config-cflags-novzeroupper): Define.
19450         * configure.in: Substitute libc_cv_cc_novzeroupper.
19451         * elf/Makefile (AVX-CFLAGS): Define.
19452         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19453         (CFLAGS-tst-auditmod4a.c): Likewise.
19454         (CFLAGS-tst-auditmod4b.c): Likewise.
19455         (CFLAGS-tst-auditmod6b.c): Likewise.
19456         (CFLAGS-tst-auditmod6c.c): Likewise.
19457         (CFLAGS-tst-auditmod7b.c): Likewise.
19458         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19459
19460 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19461
19462         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19463         function to the callback.
19464         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19465
19466 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19467
19468         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19469         of errno.
19470
19471 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19472
19473         [BZ #11724]
19474         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19475         of constructors.
19476         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19477         of destructors.
19478         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19479
19480         [BZ #11724]
19481         * elf/Makefile: Add rules to build and run new test.
19482         * elf/tst-initorder.c: New file.
19483         * elf/tst-initorder.exp: New file.
19484         * elf/tst-initordera1.c: New file.
19485         * elf/tst-initordera2.c: New file.
19486         * elf/tst-initordera3.c: New file.
19487         * elf/tst-initordera4.c: New file.
19488         * elf/tst-initorderb1.c: New file.
19489         * elf/tst-initorderb2.c: New file.
19490         * elf/tst-order-a1.c: New file.
19491         * elf/tst-order-a2.c: New file.
19492         * elf/tst-order-a3.c: New file.
19493         * elf/tst-order-a4.c: New file.
19494         * elf/tst-order-b1.c: New file.
19495         * elf/tst-order-b2.c: New file.
19496         * elf/tst-order-main.c: New file.
19497         New test case by George Gensure <werkt0@gmail.com>.
19498
19499 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19500
19501         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19502         decoding ACE if AI_CANONIDN.
19503
19504 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19505
19506         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19507
19508 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19509
19510         * version.h (RELEASE): Bump for 2.13 release.
19511         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19512
19513         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19514
19515         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19516         MADV_NOHUGEPAGE.
19517         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19518         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19519         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19520         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19521         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19522         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19523
19524         * posix/getconf.c: Update copyright year.
19525         * catgets/gencat.c: Likewise.
19526         * csu/version.c: Likewise.
19527         * debug/catchsegv.sh: Likewise.
19528         * debug/xtrace.sh: Likewise.
19529         * elf/ldconfig.c: Likewise.
19530         * elf/ldd.bash.in: Likewise.
19531         * elf/sprof.c (print_version): Likewise.
19532         * iconv/iconv_prog.c: Likewise.
19533         * iconv/iconvconfig.c: Likewise.
19534         * locale/programs/locale.c: Likewise.
19535         * locale/programs/localedef.c: Likewise.
19536         * malloc/memusage.sh: Likewise.
19537         * malloc/mtrace.pl: Likewise.
19538         * nscd/nscd.c (print_version): Likewise.
19539         * nss/getent.c: Likewise.
19540
19541         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19542         PF_CAIF, and PF_ALG.
19543         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19544
19545 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19546
19547         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19548         (modules-names): Use them.
19549         (ifunc-test-modules, ifunc-pie-tests): Define.
19550         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19551         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19552         (test-extras): Likewise.
19553         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19554         $(compile-command.c).
19555         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19556         (all-built-dso): Define.
19557         (check-textrel.out, check-execstack.out): Depend on it.
19558
19559         * configure.in: Don't override --enable-multi-arch.
19560
19561 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19562
19563         [BZ #6812]
19564         * nscd/hstcache.c (tryagain): Define.
19565         (cache_addhst): Return tryagain not notfound for temporary errors.
19566         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19567         failed.
19568
19569 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19570
19571         [BZ #10563]
19572         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19573         to make the syscall.
19574         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19575
19576         [BZ #12378]
19577         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19578         and fall back to matching as normal character if the string ends before
19579         the matching ']' is found.  This is what POSIX requires.
19580         * posix/testfnm.c: Adjust test result.
19581         * posix/globtest.sh: Adjust test result.  Add new test.
19582         * posix/tst-fnmatch.input: Likewise.
19583         * posix/tst-fnmatch2.c: Add new test.
19584
19585 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19586
19587         * elf/Makefile (check-execstack): Revert last change.  Depend on
19588         check-execstack.h.
19589         (check-execstack.h): New target.
19590         (generated): Add check-execstack.h.
19591         * elf/check-execstack.c: Include "check-execstack.h".
19592         (main): Revert last change.
19593         (handle_file): Return zero if GNU_STACK is absent and
19594         DEFAULT_STACK_PERMS doesn't include PF_X.
19595
19596 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19597
19598         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19599         in child fails because the descriptor is already closed.
19600         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19601         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19602         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19603
19604         [BZ #12397]
19605         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19606         syscall.
19607
19608         [BZ #10484]
19609         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19610         temporary buffer used to handle multi lookups locally.
19611         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19612
19613 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19614
19615         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19616         loader is ld.so.
19617
19618 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19619
19620         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19621         alignment for SSE2.
19622
19623 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19624
19625         [BZ #12394]
19626         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19627         characters.  When rounding increased number of integer digits recompute
19628         number of groups.
19629         * stdio-common/tst-grouping.c: New file.
19630         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19631
19632 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19633
19634         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19635         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19636
19637         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19638         void.
19639         * bits/select.h: Likewise.
19640
19641 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19642
19643         * po/ja.po: Update from translation team.
19644
19645 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19646
19647         [BZ #11155]
19648         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19649         implementation just like for lxstat, fxstatat, et al.
19650
19651 2010-12-27  Jim Meyering  <meyering@redhat.com>
19652
19653         [BZ #12348]
19654         * posix/regexec.c (build_trtable): Return failure indication upon
19655         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19656
19657 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19658
19659         [BZ #12201]
19660         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19661         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19662         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19663         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19664
19665         [BZ #12207]
19666         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19667
19668         [BZ #12204]
19669         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19670         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19671
19672 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19673
19674         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19675         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19676         script has SORT_BY_INIT_PRIORITY.
19677         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19678         NO_CTORS_DTORS_SECTIONS is defined.
19679         * elf/soinit.c: Likewise.
19680         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19681         NO_CTORS_DTORS_SECTIONS is defined.
19682         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19683         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19684         * sysdeps/sh/init-first.c: Likewise.
19685         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19686
19687 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19688
19689         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19690         always use the slow path.
19691
19692 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19693
19694         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19695         similar rule which adds the sysdep directories to the header search in
19696         order to pick up the correct platform stackinfo.h.
19697         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19698         perform test if it is, otherwise return successfully without testing.
19699         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19700         DEFAULT_STACK_PERMS define in stackinfo.h.
19701         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19702         defined in stackinfo.h.
19703         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19704         DEFAULT_STACK_PERMS defined in stackinfo.h.
19705         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19706         * sysdeps/ia64/stackinfo.h: Likewise.
19707         * sysdeps/s390/stackinfo.h: Likewise.
19708         * sysdeps/sh/stackinfo.h: Likewise.
19709         * sysdeps/sparc/stackinfo.h: Likewise.
19710         * sysdeps/x86_64/stackinfo.h: Likewise.
19711         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19712         PF_X for powerpc64.  Retain PF_X for powerpc32.
19713
19714 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19715
19716         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19717         accurately.
19718         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19719         GETDENTS_64BIT_ALIGNED.
19720
19721 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19722
19723         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19724
19725 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19726
19727         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19728         _GNU_SOURCE.
19729
19730         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19731         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19732         Remove __restrict.
19733         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19734         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19735
19736 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19737
19738         [BZ #11655]
19739         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19740         are initialized.
19741
19742 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19743
19744         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19745
19746 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19747
19748         * po/it.po: Update from translation team.
19749
19750 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19751
19752         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19753         unused codes.
19754
19755 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19756
19757         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19758
19759 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19760
19761         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19762         specially.
19763         (gaih_getanswer_slice): Likewise.
19764
19765 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19766
19767         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19768
19769 2010-05-31  Petr Baudis  <pasky@suse.cz>
19770
19771         [BZ #11149]
19772         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19773         silently even in the chroot mode.
19774
19775 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19776
19777         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19778         last patch a bit.  Pretty printing
19779
19780 2010-05-31  Petr Baudis <pasky@suse.cz>
19781
19782         [BZ #10085]
19783         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19784         initialization of skip_initgroups_dyn.
19785
19786 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19787
19788         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19789         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19790
19791 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19792
19793         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19794
19795 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19796
19797         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19798         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19799         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19800         ($(objpfx)tst-fnmatch-mem): New rule.
19801         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19802         * posix/tst-fnmatch.c (main): Call mtrace.
19803
19804 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19805
19806         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19807         Support Intel processor model 6 and model 0x2c.
19808
19809 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19810
19811         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19812           signed comparison.
19813
19814 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19815
19816         [BZ #12205]
19817         * string/test-strncasecmp.c (check_result): New function.
19818         (do_one_test): Use it.
19819         (check1): New function.
19820         (test_main): Use it.
19821         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19822         Support strcasecmp and strncasecmp.
19823
19824 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19825
19826         [BZ #12194]
19827         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19828         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19829
19830 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19831
19832         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19833         IFUNC support.
19834         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19835         memset-x86-64.
19836         * sysdeps/x86_64/multiarch/bzero.S: New file.
19837         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19838         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19839         * sysdeps/x86_64/multiarch/memset.S: New file.
19840         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19841         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19842         Set bit_Prefer_SSE_for_memop for Intel processors.
19843         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19844         Define.
19845         (index_Prefer_SSE_for_memop): Define.
19846         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19847
19848 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19849
19850         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19851         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19852
19853 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19854
19855         [BZ #12191]
19856         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19857         (__x86_64_raw_data_cache_size_half): Likewise.
19858         (__x86_64_raw_shared_cache_size): Likewise.
19859         (__x86_64_raw_shared_cache_size_half): Likewise.
19860
19861         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19862         (__x86_64_raw_data_cache_size_half): Likewise.
19863         (__x86_64_raw_shared_cache_size): Likewise.
19864         (__x86_64_raw_shared_cache_size_half): Likewise.
19865         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19866         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19867         and __x86_64_raw_shared_cache_size_half.  Round
19868         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19869         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19870         to multiple of 256 bytes.
19871
19872 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19873
19874         [BZ #12167]
19875         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19876         of inacessible symlinks.  Verify result of symlink before returning it.
19877         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19878         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19879
19880 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19881
19882         * math/math.h (isinf): Fix typo in comment.
19883
19884 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19885
19886         * po/da.po: Update from translation team.
19887
19888 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19889
19890         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19891         is added to the list.
19892
19893 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19894             Ulrich Drepper  <drepper@gmail.com>
19895
19896         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19897         the global list here.  Move code to...
19898         (_dl_add_to_namespace_list): ...here.  New function.
19899         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19900         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19901         * elf/dl-load.c (lose): Don't remove the element from the list.
19902         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19903         (_dl_map_object): Likewise.
19904
19905 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19906
19907         [BZ #12159]
19908         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19909         into all bytes of SSE register.
19910         Patch by Richard Li <richardpku@gmail.com>.
19911
19912 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19913
19914         [BZ #12140]
19915         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19916         perturbing.
19917
19918 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19919
19920         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19921         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19922         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19923         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19925         submachine.
19926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19927
19928 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19929
19930         * include/dlfcn.h (__RTLD_SECURE): Define.
19931         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19932         mode & __RTLD_SECURE instead.
19933         (open_path): Rename preloaded parameter to secure.
19934         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19935         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19936         * elf/dl-deps.c (openaux): Likewise.
19937         * elf/rtld.c (struct map_args): Remove is_preloaded.
19938         (map_doit): Don't use it.
19939         (dl_main): Likewise.
19940         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19941         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19942
19943 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19944
19945         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19946         (sysd-rules-targets): Remove duplicates.
19947         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19948         rtld-%.$o dependency.
19949
19950 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19951
19952         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19953         _dl_map_object do it.
19954
19955 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19956
19957         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19958         fast fma builtins, define the macros in the C99 standard.
19959         (FP_FAST_FMAF): Likewise.
19960         (FP_FAST_FMAL): Likewise.
19961         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19962
19963         * bits/mathdef.h: Update copyright year.
19964         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19965
19966 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19967
19968         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19969         builtins, define the macros in the C99 standard.
19970         (FP_FAST_FMAF): Likewise.
19971         (FP_FAST_FMAL): Likewise.
19972         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19973         multiply/add.
19974         (FP_FAST_FMAF): Likewise.
19975
19976 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19977
19978         [BZ #3268]
19979         * math/libm-test.inc (fma_test): Some new testcases.
19980         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19981         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19982         y and infinite z.  Do multiplication by C already in long double.
19983         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19984         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19985         y and infinite z.  Do bitwise or of inexact bit into u.d.
19986         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19987         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19988         * sysdeps/i386/fpu/s_fma.S: Removed.
19989         * sysdeps/i386/fpu/s_fmal.S: Removed.
19990
19991 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19992
19993         [BZ #3268]
19994         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19995         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19996         computation is not scheduled after fetestexcept.  Fix value
19997         of minimum denormal long double.
19998
19999 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20000
20001         [BZ #3268]
20002         * math/libm-test.inc (fma_test): Add some more tests.
20003         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20004         correctly.
20005
20006 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20007
20008         * scripts/data/localplt-s390-linux-gnu.data: New file.
20009         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20010
20011 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20012
20013         [BZ #3268]
20014         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20015         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20016         instead of dbl-64.
20017         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20018         inlines.
20019         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20020         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20021         if one of x and y is very large and the other is subnormal.
20022         * sysdeps/s390/fpu/s_fmaf.c: New file.
20023         * sysdeps/s390/fpu/s_fma.c: New file.
20024         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20025         * sysdeps/powerpc/fpu/s_fma.S: New file.
20026         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20027         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20028         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20029
20030 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20031
20032         [BZ #3268]
20033         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20034         fma tests.
20035         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20036         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20037         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20038         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20039         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20040         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20041         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20042
20043 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20044
20045         [BZ #12078]
20046         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20047         * posix/bug-regex31.input: Add test case.
20048
20049 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20050
20051         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20052         * posix/bug-regex31.input: New file.
20053
20054         [BZ #12078]
20055         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20056         (parse_sub_exp): Fix last change, use postorder.
20057
20058         * posix/bug-regex31.c: New file.
20059         * posix/Makefile: Add rules to build and run bug-regex31.
20060
20061         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20062
20063         [BZ #12078]
20064         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20065
20066         [BZ #12108]
20067         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20068         to have entries in sys_siglist.
20069
20070         [BZ #12093]
20071         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20072         be NULL.
20073
20074 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20075
20076         [BZ #3268]
20077         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20078         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20079         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20080         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20081         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20082         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20083         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20084         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20085         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20086         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20087         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20088         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20089         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20090         * math/ftestexcept.c (fetestexcept): Likewise.
20091         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20092         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20093         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20094         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20095         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20096         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20097         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20098
20099 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20100
20101         [BZ #12107]
20102         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20103         newline.
20104
20105 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20106
20107         * string/bug-strstr1.c: New file.
20108         * string/Makefile: Add rules to build and run bug-strstr1.
20109
20110 2010-10-05  Eric Blake  <eblake@redhat.com>
20111
20112         [BZ #12092]
20113         * string/str-two-way.h (two_way_long_needle): Always clear memory
20114         when skipping input due to the shift table.
20115
20116 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20117
20118         [BZ #12005]
20119         * malloc/mcheck.c: Handle large requests.
20120
20121         [BZ #12077]
20122         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20123         for strncmp and strncasecmp.
20124         * string/stratcliff.c: Add tests for strcmp and strncmp.
20125         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20126
20127 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20128
20129         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20130         __set_fpscr.
20131
20132 2010-09-30  Andreas Jaeger  <aj@suse.de>
20133
20134         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20135         (CGROUP_SUPER_MAGIC): Define.
20136         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20137         Handle btrfs and cgroup file systems.
20138         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20139         Likewise.
20140
20141 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20142
20143         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20144         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20145
20146 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20147
20148         [BZ #12067]
20149         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20150         trying to locate the ELF header.
20151
20152 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20153
20154         [BZ #11611]
20155         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20156         Mask out sign-bit copies when constructing f_fsid.
20157
20158 2010-09-24  Petr Baudis <pasky@suse.cz>
20159
20160         * debug/stack_chk_fail_local.c: Add missing licence exception.
20161         * debug/warning-nop.c: Likewise.
20162
20163 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20164
20165         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20166         implementing getdents64 using getdents syscall, set d_type if
20167         __ASSUME_GETDENTS32_D_TYPE.
20168
20169 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20170
20171         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20172         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20173
20174 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20175
20176         [BZ #12037]
20177         * posix/unistd.h: Undo change of feature selection for ftruncate from
20178         2010-01-11.
20179
20180 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20181
20182         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20183         detection.
20184
20185 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20186
20187         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20188         fanotify_mark.
20189         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20190
20191 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20192
20193         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20194         variables after CHECK_SP call.
20195         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20196
20197 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20198             Ulrich Drepper  <drepper@redhat.com>
20199
20200         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20201         re-relocationg ld.so.
20202         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20203         _dl_init_paths call.
20204         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20205         here anymore.
20206
20207 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20208
20209         * resolv/res_init.c (__res_vinit): Count the default server we added.
20210
20211 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20212             Ulrich Drepper  <drepper@redhat.com>
20213
20214         [BZ #11968]
20215         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20216         (____longjmp_chk): Use %ebx for saving value across system call.
20217         Add unwind info.
20218
20219 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20220
20221         * manual/Makefile: Don't mix pattern rules with normal rules.
20222
20223 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20224
20225         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20226         operation.
20227         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20228         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20229         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20230         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20231         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20232         Likewise.
20233
20234 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20235
20236         [BZ #11979]
20237         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20238         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20239
20240 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20241
20242         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20243         * sysdeps/x86_64/addmul_1.S: Likewise.
20244         * sysdeps/x86_64/lshift.S: Likewise.
20245         * sysdeps/x86_64/mul_1.S: Likewise.
20246         * sysdeps/x86_64/rshift.S: Likewise.
20247         * sysdeps/x86_64/sub_n.S: Likewise.
20248         * sysdeps/x86_64/submul_1.S: Likewise.
20249
20250 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20251
20252         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20253         Define __sched_param instead of SCHED_* and sched_param when
20254         <bits/sched.h> is included with __need_schedparam defined.
20255         * bits/sched.h [__need_schedparam]
20256         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20257         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20258         (__defined_schedparam): Define to 1.
20259         (__sched_param): New structure, identical to sched_param.
20260         (__need_schedparam): Undefine.
20261
20262 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20263
20264         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20265         (epoll_create1): Declare.
20266
20267         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20268
20269 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20270
20271         [BZ #7066]
20272         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20273         shifting retval into place.
20274
20275 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20276
20277         * nis/rpcsvc/nis.h: Update copyright notice.
20278         * nis/rpcsvc/nis.x: Likewise.
20279         * nis/rpcsvc/nis_callback.h: Likewise.
20280         * nis/rpcsvc/nis_callback.x: Likewise.
20281         * nis/rpcsvc/nis_object.x: Likewise.
20282         * nis/rpcsvc/nis_tags.h: Likewise.
20283         * nis/rpcsvc/yp.h: Likewise.
20284         * nis/rpcsvc/yp.x: Likewise.
20285         * nis/rpcsvc/ypupd.h: Likewise.
20286         * nis/yp_xdr.c: Likewise.
20287         * nis/ypupdate_xdr.c: Likewise.
20288
20289         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20290         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20291         (pmap_getport): Use __libc_rpc_getport.
20292         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20293         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20294         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20295
20296 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20297
20298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20299         fanotify_mark.
20300
20301 2010-08-27  Roland McGrath  <roland@redhat.com>
20302
20303         * sysdeps/i386/i686/multiarch/Makefile
20304         (CFLAGS-varshift.c): New variable.
20305
20306 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20307
20308         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20309         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20310
20311         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20312
20313         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20314
20315 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20316
20317         * sysdeps/x86_64/strlen.S: Unroll the loop.
20318         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20319         strlen-sse2 strlen-sse2-bsf.
20320         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20321         __strlen_no_bsf if bit_Slow_BSF is set.
20322         (__strlen_sse42): Removed.
20323         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20324         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20325
20326 2010-08-25  Roland McGrath  <roland@redhat.com>
20327
20328         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20329         * sysdeps/x86_64/multiarch/varshift.c: New file.
20330         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20331         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20332         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20333         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20334
20335 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20336
20337         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20338         strlen-sse2 strlen-sse2-bsf.
20339         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20340         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20341         (__strlen_sse2): Removed.
20342         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20343         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20344         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20345         bit_Slow_BSF for Atom.
20346         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20347         (index_Slow_BSF): Define.
20348         (HAS_SLOW_BSF): Define.
20349
20350 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20351
20352         [BZ #10851]
20353         * resolv/res_init.c (__res_vinit): When no server address at all
20354         is given default to loopback.
20355
20356 2010-08-24  Roland McGrath  <roland@redhat.com>
20357
20358         * configure.in: Remove config-name.h generation.
20359         * configure: Regenerated.
20360         * config-name.in: File removed.
20361         * scripts/config-uname.sh: New file.
20362         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20363         ($(objdir)config-name.h): New target.
20364
20365         * sunrpc/rpc_parse.h: Avoid nested comment.
20366
20367 2010-08-24  Richard Henderson  <rth@redhat.com>
20368             Ulrich Drepper  <drepper@redhat.com>
20369             H.J. Lu  <hongjiu.lu@intel.com>
20370
20371         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20372         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20373         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20374         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20375         _mm_alignr_epi8 with _mm_loadu_si128.
20376         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20377         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20378         (__m128i_shift_right): Removed.
20379         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20380         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20381         * sysdeps/x86_64/multiarch/varshift.h: New file.
20382         * sysdeps/x86_64/multiarch/varshift.S: New file.
20383
20384 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20385
20386         * configure.in: Move assembler checks to before sysdep dir checking.
20387
20388 2010-08-20  Petr Baudis  <pasky@suse.cz>
20389
20390         * LICENSES: Sync the sunrpc license.
20391
20392 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20393
20394         * sunrpc/auth_des.c: Update copyright notice once again.
20395         * sunrpc/auth_none.c: Likewise.
20396         * sunrpc/auth_unix.c: Likewise.
20397         * sunrpc/authdes_prot.c: Likewise.
20398         * sunrpc/authuxprot.c: Likewise.
20399         * sunrpc/bindrsvprt.c: Likewise.
20400         * sunrpc/clnt_gen.c: Likewise.
20401         * sunrpc/clnt_perr.c: Likewise.
20402         * sunrpc/clnt_raw.c: Likewise.
20403         * sunrpc/clnt_simp.c: Likewise.
20404         * sunrpc/clnt_tcp.c: Likewise.
20405         * sunrpc/clnt_udp.c: Likewise.
20406         * sunrpc/clnt_unix.c: Likewise.
20407         * sunrpc/des_crypt.c: Likewise.
20408         * sunrpc/des_soft.c: Likewise.
20409         * sunrpc/get_myaddr.c: Likewise.
20410         * sunrpc/getrpcport.c: Likewise.
20411         * sunrpc/key_call.c: Likewise.
20412         * sunrpc/key_prot.c: Likewise.
20413         * sunrpc/openchild.c: Likewise.
20414         * sunrpc/pm_getmaps.c: Likewise.
20415         * sunrpc/pm_getport.c: Likewise.
20416         * sunrpc/pmap_clnt.c: Likewise.
20417         * sunrpc/pmap_prot.c: Likewise.
20418         * sunrpc/pmap_prot2.c: Likewise.
20419         * sunrpc/pmap_rmt.c: Likewise.
20420         * sunrpc/rpc/auth.h: Likewise.
20421         * sunrpc/rpc/auth_unix.h: Likewise.
20422         * sunrpc/rpc/clnt.h: Likewise.
20423         * sunrpc/rpc/des_crypt.h: Likewise.
20424         * sunrpc/rpc/key_prot.h: Likewise.
20425         * sunrpc/rpc/netdb.h: Likewise.
20426         * sunrpc/rpc/pmap_clnt.h: Likewise.
20427         * sunrpc/rpc/pmap_prot.h: Likewise.
20428         * sunrpc/rpc/pmap_rmt.h: Likewise.
20429         * sunrpc/rpc/rpc.h: Likewise.
20430         * sunrpc/rpc/rpc_des.h: Likewise.
20431         * sunrpc/rpc/rpc_msg.h: Likewise.
20432         * sunrpc/rpc/svc.h: Likewise.
20433         * sunrpc/rpc/svc_auth.h: Likewise.
20434         * sunrpc/rpc/types.h: Likewise.
20435         * sunrpc/rpc/xdr.h: Likewise.
20436         * sunrpc/rpc_clntout.c: Likewise.
20437         * sunrpc/rpc_cmsg.c: Likewise.
20438         * sunrpc/rpc_common.c: Likewise.
20439         * sunrpc/rpc_cout.c: Likewise.
20440         * sunrpc/rpc_dtable.c: Likewise.
20441         * sunrpc/rpc_hout.c: Likewise.
20442         * sunrpc/rpc_main.c: Likewise.
20443         * sunrpc/rpc_parse.c: Likewise.
20444         * sunrpc/rpc_parse.h: Likewise.
20445         * sunrpc/rpc_prot.c: Likewise.
20446         * sunrpc/rpc_sample.c: Likewise.
20447         * sunrpc/rpc_scan.c: Likewise.
20448         * sunrpc/rpc_scan.h: Likewise.
20449         * sunrpc/rpc_svcout.c: Likewise.
20450         * sunrpc/rpc_tblout.c: Likewise.
20451         * sunrpc/rpc_util.c: Likewise.
20452         * sunrpc/rpc_util.h: Likewise.
20453         * sunrpc/rpcinfo.c: Likewise.
20454         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20455         * sunrpc/rpcsvc/key_prot.x: Likewise.
20456         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20457         * sunrpc/rpcsvc/mount.x: Likewise.
20458         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20459         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20460         * sunrpc/rpcsvc/rex.x: Likewise.
20461         * sunrpc/rpcsvc/rstat.x: Likewise.
20462         * sunrpc/rpcsvc/rusers.x: Likewise.
20463         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20464         * sunrpc/rpcsvc/spray.x: Likewise.
20465         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20466         * sunrpc/rtime.c: Likewise.
20467         * sunrpc/svc.c: Likewise.
20468         * sunrpc/svc_auth.c: Likewise.
20469         * sunrpc/svc_authux.c: Likewise.
20470         * sunrpc/svc_raw.c: Likewise.
20471         * sunrpc/svc_run.c: Likewise.
20472         * sunrpc/svc_simple.c: Likewise.
20473         * sunrpc/svc_tcp.c: Likewise.
20474         * sunrpc/svc_udp.c: Likewise.
20475         * sunrpc/svc_unix.c: Likewise.
20476         * sunrpc/svcauth_des.c: Likewise.
20477         * sunrpc/xcrypt.c: Likewise.
20478         * sunrpc/xdr.c: Likewise.
20479         * sunrpc/xdr_array.c: Likewise.
20480         * sunrpc/xdr_float.c: Likewise.
20481         * sunrpc/xdr_mem.c: Likewise.
20482         * sunrpc/xdr_rec.c: Likewise.
20483         * sunrpc/xdr_ref.c: Likewise.
20484         * sunrpc/xdr_sizeof.c: Likewise.
20485         * sunrpc/xdr_stdio.c: Likewise.
20486
20487         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20488         handling.
20489
20490 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20491
20492         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20493
20494 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20495
20496         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20497         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20498         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20499         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20500         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20501         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20502         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20503         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20504         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20505         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20506         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20507         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20508         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20509         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20510
20511 2010-07-26  Anton Blanchard  <anton@samba.org>
20512
20513         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20514         * malloc/arena.c (heap_trim): Likewise.
20515
20516 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20517
20518         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20519         here.  Not...
20520         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20521         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20522
20523 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20524
20525         * sysdeps/i386/elf/Makefile: New file.
20526
20527 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20528
20529         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20530         from fanotify_init.
20531         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20532         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20533
20534 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20535
20536         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20537         of strncasecmp_l.
20538         * sysdeps/multiarch/strcmp.S: Likewise.
20539
20540 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20541
20542         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20543         strncase_l-nonascii.
20544         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20545         Add strncase_l-ssse3.
20546         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20547         * sysdeps/x86_64/strcmp.S: Likewise.
20548         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20549         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20550         * sysdeps/x86_64/strncase.S: New file.
20551         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20552         * sysdeps/x86_64/strncase_l.S: New file.
20553         * string/Makefile (strop-tests): Add strncasecmp.
20554         * string/test-strncasecmp.c: New file.
20555
20556         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20557         warning.
20558
20559         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20560         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20561
20562 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20563
20564         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20565
20566 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20567
20568         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20569         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20570         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20571
20572 2010-05-01  Alan Modra  <amodra@gmail.com>
20573
20574         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20575         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20576         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20577         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20578         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20579         tidying.  Don't tail-call __sigjmp_save for static lib.
20580         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20581         save location.
20582         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20583         (CALL_MCOUNT): Add eh info, and nop after bl.
20584         (TAIL_CALL_SYSCALL_ERROR): New macro.
20585         (PSEUDO_RET): Use it.
20586         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20587         Correct save location of integer regs and cr.
20588         (_dl_profile_resolve): Correct cr save location.  Delete nops
20589         after bl when SHARED.  Reduce cfi size a little by better
20590         placement of cfi directives.
20591         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20592         make a stack frame.  Instead use parm save area as a temp.
20593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20594         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20596         Don't make a stack frame for parent, use parm save area.
20597         Increase child stack frame to 112 bytes.  Don't save unused reg,
20598         and adjust reg usage.  Set up cfi on error recovery and
20599         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20601         (__makecontext): Add dummy nop after jump to exit.
20602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20603         Use correct parm save area and cr save, reduce stack frame.
20604         Correct cfi for possible PSEUDO_RET frame setup.
20605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20606         Branch to local label emitted by PSEUDO_RET rather than
20607         __syscall_error.
20608
20609 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20610
20611         [BZ #11904]
20612         * locale/programs/locale.c (print_assignment): New function.
20613         (show_locale_vars): Use it.
20614
20615 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20616
20617         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20618         field.
20619         (struct statfs64): Likewise.
20620         (_STATFS_F_FLAGS): Define.
20621         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20622         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20623         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20624         (ST_VALID): Define locally.
20625         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20626         __statvfs_getflags, use the provided value.
20627         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20628         __ASSUME_STATFS_F_FLAGS.
20629
20630         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20631
20632         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20633         Add sys/fanotify.h.
20634         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20635         fanotify_mask for GLIBC_2.13.
20636         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20637         fanotify_init and fanotify_mark.
20638         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20639         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20640
20641         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20642         Add prlimit.
20643         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20644         prlimit64 for GLIBC_2.13.
20645         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20646         prlimit64.
20647         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20648         syscall.
20649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20650         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20651         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20652         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20653         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20654         add prlimit alias.
20655         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20656
20657         [BZ #11903]
20658         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20659         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20660
20661         * nss/Makefile: Add rules to build and run tst-nss-test1.
20662         * shlib-versions: Add entry for libnss_test1.
20663         * nss/nss_test1.c: New file.
20664         * nss/tst-nss-test1.c: New file.
20665
20666         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20667         (__nss_configure_lookup): Set appropriate entry in
20668         __nss_configure_lookup to true.
20669         * nss/nsswitch.h: Define enum with indeces of databases in
20670         databases and __nss_database_custom arrays.  Declare
20671         __nss_database_custom.
20672         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20673         to avoid using nscd when custom rules are installed.
20674         * nss/getXXbyYY_r.c: Likewise.
20675         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20676
20677         * nss/nss_files/files-parse.c: Whitespace fixes.
20678
20679 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20680
20681         [BZ #11883]
20682         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20683         * posix/fnmatch_loop.c: Likewise.
20684
20685 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20686
20687         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20688         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20689         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20690         * Versions.def [GLIBC_2.13]: Add.
20691
20692 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20693
20694         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20695         Also fail if tpwd after pwuid call is NULL.
20696
20697 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20698
20699         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20700         when converting to ms.
20701
20702 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20703
20704         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20705         EOPNOTSUPP errors with ENOTTY.
20706         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20707         EOPNOTSUPP errors with ENOTTY.
20708
20709 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20710
20711         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20712         Add strcasecmp_l-ssse3.
20713         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20714         strcasecmp.
20715         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20716         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20717         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20718
20719 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20720
20721         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20722
20723         * string/Makefile (strop-tests): Add strcasecmp.
20724         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20725         strcasecmp_l-nonascii.
20726         (gen-as-const-headers): Add locale-defines.sym.
20727         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20728         * sysdeps/x86_64/strcasecmp.S: New file.
20729         * sysdeps/x86_64/strcasecmp_l.S: New file.
20730         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20731         * sysdeps/x86_64/locale-defines.sym: New file.
20732         * string/test-strcasecmp.c: New file.
20733
20734         * string/test-strcasestr.c: Test both ends of the range of characters.
20735         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20736
20737 2010-07-29  Roland McGrath  <roland@redhat.com>
20738
20739         [BZ #11856]
20740         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20741
20742 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20743
20744         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20745         for ld.so.
20746
20747 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20748
20749         * manual/memory.texi (Malloc Tunable Parameters): Document
20750         M_PERTURB.
20751
20752 2010-07-26  Roland McGrath  <roland@redhat.com>
20753
20754         [BZ #11840]
20755         * configure.in (-fgnu89-inline check): Set and substitute
20756         gnu89_inline, not libc_cv_gnu89_inline.
20757         * configure: Regenerated.
20758         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20759
20760 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20761
20762         * string/test-strnlen.c: New file.
20763         * string/Makefile (strop-tests): Add strnlen.
20764         * string/tester.c (test_strnlen): Add a few more test cases.
20765         * string/tst-strlen.c: Better error reporting.
20766
20767         * sysdeps/x86_64/strnlen.S: New file.
20768
20769 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20770
20771         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20772         lower-latency instructions.
20773
20774 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20775
20776         * string/test-strcasestr.c: New file.
20777         * string/test-strstr.c: New file.
20778         * string/Makefile (strop-tests): Add strstr and strcasestr.
20779         * string/str-two-way.h: Don't undefine MAX.
20780         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20781
20782 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20783
20784         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20785         strcasestr-nonascii.
20786         (CFLAGS-strcasestr-nonascii.c): Define.
20787         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20788         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20789         Remove unused attribute.
20790
20791 2010-07-20  Roland McGrath  <roland@redhat.com>
20792
20793         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20794         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20795         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20796         like LD_HWCAP_MASK can disable hwcaps.
20797
20798 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20799
20800         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20801
20802 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20803
20804         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20805         call in strcasestr.
20806         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20807         __strcasestr_sse42_nonascii.
20808         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20809         strcasestr-nonascii.c.
20810         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20811
20812 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20813
20814         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20815         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20816         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20817         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20818
20819 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20820
20821         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20822         fcntl.
20823
20824 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20825
20826         [BZ #11577]
20827         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20828         dl_signal_cerror.
20829
20830 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20831
20832         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20833         _PC_PIPE_BUF using F_GETPIPE_SZ.
20834
20835 2010-07-05  Roland McGrath  <roland@redhat.com>
20836
20837         * manual/arith.texi (Rounding Functions): Fix rint description
20838         implicit in round description.
20839
20840 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20841
20842         * elf/Makefile: Fix linking for a few tests to make recent linker
20843         happy.
20844
20845 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20846
20847         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20848         $(common-objpfx)libc_nonshared.a.
20849
20850 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20851
20852         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20853         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20854         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20855         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20856         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20857         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20858         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20859         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20874         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20875         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20876         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20877         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20878         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20879         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20880         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20881         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20882         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20883         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20884         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20885         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20900
20901 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20902
20903         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20904         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20905         * string/memmove.c (memmove): Renamed to ...
20906         (MEMMOVE): ...this.  Default to memmove.
20907         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20908         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20909         (END_CHK): Define.
20910         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20911         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20912         mempcpy-ssse3-back memmove-ssse3-back.
20913         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20914         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20915         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20916         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20917         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20918         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20919         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20920         * sysdeps/x86_64/multiarch/memmove.c: New file.
20921         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20922         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20923         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20924         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20925         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20926         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20927         Define.
20928         (index_Fast_Copy_Backward): Define.
20929         (HAS_ARCH_FEATURE): Define.
20930         (HAS_FAST_REP_STRING): Define.
20931         (HAS_FAST_COPY_BACKWARD): Define.
20932
20933 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20934
20935         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20936         Restore proper fallback handling.
20937
20938 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20939
20940         [BZ #11701]
20941         * posix/group_member.c (__group_member): Correct checking loop.
20942
20943         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20944         OOM in getpwuid_r correctly.  Return error number when the caller
20945         should return, otherwise -1.
20946         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20947         call returning > 0 value.
20948         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20949
20950 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20951
20952         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20953         libc_nonshared.a from targets in modules-names.
20954
20955 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20956
20957         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20958         requires it.
20959
20960 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20961
20962         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20963         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20964         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20965         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20966
20967 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20968
20969         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20970
20971 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20972
20973         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20974         and F_GETPIPE_SZ.
20975         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20976         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20977         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20978         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20979         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20980         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20981
20982 2010-06-14  Roland McGrath  <roland@redhat.com>
20983
20984         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20985
20986 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20987
20988         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20989         __REDIRECT followed by __THROW.
20990         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20991         * posix/getopt.h (getopt): Likewise.
20992
20993 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20994
20995         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20996         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20997         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20998         in AT_FLAGS.
20999         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21000         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21001
21002 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21003
21004         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21005
21006 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21007
21008         [BZ #11640]
21009         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21010         Properly check family and model.
21011
21012 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21013
21014         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21015
21016 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21017
21018         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21019
21020 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21021
21022         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21023         symbol reference.
21024
21025 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21026
21027         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21028         symbol reference.
21029
21030 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21031
21032         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21033         and internal_recvmmsg.
21034         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21035         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21036         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21037         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21038
21039         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21040         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21041         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21042
21043 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21044
21045         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21046
21047 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21048
21049         POWER7 optimizations.
21050         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21051         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21052
21053 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21054
21055         * version.h: Update for 2.13 development version.
21056
21057 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21058
21059         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21060         exceptions.  Return 0.
21061
21062 2010-05-07  Roland McGrath  <roland@redhat.com>
21063
21064         * elf/ldconfig.c (main): Add a const.
21065
21066 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21067
21068         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21069         (args_options): Add no-idn option.
21070         (ahosts_keys_int): Add idn_flags to ai_flags.
21071         (parse_option): Handle 'i' option to clear idn_flags.
21072
21073         * malloc/malloc.c (_int_free): Possible race in the most recently
21074         added check.  Only act on the data if no current modification
21075         happened.
21076
21077 See ChangeLog.17 for earlier changes.