Update powerpc libm ULPs
[glibc.git] / ChangeLog
blob758b91bd65c3dd5718e1a419362e770db84b4b15
1 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
3         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
7         [BZ #14610]
8         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
9         for low part of x being zero before using __atanl (y).
10         * math/libm-test.inc (atan2_test): Add another test.
12         * manual/install.texi (Configuring and compiling): Document
13         general use of test-wrapper and test-wrapper-env.
14         * INSTALL: Regenerated.
16         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
17         (__fma): Do not extract and scale down low bits on after-rounding
18         systems when result rounded to normal precision would have normal
19         exponent.
20         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
21         (__fmal): Do not extract and scale down low bits on after-rounding
22         systems when result rounded to normal precision would have normal
23         exponent.
24         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
25         (__fmal): Do not extract and scale down low bits on after-rounding
26         systems when result rounded to normal precision would have normal
27         exponent.
28         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
29         macro.
30         (fma_test): Add more tests.
31         (fma_test_towardzero): Likewise.
32         (fma_test_downward): Likewise.
33         (fma_test_upward): Likewise.
35 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
37         * sysdeps/i386/tininess.h: Renamed to ...
38         * sysdeps/x86/tininess.h: This.
39         * sysdeps/x86_64/tininess.h: Removed.
41 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
43         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
44         input.  Use $(build-program-cmd).
45         ($(objpfx)tst-array1-static.out): Likewise.
46         ($(objpfx)tst-array2.out): Likewise.
47         ($(objpfx)tst-array3.out): Likewise.
48         ($(objpfx)tst-array4.out): Likewise.
49         ($(objpfx)tst-array5.out): Likewise.
50         ($(objpfx)tst-array5-static.out): Likewise.
52 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
54         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
55         if defined.
57         * nss/nsswitch.h (nss_interface_function): Provide new
58         macro for use with NSS functions.
59         * grp/initgroups.c: Use new macro.
60         * nss/getXXbyYY.c: Likewise.
61         * nss/getXXbyYY_r.c: Likewise.
62         * nss/getXXent.c: Likewise.
63         * nss/getXXent_r.c: Likewise.
64         * sysdeps/posix/getaddrinfo.c: Likewise.
66 2012-10-30  Andreas Jaeger  <aj@suse.de>
68         * po/ru.po: Update Russion translation from translation project.
70 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
72         [BZ #14152]
73         [BZ #14783]
74         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
75         result and shift together with sticky bit instead of replicating
76         round-to-nearest rounding.
77         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
78         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
79         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
80         missing underflow exceptions.
81         (fma_test_towardzero): Add more tests.
82         (fma_test_downward): Likewise.
83         (fma_test_upward): Likewise.
85         [BZ #14047]
86         * sysdeps/generic/tininess.h: New file.
87         * sysdeps/i386/tininess.h: Likewise.
88         * sysdeps/sh/tininess.h: Likewise.
89         * sysdeps/x86_64/tininess.h: Likewise.
90         * stdlib/tst-strtod-underflow.c: Likewise.
91         * stdlib/tst-tininess.c: Likewise.
92         * stdlib/strtod_l.c: Include <tininess.h>.
93         (round_and_return): Do not set errno for exact underflow cases.
94         Force an underflow exception when setting errno for underflow.
95         Determine underflow based on rounding to normal precision if
96         TININESS_AFTER_ROUNDING.
97         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
98         ERANGE for exact underflow cases.
99         * stdlib/Makefile (tests): Add tst-tininess and
100         tst-strtod-underflow.
101         ($(objpfx)tst-tininess): Use $(link-libm).
102         ($(objpfx)tst-strtod-underflow): Likewise.
104 2012-10-30  Andreas Jaeger  <aj@suse.de>
106         [BZ#14767]
107         * elf/Makefile (tests): Remove conditional for have-initfini-array
108         since this is now always required and the variable does not exist
109         anymore.
110         (tests-static): Likewise.
111         (modules-names): Likewise.
113         * po/eo.po: Add Esperanto translation from translation project.
115         * elf/tst-array1.c (fini_array): Make writeable so that it can be
116         merged with constructor/destructor.
117         (init_array): Likewise.
118         * elf/tst-array2dep.c (fini_array): Likewise.
119         (init_array): Likewise.
121 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
123         * manual/message.texi: Delete @cartouche tags.
125 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
127         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
128         EOPNOTSUPP.
129         * sysdeps/mach/hurd/fsync.c: Likewise.
131         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
132         [_POSIX_REALTIME_SIGNALS]: Change condition to
133         [_POSIX_REALTIME_SIGNALS > 0].
135 2012-10-27  Andreas Jaeger  <aj@suse.de>
137         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
138         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
139         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
140         [__WORDSIZE != 64]: Likewise.
142 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
144         *  iconvdata/tst-table.sh: Remove ${SHELL}.
145         *  iconvdata/tst-tables.sh: Likewise.
147 2012-10-25  David S. Miller  <davem@davemloft.net>
149         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
150         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
151         of strtoull.
153         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
154         ifunc-impl-list.c
155         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
156         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
157         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
158         file.
160 2012-10-25  Roland McGrath  <roland@hack.frob.com>
162         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
163         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
164         __getdirentries.
166 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
167             Jim Blandy  <jimb@codesourcery.com>
169         * scripts/cross-test-ssh.sh: New file.
170         * manual/install.texi (Configuring and compiling): Document use of
171         cross-test-ssh.sh.
172         * INSTALL: Regenerated.
174 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
176         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
177         EOPNOTSUPP.
179 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
181         * Makeconfig (run-program-prefix): Fix comment.
183 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
184             Jim Blandy  <jimb@codesourcery.com>
186         * Makeconfig (test-wrapper): New variable,
187         (test-wrapper-env): Likewise.
188         [$(cross-compiling) = yes && $(test-wrapper) != ""]
189         (run-built-tests): Define to yes.
190         (run-program-prefix): Use $(test-wrapper).
191         (built-program-cmd): Likewise.
192         * Rules (make-test-out): Use $(test-wrapper-env) and
193         $(host-built-program-cmd).
194         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
195         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
196         tst-pathopt.sh.
197         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
198         $(test-wrapper-env) to tst-rtld-load-self.sh.
199         ($(objpfx)order2.out): Use $(test-wrapper).
200         ($(objpfx)tst-initorder.out): Likewise.
201         ($(objpfx)tst-initorder2.out): Likewise.
202         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
203         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
204         (test_wrapper_env): New variable.  Use it to run ld.so.
205         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
206         Use it to run ld.so.
207         (test_wrapper_env): Likewise.
208         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
209         $(test-wrapper) to run-iconv-test.sh.
210         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
211         (ICONV): Use $test_wrapper.
212         * posix/Makefile ($(objpfx)globtest.out): Pass
213         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
214         globtest.sh, not $(run-program-prefix).
215         * posix/globtest.sh (run_via_rtld_prefix): New variable.
216         (test_wrapper): Likewise.
217         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
218         set together with run_via_rtld_prefix.
219         (run_program_prefix): Define in terms of test_wrapper and
220         run_via_rtld_prefix.
222 2012-10-24  Roland McGrath  <roland@hack.frob.com>
224         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
225         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
226         Targets removed.
228         [BZ #14743]
229         * include/time.h: Remove librt_hidden_proto (clock_gettime).
230         Declare __clock_getres, __clock_gettime, __clock_settime,
231         __clock_nanosleep, and __clock_getcpuclockid.
232         * rt/clock_gettime.c: Define __clock_gettime as an alias.
233         Remove librt_hidden_def (clock_gettime).
234         * sysdeps/unix/clock_gettime.c: Likewise.
235         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
236         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
237         * rt/clock_getres.c: Define __clock_getres as an alias.
238         * sysdeps/posix/clock_getres.c: Likewise.
239         * rt/clock_settime.c: Define __clock_settime as an alias.
240         * sysdeps/unix/clock_settime.c: Likewise.
241         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
242         * sysdeps/unix/clock_nanosleep.c: Likewise.
243         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
244         * rt/clock-compat.c: New file.
245         * rt/Makefile (librt-routines): Add clock-compat and move
246         $(clock-routines) to ...
247         (routines): ... here, new variable.
248         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
249         Don't add get_clockfreq here.
250         * rt/Versions (libc: GLIBC_2.17): New version set.
251         Add clock_* symbols here.
252         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
253         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
254         (GLIBC_2.17): Add clock_* symbols.
255         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
256         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
257         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
259         Likewise.
260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
261         Likewise.
262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
263         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
264         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
265         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
266         * NEWS: Mention the move.
268         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
269         Use __open, __read, __close rather than their public counterparts.
270         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
271         (__get_clockfreq_via_cpuinfo): Likewise.
272         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
273         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
275         * config.h.in (HAVE_IFUNC): New #undef.
276         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
277         was successful.
278         * configure: Regenerated.
280 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
282         * configure.in: Move READELF check to start of file.
283         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
284         libc_cv_asm_gnu_indirect_function in the process.
285         * configure: Regenerated.
287 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
289         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
290         send the output to /dev/null.
291         (libc_cv_cc_with_libunwind): Likewise.
292         (libc_cv_as_noexecstack): Likewise.
293         * configure: Regenerate.
295 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
297         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
299         * posix/globtest.sh (TMPDIR): Do not set.
300         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
301         (testout): Likewise.
303 2012-10-24  Andreas Jaeger  <aj@suse.de>
305         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
306         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
307         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
308         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
309         posix_fadvise64, posix_fallocate64.
311         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
312         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
313         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
314         Likewise.
315         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
316         Likewise.
317         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
319         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
320         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
321         <bits/fcntl-linux.h>.
322         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
324         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
325         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
326         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
327         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
328         [__WORDSIZE != 64]: Likewise.
330 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
332         * Makeconfig (run-built-tests): New variable.
333         * Rules [$(cross-compiling) = yes]: Change condition to
334         [$(run-built-tests) = no].
335         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
336         to [$(run-built-tests) = yes].
337         * elf/Makefile [$(cross-compiling) = no]: Likewise
338         * grp/Makefile [$(cross-compiling) = no]: Likewise.
339         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
340         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
341         * intl/Makefile [$(cross-compiling) = no]: Likewise.
342         * io/Makefile [$(cross-compiling) = no]: Likewise.
343         * libio/Makefile [$(cross-compiling) = no]: Likewise.
344         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
345         * misc/Makefile [$(cross-compiling) = no]: Likewise.
346         * posix/Makefile [$(cross-compiling) = no]: Likewise.
347         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
348         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
349         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
350         * string/Makefile [$(cross-compiling) = no]: Likewise.
352         * posix/Makefile ($(objpfx)globtest.out): Pass
353         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
354         $(rtld-installed-name).
355         * posix/globtest.sh (elf_objpfx): Remove variable.
356         (rtld_installed_name): Likewise.
357         (library_path): Likewise.
358         (run_program_prefix): New variable.  Use for running globtest
359         binary.
361 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
362             Joseph Myers  <joseph@codesourcery.com>
364         * Makeconfig (host-built-program-cmd): New variable.
365         * elf/Makefile (tst-stackguard1-ARGS): Use
366         $(host-built-program-cmd).
367         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
368         (tst-spawn-ARGS): Likewise.
369         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
371 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
372             Jim Blandy  <jimb@codesourcery.com>
374         * Makeconfig (run-via-rtld-prefix): New variable.
375         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
376         (built-program-cmd): Likewise.
378 2012-10-22  Andreas Jaeger  <aj@suse.de>
380         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
381         __O_RSYNC if it exists, otherwise to O_SYNC.
383 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
384             Joseph Myers  <joseph@codesourcery.com>
386         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
387         /dev/null.
388         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
389         from /dev/null
390         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
391         /dev/null.
393 2012-10-22  Andreas Jaeger  <aj@suse.de>
395         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
396         Define always.
397         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
399         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
400         bits/fcntl-linux.h.
402         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
403         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
405         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
406         to __O_LARGEFILE.
407         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
408         to __O_LARGEFILE.
410 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
411             Joseph Myers  <joseph@codesourcery.com>
413         * config.make.in (NM): New variable.
415 2012-10-21  Andreas Jaeger  <aj@suse.de>
417         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
418         definitions and declarations that are provided by
419         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
421 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
423         [BZ #14683]
424         * elf/Makefile (tests-static): Add tst-leaks1-static.
425         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
426         ($(objpfx)tst-leaks1-static): New rule.
427         ($(objpfx)tst-leaks1-static-mem): Likewise.
428         (tst-leaks1-static-ENV): New macro.
429         * elf/dl-open.c (dl_open_worker): Check the main application
430         only if SHARED is defined.
431         * elf/tst-leaks1-static.c: New file.
433 2012-10-20  Andreas Jaeger  <aj@suse.de>
435         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
436         generic values for Linux.
437         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
438         and declarations that are provided by <bits/fcntl-linux.h> and
439         include <bits/fcntl-linux.h>.
440         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
441         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
443 2012-10-20  Roland McGrath  <roland@hack.frob.com>
445         * io/fcntl.h: Move include of <bits/types.h> to the top and
446         include it unconditionally.
448 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
450         * wcsmbs/Makefile (tests-ifunc): New variable.
451         (tests): Add $(tests-ifunc).
452         * wcsmbs/test-wcschr-ifunc.c: New file.
453         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
454         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
455         * wcsmbs/test-wcslen-ifunc.c: Likewise.
456         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
457         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
459         * string/Makefile (tests-ifunc): New variable.
460         (tests): Add $(tests-ifunc).
461         * string/test-memccpy.c (TEST_NAME): New macro.
462         * string/test-memchr.c (TEST_NAME): Likewise.
463         * string/test-memcmp.c (TEST_NAME): Likewise.
464         * string/test-memcpy.c (TEST_NAME): Likewise.
465         * string/test-memmem.c (TEST_NAME): Likewise.
466         * string/test-memmove.c (TEST_NAME): Likewise.
467         * string/test-memset.c (TEST_NAME): Likewise.
468         * string/test-rawmemchr.c (TEST_NAME): Likewise.
469         * string/test-stpcpy.c (TEST_NAME): Likewise.
470         * string/test-stpncpy.c (TEST_NAME): Likewise.
471         * string/test-strcasecmp.c (TEST_NAME): Likewise.
472         * string/test-strcasestr.c (TEST_NAME): Likewise.
473         * string/test-strcat.c (TEST_NAME): Likewise.
474         * string/test-strchr.c (TEST_NAME): Likewise.
475         * string/test-strcmp.c(TEST_NAME): Likewise.
476         * string/test-strcpy.c (TEST_NAME): Likewise.
477         * string/test-strcspn.c (TEST_NAME): Likewise.
478         * string/test-strlen.c (TEST_NAME): Likewise.
479         * string/test-strncasecmp.c (TEST_NAME): Likewise.
480         * string/test-strncmp.c (TEST_NAME): Likewise.
481         * string/test-strncpy.c (TEST_NAME): Likewise.
482         * string/test-strnlen.c (TEST_NAME): Likewise.
483         * string/test-strpbrk.c (TEST_NAME): Likewise.
484         * string/test-strrchr.c (TEST_NAME): Likewise.
485         * string/test-strspn.c (TEST_NAME): Likewise.
486         * string/test-strstr.c (TEST_NAME): Likewise.
487         * string/test-bcopy-ifunc.c: New file.
488         * string/test-bzero-ifunc.c: Likewise.
489         * string/test-memccpy-ifunc.c: Likewise.
490         * string/test-memchr-ifunc.c: Likewise.
491         * string/test-memcmp-ifunc.c: Likewise.
492         * string/test-memcpy-ifunc.c: Likewise.
493         * string/test-memmem-ifunc.c: Likewise.
494         * string/test-memmove-ifunc.c: Likewise.
495         * string/test-mempcpy-ifunc.c: Likewise.
496         * string/test-memset-ifunc.c: Likewise.
497         * string/test-rawmemchr-ifunc.c: Likewise.
498         * string/test-stpcpy-ifunc.c: Likewise.
499         * string/test-stpncpy-ifunc.c: Likewise.
500         * string/test-strcasecmp-ifunc.c: Likewise.
501         * string/test-strcasestr-ifunc.c: Likewise.
502         * string/test-strcat-ifunc.c: Likewise.
503         * string/test-strchr-ifunc.c: Likewise.
504         * string/test-strchrnul-ifunc.c: Likewise.
505         * string/test-strcmp-ifunc.c: Likewise.
506         * string/test-strcpy-ifunc.c: Likewise.
507         * string/test-strcspn-ifunc.c: Likewise.
508         * string/test-strlen-ifunc.c: Likewise.
509         * string/test-strncasecmp-ifunc.c: Likewise.
510         * string/test-strncat-ifunc.c: Likewise.
511         * string/test-strncmp-ifunc.c: Likewise.
512         * string/test-strncpy-ifunc.c: Likewise.
513         * string/test-strnlen-ifunc.c: Likewise.
514         * string/test-strpbrk-ifunc.c: Likewise.
515         * string/test-strrchr-ifunc.c: Likewise.
516         * string/test-strspn-ifunc.c: Likewise.
517         * string/test-strstr-ifunc.c: Likewise.
519         * debug/Makefile (tests-ifunc): New variable.
520         (tests): Add $(tests-ifunc).
521         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
522         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
523         * debug/test-stpcpy_chk-ifunc.c: New file.
524         * debug/test-strcpy_chk-ifunc.c: Likewise.
526 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
528         [BZ #13601]
529         * elf/dl-load.c (open_verify): Retry read if the entire ELF
530         header is not read in.
532 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
534         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
535         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
536         directly.  Pass built executable to script as
537         $(built-program-cmd).
538         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
539         $testprogram without using LD_LIBRARY_PATH and $ldso.
541         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
542         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
543         $(rtld-installed-name).
544         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
545         (rtld_installed_name): Likewise.
546         (library_path): Likewise.
547         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
548         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
549         $(run-program-prefix) to tst-tables.sh.
550         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
551         it to run tst-table-from and tst-table-to.
552         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
553         Pass it to tst-table.sh.
554         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
555         $(run-program-prefix) to tst-gettext.sh.
556         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
557         tst-translit.sh.
558         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
559         tst-gettext2.sh.
560         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
561         to run tst-gettext.
562         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
563         to run tst-gettext2.
564         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
565         to run tst-translit.
566         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
567         $(run-program-prefix) to tst-mtrace.sh.
568         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
569         to run tst-mtrace.
570         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
571         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
572         $(rtld-installed-name).
573         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
574         (rtld_installed_name): Likewise.
575         (run_program_prefix): New variable.  Use it to run wordexp-test.
577         * Makeconfig (ARCH): Remove all definitions.
578         (machine): Likewise.
579         [ARCH]: Remove conditional code.
580         [!objdir]: Give error.
581         [!objdir] (objpfx): Remove.
582         [!objdir] (common-objpfx): Likewise.
583         [!objdir] (common-objdir): Likewise.
584         * configure.in (config_makefile): Remove.  Hardcode Makefile in
585         AC_CONFIG_FILES call.
586         * configure: Regenerated.
588         [BZ #13888]
589         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
590         or TMPDIR.
591         (testout): Likewise.
593         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
594         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
595         $(rtld-installed-name).
596         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
597         (rtld_installed_name): Likwise.
598         (runit): Remove function.
599         (run_getconf): New variable,  Use it for running getconf binary.
601 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
603         [BZ #14716]
604         * string/test-memmem.c (check_result): New function.
605         (do_one_test): Use it.
606         (check1): New function.
607         (test_main): Use it.
609 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
611         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
613 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
615         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
616         (_G_LSEEK64): Likewise.
617         (_G_MMAP64): Likewise.
618         (_G_FSTAT64): Likewise.
619         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
620         (_G_LSEEK64): Likewise.
621         (_G_MMAP64): Likewise.
622         (_G_FSTAT64): Likewise.
623         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
624         unconditional.  Call __mmap64 directly.
625         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
626         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
627         __lseek64 directly.
628         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
629         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
630         __mmap64 directly.
631         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
632         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
633         __lseek64 directly.
634         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
635         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
636         __lseek64 directly.
637         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
638         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
639         __lseek64 directly.
640         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
641         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
642         __fxstat64 directly.
643         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
644         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
645         unconditional.
646         (freopen64) [!_G_OPEN64]: Remove conditional code.
647         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
648         unconditional.
649         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
650         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
651         unconditional.
652         (ftello64) [!_G_LSEEK64]: Remove conditional code.
653         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
654         unconditional.
655         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
656         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
657         unconditional.
658         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
659         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
660         unconditional.
661         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
662         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
663         unconditional.
664         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
665         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
666         unconditional.
667         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
669 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
671         [BZ #12140]
672         * manual/memory.texi (Malloc Tunable Parameters): Add note
673         about free list pointers overwriting some perturb bytes.
674         Wording suggested by Roland McGrath.
676 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
678         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
679         (lgamma_test): Likewise.
680         (tgamma_test): Likewise.
682 2012-10-16  Florian Weimer  <fweimer@redhat.com>
684         [BZ #14700]
685         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
686         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
688 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
690         * NEWS: Mention BZ #14716.
691         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
692         when removing AVAILABLE1_USES_J macro.
694 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
696         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
697         (__bswap_64): __uint64_t for unsigned 64-bit int.
699 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
701         * include/string.h (memmem): Declare libc hidden alias.
702         * string/memmem.c (memmem): Define libc hidden alias.
703         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
704         __read, __close instead of open, read, close.
706 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
708         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
709         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
710         global and hidden.
711         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
712         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
713         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
714         Likewise.
715         (__rawmemchr_sse2): Likewise.
716         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
717         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
718         (__strchr_sse2): Likewise.
719         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
720         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
721         (__strcasecmp_sse2): Likewise.
722         (__strncasecmp_sse2): Likewise.
723         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
724         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
725         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
726         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
727         (__strrchr_sse2): Likewise.
728         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
729         ifunc-impl-list.c.
730         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
731         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
732         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
733         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
734         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
735         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
736         * sysdeps/x86_64/multiarch/memset.S: Likewise.
737         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
738         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
739         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
740         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
741         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
742         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
743         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
744         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
745         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
746         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
747         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
748         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
749         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
750         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
751         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
752         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
753         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
754         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
755         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
756         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
757         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
758         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
759         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
761         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
762         global and hidden.
763         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
764         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
765         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
766         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
767         Likewise.
768         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
769         Likewise.
770         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
771         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
772         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
773         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
774         ifunc-impl-list.c.
775         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
776         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
777         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
778         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
779         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
780         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
781         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
782         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
783         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
784         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
785         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
786         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
787         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
788         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
789         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
790         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
791         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
792         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
793         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
794         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
795         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
796         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
797         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
798         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
799         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
800         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
801         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
802         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
803         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
804         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
805         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
806         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
807         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
808         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
809         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
810         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
811         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
812         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
813         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
814         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
815         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
817         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
818         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
819         * include/ifunc-impl-list.h: New file.
820         * misc/ifunc-impl-list.c: Likewise.
821         * misc/Makefile (routines): Add ifunc-impl-list.
822         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
823         * string/test-string.h: Include <ifunc-impl-list.h>.
824         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
825         impl_array): New variables.
826         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
827         are defined.
828         (test_init): Call __libc_ifunc_impl_list to initialize
829         func_list if TEST_IFUNC and TEST_NAME are defined.
831         * string/Makefile (strop-tests): Add bcopy and bzero.
832         * string/test-bcopy.c: New file.
833         * string/test-bzero.c: Likewise.
834         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
835         defined.
836         * string/test-memset.c: Support bzero test if TEST_BZERO is
837         defined.
838         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
839         __libc_memmove.
840         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
841         __libc_memset.
842         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
843         of memset.
845 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
847         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
848         * configure: Regenerated.
850         * Makeconfig (+link-static-before-libc): Don't include
851         $(link-static-libc).
853         * libio/libio.h (_IO_pos_t): Remove.
855 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
857         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
858         McGrath.
860 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
862         * crypt/crypt-entry.c: Include fips-private.h.
863         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
864         * crypt/md5c-test.c (main): Tolerate disabled MD5.
865         * sysdeps/unix/sysv/linux/fips-private.h: New file.
866         * sysdeps/generic/fips-private.h: New file, dummy fallback.
868 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
870         * crypt/crypt-private.h: Include stdbool.h.
871         (_ufc_setup_salt_r): Return bool.
872         * crypt/crypt-entry.c: Include errno.h.
873         (__crypt_r): Return NULL with EINVAL for bad salt.
874         * crypt/crypt_util.c (bad_for_salt): New.
875         (_ufc_setup_salt_r): Check that salt is long enough and within
876         the specified alphabet.
877         * crypt/badsalttest.c: New file.
878         * crypt/Makefile (tests): Add it.
879         ($(objpfx)badsalttest): New.
881 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
883         * NEWS: Add entry for BZ #14602.
885 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
887         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
888         type-generic.
889         * math/libm-test.inc: Update comment listing what functions and
890         macros are tested.
891         (isgreater_test): New function.
892         (isgreaterequal_test): Likewise.
893         (isless_test): Likewise.
894         (islessequal_test): Likewise.
895         (islessgreater_test): Likewise.
896         (isunordered_test): Likewise.
897         (main): Call the new functions.
899 2012-10-09  Roland McGrath  <roland@hack.frob.com>
901         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
902         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
903         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
904         * sysdeps/i386/configure: Regenerated.
905         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
906         * sysdeps/mach/configure: Regenerated.
907         * sysdeps/mach/hurd/configure: Regenerated.
908         * sysdeps/powerpc/configure: Regenerated.
909         * sysdeps/powerpc/powerpc32/configure: Regenerated.
910         * sysdeps/powerpc/powerpc64/configure: Regenerated.
911         * sysdeps/s390/s390-32/configure: Regenerated.
912         * sysdeps/s390/s390-64/configure: Regenerated.
913         * sysdeps/sh/configure: Regenerated.
914         * sysdeps/sparc/configure: Regenerated.
915         * sysdeps/unix/sysv/linux/configure: Regenerated.
916         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
917         * sysdeps/x86_64/configure: Regenerated.
919         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
920         defined.  Don't check if MAP is NULL.
922 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
924         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
925         (_G_stat64): Likewise.
926         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
927         (_G_stat64): Likewise.
928         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
929         instead of struct _G_stat64.
930         * libio/fileops.c (mmap_remap_check): Likewise.
931         (decide_maybe_mmap): Likewise.
932         (_IO_new_file_seekoff): Likewise.
933         (_IO_file_stat): Likewise.
934         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
935         _G_off64_t.
936         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
937         instead of struct _G_stat64.
938         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
940 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
942         [BZ #14602]
943         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
944         Replace with ...
945         (CHECK_EOL): New macro.
946         (two_way_short_needle): Check beginning of haystack for EOL.  Use
947         CHECK_EOL.
948         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
949         Replace with CHECK_EOL.
950         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
951         Replace with CHECK_EOL.
953 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
955         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
956         type-generic.
957         * math/libm-test.inc: Update comment listing what functions and
958         macros are tested.
959         (finite_test): New function.
960         (isinf_test): Likewise.
961         (isnan_test): Likewise.
962         (fpclassify_test): Test subnormal input.
963         (isfinite_test): Likewise.
964         (isnormal_test): Likewise.
965         (main): Call the new functions.
967 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
969         [BZ #14660]
970         * Makerules (%.dynsym): Force C locale when running
971         $(OBJDUMP) --dynamic-syms.
973 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
975         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
976         <stdint.h>.
978 2012-10-06  David S. Miller  <davem@davemloft.net>
980         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
981         upper 32-bits of the length value in %o2 since we use branch-on-register
982         tests which consider the entire 64-bit register.
984 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
986         * string/test-strstr.c (check2): Add a test for page boundary.
988 2012-10-05  David S. Miller  <davem@davemloft.net>
990         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
991         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
992         file.
993         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
994         sysdep_routines.
995         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
996         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
997         and bzero when HWCAP_SPARC_CRYPTO is present.
999 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1001         [BZ #14602]
1002         * string/test-strstr.c (check2): New function.
1003         (test_main): Call check2.
1005         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1006         and bug-strchr1.
1007         * string/bug-strcasestr1.c (do_test): Moved to ...
1008         * string/test-strcasestr.c (check1): Here.  New function.
1009         (do_one_test): Break out result checking code into ...
1010         (check_result): This.  New function.
1011         (do_one_test): Call check_result.
1012         (test_main): Call check1.
1013         * string/bug-strchr1.c (do_test): Moved to ...
1014         * string/test-strchr.c (check1): Here.  New function.
1015         (do_one_test): Break out result checking code into ...
1016         (check_result): This.  New function.
1017         (do_one_test): Call check_result.
1018         (test_main): Call check1.
1019         * string/bug-strstr1.c (main): Moved to ...
1020         * string/test-strchr.c (check1): Here.  New function.
1021         (do_one_test): Break out result checking code into ...
1022         (check_result): This.  New function.
1023         (do_one_test): Call check_result.
1024         (test_main): Call check1.
1025         * string/bug-strcasestr1.c: Removed.
1026         * string/bug-strchr1.c: Likewise.
1027         * string/bug-strstr1.c: Likewise.
1029         * elf/Makefile (dl-routines): Add hwcaps.
1030         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1031         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1032         (_dl_important_hwcaps): Moved to ...
1033         * elf/dl-hwcaps.c: Here.  New file.
1034         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1036         [BZ #14557]
1037         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1038         if IS_IN_rtld isn't defined.
1040         * elf/dl-support.c (_dl_sysinfo_map): New.
1041         Include "get-dynamic-info.h" and "setup-vdso.h".
1042         (_dl_non_dynamic_init): Call setup_vdso.
1043         * elf/dynamic-link.h: Don't include <assert.h>.
1044         (elf_get_dynamic_info): Moved to ...
1045         * elf/get-dynamic-info.h: Here.  New file.
1046         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1047         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1048         * elf/setup-vdso.h: Here.  New file.
1049         * elf/rtld.c: Include "setup-vdso.h".
1050         (dl_main): Call setup_vdso.
1052 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1054         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1055         creal in comment listing functions tested.  List finite, isinf,
1056         isnan, isless, islessequal, isgreater, isgreaterequal,
1057         islessgreater, isunordered, lgamma_r and pow10 as functions and
1058         macros not tested.  Mention which functions not tested are aliases
1059         for other functions.  Fix typo.  Note that signs of NaNs are not
1060         tested.
1062         * scripts/config.guess: Update from config.git.
1063         * scripts/config.sub: Likewise.
1065 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1067         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1068         * misc/madvise.c (madvise): Renamed to __madvise.
1069         Make madvise a weak alias.
1070         * include/sys/mman.h: Declare __madvise.
1071         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1072         * sysdeps/unix/syscalls.list
1073         (madvise): Make __madvise the strong name, and madvise a weak alias.
1074         * sysdeps/unix/sysv/linux/syscalls.list
1075         (madvise, mmap): Remove redundant entries.
1076         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1077         * malloc/malloc.c (mtrim): Likewise.
1078         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1080 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1082         * sysdeps/mach/hurd/dl-cache.c: File removed.
1083         * config.h.in (USE_LDCONFIG): New #undef.
1084         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1085         * configure: Regenerated.
1086         * elf/Makefile (dl-routines): Add dl-cache only under
1087         [$(use-ldconfig) = yes].
1088         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1089         cache on [USE_LDCONFIG].
1090         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1091         [USE_LDCONFIG].
1092         * elf/rtld.c (dl_main): Likewise.
1094 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1096         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1097         _SC_LEVEL4_CACHE_LINESIZE.
1099 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1101         * sysdeps/unix/bsd/confstr.h: File removed.
1103 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1105         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1106         sys/sdt-config.h.
1108 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1110         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1111         Make 'mapoff' field ElfW(Off) rather than off_t.
1113 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1115         * nscd/Makefile: Remove nscd-cflags and all its users.
1116         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1117         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1119         [BZ #10631]
1120         * malloc.c (malloc_printerr): Clarify error message.
1122 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1124         [BZ #14648]
1125         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1126         Set bit_FMA_Usable if FMA is supported.
1127         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1128         macro.
1129         (bit_FMA4_Usable): Updated.
1130         (index_FMA_Usable): New macro.
1131         (CPUID_FMA): Likewise
1132         (HAS_FMA): Defined with bit_FMA_Usable.
1134 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1136         * bits/types.h (__swblk_t): Type removed.
1137         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1138         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1139         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1140         (__SWBLK_T_TYPE): Likewise.
1141         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1142         (__SWBLK_T_TYPE): Likewise.
1143         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1144         (__SWBLK_T_TYPE): Likewise.
1145         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1146         (__SWBLK_T_TYPE): Likewise.
1148 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1149             Honza Horak <hhorak@redhat.com>
1151         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1152         (xdr_mapname): Use YPMAXMAP as maxsize.
1153         (xdr_peername): Use YPMAXPEER as maxsize.
1154         (xdr_keydat): Use YPAXRECORD as maxsize.
1155         (xdr_valdat): Use YPMAXRECORD as maxsize.
1157 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1159         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1161         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1162         * csu/init-first.c: ... here.
1163         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1164         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1165         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1166         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1167         * sysdeps/i386/init-first.c: File removed.
1168         * sysdeps/sh/init-first.c: File removed.
1170 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1172         [BZ #14645]
1173         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1174         if x * y might underflow to zero and z is zero.
1175         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1176         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1177         * math/libm-test.inc (min_subnorm_value): New variable.
1178         (fma_test): Add more tests.
1179         (fma_test_towardzero): Likewise.
1180         (fma_test_downward): Likewise
1181         (fma_test_upward): Likewise.
1182         (initialize): Set min_subnorm_value.
1184 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1186         [BZ #14638]
1187         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1188         0 + 0.
1189         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1190         mode for addition resulting in exact zero.
1191         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1192         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1193         exact 0 + 0.
1194         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1195         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1196         * math/libm-test.inc (fma_test): Add more tests.
1197         (fma_test_towardzero): New function.
1198         (fma_test_downward): Likewise.
1199         (fma_test_upward): Likewise.
1200         (main): Call the new functions.
1202 2012-09-28  David S. Miller  <davem@davemloft.net>
1204         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1206 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1208         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1209         instead of SIGALRM.
1211         * sysdeps/gnu/_G_config.h: Moved to ...
1212         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1213         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1214         * sysdeps/generic/_G_config.h: ... here.
1216         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1218         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1220         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1221         Conditionalize target on [libnss_test1.so-version].
1223         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1225         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1226         (elfobjdir): Move out of conditionals.
1228         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1229         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1230         (__nss_lookup_function): Conditionalize label remove_from_tree on
1231         [!DO_STATIC_NSS || SHARED], matching its only use.
1233 2012-09-28  David S. Miller  <davem@davemloft.net>
1235         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1236         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1237         file.
1238         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1239         sysdep_routines.
1240         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1241         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1242         when HWCAP_SPARC_CRYPTO is present.
1244 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1246         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1248 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1250         [BZ #6530]
1251         * stdio-common/vfprintf.c (process_string_arg): Revert
1252         2000-07-22 change.
1254 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1256         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1257         for testcase.
1258         * stdio-common/tst-sprintf.c: Include <locale.h>
1259         (main): Test sprintf's handling of incomplete multibyte
1260         characters.
1262 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1264         * elf/dl-runtime.c (VERSYMIDX): Removed.
1265         * elf/dl-version.c (VERSYMIDX): Likewise.
1266         * elf/do-rel.h (VERSYMIDX): Likewise.
1267         (VALIDX): Likewise.
1268         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1269         * elf/rtld.c (VALIDX): Likewise.
1270         (ADDRIDX): Likewise.
1271         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1272         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1273         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1274         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1275         (VALIDX): Likewise.
1276         (ADDRIDX): Likewise.
1278 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1280         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1282 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1284         [BZ #11438]
1285         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1286         to global scope.
1287         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1288         addresses are in the same scope as 192.0.2/24.
1289         * posix/gai.conf: Document new scope table defaults.
1291 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1293         [BZ #5298]
1294         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1295         for ftell.  Compute offsets from write pointers instead.
1296         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1298 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1300         [BZ #14543]
1301         * libio/Makefile (tests): New test case tst-fseek.
1302         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1303         combination works in wide mode.
1304         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1305         state when the external buffer state changes.
1307 2012-09-27  David S. Miller  <davem@davemloft.net>
1309         [BZ #14376]
1310         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1311         pass reloc->r_addend in as the 'high' argument to
1312         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1316 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1318         * rt/tst-aio2.c: Include <pthread.h>.
1319         * rt/tst-aio3.c: Likewise.
1321 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1323         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1325 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1327         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1328         contents on [SHARED].
1330 2012-09-26  Marek Polacek  <polacek@redhat.com>
1332         [BZ #14530]
1333         [BZ #13741]
1334         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1335         for C++ and GCC <4.3 as well as for non GCC compilers.
1337 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1339         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1341 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1343         * Makefile.in (all, install): Declare with .PHONY.
1344         Reported by Michael Hope <michael.hope@linaro.org>.
1346 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1348         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1349         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1350         system header.
1351         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1352         Likewise.
1353         (sydep_routines): Add the new and the internal functions.
1354         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1355         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1357         (GLIBC_2.17): Add the new function.
1358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1359         (GLIBC_2.17): Likewise.
1360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1361         (GLIBC_2.17): Likewise.
1362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1363         (GLIBC_2.17): Likewise.
1364         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1366 2012-09-25  Alan Modra  <amodra@gmail.com>
1368         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1369         Add release barrier before setting once_control to say
1370         initialisation is done.  Add hints on lwarx.  Use macro in
1371         place of isync.
1372         (clear_once_control): Add release barrier.
1374 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1376         [BZ #13629]
1377         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1378         specially.
1379         * math/s_clog10.c (__clog10): Likewise.
1380         * math/s_clog10f.c (__clog10f): Likewise.
1381         * math/s_clog10l.c (__clog10l): Likewise.
1382         * math/s_clogf.c (__clogf): Likewise.
1383         * math/s_clogl.c (__clogl): Likewise.
1384         * math/Makefile (libm-calls): Add x2y2m1.
1385         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1386         (__x2y2m1): Likewise.
1387         (__x2y2m1l): Likewise.
1388         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1389         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1390         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1391         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1392         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1393         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1394         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1395         * sysdeps/i386/fpu/libm-test-ulps: Update.
1396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1398         [BZ #14621]
1399         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1400         int as type of variable DEPTH.
1401         (glob): Use size_t instead of int as type of variables NEWCOUNT
1402         and OLD_PATHC.
1404 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1406         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1407         Add s_sincosf-sse2.
1408         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1409         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1410         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1411         macros for using routine as __sincosf_ia32.
1412         Use macro for function declaration and weak_alias.
1413         * sysdeps/i386/fpu/libm-test-ulps: Update.
1415         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1416         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1418         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1419         subnormal argument.
1420         * math/s_cexpf.c (__cexpf): Likewise.
1421         * math/s_csinf.c (__csinf): Likewise.
1422         * math/s_csinhf.c (__csinhf): Likewise.
1423         * math/s_ctanf.c (__ctanf): Likewise.
1424         * math/s_ctanhf.c (__ctanhf): Likewise.
1425         * math/s_ccosh.c (__ccoshf): Likewise.
1426         * math/s_cexp.c (__cexpl): Likewise.
1427         * math/s_csin.c (__csin): Likewise.
1428         * math/s_csinh.c (__csinh): Likewise.
1429         * math/s_ctan.c (__ctan): Likewise.
1430         * math/s_ctanh.c (ctanh): Likewise.
1431         * math/s_ccoshl.c (__ccoshl): Likewise.
1432         * math/s_cexpl.c (__cexpl): Likewise.
1433         * math/s_csinl.c (__csinl): Likewise.
1434         * math/s_csinhl.c (__csinhl): Likewise.
1435         * math/s_ctanl.c (__ctanl): Likewise.
1436         * math/s_ctanhl.c (__ctanhl): Likewise.
1438 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1440         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1441         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1442         (_IO_off_t): Define to __off_t, not _G_off_t.
1443         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1444         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1445         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1446         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1447         type of __dummy and __dummy2 fields.
1448         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1449         (_G_ssize_t): Likewise.
1450         (_G_off_t): Likewise.
1451         (_G_pid_t): Likewise.
1452         (_G_uid_t): Likewise.
1453         (_G_wchar_t): Likewise.
1454         (_G_wint_t): Likewise.
1455         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1456         (_G_ssize_t): Likewise.
1457         (_G_off_t): Likewise.
1458         (_G_pid_t): Likewise.
1459         (_G_uid_t): Likewise.
1460         (_G_wchar_t): Likewise.
1461         (_G_wint_t): Likewise.
1462         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1463         (_G_ssize_t): Likewise.
1464         (_G_off_t): Likewise.
1465         (_G_pid_t): Likewise.
1466         (_G_uid_t): Likewise.
1467         (_G_wchar_t): Likewise.
1468         (_G_wint_t): Likewise.
1470 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1472         * malloc/arena.c: Include malloc-sysdep.h.
1473         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1474         is sufficient to shrink the heap or an unmap is needed.
1475         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1476         new function check_may_shrink_heap.
1477         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1478         new function check_may_shrink_heap.
1480 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1482         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1483         comments.
1485 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1487         * catgets/test-gencat.sh: Add "set -e".
1488         * elf/tst-pathopt.sh: Likewise.
1489         * grp/tst_fgetgrent.sh: Likewise.
1490         * iconvdata/run-iconv-test.sh: Likewise.
1491         * intl/tst-gettext.sh: Likewise.
1492         * intl/tst-gettext2.sh: Likewise.
1493         * intl/tst-gettext4.sh: Likewise.
1494         * intl/tst-gettext6.sh: Likewise.
1495         * intl/tst-translit.sh: Likewise.
1496         * io/ftwtest-sh: Likewise.
1497         * libio/test-freopen.sh: Likewise.
1498         * malloc/tst-mtrace.sh: Likewise.
1499         * posix/globtest.sh: Likewise.
1500         * posix/tst-getconf.sh: Likewise.
1501         * posix/wordexp-tst.sh: Likewise.
1502         * stdio-common/tst-printf.sh: Likewise.
1503         * stdio-common/tst-unbputc.sh: Likewise.
1504         * stdlib/tst-fmtmsg.sh: Likewise.
1505         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1506         * catgets/Makefile: Do not specify -e option when running
1507         testsuite shell scripts.
1508         * elf/Makefile: Likewise.
1509         * grp/Makefile: Likewise.
1510         * iconvdata/Makefile: Likewise.
1511         * intl/Makefile: Likewise.
1512         * io/Makefile: Likewise.
1513         * libio/Makefile: Likewise.
1514         * malloc/Makefile: Likewise.
1515         * posix/Makefile: Likewise.
1516         * stdio-common/Makefile: Likewise.
1517         * stdlib/Makefile: Likewise.
1518         * sysdeps/x86_64/Makefile: Likewise.
1520         * io/ftwtest-sh: Add copyright header.
1521         * posix/globtest.sh: Likewise.
1522         * posix/tst-getconf.sh: Likewise.
1523         * posix/wordexp-tst.sh: Likewise.
1524         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1526 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1528         [BZ #13679]
1529         * Makeconfig (+link): Defined as $(+link-static) if
1530         $(build-shared) isn't yes.
1531         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1532         isn't yes.
1533         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1535         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1537         [BZ #14562]
1538         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1539         new chunk size with MALLOC_ALIGN_MASK.
1541 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1543         [BZ #5044]
1544         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1545         <rounding-mode.h>.
1546         (__printf_fphex): Determine rounding using get_rounding_mode and
1547         round_away.
1548         * stdio-common/tst-printf-round.c (struct hex_test): New
1549         structure.
1550         (hex_tests): New variable.
1551         (test_hex_in_one_mode): New function.
1552         (do_test): Also run tests for hex float output.
1554 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1556         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1557         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1558         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1559         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1560         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1561         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1562         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1563         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1565 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1567         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1568         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1569         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1570         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1572 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1574         [BZ #14579]
1575         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1576         mode only.
1577         * elf/tst-rtld-load-self.sh: New test.
1578         * elf/Makefile: Run it.
1580 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1582         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1583         (tst-writev-ENV): Remove.
1584         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1586 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1588         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1590 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1592         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1593         unconditional.
1594         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1595         Likewise.
1596         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1597         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1598         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1599         Likewise.
1601 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1603         [BZ #14587]
1604         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1605         * config.make.in (have-cpp-asm-debuginfo): Removed.
1606         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1607         * configure: Regenerated.
1609 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1611         [BZ #5044]
1612         * stdio-common/printf_fp.c: Include <stdbool.h> and
1613         <rounding-mode.h>.
1614         (___printf_fp): Determine rounding using get_rounding_mode and
1615         round_away.
1616         * stdio-common/tst-printf-round.c: New file.
1617         * stdio-common/Makefile (tests): Add tst-printf-round.
1618         (link-libm): New variable.
1619         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1621 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1623         [BZ #14576]
1624         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1625         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1626         Likewise.
1627         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1628         Likewise.
1630 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1632         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1633         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1634         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1635         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1637 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1639         [BZ #14518]
1640         * include/rounding-mode.h: New file.
1641         * sysdeps/generic/get-rounding-mode.h: Likewise.
1642         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1643         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1644         (MAX_VALUE): New macro.
1645         (MIN_VALUE): Likewise.
1646         (overflow_value): New function.
1647         (underflow_value): Likewise.
1648         (round_and_return): Use overflow_value and underflow_value to
1649         determine return values in overflow and underflow cases.  Use
1650         round_away to determine rounding depending on rounding mode.
1651         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1652         determine return values in overflow and underflow cases.
1653         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1654         (struct test_results): New structure.
1655         (struct test): Use struct test_results to store expected results
1656         for all rounding modes.
1657         (TEST): Include expected results for all rounding modes.
1658         (test_in_one_mode): New function.
1659         (do_test): Use test_in_one_mode to compute and check results.
1660         Check results for all rounding modes.
1661         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1662         $(link-libm).
1664 2012-12-09  Allan McRae  <allan@archlinux.org>
1666         * sysdeps/i386/fpu/libm-test-ulps: Update
1668 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1670         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1671         (_G_int32_t): Likewise.
1672         (_G_uint16_t): Likewise.
1673         (_G_uint32_t): Likewise.
1674         (_G_HAVE_BOOL): Likewise.
1675         (_G_HAVE_ATEXIT): Likewise.
1676         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1677         (_G_HAVE_IO_FILE_OPEN): Likewise.
1678         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1679         (_G_int32_t): Likewise.
1680         (_G_uint16_t): Likewise.
1681         (_G_uint32_t): Likewise.
1682         (_G_HAVE_BOOL): Likewise.
1683         (_G_HAVE_ATEXIT): Likewise.
1684         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1685         (_G_HAVE_IO_FILE_OPEN): Likewise.
1686         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1687         (_G_int32_t): Likewise.
1688         (_G_uint16_t): Likewise.
1689         (_G_uint32_t): Likewise.
1690         (_G_HAVE_BOOL): Likewise.
1691         (_G_HAVE_ATEXIT): Likewise.
1692         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1693         (_G_HAVE_IO_FILE_OPEN): Likewise.
1695 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1697         * csu/libc-tls.c: Update copyright years.
1699 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1701         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1702         [!_G_USING_THUNKS]: Remove conditional code.
1703         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1704         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1706         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1707         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1708         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1709         (_G_VTABLE_LABEL_PREFIX): Likewise.
1710         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1711         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1712         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1713         (_G_VTABLE_LABEL_PREFIX): Likewise.
1714         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1715         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1716         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1717         (_G_VTABLE_LABEL_PREFIX): Likewise.
1718         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1720 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1722         * libio/Makefile: Include ../Makeconfig before tests.
1723         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1724         only if $(build-shared) is yes.
1726         * iconv/gconv_db.c: Update copyright years.
1728 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1730         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1731         unwind info if defined PIC. Fix special cases description.
1732         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1734         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1735         DP_HI_MASK entry.
1736         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1738 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1740         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1742         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1743         is NULL.
1745         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1746         (LDLIBS-tst-chk4): This.
1747         (LDFLAGS-tst-chk5): Renamed to ...
1748         (LDLIBS-tst-chk5): This.
1749         (LDFLAGS-tst-chk6): Renamed to ...
1750         (LDLIBS-tst-chk6): This.
1751         (LDFLAGS-tst-lfschk4): Renamed to ...
1752         (LDLIBS-tst-lfschk4): This.
1753         (LDFLAGS-tst-lfschk5): Renamed to ...
1754         (LDLIBS-tst-lfschk5): This.
1755         (LDFLAGS-tst-lfschk6): Renamed to ...
1756         (LDLIBS-tst-lfschk6): This.
1758         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1759         on $(common-objpfx)soversions.mk.
1761 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1763         [BZ #10014]
1764         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1765         example host name.
1767 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1769         * malloc/arena.c (arena_get_retry): New function that gets
1770         another arena for the caller to try its request on.
1771         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1772         current arena cannot fulfill the request.
1773         (__libc_memalign): Likewise.
1774         (__libc_memalign): Likewise.
1775         (__libc_pvalloc): Likewise.
1776         (__libc_calloc): Likewise.
1778 2012-09-05  John Tobey  <john.tobey@gmail.com>
1780         [BZ #13542]
1781         * manual/arith.texi (Operations on Complex): Fix description
1782         of carg branch cut.
1784 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1786         [BZ #10014]
1787         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1788         host name.
1790         [BZ #10038]
1791         * manual/memory.texi (Memory): Make order of menu items match
1792         order of sections.
1794 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1796         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1797         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1798         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1800 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1802         * csu/libc-tls.c (static_dtv): Renamed to ...
1803         (_dl_static_dtv): This.  Make it global.
1804         (_dl_initial_dtv): Removed.
1805         (__libc_setup_tls): Updated.
1806         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1807         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1808         DL_INITIAL_DTV.
1810 2012-09-06  Petr Machata  <pmachata@redhat.com>
1812         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1813         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1814         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1815         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1817 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1819         [BZ #14545]
1820         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1821         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1822         freeing dtv[-1].
1824 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1826         [BZ #14544]
1827         * Makeconfig (link-static-before-libc): Replace $(+prector)
1828         with $(+prectorT).
1829         (link-static-after-libc): Replace $(+postctor) with
1830         $(+postctorT).
1831         (link-bounded): Replace $(+prector)/$(+postctor) with
1832         $(+prectorT)/$(+postctorT).
1833         (+prectorT): New macro.
1834         (+postctorT): Likewise.
1836 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1838         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1839         (round_str): Handle values above the maximum for IBM long double
1840         as inexact.
1841         * stdlib/tst-strtod-round.c (tests): Regenerated.
1843 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1845         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1846         assembler flag.
1847         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1848         zarch_nohighgprs around the zarch optimized routines.
1849         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1850         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1851         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1852         for zarch.
1854 2012-09-05  David S. Miller  <davem@davemloft.net>
1856         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1858         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1859         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1860         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1861         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1862         entries.
1864 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1866         * malloc/arena.c: Fold copyright years.
1867         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1869 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1871         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1873 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1875         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1877 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1879         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1880         change internal state upon failure.
1882 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1884         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1885         * malloc/memusage.c (mmap): Likewise.
1886         (mmap64, mremap): Likewise.  Adjust name in comment.
1888 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1890         * libio/fileops.c: Fix typos in comments.
1891         * libio/oldfileops.c: Likewise.
1892         * libio/wfileops.c: Likewise.
1894 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1896         [BZ #1349]
1897         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1898         (tst-malloc-usable-ENV): Set environment for test case.
1899         * malloc/hooks.c (malloc_check_get_size): New function to get
1900         requested size.
1901         * malloc/malloc.c (musable): Use malloc_check_get_size.
1902         * malloc/tst-malloc-usable.c: New test case.
1904 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1906         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1908 2012-09-05  Allan McRae  <allan@archlinux.org>
1910         [BZ #13966]
1911         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1912         determine header location.
1913         * configure: Regenerated.
1915 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1917         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1918         float format.
1919         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1920         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1921         format.
1922         (test): Regenerate.
1924 2012-09-04  David S. Miller  <davem@davemloft.net>
1926         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1927         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1928         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1930 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1932         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1933         failures.
1935         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1937 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1939         [BZ #9914]
1940         * libio/iogetdelim.c: Include <limits.h>.
1941         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1942         + len + 1 would overflow.
1944 2012-09-03  Andreas Jaeger  <aj@suse.de>
1946         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1947         * sysdeps/i386/fpu/libm-test-ulps: Update.
1949 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1951         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1952         Add s_sinf-sse2, s_conf-sse2.
1954         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1955         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1956         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1957         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1959         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1960         for using routine as __sinf_ia32.
1961         Use macro for function declaration and weak_alias.
1962         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1963         for using routine as __cosf_ia32.
1964         Use macro for function declaration and weak_alias.
1966         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1967         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1969         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1970         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1971         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1973         * math/libm-test.inc (cos_test): Add more test cases.
1974         (sin_test): Likewise.
1975         (sincos_test): Likewise.
1977 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1979         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1980         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1981         hidden.
1982         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1984 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1986         [BZ #14538]
1987         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1988         first element of the GOT.
1989         (elf_machine_load_address): Return the difference between
1990         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1992 2012-09-01  Allan McRae  <allan@archlinux.org>
1994         [BZ #13412]
1995         * configure.in (AWK): Require gawk version 3.0 or later.
1996         * configure: Regenerated.
1998 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2000         * sysdeps/unix/sysv/linux/kernel-features.h
2001         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2002         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2003         [__NR_clock_getres]: Make code unconditional.
2004         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2005         (clock_getcpuclockid): Remove code left unreachable by removal of
2006         conditionals.
2007         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2008         code unconditional.
2009         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2010         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2011         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2012         Make code unconditional.
2013         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2014         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2015         * sysdeps/unix/sysv/linux/clock_settime.c
2016         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2017         conditional code.
2018         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2019         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2021 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2023         [BZ #14476]
2024         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2025         scripts/test-installation.pl.
2027         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2028         and $ld_so_version if it is set.
2030 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2032         [BZ #14516]
2033         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2034         failure if reading from procfs failed.
2035         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2037 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2039         * sysdeps/unix/sysv/linux/kernel-features.h
2040         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2041         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2042         Remove conditional code.
2043         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2044         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2045         Remove conditional code.
2046         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2047         * sysdeps/unix/sysv/linux/i386/fxstat.c
2048         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2049         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2050         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2051         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2052         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2053         * sysdeps/unix/sysv/linux/i386/lxstat.c
2054         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2055         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2056         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2057         Remove conditional code.
2058         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2059         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2060         Remove conditional code.
2061         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2062         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2063         <kernel-features.h>.
2064         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2065         Remove.
2066         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2067         Remove conditional code.
2068         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2069         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2070         Remove conditional.
2072 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2074         [BZ #5400]
2075         * NEWS: Add fixed bug number.
2077 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2079         [BZ #14519]
2080         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2081         underflowing exponent in case of negative sign.
2082         * stdlib/tst-strtod-round-data: Add more tests.
2083         * stdlib/tst-strtod-round.c (tests): Regenerated.
2085         [BZ #3479]
2086         * stdlib/strtod_l.c (NDIG): Remove.
2087         (HEXNDIG): Likewise.
2088         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2089         smallest representable value.
2090         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2091         lie within an exact representation of 1/2 ulp of the result.
2092         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2093         unconditionally.
2094         (TENS_P9_IDX): Define unconditionally.
2095         (TENS_P9_SIZE): Likewise.
2096         (TENS_P10_IDX): Likewise.
2097         (TENS_P10_SIZE): Likewise.
2098         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2099         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2100         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2101         entries for 10^2^13 and 10^2^14.
2102         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2103         (TENS_P13_IDX): Define.
2104         (TENS_P13_SIZE): Likewise.
2105         (TENS_P14_IDX): Likewise.
2106         (TENS_P14_SIZE): Likewise.
2107         (_fpioconst_pow10): Change array size to
2108         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2109         unconditional.
2110         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2111         1024]: Add entries for 10^2^13 and 10^2^14.
2112         [LAST_POW10 > _LAST_POW10]: Remove #error.
2113         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2114         (_fpioconst_pow10): Change array size to
2115         FPIOCONST_POW10_ARRAY_SIZE.
2116         * stdlib/gen-fpioconst.c: New file.
2117         * stdlib/gen-tst-strtod-round.c: Likewise.
2118         * stdlib/tst-strtod-round-data: Likewise.
2119         * stdlib/tst-strtod-round.c: Likewise.
2120         * stdlib/Makefile (tests): Add tst-strtod-round.
2122         [BZ #14459]
2123         * stdlib/strtod_l.c: Include <stdint.h>.
2124         (NDEBUG): Do not define.
2125         (round_and_return): Change EXPONENT parameter to type intmax_t.
2126         Rearrange calculations to avoid internal overflow possibilities.
2127         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2128         Rearrange calculations to avoid internal overflow possibilities.
2129         Assert that number fits inside MPNSIZE limbs.
2130         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2131         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2132         calculations and add assertions to avoid internal overflow
2133         possibilities.  Add casts to avoid signed/unsigned operations.
2134         * stdlib/tst-strtod-overflow.c: New file.
2135         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2137 2012-08-25  Marek Polacek  <polacek@redhat.com>
2139         * time/time.h: Fix some typos in comments.
2141 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2143         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2144         * posix/tst-rfc3484-2.c: Likewise.
2145         * posix/tst-rfc3484-3.c: Likewise.
2147 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2149         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2150         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2152 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2154         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2155         #include of fxstatat64.c.
2157 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2159         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2160         * shadow/getspent_r.c: Likewise.
2161         * shadow/getspnam.c: Likewise.
2162         * shadow/getspnam_r.c: Likewise.
2163         * gshadow/getsgent.c: Likewise.
2164         * gshadow/getsgent_r.c: Likewise.
2165         * gshadow/getsgnam.c: Likewise.
2166         * gshadow/getsgnam_r.c: Likewise.
2167         * inet/getnetbyad.c: Likewise.
2168         * inet/getnetbyad_r.c: Likewise.
2169         * inet/getnetbynm.c: Likewise.
2170         * inet/getnetbynm_r.c: Likewise.
2171         * inet/getnetent.c: Likewise.
2172         * inet/getnetent_r.c: Likewise.
2173         * inet/getproto.c: Likewise.
2174         * inet/getproto_r.c: Likewise.
2175         * inet/getprtent.c: Likewise.
2176         * inet/getprtent_r.c: Likewise.
2177         * inet/getprtname.c: Likewise.
2178         * inet/getprtname_r.c: Likewise.
2179         * inet/getrpcbyname.c: Likewise.
2180         * inet/getrpcbyname_r.c: Likewise.
2181         * inet/getrpcbynumber.c: Likewise.
2182         * inet/getrpcbynumber_r.c: Likewise.
2183         * inet/getrpcent.c: Likewise.
2184         * inet/getrpcent_r.c: Likewise.
2185         * inet/getaliasent.c: Likewise.
2186         * inet/getaliasent_r.c: Likewise.
2187         * inet/getaliasname.c: Likewise.
2188         * inet/getaliasname_r.c: Likewise.
2189         * nscd/getgrgid_r.c: Likewise.
2190         * nscd/getgrnam_r.c: Likewise.
2191         * nscd/gethstbyad_r.c: Likewise.
2192         * nscd/gethstbynm3_r.c: Likewise.
2193         * nscd/getpwnam_r.c: Likewise.
2194         * nscd/getpwuid_r.c: Likewise.
2195         * nscd/getsrvbynm_r.c: Likewise.
2196         * nscd/getsrvbypt_r.c: Likewise.
2197         * nscd/gai.c: Likewise.
2199         * configure.in (build_nscd): New substituted variable, set
2200         by --disable-build-nscd and defaults to $use_nscd.
2201         * configure: Regenerated.
2202         * config.make.in (build-nscd): New substituted variable.
2203         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2204         Change conditional to require [$(build-nscd) = yes] as well.
2205         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2207         [BZ# 13696]
2208         * configure.in (use_nscd): New substituted variable, set by
2209         --disable-nscd.  If enabled, define USE_NSCD.
2210         * configure: Regenerated.
2211         * config.h.in: Add USE_NSCD.
2212         * config.make.in (use-nscd): New substituted variable.
2213         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2214         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2215         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2216         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2217         (CFLAGS-getgrnam_r.c): Likewise.
2218         (CFLAGS-initgroups.c): Likewise.
2219         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2220         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2221         Variables removed.
2222         * inet/getnetgrent_r.c
2223         (nscd_setnetgrent): New function, broken out of ...
2224         (setnetgrent): ... here.  Call it.
2225         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2226         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2227         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2228         * nscd/Makefile (routines, aux): Move definitions after include of
2229         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2230         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2231         Conditionalize on [USE_NSCD].
2232         (is_nscd, nscd_init_cb): Likewise.
2233         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2234         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2235         * nss/nss_db/db-init.c: Likewise.
2236         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2237         [USE_NSCD].
2238         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2239         (make_request): Use it.
2240         (cache_valid_p): New function.
2241         (__check_pf): Use it.
2242         * NEWS: Add item for --disable-nscd.
2244 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2246         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2247         to support sed >= 4.2.1-20-ga9bf076.
2248         * configure: Regenerated.
2250 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2252         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2253         Conditionalize whole body on [IREL].
2255 2012-08-22  Jeff Law <law@redhat.com>
2257         [BZ #14505]
2258         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2259         if the family is PF_UNSPEC.
2261 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2263         * Makerules (lib-version): Rename from V.
2264         (install-lib-nosubdir): Change V to lib-version.
2266 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2268         [BZ #14252]
2269         * powerpc32/power6/wcschr.c: New file.
2270         * powerpc32/power6/wcscpy.c: New file.
2271         * powerpc32/power6/wcsrchr.c: New file.
2272         * powerpc64/power6/wcschr.c: New file.
2273         * powerpc64/power6/wcscpy.c: New file.
2274         * powerpc64/power6/wcsrchr.c: New file.
2276 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2278         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2279         (two_way_short_needle): Use it.
2280         * string/strstr.c (AVAILABLE1_USES_J): Define.
2281         * string/strcasestr.c: Likewise.
2283         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2284         array references.
2285         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2287         [BZ #11607]
2288         * NEWS: Add an entry.
2289         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2290         define their defaults.
2291         (two_way_short_needle): Detect end-of-string on-the-fly.
2292         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2293         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2294         * string/bug-strcasestr1.c: New test.
2295         * string/Makefile: Run it.
2297 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2299         [BZ #11607]
2300         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2301         the first character.
2303 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2305         * csu/elf-init.c (__libc_csu_irel): Function removed.
2306         * csu/libc-start.c (apply_irel): New function.
2307         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2309 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2311         * sysdeps/unix/sysv/linux/kernel-features.h
2312         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2313         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2314         <kernel-features.h>.
2315         [__NR_fadvise64_64]: Make code unconditional.
2316         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2317         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2318         !__NR_fadvise64_64)]: Likewise.
2319         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2320         !__NR_fadvise64_64))]: Likewise.
2321         [__NR_fadvise64]: Make code unconditional.
2322         [!__NR_fadvise64]: Remove conditional code.
2323         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2324         <kernel-features.h>.
2325         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2326         unconditional.
2327         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2328         conditional code.
2329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2330         not include <kernel-features.h>.
2331         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2332         unconditional.
2333         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2334         conditional code.
2335         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2336         include <kernel-features.h>.
2337         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2338         unconditional.
2339         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2340         conditional code.
2342 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2344         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2345         slight instruction rearrangements per scrollpipe analysis.
2346         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2348 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2350         * manual/syslog.texi (syslog; vsyslog, closelog):
2351         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2352         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2354         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2355         DSOCAPS to match condition on defining it.
2357 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2359         * sysdeps/unix/sysv/linux/kernel-features.h
2360         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2362         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2363         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2365         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2366         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2368         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2369         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2371         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2372         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2374         * sysdeps/unix/sysv/linux/kernel-features.h
2375         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2376         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2377         unconditional.
2378         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2379         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2380         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2381         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2382         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2383         Make code unconditional.
2384         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2385         (__mmap64) [!__NR_mmap2]: Likewise.
2386         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2387         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2388         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2389         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2390         [__NR_mmap2]: Make code unconditional.
2391         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2392         (__mmap64) [!__NR_mmap2]: Likewise.
2394 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2396         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2398 2012-08-18  Andreas Jaeger  <aj@suse.de>
2400         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2402 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2404         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2405         * include/unistd.h (__have_sock_cloexec): Likewise.
2406         (__have_pipe2): Likewise.
2407         (__have_dup3): Likewise.
2409 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2411         [BZ #9685]
2412         * include/unistd.h (__have_pipe2): Change define into an extern int.
2413         (__have_dup3): Likewise.
2414         * socket/have_sock_cloexec.c: Include fcntl.h.
2415         (__have_pipe2): New variable.
2416         (__have_dup3): Likewise.
2418 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2420         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2422 2012-08-17  Marek Polacek  <polacek@redhat.com>
2424         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2425         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2427 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2429         * configure.in: Add AC_SUBST for sysheaders.
2430         * configure: Regenerated.
2431         * config.make.in (sysheaders): New substituted variable.
2433         * sysdeps/unix/mkfifo.c: Moved ...
2434         * sysdeps/posix/mkfifo.c: ... here.
2435         * sysdeps/unix/mkfifoat.c: Moved ...
2436         * sysdeps/posix/mkfifoat.c: ... here.
2438         * sysdeps/unix/utime.c: Moved ...
2439         * sysdeps/posix/utime.c: ... here.
2441         * sysdeps/unix/time.c: Moved ...
2442         * sysdeps/posix/time.c: ... here.
2443         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2444         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2446         * sysdeps/unix/nice.c: Moved ...
2447         * sysdeps/posix/nice.c: ... here.
2449         * sysdeps/unix/alarm.c: Moved ...
2450         * sysdeps/posix/alarm.c: ... here.
2452         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2454 2012-08-17  Jeff Law <law@redhat.com>
2456         * intl/Makefile (codeset_mo): New variable.
2457         ($(codeset_mo)): New target.
2458         (tst-codeset.out): Depend on that.  Remove explicit rule.
2459         (tst-gettext3.out, tst-gettext5.out): Likewise.
2460         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2461         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2462         * intl/tst-codeset.sh: Remove.
2463         * intl/tst-gettext3.sh: Likewise.
2464         * intl/tst-gettext5.sh: Likewise.
2466 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2468         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2469         * sysdeps/unix/syscalls.list: ... here.
2471         * sysdeps/posix/getaddrinfo.c
2472         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2473         (gaiconf_init, gaiconf_reload): Use them.
2474         [!_STATBUF_ST_NSEC]
2475         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2476         Define using time_t rather than struct timespec.
2478         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2479         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2480         Macros removed.
2481         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2482         [!NO_THREADS].
2483         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2484         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2485         Likewise.
2487         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2488         __libc_cleanup_push argument.
2490         * bits/param.h: New file.
2491         * misc/sys/param.h: New file.
2492         * include/sys/param.h: New file.
2493         * misc/Makefile (headers): Add bits/param.h.
2494         * sysdeps/generic/sys/param.h: File removed.
2495         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2496         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2497         * sysdeps/mach/hurd/bits/param.h: New file.
2498         * sysdeps/mach/hurd/sys/param.h: New file.
2500         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2501         last change.
2503         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2504         [_IO_MTSAFE_IO].
2505         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2506         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2507         New macros.
2509         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2510         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2511         rather than -D_IO_MTSAFE_IO conditionally.
2512         * stdio-common/Makefile (CPPFLAGS): Likewise.
2513         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2514         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2515         Use $(libio-mtsafe).
2516         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2517         of -D_IO_MTSAFE_IO.
2518         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2519         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2520         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2521         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2522         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2523         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2524         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2525         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2526         (CFLAGS-fread_u_chk.c): Likewise.
2527         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2528         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2529         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2530         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2531         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2532         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2533         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2534         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2535         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2537         * libio/Makefile: Test [$(libc-reentrant) = yes]
2538         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2540         * Makeconfig
2541         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2542         * sysdeps/pthread/configure: File removed.
2543         * sysdeps/pthread/Makeconfig: New file.
2544         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2545         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2547 2012-08-16  Gary Benson  <gbenson@redhat.com>
2549         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2550         unmapping the first object in a namespace.
2552 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2554         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2555         (__internal_setnetgrent): ... this.  Add internal_function to
2556         definition.  Add libc_hidden_def.
2557         (setnetgrent): Update caller.
2558         (internal_endnetgrent): Renamed to ...
2559         (__internal_endnetgrent): ... this.  Add internal_function to
2560         definition.  Add libc_hidden_def.
2561         (endnetgrent): Update caller.
2562         (internal_getnetgrent_r): Renamed to ...
2563         (__internal_getnetgrent_r): ... this.  Add internal_function to
2564         definition.  Add libc_hidden_def.
2565         (__getnetgrent_r): Update caller.
2566         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2568 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2570         * stdlib/longlong.h: Update from GCC.
2572 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2574         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2575         on _QL, which is set by umul_ppmm but never used.
2576         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2577         variables, which are set by GMP macros but never used.
2578         * stdio-common/_itowa.c (_itowa): Likewise.
2579         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2580         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2582 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2584         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2585         struct La_sh_regs is not constant.
2586         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2587         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2588         and struct La_sparc64_regs are not constant.
2590 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2592         * sysdeps/unix/sysv/linux/kernel-features.h
2593         (__ASSUME_POSIX_TIMERS): Remove.
2594         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2595         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2596         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2597         Make code unconditional.
2598         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2599         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2600         Make code unconditional.
2601         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2602         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2603         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2604         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2605         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2606         Make code unconditional.
2607         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2608         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2609         (__libc_missing_posix_timers): Remove.
2611 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2613         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2614         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2616         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2618         * elf/dl-sym.c: Include <stdlib.h>.
2620         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2621         constants, which avoids warnings in 32-bit builds.
2623         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2624         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2626         * misc/lseek.c: File moved to ...
2627         * io/lseek.c: ... here.
2629         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2631         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2632         shifting LEN more than 31 bits at once.
2634 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2636         [BZ #14195]
2637         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2638         segmentation fault for a case of two empty input strings.
2639         * string/test-strncasecmp.c (check1): Renamed to...
2640         (bz12205): ...this.
2641         (bz14195): Add new testcase for two empty input strings and N > 0.
2642         (test_main): Call new testcase, adapt for renamed function.
2644 2012-08-15  Andreas Jaeger  <aj@suse.de>
2646         [BZ #14090]
2647         * crypt/md5test2.c: New test, based on test supplied by Serge
2648         Belyshev <belyshev@depni.sinp.msu.ru>.
2649         * crypt/Makefile (xtests): Add md5test-giant..
2650         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2652 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2654         [BZ #14090]
2655         * crypt/md5.c (md5_process_block): Don't assume the buffer
2656         length is less than 2**32.
2657         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2658         length is less than 2**64.
2660 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2662         * string/str-two-way.h: Include <sys/param.h>.
2663         (MAX): Macro removed.
2665         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2666         Move #define and #undef of memmove to just before and after
2667         including <string.h>.
2669         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2670         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2671         and after including <string.h>.  Move declarations of
2672         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2673         to before #include "string/memmove.c".
2675         * include/dirent.h: Declare __getdirentries.
2677         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2678         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2680 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2682         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2683         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2684         * sysdeps/i386/configure: Regenerated.
2685         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2686         STABS_CURRENT_FILE, and STABS_FUN.
2687         (END): Remove call to STABS_FUN_END.
2688         (STABS_CURRENT_FILE1): Delete.
2689         (STABS_CURRENT_FILE): Likewise.
2690         (STABS_FUN): Likewise.
2691         (STABS_FUN_END): Likewise.
2692         (STABS_FUN2): Likewise.
2693         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2694         * sysdeps/x86_64/configure: Regenerated.
2696 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2698         * elf/dl-open.c: Include <atomic.h>.
2699         * elf/dl-lookup.c: Likewise.
2701 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2703         * sysdeps/unix/sysv/linux/kernel-features.h
2704         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2705         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2706         unconditionally.
2707         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2708         unconditionally.
2709         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2710         condition on __ASSUME_CLONE_THREAD_FLAGS.
2712 2012-08-14  Andreas Jaeger  <aj@suse.de>
2714         * sysdeps/i386/fpu/libm-test-ulps: Update.
2716 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2718         * include/atomic.h (atomic_exchange_and_add): Split into ...
2719         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2720         New atomic macros.
2722 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2724         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2726 2012-08-13  Jeff Law <law@redhat.com>
2728         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2729         null byte in the output string.
2731 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2733         * sysdeps/unix/sysv/linux/kernel-features.h
2734         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2735         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2736         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2737         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2738         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2739         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2740         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2742 2012-08-09  Jeff Law <law@redhat.com>
2744         [BZ #13939]
2745         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2746         When avoid_arena is set, don't retry in the that arena.  Pick the
2747         next one, whatever it might be.
2748         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2749         (arena_lock): Pass in new parameter to arena_get2.
2750         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2751         arena_get2.
2752         (__libc_malloc): Unify retrying after main arena failure with
2753         __libc_memalign version.
2754         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2756 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2758         [BZ #14166]
2759         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2760         to __redirect_strstr.
2761         (__strstr_sse42): Use typeof __redirect_strstr.
2762         (__strstr_ia32): Likewise.
2763         (__libc_strstr): New prototype.
2764         (strstr): Renamed to ...
2765         (__libc_strstr): This.
2766         (strstr): New strong alias of __libc_strstr.
2767         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2768         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2769         __redirect_time.
2770         Include <time.h>.
2771         (__libc_time): New prototype.
2772         (time_ifunc): Replace time with __libc_time.
2773         (time): New strong alias and hidden definition of __libc_time.
2774         (__GI_time): Remove strong alias.
2775         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2776         Include <stddef.h>.
2777         (memmove): Redefined to __redirect_memmove.
2778         (__memmove_sse2): Use typeof __redirect_memmove.
2779         (__memmove_ssse3): Likewise.
2780         (__memmove_ssse3_back): Likewise.
2781         (__libc_memmove): New prototype.
2782         (memmove): Renamed to ...
2783         (__libc_memmove): This.
2784         (memmove): New strong alias of __libc_memmove.
2786 2012-08-08  Mark Salter  <msalter@redhat.com>
2788         * elf/elf.h
2789         (R_MN10300_TLS_GD): Define.
2790         (R_MN10300_TLS_LD): Likewise.
2791         (R_MN10300_TLS_LDO): Likewise.
2792         (R_MN10300_TLS_GOTIE): Likewise.
2793         (R_MN10300_TLS_IE): Likewise.
2794         (R_MN10300_TLS_LE): Likewise.
2795         (R_MN10300_TLS_DTPMOD): Likewise.
2796         (R_MN10300_TLS_DTPOFF): Likewise.
2797         (R_MN10300_TLS_TPOFF): Likewise.
2798         (R_MN10300_SYM_DIFF): Likewise.
2799         (R_MN10300_ALIGN): Likewise.
2800         (R_MN10300_NUM): Update.
2802 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2804         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2805         Remove.
2807 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2809         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2811         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2812         sysdeps/unix -> sysdeps/posix move.
2813         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2815 2012-08-07      Allan McRae     <allan@archlinux.org>
2817         [BZ #14303]
2818         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2819         (SUNOS_CPP): Likewise.
2820         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2821         not found.
2822         (open_input): Call CPP using execvp.
2824 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2826         * sysdeps/unix/sysv/linux/kernel-features.h
2827         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2828         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2829         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2830         (__ASSUME_WAITID_SYSCALL): Likewise.
2831         * sysdeps/unix/sysv/linux/dl-execstack.c
2832         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2833         code unconditional.
2834         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2835         conditional code.
2836         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2837         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2838         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2839         code.
2840         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2841         unconditional.
2842         [__ASSUME_WAITID_SYSCALL]: Likewise.
2843         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2845 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2847         * sysdeps/unix/closedir.c: Renamed to ...
2848         * sysdeps/posix/closedir.c: ... here.
2849         * sysdeps/unix/dirfd.c: Renamed to ...
2850         * sysdeps/posix/dirfd.c: ... here.
2851         * sysdeps/unix/dirstream.h: Renamed to ...
2852         * sysdeps/posix/dirstream.h: ... here.
2853         * sysdeps/unix/fdopendir.c: Renamed to ...
2854         * sysdeps/posix/fdopendir.c: ... here.
2855         * sysdeps/unix/opendir.c: Renamed to ...
2856         * sysdeps/posix/opendir.c: ... here.
2857         * sysdeps/unix/readdir.c: Renamed to ...
2858         * sysdeps/posix/readdir.c: ... here.
2859         * sysdeps/unix/readdir_r.c: Renamed to ...
2860         * sysdeps/posix/readdir_r.c: ... here.
2861         * sysdeps/unix/rewinddir.c: Renamed to ...
2862         * sysdeps/posix/rewinddir.c: ... here.
2863         * sysdeps/unix/seekdir.c: Renamed to ...
2864         * sysdeps/posix/seekdir.c: ... here.
2865         * sysdeps/unix/telldir.c: Renamed to ...
2866         * sysdeps/posix/telldir.c: ... here.
2867         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2868         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2869         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2870         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2872         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2873         * bits/fcntl.h: ... here.
2875         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2876         not 0.
2877         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2878         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2879         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2880         (struct flock): Move l_start, l_len to the beginning.
2881         Use __pid_t for l_pid.
2882         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2883         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2884         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2885         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2886         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2887         [__USE_LARGEFILE64] (struct flock64): New type.
2888         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2890         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2891         * bits/dirent.h: ... here.
2893         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2894         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2896 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2898         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2899         Change from 2.6.0 to 2.6.16.
2900         * sysdeps/unix/sysv/linux/configure: Regenerated.
2901         * sysdeps/unix/sysv/linux/kernel-features.h
2902         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2903         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2904         version.
2905         (__ASSUME_UTIMES): Likewise.
2906         (__ASSUME_CLONE_STOPPED): Remove.
2907         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2908         architectures, not kernel version.
2909         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2910         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2911         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2912         (__ASSUME_WAITID_SYSCALL): Likewise.
2913         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2914         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2915         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2916         refer to older versions.
2918 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2920         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2921         Define alphasort64 as an alias.
2922         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2923         Define versionsort64 as an alias.
2924         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2925         Define scandir64 as an alias.
2926         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2927         Define scandirat64 as an alias.
2928         * dirent/alphasort64.c (alphasort64):
2929         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2930         * dirent/versionsort64.c: Likewise.
2931         * dirent/scandir64.c: Likewise.
2932         * dirent/scandirat64.c: Likewise.
2933         * sysdeps/wordsize-64/alphasort.c: File removed.
2934         * sysdeps/wordsize-64/alphasort64.c: File removed.
2935         * sysdeps/wordsize-64/scandir.c: File removed.
2936         * sysdeps/wordsize-64/scandir64.c: File removed.
2937         * sysdeps/wordsize-64/scandirat.c: File removed.
2938         * sysdeps/wordsize-64/scandirat64.c: File removed.
2939         * sysdeps/wordsize-64/versionsort.c: File removed.
2940         * sysdeps/wordsize-64/versionsort64.c: File removed.
2941         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2942         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2943         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2944         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2945         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2946         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2947         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2948         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2950         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2951         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2952         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2953         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2954         [defined __arch64__ || defined __sparcv9]
2955         (__INO_T_MATCHES_INO64_T): New macro.
2956         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2957         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2958         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2959         * sysdeps/unix/sysv/linux/bits/dirent.h
2960         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2961         (_DIRENT_MATCHES_DIRENT64): New macro.
2963         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2964         Define lockf64 as an alias.
2965         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2966         Define fseeko64 as an alias.
2967         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2968         Define ftello64 as an alias.
2969         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2970         Define _IO_fgetpos64 and fgetpos64 as aliases.
2971         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2972         Define _IO_fsetpos64 and fsetpos64 as aliases.
2973         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2974         Conditionalize body on this.
2975         * libio/fseeko64.c: Likewise.
2976         * libio/ftello64.c: Likewise.
2977         * libio/iofgetpos64.c: Likewise.
2978         * libio/iofsetpos64.c: Likewise.
2979         * sysdeps/wordsize-64/lockf.c: File removed.
2980         * sysdeps/wordsize-64/lockf64.c: File removed.
2981         * sysdeps/wordsize-64/fseeko.c: File removed.
2982         * sysdeps/wordsize-64/fseeko64.c: File removed.
2983         * sysdeps/wordsize-64/ftello.c: File removed.
2984         * sysdeps/wordsize-64/ftello64.c: File removed.
2985         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2986         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2987         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2988         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2989         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2990         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2991         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2992         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2993         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2994         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2995         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2996         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2997         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2998         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3000         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3001         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3002         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3003         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3004         [defined __arch64__ || defined __sparcv9]
3005         (__OFF_T_MATCHES_OFF64_T): New macro.
3006         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3007         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3008         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3009         (__OFF_T_MATCHES_OFF64_T): New macro.
3011 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3013         * stdlib/secure-getenv.c (__secure_getenv): Replace
3014         GLIBC_2_16 with GLIBC_2_17.
3016 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3018         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3019         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3021 2012-08-03  David S. Miller  <davem@davemloft.net>
3023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3025 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3027         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3028         Remove.
3029         (__ASSUME_CORRECT_SI_PID): Likewise.
3030         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3031         (__ASSUME_TMPFS_NAME): Likewise.
3032         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3033         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3034         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3035         (HAVE_AUX_SECURE): Make definition unconditional.
3036         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3037         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3039 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3041         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3042         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3043         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3044         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3045         __eloop_threshold instead of SYMLOOP_MAX.
3047         * sysdeps/generic/eloop-threshold.h: New file.
3048         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3049         of MAXSYMLINKS.
3050         * elf/chroot_canon.c (chroot_canon): Likewise.
3052 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3054         [BZ #13717]
3055         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3056         Change to 2.6.0 everywhere.
3057         * sysdeps/unix/sysv/linux/configure: Regenerated.
3058         * sysdeps/unix/sysv/linux/kernel-features.h
3059         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3060         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3061         kernel versions.
3062         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3063         (__ASSUME_FUTEX_REQUEUE): Remove.
3064         (__ASSUME_STATFS64): Define unconditionally.
3065         (__ASSUME_AT_SECURE): Likewise.
3066         (__ASSUME_CORRECT_SI_PID): Likewise.
3067         (__ASSUME_TGKILL): Define without depending on kernel version for
3068         i386.
3069         (__ASSUME_UTIMES): Likewise.
3070         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3071         kernel version.
3072         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3073         (__ASSUME_TMPFS_NAME): Likewise.
3074         * README: Update reference to Linux kernel versions.
3076 2012-08-02  Marek Polacek  <polacek@redhat.com>
3078         [BZ# 14150]
3079         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3080         libc_cv_asm_type_prefix with %.
3081         * configure: Regenerated.
3082         * include/libc-symbols.h: Remove comment about
3083         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3084         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3085         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3086         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3087         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3088         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3089         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3090         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3091         * elf/tst-unique2mod1.c: Likewise.
3092         * elf/tst-unique1mod2.c: Likewise.
3093         * elf/tst-unique1mod1.c: Likewise.
3094         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3095         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3096         Replace ASM_TYPE_DIRECTIVE with .type.
3097         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3098         * sysdeps/i386/sysdep.h: Likewise.
3099         * sysdeps/x86_64/sysdep.h: Likewise.
3100         * sysdeps/sh/sysdep.h: Likewise.
3101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3102         Do not define ASM_TYPE_DIRECTIVE.
3103         * sysdeps/powerpc/sysdep.h: Likewise.
3104         * sysdeps/powerpc/powerpc32/sysdep.h:
3105         Replace ASM_TYPE_DIRECTIVE with .type.
3106         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3107         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3108         * sysdeps/i386/fpu/e_powf.S: Likewise.
3109         * sysdeps/i386/fpu/e_expl.S: Likewise.
3110         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3111         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3112         * sysdeps/i386/fpu/e_pow.S: Likewise.
3113         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3114         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3115         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3116         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3117         * sysdeps/i386/fpu/e_log2.S: Likewise.
3118         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3119         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3120         * sysdeps/i386/fpu/e_powl.S: Likewise.
3121         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3122         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3123         * sysdeps/i386/fpu/e_logl.S: Likewise.
3124         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3125         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3126         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3127         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3128         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3129         * sysdeps/i386/fpu/e_log.S: Likewise.
3130         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3131         * sysdeps/i386/fpu/e_logf.S: Likewise.
3132         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3133         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3134         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3135         * sysdeps/i386/fpu/e_log10.S: Likewise.
3136         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3137         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3138         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3139         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3140         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3141         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3142         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3143         * sysdeps/i386/i686/strtok.S: Likewise.
3144         * sysdeps/i386/i386-mcount.S: Likewise.
3145         * sysdeps/i386/strtok.S: Likewise.
3146         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3147         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3148         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3149         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3150         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3151         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3152         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3153         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3154         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3155         * sysdeps/x86_64/_mcount.S: Likewise.
3156         * sysdeps/x86_64/strtok.S: Likewise.
3157         * sysdeps/sh/_mcount.S: Likewise.
3159 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3161         * libio/iofopen.c: Include <fcntl.h>.
3162         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3163         (_IO_fopen64, fopen64): Define as aliases.
3164         * libio/iofopen64.c: Include <fcntl.h>.
3165         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3166         Conditionalize body on this.
3167         * sysdeps/wordsize-64/iofopen.c: File removed.
3168         * sysdeps/wordsize-64/iofopen64.c: File removed.
3170 2012-08-01  Marek Polacek  <polacek@redhat.com>
3172         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3173         Use dlfcn directly instead of a variable.
3174         (binfmt-subdir): Do not define.
3175         (dlfcn): Likewise.
3177 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3179         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3180         Remove all definitions.
3181         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3182         <kernel-features.h>.
3183         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3184         (miss_F_GETOWN_EX): Remove all definitions.
3185         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3186         macro definition.
3187         [!__ASSUME_FCNTL64]: Remove conditional code.
3188         [__ASSUME_FCNTL64]: Make code unconditional.
3189         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3190         <kernel-features.h>.
3191         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3192         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3193         (lockf64) [__NR_fcntl64]: Make code unconditional.
3194         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3196         * sysdeps/unix/sysv/linux/kernel-features.h
3197         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3198         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3199         Make code unconditional.
3200         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3201         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3203         [__NR_vfork]: Make code unconditional.
3204         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3205         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3207         [__NR_vfork]: Make code unconditional.
3208         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3209         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3211 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3213         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3214         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3216         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3217         Define mkstemp64 as an alias.
3218         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3219         Define mkstemps64 as an alias.
3220         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3221         Define mkostemp64 as an alias.
3222         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3223         Define mkostemps64 as an alias.
3224         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3225         Conditionalize body on this.
3226         * misc/mkostemp64.c: Likewise.
3227         * misc/mkostemps64.c: Likewise.
3228         * misc/mkstemps64.c: Likewise.
3229         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3230         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3231         * sysdeps/wordsize-64/mkostemp.c: File removed.
3232         * sysdeps/wordsize-64/mkstemp.c: File removed.
3233         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3234         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3235         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3236         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3238         [BZ #14138]
3239         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3240         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3241         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3242         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3244         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3245         compat_symbol macros from <shlib-compat.h> rather than the underlying
3246         default_symbol_version and symbol_version macros, so that DEFAULT
3247         lines in shlib-versions are respected.
3248         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3250 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3252         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3253         Declare with warn_unused_result.
3254         (setgid, setregid, setegid, setresgid): Likewise.
3255         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3256         Likewise.
3257         * WUR-REPORT: Remove set*id functions.
3259 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3261         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3263 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3265         * include/sys/socket.h (__libc_accept, __libc_accept4):
3266         Add attribute_hidden.
3267         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3269         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3270         use of PTR_MANGLE.
3271         * inet/getnetgrent_r.c (setup): Likewise.
3273         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3275 2012-07-31  David S. Miller  <davem@davemloft.net>
3277         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3279 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3281         [BZ #13629]
3282         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3283         value between 1.0 and 2.0 and smaller part has absolute value less
3284         than 1.0.
3285         * math/s_clog10.c (__clog10): Likewise.
3286         * math/s_clog10f.c (__clog10f): Likewise.
3287         * math/s_clog10l.c (__clog10l): Likewise.
3288         * math/s_clogf.c (__clogf): Likewise.
3289         * math/s_clogl.c (__clogl): Likewise.
3290         * math/libm-test.inc (clog_test): Add more tests.
3291         (clog10_test): Likewise.
3292         * sysdeps/i386/fpu/libm-test-ulps: Update.
3293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3295 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3297         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3298         Exit with zero in case no suitable GID is found, and write a
3299         message to standard error.
3301 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3303         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3304         rather than to 1.
3305         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3306         (MAXPATHLEN): Removed.
3307         (NOGROUP, NODEV): New macros.
3308         (setbit, clrbit, isset, isclr): New macros.
3309         (howmany, roundup, powerof2): New macros.
3310         (DEV_BSIZE): New macro.
3312         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3313         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3315         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3316         definition on [!__NO_LONG_DOUBLE_MATH].
3318         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3319         PTR_MANGLE and PTR_DEMANGLE.
3321         * socket/accept4.c (accept4): Rename to __libc_accept4.
3322         Define accept4 as a weak alias.
3324         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3325         on [_DIRENT_HAVE_D_TYPE].
3326         * io/ftw.c (ftw_dir): Likewise.
3328         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3330         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3332         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3333         Use the BSD numbers rather than the arbitrary ones we had.
3334         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3335         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3336         (SIGXCPU, SIGXFSZ): New macros.
3337         (_NSIG): Now 32.
3339         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3340         initializer on [_LIBC_REENTRANT].
3342         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3343         definitions inside [_POSIX_MAPPED_FILES].
3345         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3347         * dirent/opendir.c: Include <fcntl.h>.
3349         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3350         (__libc_getspecific): Likewise.
3351         (__libc_key_create): Likewise.
3353         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3354         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3355         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3356         (tmpfile64): Define as alias.
3357         * sysdeps/wordsize-64/tmpfile.c: File removed.
3358         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3359         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3360         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3362         * stdio-common/vfscanf.c: Include <stdbool.h>.
3363         * nss/makedb.c: Likewise.
3364         * stdio-common/_i18n_number.h: Likewise.
3365         * argp/argp-help.c: Likewise.
3366         * posix/wordexp.c: Likewise.
3367         * sysdeps/posix/spawni.c: Likewise.
3368         * nss/nss_files/files-initgroups.c: Likewise.
3369         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3370         * nss/nss_files/files-initgroups.c: Likewise.
3371         * nss/nss_db/db-netgrp.c: Likewise.
3372         * nss/nss_db/db-initgroups.c: Likewise.
3373         * io/fchmodat.c: Include <sys/stat.h>.
3375         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3376         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3378         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3379         [HAVE_MMAP].
3381         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3382         Add multiple inclusion protection.
3384 2012-07-27  David S. Miller  <davem@davemloft.net>
3386         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3388 2012-07-27  Gary Benson  <gbenson@redhat.com>
3390         [BZ #14298]
3391         * elf/rtld.c: Include <stap-probe.h>.
3392         (dl_main): Added static probes "init_start" and "init_complete".
3393         * elf/dl-load.c: Include <stap-probe.h>.
3394         (lose): Take new parameter "nsid".
3395         Added static probe "map_failed".
3396         (_dl_map_object_from_fd): Pass namespace id to lose.
3397         Added static probe "map_start".
3398         (open_verify): Pass namespace id to lose.
3399         * elf/dl-open.c: Include <stap-probe.h>.
3400         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3401         and "reloc_complete".
3402         * elf/dl-close.c: Include <stap-probe.h>.
3403         (_dl_close_worker): Added static probes "unmap_start" and
3404         "unmap_complete".
3405         * elf/rtld-debugger-interface.txt: New file documenting the above.
3407 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3409         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3410         rather than a string variable.
3411         * sunrpc/rpc_main.c (h_output): Likewise.
3412         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3414 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3416         * inet/check_native.c: New file.
3418 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3420         [BZ #13629]
3421         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3422         if larger part has absolute value 1.0.
3423         * math/s_clog10.c (__clog10): Likewise.
3424         * math/s_clog10f.c (__clog10f): Likewise.
3425         * math/s_clog10l.c (__clog10l): Likewise.
3426         * math/s_clogf.c (__clogf): Likewise.
3427         * math/s_clogl.c (__clogl): Likewise.
3428         * math/libm-test.inc (clog_test): Add more tests.
3429         (clog10_test): Likewise.
3430         * sysdeps/i386/fpu/libm-test-ulps: Update.
3431         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3433         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3434         (pltexit): Likewise.
3435         (La_regs): Likewise.
3436         (La_retval): Likewise.
3437         (int_retval): Likewise.
3438         Update #error for removed macros to refer only to definitions in
3439         tst-audit.h.
3440         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3441         macro.
3442         (pltexit): Likewise.
3443         (La_regs): Likewise.
3444         (La_retval): Likewise.
3445         (int_retval): Likewise.
3446         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3447         macro.
3448         (pltexit): Likewise.
3449         (La_regs): Likewise.
3450         (La_retval): Likewise.
3451         (int_retval): Likewise.
3452         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3453         macro.
3454         (pltexit): Likewise.
3455         (La_regs): Likewise.
3456         (La_retval): Likewise.
3457         (int_retval): Likewise.
3458         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3459         macro.
3460         (pltexit): Likewise.
3461         (La_regs): Likewise.
3462         (La_retval): Likewise.
3463         (int_retval): Likewise.
3464         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3465         macro.
3466         (pltexit): Likewise.
3467         (La_regs): Likewise.
3468         (La_retval): Likewise.
3469         (int_retval): Likewise.
3470         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3471         macro.
3472         (pltexit): Likewise.
3473         (La_regs): Likewise.
3474         (La_retval): Likewise.
3475         (int_retval): Likewise.
3476         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3477         macro definitions in tst-audit.h.
3478         * sysdeps/i386/tst-audit.h: New file.
3479         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3480         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3481         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3482         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3483         * sysdeps/sh/tst-audit.h: Likewise.
3484         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3485         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3486         * sysdeps/x86_64/tst-audit.h: Likewise.
3488 2012-07-26  Andreas Jaeger  <aj@suse.de>
3490         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3491         ptrace.
3493         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3494         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3495         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3496         PTRACE_O_MASK.
3497         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3498         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3499         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3501         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3502         value.
3504         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3505         _sigsys.
3506         (si_call_addr, si_syscall, si_arch): Define new macro.
3507         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3508         _sigsys.
3509         (si_call_addr, si_syscall, si_arch): Define new marcro.
3510         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3511         _sigsys.
3512         (si_call_addr, si_syscall, si_arch): Define new macro.
3513         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3514         _sigsys.
3515         (si_call_addr, si_syscall, si_arch): Define new macro.
3517 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3519         [BZ #13717]
3520         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3521         Change to 2.4.21 where previously 2.4.1.
3522         * sysdeps/unix/sysv/linux/configure: Regenerated.
3523         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3524         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3525         Linux kernel version.
3526         (__ASSUME_STD_AUXV): Remove.
3527         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3528         kernel version.
3529         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3530         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3531         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3532         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3533         (__ASSUME_NETLINK_SUPPORT): Likewise.
3534         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3535         (__no_netlink_support): Remove conditional definition.
3536         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3537         Remove.
3538         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3539         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3540         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3541         (if_nameindex_ioctl): Remove.
3542         (if_nameindex_netlink): Do not handle __no_netlink_support.
3543         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3544         code.
3545         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3546         Remove conditional code.
3547         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3548         code.
3549         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3550         unconditional.
3551         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3552         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3553         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3554         Remove.
3555         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3556         [!__ASSUME_STD_AUXV]: Remove conditional code.
3557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3558         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3559         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3561         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3562         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3563         code.
3564         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3566         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3567         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3568         conditional code.
3569         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3571         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3572         code.
3573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3574         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3575         conditional code.
3576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3577         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3578         code unconditional.
3579         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3580         conditional code.
3581         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3582         unconditional.
3583         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3584         conditional code.
3585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3586         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3587         unconditional.
3588         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3589         conditional code.
3590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3591         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3592         code unconditional.
3593         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3594         conditional code.
3595         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3596         unconditional.
3597         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3598         conditional code.
3599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3600         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3601         code unconditional.
3602         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3603         conditional code.
3604         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3605         unconditional.
3606         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3607         conditional code.
3609 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3611         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3612         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3613         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3614         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3615         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3616         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3617         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3618         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3619         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3620         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3621         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3622         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3623         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3624         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3625         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3626         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3627         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3628         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3629         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3631         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3632         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3633         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3635 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3637         * Versions.def: Add GLIBC_2.17.
3638         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3639         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3640         Introduce __libc_secure_getenv.
3641         * stdlib/Versions (2.17): Add secure_getenv
3642         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3643         * stdlib/secure-getenv.c: Rename __secure_getenv to
3644         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3645         symbol __secure_getenv for GLIBC_2.0.
3646         * stdlib/tst-secure-getenv.c: New.
3647         * stdlib/Makefile (tests): Add testcase.
3648         * manual/startup.texi (Environment Access): Document
3649         secure_getenv.
3650         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3651         __libc_secure_getenv.
3652         * inet/ruserpass.c (ruserpass): Likewise.
3653         * malloc/mtrace.c (mtrace): Likewise.
3654         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3655         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3656         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3657         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3658         HAVE_SECURE_GETENV.
3659         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3660         __secure_getenv to __libc_secure_getenv.
3661         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3663         Likewise.
3664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3665         Likewise.
3666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3667         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3668         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3670         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3671         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3672         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3674 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3676         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3677         (struct La_i86_retval): Likewise.
3678         (struct La_x86_64_regs): Likewise.
3679         (struct La_x86_64_retval): Likewise.
3680         (struct La_x32_regs): Likewise.
3681         (struct La_x32_retval): Likewise.
3682         (struct La_ppc32_regs): Likewise.
3683         (struct La_ppc32_retval): Likewise.
3684         (struct La_ppc64_regs): Likewise.
3685         (struct La_ppc64_retval): Likewise.
3686         (struct La_sh_regs): Likewise.
3687         (struct La_sh_retval): Likewise.
3688         (struct La_s390_32_regs): Likewise.
3689         (struct La_s390_32_retval): Likewise.
3690         (struct La_s390_64_regs): Likewise.
3691         (struct La_s390_64_retval): Likewise.
3692         (struct La_sparc32_regs): Likewise.
3693         (struct La_sparc32_retval): Likewise.
3694         (struct La_sparc64_regs): Likewise.
3695         (struct La_sparc64_retval): Likewise.
3696         (struct audit_ifaces): Remove architecture-specific pltenter and
3697         pltexit members.
3698         * sysdeps/i386/ldsodefs.h: New file.
3699         * sysdeps/powerpc/ldsodefs.h: Likewise.
3700         * sysdeps/s390/ldsodefs.h: Likewise.
3701         * sysdeps/sh/ldsodefs.h: Likewise.
3702         * sysdeps/sparc/ldsodefs.h: Likewise.
3703         * sysdeps/x86_64/ldsodefs.h: Likewise.
3705 2012-07-25  Marek Polacek  <polacek@redhat.com>
3707         [BZ #6808]
3708         * math/libm-test.inc (yn_test): Add another test.
3709         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3710         to ERANGE when the result is +-Inf.
3711         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3712         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3713         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3714         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3716 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3718         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3719         equal to 0.
3720         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3721         clock_t.
3722         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3724 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3726         * configure.in <sysdeps resolving>: Correct printing
3727         Implies_before.
3728         * configure: Regenerate.
3730 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3732         * math/w_ilogb.c: Include <limits.h>.
3733         * math/w_ilogbl.c: Likewise.
3735 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3737         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3738         va_copy.  Document allowing for unavailable va_copy only as
3739         pre-C99 compatibility.
3740         * manual/string.texi (Copying and Concatenation): Use va_copy
3741         instead of __va_copy in concat example.
3743 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3745         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3746         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3747         it if not null.
3749         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3750         with O_NOLINK passed to __file_name_lookup.
3752         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3753         with O_NOLINK passed to __file_name_lookup.
3755         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3756         negative N or less than NGIDS.
3758         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3759         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3760         enough.  Use memcpy instead of strncpy.
3762 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3764         * elf/Makefile (check-data): Remove.
3765         (localplt.data): New vpath directive.
3766         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3767         instead of $(check-data).
3768         * scripts/data/localplt-generic.data: Move to ...
3769         * sysdeps/generic/localplt.data: ... here.
3770         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3771         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3772         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3774         ... here.
3775         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3777         ... here.
3778         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3780         ... here.
3781         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3783         ... here.
3784         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3785         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3786         ... here.
3787         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3789         ... here.
3791 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3793         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3794         PPC32 and PPC64 files.
3795         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3796         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3798 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3800         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3801         __makecontext_ret to ...
3802         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3803         ... here and call exit if uc_link is NULL.  New file.
3804         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3805         __makecontext_ret.S.
3806         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3807         __makecontext_ret to ...
3808         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3809         ... here and call exit if uc_link is NULL.  New file.
3810         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3811         __makecontext_ret.S.
3813 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3815         * elf/elf.h (R_390_IRELATIVE): New definition.
3816         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3817         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3818         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3819         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3820         (elf_machine_lazy_rel): Likewise.
3821         * sysdeps/s390/dl-irel.h: New file.
3822         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3823         * sysdeps/s390/s390-64/memset.S: New asm code.
3824         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3825         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3826         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3827         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3828         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3829         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3830         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3831         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3832         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3833         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3834         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3835         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3836         * sysdeps/s390/s390-32/memset.S: New asm code.
3837         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3839 2012-07-17  Marek Polacek  <polacek@redhat.com>
3841         [BZ #14349]
3842         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3843         * sysdeps/s390/s390-64/configure.in: Likewise.
3844         * sysdeps/sparc/configure.in: Likewise.
3845         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3846         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3847         * sysdeps/i386/configure.in: Likewise.
3848         * sysdeps/x86_64/configure.in: Likewise.
3849         * sysdeps/sh/configure.in: Likewise.
3850         * sysdeps/s390/s390-32/configure: Regenerated.
3851         * sysdeps/s390/s390-64/configure: Likewise.
3852         * sysdeps/x86_64/configure: Likewise.
3853         * sysdeps/sh/configure: Likewise.
3854         * sysdeps/powerpc/powerpc64/configure: Likewise.
3855         * sysdeps/powerpc/powerpc32/configure: Likewise.
3856         * sysdeps/sparc/configure: Likwise.
3857         * sysdeps/i386/configure: Likewise.
3859         * elf/dl-open.c: Comment fixes.
3861 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3863         * Makefile [CXX] (check-data): Remove.
3864         [CXX] (c++-types.data): New vpath directive.
3865         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3866         vpath.  Do not allow for C++ type data being missing.
3867         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3868         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3869         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3870         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3871         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3872         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3873         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3875         ... here.
3876         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3878         ... here.
3879         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3880         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3881         ... here.
3882         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3883         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3884         ... here.
3885         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3886         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3887         ... here.
3888         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3889         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3890         ... here.
3891         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3893         ... here.
3894         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3897         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3898         definitions to architecture-specific files.
3899         (TLS_IE): Likewise.
3900         (TLS_LD): Likewise.
3901         (TLS_GD): Likewise.
3902         * sysdeps/i386/tls-macros.h: New file.
3903         * sysdeps/powerpc/tls-macros.h: Likewise.
3904         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3905         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3906         * sysdeps/sh/tls-macros.h: Likewise.
3907         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3908         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3909         * sysdeps/x86_64/tls-macros.h: Likewise.
3911 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3913         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3914         zero value for regular exit case.
3916         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3917         (__start_context): Preserve zero value for regular exit case.
3919 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3920             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3922         * manual/setjmp.texi (setcontext): Clarify normal process
3923         termination when uc_link is the null pointer.
3924         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3925         exit call.
3927 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3929         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3930         preprocessor.  Test for each exception mask separately.
3932 2012-07-16  Andreas Jaeger  <aj@suse.de>
3934         * po/ru.po: Update from translation team.
3936 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3938         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3939         equal to 0.
3940         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3941         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3942         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3943         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3944         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3946 2012-07-13  Andreas Jaeger  <aj@suse.de>
3948         * po/fr.po: Update from translation team.
3950 2012-07-12  Marek Polacek  <polacek@redhat.com>
3952         [BZ #14173]
3953         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3954         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3955         loop condition.
3957 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3959         [BZ #13717]
3960         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3961         Change to 2.4.1 where previously 2.4.0.
3962         * sysdeps/unix/sysv/linux/configure: Regenerated.
3963         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3964         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3965         version.
3966         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3967         (__ASSUME_AT_CLKTCK): Remove.
3968         (__ASSUME_AT_PAGESIZE): Likewise.
3969         (__ASSUME_AT_XID): Likewise.
3970         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3971         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3972         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3973         unconditionally.
3974         (HAVE_AUX_PAGESIZE): Likewise.
3975         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3976         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3977         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3979 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3981         [BZ #14307]
3982         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3983         the temporary buffer used to invoke __gethostbyname2_r,
3984         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3985         host_data / struct gaih_addrtuple.
3986         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3987         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3988         header file nss/nsswitch.h.
3989         * nss/nsswitch.h (global scope): Add definition of implementation
3990         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3991         resolv/nss_dns/dns-host.c).
3993 2012-07-11  Andreas Jaeger  <aj@suse.de>
3995         * po/fr.po: Update from translation team.
3997         * po/sv.po: Update from translation team
3998         * po/fr.po: Another update from translation team.
4000 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4002         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4003         for subnormals or multiply small sinh result by itself.
4004         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4005         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4007 2012-07-11  David S. Miller  <davem@davemloft.net>
4009         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4011 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4013         [BZ #14347]
4014         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4015         (INTERNAL_MARK): Shift it here.
4017 2012-07-10  Marek Polacek  <polacek@redhat.com>
4019         [BZ #14151]
4020         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4021         libc_cv_asm_global_directive with .globl.
4022         * configure: Regenerated.
4023         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4024         with .globl.
4025         * sysdeps/i386/configure: Regenerated.
4026         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4027         with .globl.
4028         * sysdeps/x86_64/configure: Regenerated.
4029         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4030         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4031         * elf/tst-unique2mod2.c: Likewise.
4032         * elf/tst-unique2mod1.c: Likewise.
4033         * elf/tst-unique1mod2.c: Likewise.
4034         * elf/tst-unique1mod1.c: Likewise.
4035         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4036         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4037         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4038         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4039         * sysdeps/mach/sysdep.h: Likewise.
4040         * sysdeps/i386/sysdep.h: Likewise.
4041         * sysdeps/i386/i386-mcount.S: Likewise.
4042         * sysdeps/x86_64/_mcount.S: Likewise.
4043         * sysdeps/x86_64/sysdep.h: Likewise.
4044         * sysdeps/sh/_mcount.S: Likewise.
4045         * sysdeps/sh/sysdep.h: Likewise.
4046         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4047         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4048         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4049         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4050         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4051         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4052         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4053         * locale/localeinfo.h: Likewise.
4054         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4055         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4057 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4059         [BZ #14336]
4060         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4061         system".
4062         * manual/message.texi (The Uniforum approach): Likewise.
4063         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4064         (glibc iconv Implementation): Likewise.
4066 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4068         [BZ #14337]
4069         * math/s_clog.c (__clog): Avoid scaling a value down where that
4070         could result in underflow.
4071         * math/s_clog10.c (__clog10): Likewise.
4072         * math/s_clog10f.c (__clog10f): Likewise.
4073         * math/s_clog10l.c (__clog10l): Likewise.
4074         * math/s_clogf.c (__clogf): Likewise.
4075         * math/s_clogl.c (__clogl): Likewise.
4076         * math/libm-test.inc (clog_test): Add more tests.
4077         (clog10_test): Likewise.
4078         * sysdeps/i386/fpu/libm-test-ulps: Update.
4079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4081 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4083         [BZ #14283]
4084         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4085         by 7 not 8 to examine high bit of fractional part.
4087         [BZ #14042]
4088         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4089         for call to __mcount_internal.
4090         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4091         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4092         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4094 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4096         [BZ #14154]
4097         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4098         approximation for values within 0x1p-13f of an odd multiple of
4099         pi/4.
4100         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4101         exception.  Add more tests.
4102         * sysdeps/i386/fpu/libm-test-ulps: Update.
4104         [BZ #6778]
4105         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4106         inputs and return -1 for them.  Do not check for +Inf in case not
4107         reachable for +Inf.
4108         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4109         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4110         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4111         and return -1 for them.  Do not check for +Inf in case not
4112         reachable for +Inf.
4113         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4114         define.
4115         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4116         and return -1 for them.  Do not check for +Inf in case not
4117         reachable for +Inf.
4118         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4119         spurious underflow.
4120         * sysdeps/i386/fpu/libm-test-ulps: Update.
4121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4123 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4125         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4127 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4129         [BZ #14157]
4130         [BZ #14331]
4131         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4132         could result in spurious underflow.  Scale down values above
4133         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4134         * math/s_csqrtf.c (__csqrtf): Likewise.
4135         * math/s_csqrtl.c (__csqrtl): Likewise.
4136         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4137         spurious underflow.
4138         * sysdeps/i386/fpu/libm-test-ulps: Update.
4139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4141 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4143         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4144         xopen-msg.sed.
4145         * catgets/xopen-msg.awk: New file.
4146         * catgets/xopen-msg.sed: Removed.
4148         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4149         po2text.sed.
4150         * intl/po2test.awk: New file.
4151         * intl/po2test.sed: Removed.
4153 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4155         [BZ #14328]
4156         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4157         or multiply small sinh result by itself.
4158         * math/s_ctanf.c (__ctanf): Likewise.
4159         * math/s_ctanh.c (__ctanh): Likewise.
4160         * math/s_ctanhf.c (__ctanhf): Likewise.
4161         * math/s_ctanhl.c (__ctanhl): Likewise.
4162         * math/s_ctanl.c (__ctanl): Likewise.
4163         * math/libm-test.inc (ctan_test_tonearest): New function.
4164         (ctan_test_towardzero): Likewise.
4165         (ctan_test_downward): Likewise.
4166         (ctan_test_upward): Likewise.
4167         (ctanh_test_tonearest): Likewise.
4168         (ctanh_test_towardzero): Likewise.
4169         (ctanh_test_downward): Likewise.
4170         (ctanh_test_upward): Likewise.
4171         (main): Call these new functions.
4172         * sysdeps/i386/fpu/libm-test-ulps: Update.
4173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4175 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4177         * .gitignore: Delete /ports entry.
4179 2012-07-03  Andreas Jaeger  <aj@suse.de>
4181         * po/bg.po: Update from translation team.
4182         * po/cs.po: Likewise.
4183         * po/de.po: Likewise.
4184         * po/hr.po: Likewise.
4185         * po/nl.pl: Likewise.
4186         * po/pl.po: Likewise.
4187         * po/vi.po: Likewise.
4189 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4191         * Makeconfig [!+link] (+link-before-libc): New variable.
4192         [!+link] (+link-after-libc): Likewise.
4193         [!+link] (+link-tests): Likewise.
4194         [!+link] (+link): Define in terms of $(+link-before-libc) and
4195         $(+link-after-libc).
4196         [!+link-static] (+link-static-before-libc): New variable.
4197         [!+link-static] (+link-static-after-libc): Likewise.
4198         [!+link-static] (+link-static-tests): Likewise.
4199         [!+link-static] (+link-static): Define in terms of
4200         $(+link-static-before-libc) and $(+link-static-after-libc).
4201         [build-shared] (link-libc-before-gnulib): New variable.
4202         [build-shared] (link-libc-tests): Likewise.
4203         [build-shared] (link-libc): Define in terms of
4204         $(link-libc-before-gnulib).
4205         [!build-shared] (link-libc-tests): New variable.
4206         (link-libc-static-tests): New variable.
4207         [!gnulib] (gnulib-arch): New variable.
4208         [!gnulib] (gnulib-tests): Likewise.
4209         [!gnulib] (static-gnulib-arch): Likewise.
4210         [!gnulib] (static-gnulib-tests): Likewise.
4211         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4212         Define with "=" instead of ":=".
4213         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4214         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4215         * Rules (binaries-all-notests): New variable.
4216         (binaries-all-tests): Likewise.
4217         (binaries-static-notests): Likewise.
4218         (binaries-static-tests): Likewise.
4219         (binaries-all): Define using $(binaries-all-notests) and
4220         $(binaries-all-tests).
4221         (binaries-static): Define using $(binaries-static-notests) and
4222         $(binaries-static-tests).
4223         (binaries-shared-tests): New variable.
4224         (binaries-shared-notests): Likewise.
4225         (binaries-shared): Remove variable.
4226         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4227         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4228         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4229         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4230         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4231         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4232         * elf/Makefile (sln-modules): New variable.
4233         (extra-objs): Add $(sln-modules:=.o).
4234         (ldconfig-modules): Add static-stubs.
4235         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4236         * elf/static-stubs.c: New file.
4238         [BZ #14283]
4239         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4240         by 7 not 8 to examine high bit of fractional part.  Use volatile
4241         variables when splitting into final array of floats if
4242         __FLT_EVAL_METHOD__ != 0.
4243         * math/libm-test.inc (cos_test): Add another test.
4244         (sin_test): Likewise.
4245         * sysdeps/i386/fpu/libm-test-ulps: Update.
4247         [BZ #14273]
4248         * math/libm-test.inc (cosh_test): Add more tests.
4250         * version.h (RELEASE): Set to "development".
4251         (VERSION): Set to "2.16.90".
4253 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4255         * NEWS: Update copyright. Remove last-updated date.
4256         Mention math library bug fixes and timezone data changes.
4257         * README: Mention GNU/Hurd, x32, and HPPA support status.
4259 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4261         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4263 2012-06-27  Andreas Jaeger  <aj@suse.de>
4265         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4267 2012-06-25  Andreas Jaeger  <aj@suse.de>
4269         * sysdeps/s390/fpu/libm-test-ulps: Update.
4271 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4272             Thomas Schwinge  <thomas@codesourcery.com>
4274         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4275         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4276         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4277         fanotify_mark.
4279 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4281         * sysdeps/mach/start.c: Remove file.
4282         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4283         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4284         * sysdeps/sh/init-first.c: Likewise.
4286         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4287         registers for frame unwinding purposes, add CFI directives.
4288         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4289         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4290         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4291         Likewise.
4293         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4294         __fortify_fail returning.
4295         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4297         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4298         sysdeps/sh/____longjmp_chk.S.
4299         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4300         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4301         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4302         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4304         * sysdeps/sh/abort-instr.h: New file.
4305         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4306         process in case exit returns.
4308         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4309         initialize the GOT register before use.
4311         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4312         calculation of ARGC > 4.
4314         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4315         meaningful names to some local labels.
4317 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4318             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4320         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4321         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4322         (__arch_compare_and_exchange_val_16_acq): Likewise.
4323         (__arch_compare_and_exchange_val_32_acq): Likewise.
4324         (atomic_exchange_and_add): Fix gUSA sequence.
4325         (atomic_add): Likewise.
4326         (atomic_add_negative): Likewise.
4327         (atomic_add_zero): Likewise.
4328         (atomic_bit_test_set): Likewise.
4330 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4332         [BZ #13579]
4333         * include/link.h (struct link_map): Add l_free_initfini.
4334         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4335         l_initfini.
4336         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4337         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4338         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4339         set.
4341 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4343         * configure.in: Use AC_LANG_SOURCE.
4344         * configure: Regenerate.
4346 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4348         * configure.in (libc_cv_localstatedir): New substituted variable.
4349         * configure: Regenerated.
4350         * config.make.in (localstatedir): New variable, substituted from
4351         libc_cv_localstatedir.
4352         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4353         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4354         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4355         * sysdeps/gnu/configure: Regenerated.
4357 2012-06-21  Jeff Law  <law@redhat.com>
4359         [BZ #14277]
4360         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4361         free.  Simplify list management for _LIBC case.
4363 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4365         [BZ #14273]
4366         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4367         Clear sign bit of 64-bit integer value before comparing against
4368         overflow value.
4370         * sysdeps/mach/configure: Regenerated.
4372 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4374         [BZ #14278]
4375         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4377 2012-06-21  Jeff Law  <law@redhat.com>
4379         [BZ #13882]
4380         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4381         uint16_t for elements in the "seen" array to avoid char overflows.
4382         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4383         * elf/dl-open.c (dl_open_worker): Likewise.
4385 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4387         * scripts/list-sources.sh: Scan PORTS for translations.
4388         * po/libc.pot: Regenerated.
4390 2012-06-21  Andreas Jaeger  <aj@suse.de>
4392         [BZ #12194]
4393         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4394         warning.
4395         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4396         * bits/byteswap-16.h (__bswap_16): Likewise.
4397         * bits/byteswap.h (__bswap_constant_16): Likewise.
4399 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4401         [BZ #14117]
4402         * sysdeps/i386/fpu_control.h: Removed.
4403         * sysdeps/x86_64/fpu_control.h: Moved to ...
4404         * sysdeps/x86/fpu_control.h: Here.
4406         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4407         (_FPU_SETCW): Likewise.
4409 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4411         [BZ #14117]
4412         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4413         * sysdeps/x86/fpu/bits/mathinline.h: This.
4414         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4416         [BZ #14050]
4417         [BZ #14117]
4418         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4419         functions if __x86_64__ is defined.
4421 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4423         * string/endian.h: Add !__ASSEMBLER__ condition for including
4424         conversion interfaces.
4426 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4428         [BZ #14241]
4429         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4430         of ABS(x) in calculating zero to negative powers other than odd
4431         integers.
4432         * math/libm-test.inc (pow_test): Add more tests.
4434 2012-06-15  Andreas Jaeger  <aj@suse.de>
4436         * manual/contrib.texi (Contributors): Update entry of Liubov
4437         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4438         Machado Filho.
4440 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4442         * string/string.h: Add __wur to GNU version of strerror_r.
4444 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4446         [BZ #14229]
4447         * string/Makefile (tests): Add tst-strtok_r.
4448         * string/tst-strtok_r.c: New file.
4449         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4450         RAX_LP/RDX_LP on SAVE_PTR.
4452 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4454         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4456 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4458         * libm_test.inc (csqrt_test): Allow more spurious underflow
4459         exceptions.
4460         (j0_test): Likewise.
4461         (j1_test): Likewise.
4462         (y0_test): Likewise.
4463         (y1_test): Likewise.
4465 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4467         * po/Makefile (libc.pot): Use UTF-8 charset.
4469 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4471         [BZ #14210]
4472         Suppress sign-conversion warning from FD_SET.
4473         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4474         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4475         not unsigned long int.
4476         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4478 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4480         [BZ #14050]
4481         [BZ #14117]
4482         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4483         __extern_always_inline instead of __extern_inline.
4484         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4485         (__signbit): Likewise.
4486         (__signbitl): Support C++ namespace.
4487         (lrintf): New inline function.
4488         (lrint): Likewise.
4489         (llrintf): Likewise.
4490         (llrint): Likewise.
4491         (fmaxf): Likewise.
4492         (fmax): Likewise.
4493         (fminf): Likewise.
4494         (fmin): Likewise.
4495         (rint): Likewise.
4496         (rintf): Likewise.
4497         (ceil): Likewise.
4498         (ceilf): Likewise.
4499         (floor): Likewise.
4500         (floorf): Likewise.
4501         (nearbyint): Likewise.
4502         (nearbyintf): Likewise.
4504 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4506         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4507         non-default versions.
4509 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4511         [BZ #14218]
4512         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4514 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4516         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4517         (FE_UPWARD, FE_DOWNWARD): Don't define.
4518         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4519         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4521         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4522         reading it.
4523         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4524         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4526 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4528         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4529         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4530         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4531         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4533 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4535         [BZ #14117]
4536         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4537         * sysdeps/i386/fpu/Implies: New file.
4538         * sysdeps/x86_64/fpu/Implies: Likewise.
4539         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4540         * sysdeps/x86/fpu/bits/fenv.h: This.
4542         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4543         __SSE_MATH__.
4545 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4547         [BZ #14134]
4548         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4549         character 0xffff that matches the last element of the
4550         conversion table.
4552 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4554         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4555         fmodl commit.
4557 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4559         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4560         values higher than 25.6283.
4562 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4564         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4565         subnormal exponent extraction and add some __builtin_expect.
4566         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4567         Fix for subnormal mantissa calculation.
4569 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4571         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4572         cpu2 is -1 and errno is not ENOSYS.
4574 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4576         [BZ #14117]
4577         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4578         * sysdeps/x86/bits/string.h: This.
4579         * sysdeps/x86_64/bits/string.h: Removed.
4581         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4582         if not compiling for x86-64, but compiling for >= i486.
4584         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4585         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4587         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4588         New macro from Linux kernel 3.4.0.
4589         (FP_XSTATE_MAGIC2): Likewise.
4590         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4591         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4592         (struct _fpx_sw_bytes): New struct.
4593         (struct _xsave_hdr): Likewise.
4594         (struct _ymmh_state): Likewise.
4595         (struct _xstate): Likewise.
4597         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4598         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4599         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4600         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4601         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4602         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4604         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4605         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4606         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4607         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4608         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4609         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4611 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4613         [BZ #13743]
4614         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4615         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4616         (sysdep_headers): Include sys/platform/ppc.h.
4617         * sysdeps/powerpc/test-gettimebase.c: Test for
4618         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4619         * manual/Makefile (appendices): Include platform.texi.
4620         * manual/contrib.texi (Contributors): Update @node pointers.
4621         * manual/maint.texi (Maintenance): Likewise.
4622         (Platform): New node.
4623         * manual/platform.texi: New file.  Document the new features.
4625 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4626             Jakub Jelinek  <jakub@redhat.com>
4628         [BZ #14188]
4629         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4630         where __builtin_expect is unavailable.
4632 2012-06-03  David S. Miller  <davem@davemloft.net>
4634         * stdlib/longlong.h: Updated from GCC.
4636 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4638         [BZ #14042]
4639         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4640         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4641         __mcount_internal.
4642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4643         (GLIBC_2.16): Likewise.
4645 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4647         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4649 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4652         (default-abi): New variable.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4654         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4655         variable.
4656         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4657         Likewise.
4658         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4659         Likewise.
4660         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4661         Likewise.
4663         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4664         definition.  Document in comment.
4666 2012-06-01  David S. Miller  <davem@davemloft.net>
4668         * stdlib/longlong.h: Updated from GCC.
4670 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4672         [BZ #14117]
4673         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4674         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4675         sys/debugreg.h sys/io.h here.
4676         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4677         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4678         sys/io.h.
4679         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4680         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4681         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4682         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4683         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4684         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4686         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4687         Define only if __x86_64__ is defined.
4689 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4691         [BZ #14048]
4692         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4693         Use int64_t for variable i.
4694         * math/libm-test.inc (fmod_test): Add more tests.
4696         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4697         z computation is not scheduled after fetestexcept.
4698         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4699         Use math_force_eval instead of asm to ensure calculation scheduled
4700         before exception test.
4701         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4702         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4704 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4706         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4707         computation is not scheduled after fetestexcept.
4709 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4711         [BZ #14117]
4712         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4713         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4715 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4717         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4718         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4720 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4722         [BZ #14117]
4723         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4724         <bits/wordsize.h>.
4725         (__WCHAR_MIN): Support __WORDSIZE == 64.
4726         (__WCHAR_MAX): Likewise.
4728         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4729         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4731         [BZ #14183]
4732         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4733         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4735         [BZ #14117]
4736         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4737         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4739         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4740         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4742         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4743         Defined to 1 if __x86_64__ isn't defined.
4744         (_STAT_VER_LINUX_OLD): New.
4745         (st_atime): Remove duplicate.
4746         (st_mtime): Likewise.
4747         (st_ctime): Likewise.
4749 2012-05-31  David S. Miller  <davem@davemloft.net>
4751         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4752         entries.
4754 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4756         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4757         gen-libm-test.pl.
4759         [BZ #14132]
4760         * elf/dl-reloc.c: Include <_itoa.h>.
4761         (_dl_reloc_bad_type): Remove use of INTUSE.
4762         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4763         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4764         * stdio-common/psiginfo.c (psiginfo): Likewise.
4765         * stdio-common/psignal.c (psignal): Likewise.
4766         * string/strsignal.c (strsignal): Likewise.
4767         * include/signal.h (_sys_siglist): Declare hidden proto.
4768         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4769         INTVARDEF with libc_hidden_data_def.
4770         * stdio-common/itoa-udigits.c: Likewise.
4771         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4772         (_itoa_lower_digits_internal): Remove declaration.
4773         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4774         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4775         (_sys_sigabbrev_internal): Remove aliases.
4776         (_sys_siglist): Define hidden alias.
4778 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4780         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4781         bits/sysctl.h.
4783 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4785         [BZ #14117]
4786         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4787         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4789         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4790         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4791         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4792         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4793         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4794         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4796         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4797         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4798         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4800         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4801         with __addr.
4802         (insw): Likewise.
4803         (insl): Likewise.
4804         (outsb): Likewise.
4805         (outsw): Likewise.
4806         (outsl): Likewise.
4808         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4809         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4810         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4812         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4813         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4814         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4815         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4816         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4817         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4819         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4820         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4822         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4823         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4825         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4826         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4827         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4829         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4830         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4831         to ...
4832         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4834         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4835         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4836         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4838         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4839         for x86-64.
4840         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4842 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4844         * math/math.h (M_El): Use two more decimal places.
4845         (M_LOG2El): Likewise.
4846         (M_LOG10El): Likewise.
4847         (M_LN2l): Likewise.
4848         (M_LN10l): Likewise.
4849         (M_PIl): Likewise.
4850         (M_PI_2l): Likewise.
4851         (M_PI_4l): Likewise.
4852         (M_1_PIl): Likewise.
4853         (M_2_PIl): Likewise.
4854         (M_2_SQRTPIl): Likewise.
4855         (M_SQRT2l): Likewise.
4856         (M_SQRT1_2l): Likewise.
4858 2012-05-31  David S. Miller  <davem@davemloft.net>
4860         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4861         values between float registers.
4862         * sysdeps/sparc/sparc64/memset.S: Likewise.
4863         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4865 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4867         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4868         -D_FORTIFY_SOURCE=1.
4869         (CPPFLAGS-tst-longjmp_chk.c): Define.
4870         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4871         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4872         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4873         CFLAGS-tst-wchar-h.c.
4875 2012-05-31  Marek Polacek  <polacek@redhat.com>
4877         [BZ #14132]
4878         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4879         __endmntent_internal): Remove declaration.
4880         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4881         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4882         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4884 2012-05-30  David S. Miller  <davem@davemloft.net>
4886         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4887         (___Q_simulate_exceptions): Use real FP ops rather than writing
4888         into the %fsr.
4889         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4890         Likewise.
4892 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4894         [BZ #14117]
4895         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4896         * sysdeps/x86/bits/xtitypes.h: This.
4898         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4899         * sysdeps/x86/bits/wordsize.h: This.
4901         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4902         * sysdeps/x86/bits/huge_vall.h: This.
4904         * sysdeps/i386/bits/select.h: Removed.
4905         * sysdeps/x86_64/bits/select.h: Renamed to ...
4906         * sysdeps/x86/bits/select.h: This.
4908         * sysdeps/i386/bits/setjmp.h: Removed.
4909         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4910         * sysdeps/x86/bits/setjmp.h: This.
4912         * sysdeps/i386/bits/mathdef.h: Removed.
4913         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4914         * sysdeps/x86/bits/mathdef.h: This.
4916 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4918         [BZ #14132]
4919         * include/sys/socket.h (__connect_internal)
4920         (__libc_sa_len_internal): Remove declaration.
4921         (__connect, __libc_sa_len): Declare hidden_proto.
4922         (SA_LEN): Remove use of INTUSE.
4923         * socket/connect.c: Add libc_hidden_def.
4924         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4925         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4926         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4927         alias.
4928         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4929         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4930         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4931         of adding _internal alias.
4933 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4935         [BZ #14117]
4936         * sysdeps/i386/bits/link.h: Removed.
4937         * sysdeps/i386/bits/linkmap.h: Likewise.
4938         * sysdeps/x86_64/bits/link.h: Renamed to ...
4939         * sysdeps/x86/bits/link.h: This.
4940         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4941         * sysdeps/x86/bits/linkmap.h: This.
4943         * sysdeps/i386/bits/endian.h: Removed.
4944         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4945         * sysdeps/x86/bits/endian.h: This.
4947         * sysdeps/i386/bits/byteswap.h: Removed.
4948         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4949         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4950         * sysdeps/x86/bits/byteswap.h: This.
4951         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4952         * sysdeps/x86/bits/byteswap-16.h: This.
4953         * sysdeps/i386/Implies: Add x86.
4954         * sysdeps/x86_64/Implies: Likewise.
4956 2012-05-30  David S. Miller  <davem@davemloft.net>
4958         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4959         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4960         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4961         (FP_TRAPPING_EXCEPTIONS): Define.
4962         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4963         (FP_TRAPPING_EXCEPTIONS): Define.
4964         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4965         subnormals only when inexact has been signalled or underflow
4966         exceptions are enabled.
4967         (_FP_PACK_CANONICAL): Likewise.
4969 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4971         [BZ #14183]
4972         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4973         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4975 2012-05-30  Richard Henderson  <rth@twiddle.net>
4977         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4978         with #ifndef NOT_IN_libc.
4980         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4981         marked to avoid plt entry.
4983 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4985         [BZ #14112]
4986         * Makeconfig (default-abi): New macro.
4987         (abi-includes): Likewise.
4988         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4989         $(abi-$(default-abi)-lib-soname) for soname if defined.
4990         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4991         abi-variants.
4992         * Makefile (installed-stubs): Likewise.
4993         * include/stubs-biarch.h: Removed.
4994         * scripts/lib-names.awk: Only handle one library at a time.
4995         * scripts/soversions.awk: Remove WORDSIZE support.
4996         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4997         entries.
4998         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4999         Removed.
5000         (syscall-list-default-condition): Likewise.
5001         (syscall-list-default-condition): Likewise.
5002         (syscall-list-includes): Likewise.
5003         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5004         syscall-list-* with abi-*.  Handle undefined abi-variants.
5005         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5006         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5007         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5008         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5009         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5010         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5011         Removed.
5012         (syscall-list-32-options): Likewise.
5013         (syscall-list-32-condition): Likewise.
5014         (syscall-list-64-options): Likewise.
5015         (syscall-list-64-condition): Likewise.
5016         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5017         macro.
5018         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5019         Renamed to ...
5020         (abi-*): This.
5021         (abi-64-ld-soname): New macro.
5022         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5023         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5024         Renamed to ...
5025         (abi-*): This.
5026         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5027         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5029 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5031         * sysdeps/unix/sysv/linux/kernel-features.h
5032         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5033         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5034         include <kernel-features.h>.
5035         [!__NR_ftruncate64]: Remove conditional code.
5036         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5037         [__NR_ftruncate64]: Make code unconditional.
5038         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5039         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5040         include <kernel-features.h>.
5041         [!__NR_ftruncate64]: Remove conditional code.
5042         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5043         [__NR_ftruncate64]: Make code unconditional.
5044         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5046         include <kernel-features.h>.
5047         [!__NR_ftruncate64]: Remove conditional code.
5048         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5049         [__NR_ftruncate64]: Make code unconditional.
5050         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5052         include <kernel-features.h>.
5053         [!__NR_ftruncate64]: Remove conditional code.
5054         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5055         [__NR_ftruncate64]: Make code unconditional.
5056         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5058         * configure.in (libc_cv_fpie): Weaken to a compile test using
5059         LIBC_TRY_CC_OPTION.
5060         * configure: Regenerated.
5062 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5067         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5068         Refreshed.
5069         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5071         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5072         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5073         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5074         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5075         Refreshed.
5077 2012-05-27  David S. Miller  <davem@davemloft.net>
5079         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5080         (___Q_zero): New.
5081         (__Q_simulate_exceptions): Return void.  Change to simulate
5082         exceptions by writing into the %fsr.
5083         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5084         (__Qp_handle_exceptions): Likewise.
5085         (numbers): Delete.
5086         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5087         __Qp_handle_exceptions.
5088         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5089         __Qp_handle_exceptions.
5090         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5091         as unused and give dummy FP_RND_NEAREST initializer.
5092         (FP_INHIBIT_RESULTS): Define.
5093         (___Q_simulate_exceptions): Update declaration.
5094         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5095         formatting.
5096         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5097         as unused and give dummy FP_RND_NEAREST initializer.
5098         (__Qp_handle_exceptions): Update declaration.
5099         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5100         formatting.
5102 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5104         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5105         the temporary FPU control word.
5106         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5107         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5108         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5109         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5110         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5111         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5112         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5113         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5114         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5115         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5116         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5118 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5120         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5121         fields.
5123 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5125         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5126         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5127         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5128         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5129         Likewise.
5130         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5131         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5132         Likewise.
5134 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5136         * po/h.po: Update from translation team.
5138 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5140         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5142         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5143         handling of denormals.
5144         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5145         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5146         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5147         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5148         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5149         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5150         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5151         Likewise.
5153 2012-05-26  Marek Polacek  <polacek@redhat.com>
5155         [BZ #14152]
5156         * math/libm-test.inc (fma_test): Don't always expect underflow
5157         exception.
5159 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5161         [BZ #12416]
5162         * elf/tst-execstack.c: Include stackinfo.h.
5163         (do_test): Adjust test case to ensure that pthread_getattr_np
5164         behaviour remains the same after marking stack executable.
5166 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5168         * sysdeps/unix/sysv/linux/kernel-features.h
5169         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5170         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5171         kernel-features.h.
5172         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5173         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5174         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5175         kernel-features.h.
5176         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5177         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5179 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5181         * configure.in: Define the default includes to being none.
5182         * configure: Regenerated.
5184 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5186         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5187         * sysdeps/x86_64/setjmp.S: Likewise.
5188         * sysdeps/i386/bsd-setjmp.S: Likewise.
5189         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5190         * sysdeps/i386/setjmp.S: Likewise.
5191         * sysdeps/i386/__longjmp.S: Likewise.
5192         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5193         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5195         * include/stap-probe.h: New file.
5196         * configure.in: Handle --enable-systemtap.
5197         * configure: Regenerated.
5198         * config.h.in (USE_STAP_PROBE): New #undef.
5199         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5200         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5201         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5203 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5205         [BZ #13717]
5206         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5207         to 2.4.0 where earlier.
5208         * sysdeps/unix/sysv/linux/configure: Regenerated.
5209         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5210         <kernel-features.h>.
5211         [__ASSUME_32BITUIDS]: Make code unconditional.
5212         [!__ASSUME_32BITUIDS]: Remove conditional code.
5213         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5214         <kernel-features.h>.
5215         [__ASSUME_32BITUIDS]: Make code unconditional.
5216         [!__ASSUME_32BITUIDS]: Remove conditional code.
5217         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5218         [__ASSUME_32BITUIDS]: Make code unconditional.
5219         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5220         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5221         <kernel-features.h>.
5222         [__ASSUME_32BITUIDS]: Make code unconditional.
5223         [!__ASSUME_32BITUIDS]: Remove conditional code.
5224         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5225         <kernel-features.h>.
5226         [__ASSUME_32BITUIDS]: Make code unconditional.
5227         [!__ASSUME_32BITUIDS]: Remove conditional code.
5228         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5229         <kernel-features.h>.
5230         [__ASSUME_32BITUIDS]: Make code unconditional.
5231         [!__ASSUME_32BITUIDS]: Remove conditional code.
5232         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5233         <kernel-features.h>.
5234         [__ASSUME_32BITUIDS]: Make code unconditional.
5235         [!__ASSUME_32BITUIDS]: Remove conditional code.
5236         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5237         <kernel-features.h>.
5238         [__ASSUME_32BITUIDS]: Make code unconditional.
5239         [!__ASSUME_32BITUIDS]: Remove conditional code.
5240         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5241         <kernel-features.h>.
5242         [__ASSUME_32BITUIDS]: Make code unconditional.
5243         [!__ASSUME_32BITUIDS]: Remove conditional code.
5244         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5245         <kernel-features.h>.
5246         [__ASSUME_32BITUIDS]: Make code unconditional.
5247         [!__ASSUME_32BITUIDS]: Remove conditional code.
5248         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5249         <kernel-features.h>.
5250         [__ASSUME_32BITUIDS]: Make code unconditional.
5251         [!__ASSUME_32BITUIDS]: Remove conditional code.
5252         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5253         <kernel-features.h>.
5254         [__ASSUME_32BITUIDS]: Make code unconditional.
5255         [!__ASSUME_32BITUIDS]: Remove conditional code.
5256         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5257         <kernel-features.h>.
5258         [__ASSUME_32BITUIDS]: Make code unconditional.
5259         [!__ASSUME_32BITUIDS]: Remove conditional code.
5260         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5261         <kernel-features.h>.
5262         [__NR_setresgid] (__setresgid): Do not declare.
5263         [__ASSUME_32BITUIDS]: Make code unconditional.
5264         [!__ASSUME_32BITUIDS]: Remove conditional code.
5265         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5266         <kernel-features.h>.
5267         [__NR_setresuid] (__setresuid): Do not declare.
5268         [__ASSUME_32BITUIDS]: Make code unconditional.
5269         [!__ASSUME_32BITUIDS]: Remove conditional code.
5270         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5271         <kernel-features.h>.
5272         [__ASSUME_32BITUIDS]: Make code unconditional.
5273         [!__ASSUME_32BITUIDS]: Remove conditional code.
5274         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5275         <kernel-features.h>.
5276         [__ASSUME_32BITUIDS]: Make code unconditional.
5277         [!__ASSUME_32BITUIDS]: Remove conditional code.
5278         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5279         <kernel-features.h>.
5280         [__ASSUME_32BITUIDS]: Make code unconditional.
5281         [!__ASSUME_32BITUIDS]: Remove conditional code.
5282         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5283         <kernel-features.h>.
5284         [__ASSUME_32BITUIDS]: Make code unconditional.
5285         [!__ASSUME_32BITUIDS]: Remove conditional code.
5286         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5287         <kernel-features.h>.
5288         [__ASSUME_32BITUIDS]: Make code unconditional.
5289         [!__ASSUME_32BITUIDS]: Remove conditional code.
5290         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5291         <kernel-features.h>.
5292         [__ASSUME_32BITUIDS]: Make code unconditional.
5293         [!__ASSUME_32BITUIDS]: Remove conditional code.
5294         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5295         <kernel-features.h>.
5296         [__ASSUME_32BITUIDS]: Make code unconditional.
5297         [!__ASSUME_32BITUIDS]: Remove conditional code.
5298         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5299         <kernel-features.h>.
5300         [__ASSUME_32BITUIDS]: Make code unconditional.
5301         [!__ASSUME_32BITUIDS]: Remove conditional code.
5302         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5303         <kernel-features.h>.
5304         [__ASSUME_32BITUIDS]: Make code unconditional.
5305         [!__ASSUME_32BITUIDS]: Remove conditional code.
5306         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5307         <kernel-features.h>.
5308         [__ASSUME_32BITUIDS]: Make code unconditional.
5309         [!__ASSUME_32BITUIDS]: Remove conditional code.
5310         * sysdeps/unix/sysv/linux/kernel-features.h
5311         (__ASSUME_SETRESUID_SYSCALL): Remove.
5312         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5313         (__ASSUME_32BITUIDS): Likewise.
5314         (__ASSUME_LDT_WORKS): Likewise.
5315         (__ASSUME_O_DIRECTORY): Likewise.
5316         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5317         architecture but not kernel version.
5318         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5319         (__ASSUME_MMAP2_SYSCALL): Likewise.
5320         (__ASSUME_STAT64_SYSCALL): Likewise.
5321         (__ASSUME_IPC64): Likewise.
5322         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5323         <kernel-features.h>.
5324         [__ASSUME_32BITUIDS]: Make code unconditional.
5325         [!__ASSUME_32BITUIDS]: Remove conditional code.
5326         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5327         <kernel-features.h>.
5328         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5329         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5330         132096]: Remove conditional code.
5331         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5332         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5333         <kernel-features.h>.
5334         [__ASSUME_32BITUIDS]: Make code unconditional.
5335         [!__ASSUME_32BITUIDS]: Remove conditional code.
5336         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5337         <kernel-features.h>.
5338         [__ASSUME_32BITUIDS]: Make code unconditional.
5339         [!__ASSUME_32BITUIDS]: Remove conditional code.
5340         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5341         <kernel-features.h>.
5342         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5343         unconditional.
5344         (__setresgid): Do not declare.
5345         [__ASSUME_32BITUIDS]: Make code unconditional.
5346         [!__ASSUME_32BITUIDS]: Remove conditional code.
5347         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5348         <kernel-features.h>.
5349         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5350         unconditional.
5351         (__setresuid): Do not declare.
5352         [__ASSUME_32BITUIDS]: Make code unconditional.
5353         [!__ASSUME_32BITUIDS]: Remove conditional code.
5354         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5355         <kernel-features.h>.
5356         [__ASSUME_32BITUIDS]: Make code unconditional.
5357         [!__ASSUME_32BITUIDS]: Remove conditional code.
5358         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5359         <kernel-features.h>.
5360         [__ASSUME_32BITUIDS]: Make code unconditional.
5361         [!__ASSUME_32BITUIDS]: Remove conditional code.
5363 2012-05-25  Richard Henderson  <rth@twiddle.net>
5365         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5366         dl_hwcap to ifunc resolver.
5367         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5368         elf_ifunc_invoke.
5369         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5370         dl_hwcap to ifunc resolver.
5371         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5373 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5375         [BZ #14153]
5376         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5377         for |x| <= 2**-26, not 2**-57.
5378         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5379         exception.
5381 2012-05-24  Jeff Law  <law@redhat.com>
5383         * stdio-common/Makefile (tests): Add bug25.
5384         * stdio-common/bug25.c: New test.
5386 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5388         [BZ #13576]
5389         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5390         multiple of MALLOC_ALIGNMENT in size.
5391         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5393 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5395         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5396         Require >= 256.
5397         (FILENAME_MAX): Use macro-int-constant.
5398         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5399         (_IOFBF): Use macro-int-constant.
5400         (_IOLBF): Likewise.
5401         (_IONBF): Likewise.
5402         (SEEK_CUR): Likewise.
5403         (SEEK_END): Likewise.
5404         (SEEK_SET): Likewise.
5405         (TMP_MAX): Likewise.
5406         (EOF): Use macro-int-constant.  Require < 0.
5407         (NULL): Use macro-constant.  Require == 0.
5408         (stdin): Require type to be FILE *.
5409         (stdout): Likewise.
5410         (stderr): Likewise.
5411         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5412         macro-int-constant.
5413         (EXIT_SUCCESS): Likewise.
5414         (NULL): Use macro-constant.  Require == 0.
5415         (RAND_MAX): Use macro-int-constant.
5416         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5417         [C99-based standards] (strtof): Require function.
5418         [C99-based standards] (strtold): Likewise.
5419         [C99-based standards] (strtoll): Likewise.
5420         [C99-based standards] (strtoull): Likewise.
5421         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5422         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5423         [ISO || ISO99 || ISO11] (math.h): Likewise.
5424         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5425         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5426         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5428 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5430         [BZ #14132]
5431         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5432         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5433         * intl/dgettext.c (DCGETTEXT): Likewise.
5434         * intl/gettext.c (DCGETTEXT): Likewise.
5435         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5436         * posix/regex_internal.h (gettext): Likewise.
5437         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5438         Remove declaration.
5439         * include/argz.h (__argz_count_internal)
5440         (__argz_stringify_internal): Remove declaration.
5441         (__argz_count, __argz_stringify): Declare hidden proto.
5442         * intl/dcgettext.c: Remove use of INTDEF.
5443         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5444         * string/argz-stringify.c: Likewise.
5445         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5446         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5447         Declare hidden proto.
5448         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5449         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5450         Declare hidden proto.
5451         * include/stdio.h (__asprintf_internal): Don't declare.
5452         (__asprintf): Don't define as macro.  Declare hidden proto.
5453         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5454         (__fsetlocking): Declare hidden proto.
5455         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5456         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5457         hidden proto.
5458         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5459         (_IO_setlinebuf): Remove use of INTUSE.
5460         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5461         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5462         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5463         Remove declaration.
5464         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5465         (_IO_do_flush): Remove use of INTUSE.
5466         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5467         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5468         (_IO_adjust_column, _IO_least_wmarker)
5469         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5470         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5471         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5472         (_IO_default_doallocate, _IO_wdefault_doallocate)
5473         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5474         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5475         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5476         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5477         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5478         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5479         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5480         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5481         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5482         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5483         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5484         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5485         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5486         proto.
5487         (_IO_flush_all_internal, _IO_adjust_column_internal)
5488         (_IO_default_uflow_internal, _IO_default_finish_internal)
5489         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5490         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5491         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5492         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5493         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5494         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5495         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5496         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5497         (_IO_file_close_internal, _IO_file_close_it_internal)
5498         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5499         (_IO_file_init_internal, _IO_file_attach_internal)
5500         (_IO_file_fopen_internal, _IO_file_read_internal)
5501         (_IO_file_sync_internal, _IO_file_seek_internal)
5502         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5503         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5504         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5505         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5506         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5507         (_IO_list_all_internal, _IO_link_in_internal)
5508         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5509         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5510         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5511         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5512         (_IO_do_write_internal, _IO_padn_internal)
5513         (_IO_getline_info_internal, _IO_getline_internal)
5514         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5515         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5516         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5517         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5518         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5519         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5520         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5521         with libc_hidden_ver, remove use of INTUSE.
5522         * libio/genops.c: Likewise.
5523         * libio/freopen.c: Likewise.
5524         * libio/freopen64.c: Likewise.
5525         * libio/iofclose.c: Likewise.
5526         * libio/iofdopen.c: Likewise.
5527         * libio/iofflush.c: Likewise.
5528         * libio/iofflush_u.c: Likewise.
5529         * libio/iofgets.c: Likewise.
5530         * libio/iofgets_u.c: Likewise.
5531         * libio/iofopen.c: Likewise.
5532         * libio/iofopncook.c: Likewise.
5533         * libio/iofread.c: Likewise.
5534         * libio/iofread_u.c: Likewise.
5535         * libio/ioftell.c: Likewise.
5536         * libio/iofwrite.c: Likewise.
5537         * libio/iogetline.c: Likewise.
5538         * libio/iogets.c: Likewise.
5539         * libio/iogetwline.c: Likewise.
5540         * libio/iopadn.c: Likewise.
5541         * libio/iopopen.c: Likewise.
5542         * libio/ioseekoff.c: Likewise.
5543         * libio/ioseekpos.c: Likewise.
5544         * libio/iosetbuffer.c: Likewise.
5545         * libio/iosetvbuf.c: Likewise.
5546         * libio/ioungetc.c: Likewise.
5547         * libio/ioungetwc.c: Likewise.
5548         * libio/iovdprintf.c: Likewise.
5549         * libio/iovsprintf.c: Likewise.
5550         * libio/iovsscanf.c: Likewise.
5551         * libio/memstream.c: Likewise.
5552         * libio/obprintf.c: Likewise.
5553         * libio/oldfileops.c: Likewise.
5554         * libio/oldiofclose.c: Likewise.
5555         * libio/oldiofdopen.c: Likewise.
5556         * libio/oldiofopen.c: Likewise.
5557         * libio/oldiopopen.c: Likewise.
5558         * libio/oldstdfiles.c: Likewise.
5559         * libio/putc.c: Likewise.
5560         * libio/setbuf.c: Likewise.
5561         * libio/setlinebuf.c: Likewise.
5562         * libio/stdfiles.c: Likewise.
5563         * libio/strops.c: Likewise.
5564         * libio/vasprintf.c: Likewise.
5565         * libio/vscanf.c: Likewise.
5566         * libio/vsnprintf.c: Likewise.
5567         * libio/vswprintf.c: Likewise.
5568         * libio/wfiledoalloc.c: Likewise.
5569         * libio/wfileops.c: Likewise.
5570         * libio/wgenops.c: Likewise.
5571         * libio/wmemstream.c: Likewise.
5572         * libio/wstrops.c: Likewise.
5573         * libio/__fpurge.c: Likewise.
5574         * libio/__fsetlocking.c: Likewise.
5575         * assert/assert.c: Likewise.
5576         * debug/fgets_chk.c: Likewise.
5577         * debug/fgets_u_chk.c: Likewise.
5578         * debug/fread_chk.c: Likewise.
5579         * debug/fread_u_chk.c: Likewise.
5580         * debug/gets_chk.c: Likewise.
5581         * debug/obprintf_chk.c: Likewise.
5582         * debug/vasprintf_chk.c: Likewise.
5583         * debug/vdprintf_chk.c: Likewise.
5584         * debug/vsnprintf_chk.c: Likewise.
5585         * debug/vsprintf_chk.c: Likewise.
5586         * malloc/mtrace.c: Likewise.
5587         * misc/error.c: Likewise.
5588         * misc/syslog.c: Likewise.
5589         * stdio-common/asprintf.c: Likewise.
5590         * stdio-common/fxprintf.c: Likewise.
5591         * stdio-common/getw.c: Likewise.
5592         * stdio-common/isoc99_fscanf.c: Likewise.
5593         * stdio-common/isoc99_scanf.c: Likewise.
5594         * stdio-common/isoc99_vfscanf.c: Likewise.
5595         * stdio-common/isoc99_vscanf.c: Likewise.
5596         * stdio-common/isoc99_vsscanf.c: Likewise.
5597         * stdio-common/printf-prs.c: Likewise.
5598         * stdio-common/printf_fp.c: Likewise.
5599         * stdio-common/printf_fphex.c: Likewise.
5600         * stdio-common/printf_size.c: Likewise.
5601         * stdio-common/putw.c: Likewise.
5602         * stdio-common/scanf.c: Likewise.
5603         * stdio-common/sprintf.c: Likewise.
5604         * stdio-common/tmpfile.c: Likewise.
5605         * stdio-common/vfprintf.c: Likewise.
5606         * stdio-common/vfscanf.c: Likewise.
5607         * stdlib/strfmon_l.c: Likewise.
5608         * sunrpc/openchild.c: Likewise.
5609         * sunrpc/xdr_stdio.c: Likewise.
5610         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5611         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5613 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5615         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5617         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5618         in the third column, to generate for the shared library an IFUNC
5619         that uses _dl_vdso_vsym.
5620         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5621         * Makeconfig (object-suffixes-noshared): New variable.
5623         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5624         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5625         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5626         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5628         [BZ #14132]
5629         * include/sys/time.h (__gettimeofday): Remove macro.
5630         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5631         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5632         Remove INTDEF.
5633         (__gettimeofday): Add libc_hidden_def.
5634         (gettimeofday): Add libc_hidden_weak.
5635         * sysdeps/mach/gettimeofday.c: Likewise.
5636         * sysdeps/posix/gettimeofday.c: Likewise.
5637         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5638         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5639         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5640         (__gettimeofday_internal): Remove strong_alias.
5641         (__gettimeofday): Add libc_hidden_def.
5642         (gettimeofday): Add libc_hidden_weak.
5643         * sysdeps/unix/syscalls.list (gettimeofday):
5644         Remove __gettimeofday_internal alias.
5646 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5647             H.J. Lu  <hongjiu.lu@intel.com>
5649         [BZ #12495]
5650         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5651         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5652         (largebin_index_32_big): New.
5653         (largebin_index): Use it for 16-byte alignment.
5654         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5655         correction with front_misalign.
5657 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5660         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5661         Likewise.
5662         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5663         Likewise.
5664         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5665         Likewise.
5666         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5667         Likewise.
5668         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5669         Likewise.
5670         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5671         Likewise.
5672         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5673         Likewise.
5674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5675         Likewise.
5676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5677         Likewise.
5678         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5679         Likewise.
5680         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5681         Likewise.
5682         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5683         Likewise.
5685         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5686         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5688 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5690         [BZ #10846]
5691         [BZ #14036]
5692         * math/libm-test.inc (exp_test): Add test from bug 14036.
5693         (pow_test): Add test from bug 10846.
5695         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5696         and other flags.
5697         (special_function): Do not include flags in test name.
5698         (parse_args): Likewise.
5699         * sysdeps/i386/fpu/libm-test-ulps: Update.
5700         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5701         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5702         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5705         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5706         exceptions.
5707         * math/libm-test.inc ("Philosophy"): Update comment about
5708         exception testing.
5709         (UNDERFLOW_EXCEPTION): New macro.
5710         (UNDERFLOW_EXCEPTION_OK): Likewise.
5711         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5712         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5713         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5714         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5715         (INVALID_EXCEPTION_OK): Update value.
5716         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5717         (OVERFLOW_EXCEPTION_OK): Likewise.
5718         (IGNORE_ZERO_INF_SIGN): Likewise.
5719         (test_exceptions): Handle underflow exceptions.
5720         (acos_test): Update for underflow exception expectations.
5721         (cexp_test): Likewise.
5722         (clog_test): Likewise.
5723         (clog10_test): Likewise.
5724         (csqrt_test): Likewise.
5725         (ctan_test): Likewise.
5726         (ctanh_test): Likewise.
5727         (exp_test): Likewise.
5728         (exp10_test): Likewise.
5729         (exp2_test): Likewise.
5730         (expm1_test): Likewise.
5731         (fma_test): Likewise.
5732         (j0_test): Likewise.
5733         (jn_test): Likewise.
5734         (nexttoward_test): Likewise.
5735         (pow_test): Likewise.
5736         (scalbn_test): Likewise.
5737         (scalbln_test): Likewise.
5738         (tan_test): Likewise.
5739         (y1_test): Likewise.
5740         * sysdeps/i386/fpu/libm-test-ulps: Update.
5741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5743 2012-05-23  David S. Miller  <davem@davemloft.net>
5745         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5746         (__libc_sigaction): Remove unused local variables.
5748 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5750         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5752 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5754         mktime: avoid signed integer overflow
5755         * time/mktime.c (__mktime_internal): Do not mishandle the case
5756         where diff == INT_MIN.
5758         mktime: simplify computation of average
5759         * time/mktime.c (ranged_convert): Use new time_t_avg function
5760         instead of rolling our own (probably-slower) code.
5762         mktime: do not assume signed right shift propagates sign bit
5763         * time/mktime.c (isdst_differ): New static function.
5764         (__mktime_internal): No need to normalize tm_isdst now.
5765         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5766         tm_isdst values.
5768         mktime: merge another wrapv change from gnulib
5769         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5770         from some compilers.
5772         mktime: remove incorrect attempt at unusual arithmetics
5773         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5774         The code didn't really work on such machines anyway.
5775         (TYPE_MINIMUM): Assume two's complement.
5776         (twos_complement_arithmetic): Verify that long_int and time_t
5777         are two's complement (or unsigned, in the latter case).
5779         mktime: check signed shifts on long_int and time_t, too
5780         * time/mktime.c (SHR): Check that shifts work as desired
5781         on the types long_int and time_t too, as SHR is used on
5782         such types.
5784         mktime: do not assume 'long' is wide enough
5785         * time/mktime.c (verify): Move decl up.
5786         (long_int): New type.
5787         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5788         to remove assumption in the code that 'long' is wide enough to
5789         store year values.  This assumption is not true on x32 and on
5790         some non-glibc platforms.
5792         mktime: merge wrapv change from gnulib
5793         * time/mktime.c (WRAPV): New macro.
5794         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5795         (guess_time_tm, __mktime_internal): Do not assume that signed
5796         integer overflow wraps around; modern compilers generate code
5797         where this assumption is no longer valid.
5799 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5801         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5802         Replace "jmp L(pseudo_end)" with "ret".
5803         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5804         Likewise.
5806 2012-05-23  Andreas Jaeger  <aj@suse.de>
5808         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5809         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5811 2012-05-23  Andreas Jaeger  <aj@suse.de>
5812             Maximilian Attems  <max@stro.at>
5814         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5815         New macros.
5817 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5819         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5820         code so that pseudo_end is just ret and the stack pointer is
5821         correct also for static library in error case.
5823 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5825         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5826         move to syscalls.list.
5827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5832         * manual/install.texi (Running make install): Do not mention Linux
5833         kernel version for which pt_chown is not needed.
5834         (Linux): Do not mention problems with nscd with 2.0 kernels.
5835         * INSTALL: Regenerated.
5837 2012-05-23  Andreas Jaeger  <aj@suse.de>
5839         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5840         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5841         macro.
5842         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5843         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5844         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5845         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5846         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5847         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5848         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5849         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5850         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5851         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5852         * sysdeps/unix/sysv/linux/bits/in.h
5853         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5855 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5857         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5858         (PREPARE_VERSION): Just use assert instead, it will be elided
5859         under [NDEBUG] anyway.
5861 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5863         * sysdeps/unix/sysv/linux/Makefile: Include
5864         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5865         (sysdep_routines): Remove sysctl.
5866         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5867         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5868         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5869         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5870         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5872 2012-05-22  Andreas Jaeger  <aj@suse.de>
5874         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5875         that pseudo_end is just ret and the stack pointer is correct also
5876         for static library in error case.
5878 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5880         [BZ #14122]
5881         * nss/nsswitch.c (defconfig_entries): New variable.
5882         (__nss_database_lookup): Don't leak defconfig entries.
5883         (nss_parse_service_list): Don't leak on error paths.
5884         (free_database_entries): New function.
5885         (free_defconfig): New function.
5886         (free_mem): Move common code to free_database_entries.
5888 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5890         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5891         Add arch_prctl.
5892         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5894         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5895         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5896         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5897         New macro.
5898         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5899         (INTERNAL_SYSCALL_TYPES): Likewise.
5900         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5901         (LOAD_REGS_TYPES_[1-6]): Likewise.
5902         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5903         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5905 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5907         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5908         copysignl for GLIBC_2_0.
5909         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5910         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5911         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5912         logbl for GLIBC_2_0.
5913         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5914         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5916 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5918         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5919         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5921         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5922         Use "neg %eax".
5924         * time/mktime.c: Update copyright years.
5926 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5928         mktime: merge comment-quoting-style change from gnulib
5929         * time/mktime.c: Quote 'like this' in comments.
5930         The GNU coding standards suggest that we no longer quote `like this',
5931         as "`" and "'" are typically rendered asymmetrically nowadays.
5932         The typical gnulib style is to quote 'like this' when quoting
5933         code, and "like this" when quoting English.
5935         * time/mktime.c (compile-command): Add "-I.".
5937         mktime: merge mktime-internal.h change from gnulib
5938         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5940         mktime: merge time_r change from gnulib
5941         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5943         mktime: merge DEBUG change from gnulib
5944         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5945         case system <time.h> has a #define.
5947         mktime: merge <sys/types.h> change from gnulib
5948         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5949         since <time.t> is now guaranteed to define time_t.
5951         mktime: merge HAVE_CONFIG_H change from gnulib
5952         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5954 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5956         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5957         Use "neg %eax".
5959         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5960         __rlim_t cast.
5961         (struct rusage): Use anonymous union to pad each field to
5962         __syscall_slong_t.
5964 2012-05-21  David S. Miller  <davem@davemloft.net>
5966         * Makefules (o-iterator): Remove .s cases.
5967         (compile-command.s): Delete.
5968         (COMPILE.s): Delete.
5969         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5971 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5973         * configure.in (libc_cv_predef_stack_protector): Only consider
5974         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5975         * configure: Regenerated.
5977 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5979         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5980         New macro.  Use R*LP on int and pointer.
5981         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5982         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5983         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5984         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5986         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5987         [__WORDSIZE_TIME64_COMPAT32] instead of
5988         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5989         (struct utmp): Likewise.
5990         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5991         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5992         Renamed to ...
5993         (__WORDSIZE_TIME64_COMPAT32): This.
5994         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5995         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5996         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5997         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5998         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5999         (__WORDSIZE_TIME64_COMPAT32): New macro.
6001 2012-05-21  Andreas Jaeger  <aj@suse.de>
6003         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6004         only if [SHARED]. Add prototype for __wcschr_ia32.
6006 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6008         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6009         of %rbp unmolested in the jmp_buf while mangling the low bits.
6010         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6011         unmolested high bits of %rbp while demangling the low bits.
6012         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6014 2012-05-21  Andreas Jaeger  <aj@suse.de>
6016         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6017         * sunrpc/svc_simple.c: Use it for registerrpc.
6018         * sunrpc/xcrypt.c: Use it for passwd2des.
6020         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6022 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6024         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6025         Don't define if [__SYSCALL_WORDSIZE != 32].
6026         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6027         New macro.
6029 2012-05-21  Bruno Haible  <bruno@clisp.org>
6030             Andreas Jaeger  <aj@suse.de>
6032         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6033         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6034         inptr and inend for must_buffer_ch.
6035         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6036         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6037         * stdio-common/Makefile (tests): Remove bug15.
6038         (bug15-ENV): Remove macro.
6039         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6040         anymore.
6042 2012-05-19  Andreas Jaeger  <aj@suse.de>
6043             Roland McGrath  <roland@hack.frob.com>
6045         * manual/contrib.texi: Completely rewritten. It contains now an
6046         alphabetical list of contributors and their contributions.
6048 2012-05-21  Richard Henderson  <rth@twiddle.net>
6050         * misc/getauxval.c (__getauxval): Use unsigned long int.
6051         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6052         (getauxval): Use unsigned long int.
6054 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6056         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6058 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6060         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6061         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6062         __alignof__ (long double).
6064 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6066         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6068 2012-05-20  Richard Henderson  <rth@twiddle.net>
6070         * misc/getauxval.c: New file.
6071         * misc/sys/auxv.h: New file.
6072         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6073         (routines): Add getauxval.
6074         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6075         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6076         * elf/dl-sysdep.c (_dl_auxv): Remove.
6077         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6078         * elf/dl-support.c (_dl_auxv): New variable.
6079         (_dl_aux_init): Initialize it.
6080         * manual/startup.texi (Auxiliary Vector): New node.
6081         * sysdeps/generic/bits/hwcap.h: New file.
6082         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6083         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6084         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6085         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6086         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6087         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6089         Update.
6090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6092         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6093         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6094         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6095         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6096         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6097         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6099 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6101         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6103 2012-05-19  David S. Miller  <davem@davemloft.net>
6105         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6107 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6109         [BZ #14123]
6110         * math/s_ccosh.c: Include <float.h>
6111         (__ccosh): Avoid internal overflow calculating sinh and cosh
6112         values before multiplying by sin and cos values.
6113         * math/s_ccoshf.c: Likewise.
6114         * math/s_ccoshl.c: Likewise.
6115         * math/s_csin.c: Likewise.
6116         * math/s_csinf.c: Likewise.
6117         * math/s_csinl.c: Likewise.
6118         * math/s_csinh.c: Likewise.
6119         * math/s_csinhf.c: Likewise.
6120         * math/s_csinhl.c: Likewise.
6121         * math/libm-test.inc (ccos_test): Add more tests.
6122         (ccosh_test): Likewise.
6123         (csin_test): Likewise.
6124         (csinh_test): Likewise.
6125         * sysdeps/i386/fpu/libm-test-ulps: Update.
6126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6128 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6130         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6131         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6133         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6135 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6137         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6138         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6139         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6140         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6141         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6142         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6143         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6144         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6145         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6146         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6147         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6148         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6149         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6150         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6151         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6152         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6153         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6154         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6155         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6156         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6157         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6158         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6159         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6160         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6161         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6162         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6163         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6164         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6165         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6166         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6167         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6169 2012-05-18  Andreas Jaeger  <aj@suse.de>
6171         * csu/.gitignore: Delete.
6173 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6175         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6176         (timex): Use __syscall_slong_t.
6178 2012-05-18  Andreas Jaeger  <aj@suse.de>
6179             Carlos O'Donell  <carlos_odonell@mentor.com>
6181         * manual/install.texi (Configuring and compiling): Update
6182         description about files modified in the source directory.
6183         * INSTALL: Regenerated.
6185 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6187         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6188         value.  Use "or" to set return value to -1.
6189         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6190         negate return value.
6192 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6194         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6195         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6196         failure if the compiler has Graphite support disabled.
6197         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6198         Likewise.
6199         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6200         CFLAGS-memmove.c): Likewise.
6201         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6202         Likewise.
6204 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6206         * sysdeps/x86_64/x32/_itoa.h: New file.
6208         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6209         getdents system call only if kernel and user dirents have the
6210         same d_ino and d_off.
6212         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6213         LLONG_MAX != LONG_MAX.
6214         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6215         (_fitoa_word): Likewise.
6217         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6218         years.
6219         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6220         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6221         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6223         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6224         include <bits/wordsize.h>.  Check __x86_64__ instead of
6225         __WORDSIZE.
6226         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6227         if __x86_64__ is defined.  Use anonymous union on fpstate.
6229         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6230         anonymous union.
6232 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6234         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6235         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6236         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6237         Refer to _rtld_local_ro instead of _rtld_global_ro.
6238         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6239         Likewise.
6240         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6241         Likewise.
6242         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6243         Likewise.
6244         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6245         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6246         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6248         * sysdeps/powerpc/powerpc32/dl-machine.c
6249         (__elf_machine_runtime_setup) [PROF]: Don't reference
6250         _dl_prof_resolve.
6252 2012-05-18  Andreas Jaeger  <aj@suse.de>
6254         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6255         function only available for GCCs before 3.4 since GCC 3.4
6256         introduced a builtin.
6257         (lrint): Likewise.
6258         (llrintf): Likewise.
6259         (llrint): Likewise.
6260         (fmaxf): Likewise.
6261         (fmax): Likewise.
6262         (fminf): Likewise.
6263         (fmin): Likewise.
6264         (rint): Likewise.
6265         (rintf): Likewise.
6266         (nearbyint): Likewise.
6267         (nearbyintf): Likewise.
6268         (ceil): Likewise.
6269         (ceilf): Likewise.
6270         (floor): Likewise.
6271         (floorf): Likewise.
6273 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6275         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6276         on both fields and cast pointer to __syscall_ulong_t.
6278         * bits/types.h (__fsword_t): New type.
6279         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6280         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6281         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6282         (__FSWORD_T_TYPE): Likewise.
6283         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6284         (__FSWORD_T_TYPE): Likewise.
6285         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6286         (__FSWORD_T_TYPE): Likewise.
6287         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6288         (__FSWORD_T_TYPE): Likewise.
6289         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6290         __SWORD_TYPE with __fsword_t.
6291         (statfs64): Likewise.
6293 2012-05-17  David S. Miller  <davem@davemloft.net>
6295         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6297 2012-05-17  Andreas Jaeger  <aj@suse.de>
6299         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6300         warning.
6302 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6304         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6306 2012-05-17  Andreas Jaeger  <aj@suse.de>
6308         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6309         when it is used.
6311 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6313         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6315 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6317         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6318         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6320 2012-05-17  Andreas Jaeger  <aj@suse.de>
6321             Carlos O'Donell  <carlos_odonell@mentor.com>
6323         [BZ #14059]
6324         * sysdeps/x86_64/multiarch/init-arch.h
6325         (bit_YMM_Usable): Rename to...
6326         (bit_AVX_Usable): ... this.
6327         (bit_FMA4_Usable): New macro.
6328         (bit_XMM_state): New macro.
6329         (bit_YMM_state): New macro.
6330         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6331         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6332         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6333         (CPUID_OSXSAVE): New macro.
6334         (CPUID_AVX): New macro.
6335         (CPUID_FMA4): New macro.
6336         (index_YMM_Usable): Rename to...
6337         (index_AVX_Usable): ... this.
6338         (HAS_AVX): Use HAS_ARCH_FEATURE.
6339         (HAS_FMA4): Likewise.
6340         (HAS_YMM_USABLE): Remove.
6341         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6342         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6343         are present.
6344         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6345         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6346         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6347         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6348         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6350 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6352         * math/libm-test.c: Support platforms without multiple rounding modes.
6353         * math/bug-nextafter.c: Support platforms without FP exceptions.
6354         * math/bug-nexttoward.c: Likewise.
6355         * math/test-fenv.c: Likewise.
6356         * math/test-misc.c: Likewise.
6357         * stdlib/bug-getcontext.c: Likewise.
6359 2012-05-17  Andreas Jaeger  <aj@suse.de>
6361         * manual/examples/search.c (critter_cmp): Change signature to
6362         avoid warnings.
6363         * manual/string.texi (Collation Functions): Likewise.
6365 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6367         * bits/types.h: Fold copyright years.
6368         * bits/typesizes.h: Likewise.
6369         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6370         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6371         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6372         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6373         * time/time.h: Likewise.
6375 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6377         [BZ #208]
6378         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6379         in instead of returning them.  Return void.
6380         (__libc_mallinfo): Accumulate over all arenas.
6381         (__malloc_stats): Adjust for change in int_mallinfo interface.
6383 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6385         [BZ #10375]
6386         * configure.in (NM): Add AC_CHECK_TOOL for it.
6387         (libc_extra_cflags): New substituted variable.
6388         Check for -fstack-protector being used implicitly.
6389         * configure: Regenerated.
6390         * config.make.in (config-extra-cflags): New variable,
6391         gets @libc_extra_cflags@.
6392         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6394         [BZ #10375]
6395         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6396         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6397         * configure: Regenerated.
6398         * config.make.in (CPPUNDEFS): New substituted variable.
6399         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6400         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6401         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6403 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6405         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6406         (mq_attr): Use __syscall_slong_t.
6408 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6410         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6411         Check __x86_64__ instead of __WORDSIZE.
6412         (_STAT_VER_LINUX): Likewise.
6413         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6414         __syscall_ulong_t and __syscall_slong_t.
6415         (stat64): Likewise.
6417 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6419         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6421 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6423         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6425 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6427         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6428         __syscall_ulong_t.
6430         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6431         include <bits/wordsize.h>.  Check __x86_64__ instead of
6432         __WORDSIZE.
6433         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6434         defined.
6435         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6437         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6438         include <bits/wordsize.h>.  Check __x86_64__ instead of
6439         __WORDSIZE.
6440         (user_regs_struct): Use "__extension__ unsigned long long"
6441         instead of "unsigned long" if __x86_64__ is defined.
6442         (user): Likewise.  Pad after pointer field if __ILP32__ is
6443         defined.
6445 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6447         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6448         versions 5 to 9.
6449         * configure: Regenerated.
6450         * manual/install.texi (texinfo): Increase version requirement to
6451         4.5 or later.
6452         * INSTALL: Regenerated.
6454         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6456 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6458         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6460         * sysdeps/x86_64/x32/ffs.c: New file.
6462         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6463         __syscall_ulong_t.
6464         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6465         defined.  Use __syscall_ulong_t.
6466         (shminfo): Use __syscall_ulong_t.
6467         (shm_info): Likewise.
6469         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6470         __syscall_ulong_t.
6472         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6473         <bits/wordsize.h>.
6474         (msgqnum_t): Use __syscall_ulong_t.
6475         (msglen_t): Likewise.
6476         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6477         __syscall_ulong_t.
6479         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6480         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6482         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6484         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6485         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6487         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6488         __syscall_slong_t.
6490         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6491         include <bits/wordsize.h>.  Check __x86_64__ instead of
6492         __WORDSIZE.
6494         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6495         "unsigned long long int" if __x86_64__ is defined.
6496         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6498         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6499         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6500         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6502         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6503         <stdint.h>.
6504         (GET_PC): Cast to uintptr_t first.
6505         (GET_FRAME): Likewise.
6506         (GET_STACK): Likewise.
6508         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6509         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6510         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6512         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6513         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6514         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6515         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6516         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6517         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6518         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6519         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6520         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6521         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6522         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6523         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6524         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6525         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6526         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6527         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6528         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6529         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6530         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6531         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6532         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6533         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6534         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6535         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6536         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6538 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6540         * Makerules (+depfiles): Also collect depfiles from .oS in
6541         $(extra-objs).
6542         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6543         .oS, $(libnldbl-routines)).
6545         * Makerules (native-compile-mkdep-flags): Define.
6546         * sunrpc/Makefile (extra-objs): Add $(addprefix
6547         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6548         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6549         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6550         calling $(make-target-directory).
6552 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6554         * bits/types.h (__snseconds_t): Removed.
6555         * time/time.h (struct timespec): Replace __snseconds_t with
6556         __syscall_slong_t.
6557         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6558         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6559         Likewise.
6560         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6561         (__SNSECONDS_T_TYPE): Likewise.
6562         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6563         (__SNSECONDS_T_TYPE): Likewise.
6564         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6565         (__SNSECONDS_T_TYPE): Likewise.
6567 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6569         * sysdeps/mach/hurd/bits/typesizes.h
6570         (__SYSCALL_SLONG_TYPE): New macro.
6571         (__SYSCALL_ULONG_TYPE): Likewise.
6573 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6575         * bits/types.h (__syscall_slong_t): New type.
6576         (__syscall_ulong_t): Likewise.
6578         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6579         (__SYSCALL_ULONG_TYPE): Likewise.
6580         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6581         (__SYSCALL_SLONG_TYPE): Likewise.
6582         (__SYSCALL_ULONG_TYPE): Likewise.
6583         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6584         (__SYSCALL_SLONG_TYPE): Likewise.
6585         (__SYSCALL_ULONG_TYPE): Likewise.
6586         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6587         (__SYSCALL_SLONG_TYPE): Likewise.
6588         (__SYSCALL_ULONG_TYPE): Likewise.
6590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6592         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6593         Add sigaltstack-offsets.sym.
6594         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6595         <sigaltstack-offsets.h>.
6596         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6597         longjmp_msg pointer.
6598         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6599         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6600         signal stack.
6601         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6603 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6605         * elf/stackguard-macros.h: Remove file.
6606         * sysdeps/generic/stackguard-macros.h: New file.
6607         * sysdeps/i386/stackguard-macros.h: Likewise.
6608         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6609         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6610         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6611         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6612         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6613         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6614         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6615         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6616         <elf/stackguard-macros.h>.
6618         [BZ #14109]
6619         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6620         __aligned__ in attribute.
6621         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6622         (gregset_t): Likewise.
6624 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6626         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6627         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6628         * sysdeps/x86_64/x32/Implies-after: New file.
6630 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6632         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6633         and access return value for _dl_profile_fixup.  Use R10_LP to
6634         load frame size.
6636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6638         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6640 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6642         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6643         * sysdeps/x86_64/x32/sysdep.h: New file.
6645 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6647         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6648         * sysdeps/x86_64/setjmp.S: Likewise.
6650 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6652         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6653         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6654         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6655         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6656         remove unused global constant.
6658 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6660         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6661         include of <not-cancel.h>.
6663 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6665         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6667 2012-05-15  Jeff Law  <law@redhat.com>
6668             Andreas Jaeger  <aj@suse.de>
6670         [BZ #13594]
6671         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6672         out from...
6673         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6674         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6675         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6676         code changing __hst_map_handle.map.
6678 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6680         * configure.in (sysnames): Look for Implies-before and Implies-after
6681         files.
6682         * configure: Regenerated.
6684 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6686         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6687         8-byte data alignment with LP_SIZE alignment.
6689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6691         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6692         into R10_LP.
6694 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6696         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6700         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6701         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6702         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6703         Likewise.
6704         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6706 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6708         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6709         (stackinfo_sub_sp): Likewise.
6711 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6713         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6714         RAX_LP.
6716 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6718         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6719         into R*_LP.
6721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6723         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6724         sizes into R*_LP.
6726 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6728         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6732         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6733         into R11_LP and load __x86_64_shared_cache_size_half into
6734         R8_LP.
6736 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6738         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6739         R8_LP.
6741 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6743         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6744         logb for POWER7.
6745         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6746         logbf for POWER7.
6747         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6748         logbl for POWER7.
6749         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6750         powerpc32/power7/fpu/s_logb.c via #include.
6751         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6752         powerpc32/power7/fpu/s_logbf.c via #include.
6753         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6754         powerpc32/power7/fpu/s_logbl.c via #include.
6756 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6758         * README.libm: Remove file.
6760 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6762         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6763         count for x32.  Use R*_LP and omit operand-size suffix.
6765 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6767         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6768         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6769         * sysdeps/x86_64/x32/shlib-versions: New file.
6771 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6773         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6774         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6775         Use _dl_fatal_printf instead.
6777 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6779         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6780         set if not set by the user.  Do not allow for being unset.
6781         * sysdeps/unix/sysv/linux/configure: Regenerated.
6783 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6785         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6786         the `q' suffix from lea and replace .quad with ASM_ADDR.
6788 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6790         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6791         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6792         instead of $17.
6793         (PTR_DEMANGLE): Likewise.
6795 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6797         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6798         (LP_OP): Likewise.
6799         (ASM_ADDR): Likewise.
6800         (RAX_LP): Likewise.
6801         (RBP_LP): Likewise.
6802         (RBX_LP): Likewise.
6803         (RCX_LP): Likewise.
6804         (RDI_LP): Likewise.
6805         (RSI_LP): Likewise.
6806         (RSP_LP): Likewise.
6807         (R8_LP): Likewise.
6808         (R9_LP): Likewise.
6809         (R10_LP): Likewise.
6810         (R10_LP): Likewise.
6811         (R11_LP): Likewise.
6812         (R12_LP): Likewise.
6813         (R13_LP): Likewise.
6814         (R14_LP): Likewise.
6815         (R15_LP): Likewise.
6817 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6819         * sysdeps/x86_64/x32/dl-machine.h: New file.
6821 2012-05-14  Andreas Jaeger  <aj@suse.de>
6823         * manual/Makefile (subdir): Remove export of subdir.
6824         (all): Remove target.
6825         (.PHONY): Remove all from list.
6826         (mkinstalldirs): Remove.
6827         (.PHONY): Remove installdirs from list.
6828         ($(inst_infodir)/libc.info): Use make-target-directory.
6829         (installdirs): Remove.
6830         (subdir_%): Remove.
6831         (glibc-targets): Remove.
6832         (lib): Remove.
6833         (stubs): Remove.
6834         ($(objpfx)stubs ../po/manual.pot): Remove.
6835         ($(objpfx)stamp%): Remove.
6836         (make-target-directory): Remove.
6837         (subdir_install): Remove.
6838         (routines): Remove.
6839         (aux): Remove.
6840         (sources): Remove.
6841         (objects): Remove.
6842         (headers): Remove.
6844         [BZ #13750]
6845         * manual/.gitignore: Remove, it's not needed anymore.
6846         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6847         all files in it.
6848         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6849         directory.
6850         (texis): Renamed to $(objpfx)texis.
6851         (texis-path): New, contains path to generated files.
6852         (chapters.%): Use texis-path for complete path, add extra argument
6853         libc-texinfo.sh.
6854         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6855         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6856         (summary,texi, stamp-summary): Use complete path of
6857         files. Generate files in build dir.
6858         (dir-add.texi): Build in build dir.
6859         (libm-err.texi,stamp-libm-err): Likewise.
6860         (version.texi, stamp-version): Likewise.
6861         (.%c.texi): Likewise.
6862         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6863         (mostlyclean): Remove target.
6864         (realclean): Remove target.
6865         (generated): Add new variable with contents from mostlyclean and
6866         realclean, remove entries duplicated in common-mostlyclean, add
6867         stamp-libm-err and stamp-version.
6868         (generated-dirs): Add libc directory.
6869         ($(inst_infodir)/libc.info): Install files from build dir.
6871         * manual/install.texi (Configuring and compiling): Adjust since
6872         the info files are not part of the tar ball anymore.
6874 2012-05-14  Andreas Jaeger  <aj@suse.de>
6876         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6877         variable.
6879 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6881         [BZ #13717]
6882         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6883         to 2.2.0 where earlier.
6884         * sysdeps/unix/sysv/linux/configure: Regenerated.
6885         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6886         Remove conditional code.
6887         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6888         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6889         Remove conditional code.
6890         [!__NR_lchown]: Likewise.
6891         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6892         [__NR_lchown]: Likewise.
6893         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6894         comment referencing __ASSUME_LCHOWN_SYSCALL.
6895         * sysdeps/unix/sysv/linux/i386/sigaction.c
6896         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6897         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6898         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6899         Remove conditional code.
6900         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6901         (__protocol_available): Remove #if 0 code.
6902         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6903         conditional code.
6904         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6905         * sysdeps/unix/sysv/linux/kernel-features.h
6906         (__ASSUME_GETCWD_SYSCALL): Don't define.
6907         (__ASSUME_REALTIME_SIGNALS): Likewise.
6908         (__ASSUME_PREAD_SYSCALL): Likewise.
6909         (__ASSUME_PWRITE_SYSCALL): Likewise.
6910         (__ASSUME_POLL_SYSCALL): Likewise.
6911         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6912         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6913         non-SPARC.
6914         (__ASSUME_SIOCGIFNAME): Don't define.
6915         (__ASSUME_MSG_NOSIGNAL): Likewise.
6916         (__ASSUME_SENDFILE): Define unconditionally.
6917         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6918         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6919         conditional code.
6920         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6921         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6922         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6923         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6924         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6925         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6926         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6928         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6929         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6931         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6932         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6934         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6935         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6937         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6938         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6940         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6941         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6943         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6944         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6946         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6947         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6949         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6950         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6951         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6952         Remove conditional code.
6953         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6954         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6955         Remove conditional code.
6956         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6957         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6958         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6959         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6960         Remove conditional code.
6961         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6962         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6963         Remove conditional code.
6964         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6965         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6966         Remove conditional code.
6967         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6968         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6969         Remove conditional code.
6970         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6971         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6972         Remove conditional code.
6973         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6974         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6975         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6976         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6977         * sysdeps/unix/sysv/linux/sigaction.c
6978         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6979         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6980         * sysdeps/unix/sysv/linux/sigpending.c
6981         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6982         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6983         * sysdeps/unix/sysv/linux/sigprocmask.c
6984         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6985         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6986         * sysdeps/unix/sysv/linux/sigsuspend.c
6987         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6988         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6989         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6990         (__libc_missing_rt_sigs): Remove.
6991         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6992         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6993         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6994         Remove conditional code.
6995         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6996         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6997         return 1.
6998         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6999         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7000         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7001         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7003 2012-05-14  Andreas Jaeger  <aj@suse.de>
7005         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7006         it's not used in glibc.
7007         (__coshm1): Likewise.
7008         (__acosh1p): Likewise.
7009         (__sgn): Likewise.
7011         * manual/string.texi (Copying and Concatenation): Add missing
7012         variable in concat example.
7013         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7015 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7017         [BZ #14103]
7018         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7019         __builtin_clzl with __builtin_clzll.
7021 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7023         [BZ #14104]
7024         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7025         libc_freeres_ptr.
7027 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7029         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7030         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7031         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7032         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7034 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7036         * NEWS: Update ia64 info.
7038 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7040         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7041         used as bcopy.
7043 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7045         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7046         * sysdeps/unix/syscalls.list (dup3): Likewise.
7047         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7048         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7050 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7052         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7053         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7055 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7057         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7058         thread pointer.
7059         (TLS_IE): Use mov/add instead of movq/addq to load thread
7060         pointer.
7061         (TLS_GD_PREFIX): New.
7062         (TLS_GD): Use it.
7064 2012-05-11  David S. Miller  <davem@davemloft.net>
7066         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7067         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7068         (_FPU_SETCW): Likewise.
7070 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7072         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7073         is 32-byte aligned.
7075 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7077         [BZ #11837]
7078         * iconvdata/gb18030.c: Update tables.
7079         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7080         characters specially.
7081         (BODY for TO_LOOP): Add encoding of missing ranges.
7083 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7085         [BZ #13673]
7086         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7087         * sysdeps/mach/hurd/dup3.c: Likewise.
7088         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7089         * sysdeps/powerpc/memmove.c:: Likewise.
7091 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7093         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7094         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7096 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7098         * elf/elf.h (R_X86_64_RELATIVE64): New.
7099         (R_X86_64_NUM): Updated.
7100         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7101         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7102         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7103         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7104         tst-quad1pie tst-quad2pie
7105         (modules-names): Add tst-quadmod1 tst-quadmod2.
7106         ($(objpfx)tst-quad1): New dependency.
7107         ($(objpfx)tst-quad2): Likewise.
7108         ($(objpfx)tst-quad1pie): Likewise.
7109         ($(objpfx)tst-quad2pie): Likewise.
7110         * sysdeps/x86_64/tst-quad1.c: New file.
7111         * sysdeps/x86_64/tst-quad1pie.c: New file.
7112         * sysdeps/x86_64/tst-quad2.c: Likewise.
7113         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7114         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7115         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7116         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7117         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7119 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7121         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7122         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7123         * streams/stropts.h (t_scalar_t): Define type.
7125         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7126         (_PATH_PRESERVE): Set to "/var/lib".
7127         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7129         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7130         instead of int.
7132         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7133         if __dir_mkfile succeeded.
7135         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7136         checking for _hurd_dtablesize.  Unlock it right after having
7137         finished _hurd_dtable allocation.
7139 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7141         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7142         * sysdeps/mach/hurd/configure: Regenerated.
7143         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7144         special-casing to...
7145         * sysdeps/gnu/configure.in: ... this new file.
7146         * sysdeps/unix/sysv/linux/configure: Regenerated.
7147         * sysdeps/gnu/configure: New generated file.
7149         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7150         for Linux: use nsec instead of usec, as well as:
7151         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7152         members of type struct timespec.
7153         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7154         New macros.
7155         (struct stat64): Likewise.
7156         (_STATBUF_ST_NSEC): New macro.
7157         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7159         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7160         __strtoul_internal rather than strtoul.
7162 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7164         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7165         and reject them.
7167 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7169         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7170         which preserves existing values.
7171         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7173 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7175         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7176         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7177         greater than FD_SETSIZE.
7179 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7181         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7182         allocated, call __vm_protect to finish enabling the existing space, and
7183         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7184         allocate the remainder.
7186 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7188         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7189         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7191 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7193         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7194         sysdeps/mach/hurd/readlink.c.
7196         * posix/tst-sysconf.c (posix_options): Only use
7197         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7198         _POSIX_SYNCHRONIZED_IO when they are defined
7199         * sysdeps/mach/hurd/bits/posix_opt.h:
7200         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7201         (_XOPEN_REALTIME): Undefine macro.
7202         (_XOPEN_REALTIME_THREADS): Undefine macro.
7203         (_XOPEN_SHM): Undefine macro.
7204         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7205         macro to -1.
7206         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7207         macro to -1.
7208         (_POSIX_ASYNC_IO): Undefine macro.
7209         (_POSIX_PRIORITIZED_IO): Undefine macro.
7210         (_POSIX_SPIN_LOCKS): Define macro to -1.
7212         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7213         SA_NODEFER, SA_RESETHAND.
7214         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7215         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7216         F_DUPFD_CLOEXEC.
7218 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7220         * elf/Makefile (pldd-modules): Define unconditionally.
7222 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7224         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7226 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7228         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7229         Return ENOENT when name is empty.
7230         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7232 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7234         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7236         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7238 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7240         Fix mlock in all cases except non-readable pages.
7241         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7242         instead of VM_PROT_ALL as parameter to __vm_wire function.
7244         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7245         (__mkdir): When path is `/', just fail with EEXIST.
7246         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7248 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7250         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7251         <sys/uio.h> (for writev).
7252         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7253         and <sys/param.h> (for MIN).
7255 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7257         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7258         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7259         if interrupted.
7261 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7263         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7264         Depend on against $(link-rpcuserlibs).
7266 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7268         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7269         (__libc_stack_end): Do not use attribute_relro.
7270         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7271         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7272         to libthread-provided value.
7273         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7274         attribute_relro.
7276 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7278         [BZ #3748]
7279         * bits/libc-lock.h (__libc_once_get): New macro.
7280         * sysdeps/mach/bits/libc-lock.h: Likewise.
7281         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7282         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7283         instead of using implementation details.
7285         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7286         * libio/freopen.c: Likewise.
7287         * libio/freopen64.c: Likewise.
7288         * misc/syslog.c: Likewise.
7289         * nscd/connections.c: Likewise.
7290         * nscd/netgroupcache.c: Likewise.
7291         * sysdeps/posix/getcwd.c: Likewise.
7293 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7295         * math/w_ilogbf.c: Add #include <limits.h>.
7297 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7299         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7300         path instead of returning without unlocking.
7302         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7303         immediate-write ioctls.
7304         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7306 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7308         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7309         __builtin_frame_address instead of making assumptions about the
7310         location of the return address relative to DATA.  Force early load of
7311         the return address.
7312         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7313         __builtin_frame_address.
7315         dup3 for GNU Hurd.
7316         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7317         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7318         implement dup3 and do some further code clean-ups.
7319         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7320         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7322 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7324         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7326         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7327         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7328         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7329         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7330         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7331         d->port.lock.
7333         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7334         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7335         when handler == SIG_ERR, not when handler != SIG_ERR.
7337 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7339         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7340         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7341         definitions.
7343         accept4 for GNU Hurd.
7344         * include/sys/socket.h (__libc_accept4): New prototype.
7345         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7346         to implement __libc_accept4.
7347         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7348         __libc_accept4.
7349         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7351         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7352         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7353         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7354         signal-defines.sym.
7356 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7358         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7360 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7362         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7363         assertion on O_CLOEXEC flag.
7364         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7365         * hurd/intern-fd.c: Likewise.
7366         * hurd/port2fd.c: Likewise.
7368 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7370         [BZ #3906]
7371         * bits/in.h (IPV6_PKTINFO): Define new macro.
7372         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7374 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7376         [BZ #13954]
7377         [BZ #13955]
7378         [BZ #13956]
7379         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7380         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7381         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7382         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7383         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7384         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7385         * math/libm-test.inc (logb_test) : Additional logb tests.
7387 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7388             Andreas Jaeger  <aj@suse.de>
7390         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7391         * configure: Regenerated.
7392         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7393         * config.make.in (link-obsolete-rpc): New substituted variable.
7394         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7395         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7396         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7397         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7398         so that libc.a contains the symbols.
7399         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7400         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7401         * sunrpc/auth_none.c: Likewise.
7402         * sunrpc/auth_unix.c: Likewise.
7403         * sunrpc/authdes_prot.c: Likewise.
7404         * sunrpc/authuxprot.c: Likewise.
7405         * sunrpc/clnt_gen.c: Likewise.
7406         * sunrpc/clnt_perr.c: Likewise.
7407         * sunrpc/clnt_raw.c: Likewise.
7408         * sunrpc/clnt_simp.c: Likewise.
7409         * sunrpc/clnt_tcp.c: Likewise.
7410         * sunrpc/clnt_udp.c: Likewise.
7411         * sunrpc/clnt_unix.c: Likewise.
7412         * sunrpc/des_crypt.c: Likewise.
7413         * sunrpc/des_soft.c: Likewise.
7414         * sunrpc/get_myaddr.c: Likewise.
7415         * sunrpc/key_call.c: Likewise.
7416         * sunrpc/key_prot.c: Likewise.
7417         * sunrpc/netname.c: Likewise.
7418         * sunrpc/pm_getmaps.c: Likewise.
7419         * sunrpc/pm_getport.c: Likewise.
7420         * sunrpc/pmap_clnt.c: Likewise.
7421         * sunrpc/pmap_prot.c: Likewise.
7422         * sunrpc/pmap_prot2.c: Likewise.
7423         * sunrpc/pmap_rmt.c: Likewise.
7424         * sunrpc/publickey.c: Likewise.
7425         * sunrpc/rpc_cmsg.c: Likewise.
7426         * sunrpc/rpc_common.c: Likewise.
7427         * sunrpc/rpc_dtable.c: Likewise.
7428         * sunrpc/rpc_prot.c: Likewise.
7429         * sunrpc/rpc_thread.c: Likewise.
7430         * sunrpc/rtime.c: Likewise.
7431         * sunrpc/svc.c: Likewise.
7432         * sunrpc/svc_auth.c: Likewise.
7433         * sunrpc/svc_raw.c: Likewise.
7434         * sunrpc/svc_run.c: Likewise.
7435         * sunrpc/svc_tcp.c: Likewise.
7436         * sunrpc/svc_udp.c: Likewise.
7437         * sunrpc/svc_unix.c: Likewise.
7438         * sunrpc/svcauth_des.c: Likewise.
7439         * sunrpc/xcrypt.c: Likewise.
7440         * sunrpc/xdr.c: Likewise.
7441         * sunrpc/xdr_array.c: Likewise.
7442         * sunrpc/xdr_float.c: Likewise.
7443         * sunrpc/xdr_intXX_t.c: Likewise.
7444         * sunrpc/xdr_mem.c: Likewise.
7445         * sunrpc/xdr_rec.c: Likewise.
7446         * sunrpc/xdr_ref.c: Likewise.
7447         * sunrpc/xdr_sizeof.c: Likewise.
7448         * sunrpc/xdr_stdio.c: Likewise.
7450 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7452         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7453         change.  Update copyright years.
7455 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7457         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7459 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7460             Joseph Myers  <joseph@codesourcery.com>
7461             Paul Pluzhnikov  <ppluzhnikov@google.com>
7463         [BZ #14012]
7464         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7465         requiring rpcgen.
7466         [cross-compiling] (extra-libs): Likewise.
7467         [cross-compiling] (extra-libs-others): Likewise.
7468         [cross-compiling] (librpcsvc-routines): Likewise.
7469         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7470         [cross-compiling] (omit-deps): Likewise.
7471         (sunrpc-CPPFLAGS): New variable.
7472         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7473         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7474         (cross-rpcgen-objs): New variable.
7475         (extra-objs): Append $(cross-rpcgen-objs).
7476         ($(cross-rpcgen-objs)): New rule.
7477         ($(objpfx)cross-rpcgen): Likewise.
7478         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7479         comment.
7480         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7481         ($(objpfx)x%.stmp): Likewise.
7482         * sunrpc/proto.h [IS_IN_build] (_): Define.
7483         [IS_IN_build] (_libc_intl_domainname): Likewise.
7485 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7487         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7488         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7489         and R_X86_64_TPOFF64.
7491 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7493         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7494         sysdeps/unix/sysv/syscalls.list.
7495         (stime): Likewise.
7496         (utime): Likewise.
7497         * sysdeps/unix/sysv/syscalls.list: Remove file.
7499 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7501         [BZ #3440]
7502         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7503         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7504         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7505         (__LC_IDENTIFICATION): Make these macros useful in #if
7506         expressions, as required by C99.
7508 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7510         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7511         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7512         after this.
7514 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7516         * stdlib/longlong.h: Updated from GCC.
7518 2012-05-09  Andreas Jaeger  <aj@suse.de>
7520         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7521         default is first entry.
7522         (run_mode): Set type.
7523         (main): Remove informal message about syslog.
7524         (options): Fix typo.
7526         [BZ #14053]
7527         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7528         to asm.
7529         (lrint): Likewise.
7530         (llrintf): Likewise.
7531         (llrint): Likewise.
7532         (rint): Likewise.
7533         (rintf): Likewise.
7534         (nearbyint): Likewise.
7535         (nearbyintf): Likewise.
7537 2012-05-09  Andreas Jaeger  <aj@suse.de>
7538             Pedro Alves  <palves@redhat.com>
7540         * nscd/nscd.c (run_mode): Use enum.
7541         (main): Cleanup coding style issue.
7543 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7544             Andreas Jaeger  <aj@suse.de>
7546         * nscd/nscd.c (go_background): Replaced with...
7547         (run_mode): ... this.
7548         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7549         (options): Add -F --foreground.
7550         (main): Implement it.
7551         (parse_opt): Parse it.
7553 2012-05-09  Andreas Jaeger  <aj@suse.de>
7555         [BZ #14083]
7556         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7557         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7558         -Wconversion warning.
7559         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7560         Likewise.
7562 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7564         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7565         == 0.
7566         (LC_ALL): Use macro-int-constant.
7567         (LC_COLLATE): Likewise.
7568         (LC_CTYPE): Likewise.
7569         (LC_MESSAGES): Likewise.
7570         (LC_MONETARY): Likewise.
7571         (LC_NUMERIC): Likewise.
7572         (LC_TIME): Likewise.
7573         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7574         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7575         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7576         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7577         Specify type.
7578         [C99-based standards] (float_t): Expect type.
7579         [C99-based standards] (double_t): Expect type.
7580         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7581         type.
7582         [C99-based standards] (HUGE_VALL): Likewise.
7583         [C99-based standards] (INFINITY): Likewise.
7584         [C99-based standards] (NAN): Likewise.
7585         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7586         [C99-based standards] (FP_NAN): Likewise.
7587         [C99-based standards] (FP_NORMAL): Likewise.
7588         [C99-based standards] (FP_SUBNORMAL): Likewise.
7589         [C99-based standards] (FP_ZERO): Likewise.
7590         [C99-based standards] (FP_FAST_FMA): Use
7591         optional-macro-int-constant.  Specify type.  Require == 1.
7592         [C99-based standards] (FP_FAST_FMAF): Likewise.
7593         [C99-based standards] (FP_FAST_FMAL): Likewise.
7594         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7595         [C99-based standards] (FP_ILOGBNAN): Likewise.
7596         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7597         Specify type.
7598         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7599         [C99-based standards] (math_errhandling): Specify type.
7600         [ISO99 || ISO11] (signgam): Do not allow.
7601         [non-C99-based standards] (copysignf): Do not allow.
7602         [non-C99-based standards] (exp2f): Likewise.
7603         [non-C99-based standards] (log2f): Likewise.
7604         [non-C99-based standards] (modff): Allow.
7605         [non-C99-based standards] (erff): Do not allow.
7606         [non-C99-based standards] (erfcf): Likewise.
7607         [non-C99-based standards] (gammaf): Likewise.
7608         [non-C99-based standards] (hypotf): Likewise.
7609         [non-C99-based standards] (j0f): Likewise.
7610         [non-C99-based standards] (j1f): Likewise.
7611         [non-C99-based standards] (jnf): Likewise.
7612         [non-C99-based standards] (lgammaf): Likewise.
7613         [non-C99-based standards] (tgammaf): Likewise.
7614         [non-C99-based standards] (y0f): Likewise.
7615         [non-C99-based standards] (y1f): Likewise.
7616         [non-C99-based standards] (ynf): Likewise.
7617         [non-C99-based standards] (isnanf): Likewise.
7618         [non-C99-based standards] (acoshf): Likewise.
7619         [non-C99-based standards] (asinhf): Likewise.
7620         [non-C99-based standards] (atanhf): Likewise.
7621         [non-C99-based standards] (cbrtf): Likewise.
7622         [non-C99-based standards] (expm1f): Likewise.
7623         [non-C99-based standards] (ilogbf): Likewise.
7624         [non-C99-based standards] (log1pf): Likewise.
7625         [non-C99-based standards] (logbf): Likewise.
7626         [non-C99-based standards] (nextafterf): Likewise.
7627         [non-C99-based standards] (remainderf): Likewise.
7628         [non-C99-based standards] (rintf): Likewise.
7629         [non-C99-based standards] (scalbf): Likewise.
7630         [non-C99-based standards] (copysignl): Likewise.
7631         [non-C99-based standards] (exp2l): Likewise.
7632         [non-C99-based standards] (log2l): Likewise.
7633         [non-C99-based standards] (modfl): Allow.
7634         [non-C99-based standards] (erfl): Do not allow.
7635         [non-C99-based standards] (erfcl): Likewise.
7636         [non-C99-based standards] (gammal): Likewise.
7637         [non-C99-based standards] (hypotl): Likewise.
7638         [non-C99-based standards] (j0l): Likewise.
7639         [non-C99-based standards] (j1l): Likewise.
7640         [non-C99-based standards] (jnl): Likewise.
7641         [non-C99-based standards] (lgammal): Likewise.
7642         [non-C99-based standards] (tgammal): Likewise.
7643         [non-C99-based standards] (y0l): Likewise.
7644         [non-C99-based standards] (y1l): Likewise.
7645         [non-C99-based standards] (ynl): Likewise.
7646         [non-C99-based standards] (isnanl): Likewise.
7647         [non-C99-based standards] (acoshl): Likewise.
7648         [non-C99-based standards] (asinhl): Likewise.
7649         [non-C99-based standards] (atanhl): Likewise.
7650         [non-C99-based standards] (cbrtl): Likewise.
7651         [non-C99-based standards] (expm1l): Likewise.
7652         [non-C99-based standards] (ilogbl): Likewise.
7653         [non-C99-based standards] (log1pl): Likewise.
7654         [non-C99-based standards] (logbl): Likewise.
7655         [non-C99-based standards] (nextafterl): Likewise.
7656         [non-C99-based standards] (remainderl): Likewise.
7657         [non-C99-based standards] (rintl): Likewise.
7658         [non-C99-based standards] (scalbl): Likewise.
7659         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7660         [non-C99-based standards] (FP_*): Do not allow.
7661         [C99-based standards] (FP_*): Change to
7662         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7663         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7664         allow.
7665         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7666         (SIG_ERR): Likewise.
7667         [X/Open-based standards] (SIG_HOLD): Likewise.
7668         (SIG_IGN): Likewise.
7669         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7670         positive value.
7671         (SIGFPE): Likewise.
7672         (SIGILL): Likewise.
7673         (SIGINT): Likewise.
7674         (SIGSEGV): Likewise.
7675         (SIGTER): Likewise.
7676         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7677         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7678         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7679         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7680         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7681         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7682         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7683         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7684         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7685         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7686         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7687         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7688         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7689         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7690         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7691         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7692         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7693         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7694         [X/Open-based standards] (SIGTRAP): Likewise.
7695         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7696         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7697         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7698         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7699         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7700         allow.
7702 2012-05-08  Ian Wienand  <ianw@vmware.com>
7704         [BZ #14080]
7705         * time/tzset.c (__tzset_parse_tz): Update default rules for
7706         daylight time changes in the Energy Policy Act of 2005.
7708 2012-05-09  Andreas Jaeger  <aj@suse.de>
7710         [BZ #13983]
7711         * elf/ldconfig.c (parse_conf): Change string to make clear that
7712         ldconfig only issued a warning if ld.so.conf does not exist.
7714 2012-05-08  David S. Miller  <davem@davemloft.net>
7716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7717         movxtod instead of popping the value on the stack.
7719         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7721 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7723         * config.h.in: Add HAVE_ARM_PCS_VFP.
7725 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7727         [BZ #13979]
7728         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7729         checking but the checks are disabled for any reason.
7731 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7733         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7734         and ELF64_R_TYPE with ELFW(R_TYPE).
7736 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7738         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7739         (ulimit): Likewise.
7741         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7742         (settimeofday): Likewise.
7744 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7746         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7747         a struct th_u2 inside the union, and move tu_block/tu_code into
7748         a new th_u3 union of tu_block/tu_code inside of that.  Move
7749         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7750         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7751         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7752         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7753         (th_stuff): Change to th_u1.tu_stuff.
7754         (th_data): Define.
7755         (th_msg): Change to th_u1.th_u2.tu_data.
7757 2012-05-07  David S. Miller  <davem@davemloft.net>
7759         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7761         [BZ #14074]
7762         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7763         (SETUP_PIC_REG): Use it.
7764         (SETUP_PIC_REG_LEAF): Use it.
7766 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7768         [BZ #13885]
7769         [BZ #13923]
7770         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7771         USE_AS_EXPM1L.
7772         (EXPL_FINITE): Likewise.
7773         (FLDLOG): Likewise.
7774         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7775         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7776         e_expl.S.
7777         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7778         USE_AS_EXPM1L.
7779         (EXPL_FINITE): Likewise.
7780         (FLDLOG): Likewise.
7781         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7782         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7783         e_expl.S.
7784         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7785         test of -max_value argument for long double.
7786         * sysdeps/i386/fpu/libm-test-ulps: Update.
7787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7789 2012-05-06  David S. Miller  <davem@davemloft.net>
7791         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7792         quad soft-float symbols whose references which are compiler
7793         generated.
7794         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7796 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7798         [BZ #13884]
7799         [BZ #13914]
7800         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7801         USE_AS_EXP10L.
7802         (EXPL_FINITE): Likewise.
7803         (FLDLOG): Likewise.
7804         (c0): Likewise.
7805         (c1): Likewise.
7806         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7807         Adjust comments for base varying.
7808         (__expl_finite): Change alias to EXPL_FINITE.
7809         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7810         e_expl.S.
7811         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7812         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7813         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7814         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7815         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7816         USE_AS_EXP10L.
7817         (EXPL_FINITE): Likewise.
7818         (FLDLOG): Likewise.
7819         (c0): Likewise.
7820         (c1): Likewise.
7821         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7822         Adjust comments for base varying.
7823         (__expl_finite): Change alias to EXPL_FINITE.
7824         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7825         tests for bugs.
7826         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7828         [BZ #14064]
7829         * math/libm-test.inc (check_float_internal): Correct ulp
7830         calculation for subnormal expected results.
7832 2012-05-06  Andreas Jaeger  <aj@suse.de>
7834         * Makeconfig (+math-flags): New, set to -frounding-math.
7835         (+cflags): Add +math-flags so that all of glibc gets compiled with
7836         it.
7838         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7840 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7842         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7843         Disable one test.
7845         [BZ #13787]
7846         [BZ #13922]
7847         [BZ #14036]
7848         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7849         (__ieee754_expl): Allow for and saturate large arguments.
7850         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7851         (u_threshold): Likewise.
7852         (__exp): Call __ieee754_exp before checking for overflow and
7853         underflow.
7854         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7855         (u_threshold): Likewise.
7856         (__expf): Call __ieee754_expf before checking for overflow and
7857         underflow.
7858         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7859         (u_threshold): Likewise.
7860         (__expl): Call __ieee754_expl before checking for overflow and
7861         underflow.
7862         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7863         (__ieee754_expl): Allow for and saturate large arguments.
7864         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7865         missing overflow exception on overflow.
7866         (expm1_test): Do not allow missing overflow exception on overflow.
7868         * sysdeps/i386/fpu/e_expl.c: Move to ...
7869         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7870         rather than using inline asm.
7871         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7872         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7873         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7875         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7876         (nice): Likewise.
7877         (poll): Likewise.
7878         (signal): Likewise.
7879         (time): Likewise.
7880         (times): Likewise.
7882 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7884         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7885         sysdeps/unix/common/syscalls.list.
7886         (fchmod): Likewise.
7887         (fchown): Likewise.
7888         (ftruncate): Likewise.
7889         (getrusage): Likewise.
7890         (gettimeofday): Likewise.
7891         (setpgid): Likewise.
7892         (setregid): Likewise.
7893         (setreuid): Likewise.
7894         (sigaction): Likewise.
7895         (truncate): Likewise.
7896         (vhangup): Likewise.
7897         * sysdeps/unix/common/syscalls.list: Remove file.
7898         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7899         * sysdeps/unix/sysv/linux/Implies: Likewise.
7901 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7903         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7904         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7905         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7906         Moved to ...
7907         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7908         Here.
7909         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7910         to ...
7911         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7912         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7913         to ...
7914         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7915         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7916         to ...
7917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7918         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7919         to ...
7920         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7921         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7922         to ...
7923         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7924         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7925         to ...
7926         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7927         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7928         to ...
7929         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7930         Here.
7931         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7932         to ...
7933         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7934         Here.
7935         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7936         to ...
7937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7938         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7939         Moved to ...
7940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7941         Here.
7942         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7943         to ...
7944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7946 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7948         * sysdeps/unix/common/bits/dirent.h: Remove file.
7949         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7951         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7952         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7953         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7954         * sysdeps/unix/bsd/isatty.c: Likewise.
7955         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7956         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7957         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7959 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7961         [BZ #13563]
7962         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7963         long double comparison inaccuracies.
7964         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7967 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7969         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7970         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7972 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7974         [BZ #14049]
7975         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7976         nonzero digits before rounding a hex value.
7977         * stdlib/tst-strtod.c (tests): Add another test.
7979 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7981         * sysdeps/s390/fpu/libm-test-ulps: Update.
7983 2012-05-03  Andreas Jaeger  <aj@suse.de>
7985         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7986         does not get optimized out.
7987         (malloc_opt_barrier): New.
7989 2012-05-03  Andreas Jaeger  <aj@suse.de>
7990             Roland McGrath  <roland@hack.frob.com>
7992         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7993         intermediate file deletion.
7994         (generated): Add .symlist files.
7996 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7998         [BZ #13775]
7999         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8000         Redirect under this condition.
8001         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8002         [__USE_GNU] (__dprintf_chk): Not under this condition.
8003         [__USE_GNU] (__vdprintf_chk): Likewise.
8004         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8005         under this condition.
8006         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8007         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8008         [__USE_XOPEN2K8] (vdprintf): Likewise.
8009         [__USE_GNU] (__dprintf_chk): Not under this condition.
8010         [__USE_GNU] (__vdprintf_chk): Likewise.
8011         [__USE_GNU] (dprintf): Likewise.
8012         [__USE_GNU] (vdprintf): Likewise.
8014 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8016         * elf/Makefile (common-generated): Set this instead of generated for
8017         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8018         $(all-built-dso)-derived lists.
8020 2012-05-03  Andreas Jaeger  <aj@suse.de>
8022         * sysdeps/i386/fpu/libm-test-ulps: Update.
8024         * FAQ: Removed.
8025         * FAQ.in: Likewise.
8026         * scripts/gen-FAQ.pl: Likewise.
8027         * manual/install.texi (Installation): Point to online location of
8028         FAQ.
8029         * Makefile (files-for-dist): Remove FAQ.
8030         (FAQ): Remove.
8032 2012-05-02  Allan McRae  <allan@archlinux.org>
8034         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8035         (LDFLAGS-reldepmod5.so): Likewise.
8036         (LDFLAGS-reldep6mod1.so): Likewise.
8037         (LDFLAGS-reldep6mod4.so): Likewise.
8038         (LDFLAGS-reldep8mod3.so): Likewise.
8039         (LDFLAGS-unload4mod1.so): Likewise.
8040         (LDFLAGS-unload4mod2.so): Likewise.
8041         (LDFLAGS-tst-initorder): Likewise.
8042         (LDFLAGS-tst-initordera2.so): Likewise.
8043         (LDFLAGS-tst-initordera3.so): Likewise.
8044         (LDFLAGS-tst-initordera4.so): Likewise.
8045         (LDFLAGS-tst-initorderb2.so): Likewise.
8046         (LDFLAGS-noload): Likewise.
8047         (LDFLAGS-next): Likewise.
8048         (LDFLAGS-order2mod1.so): Likewise.
8049         (LDFLAGS-order2mod2.so): Likewise.
8050         (LDFLAGS-tst-initorder2): Likewise.
8051         (LDFLAGS-tst-initorder2a.so): Likewise.
8052         (LDFLAGS-tst-initorder2b.so): Likewise.
8053         (LDFLAGS-tst-initorder2c.so): Likewise.
8054         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8056 2012-05-02  David S. Miller  <davem@davemloft.net>
8058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8060 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8062         [BZ #14055]
8063         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8065 2012-05-02  Andreas Jaeger  <aj@suse.de>
8067         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8068         since we manipulate rounding mode.
8069         (CPPFLAGS-test-idouble.c): Likewise.
8070         (CPPFLAGS-test-ifloat.c): Likewise.
8071         (CFLAGS-test-ldouble.c): Likewise.
8072         (CFLAGS-test-double.c): Likewise.
8073         (CFLAGS-test-float.c): Likewise.
8074         (CFLAGS-test-misc.c): Likewise.
8075         (CFLAGS-test-test-fenv.c): Likewise.
8077 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8079         [BZ #2550]
8080         [BZ #2570]
8081         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8082         comparisons to determine direction to adjust input.
8084 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8086         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8087         output to the target.
8089         * scripts/localplt.awk: New file.
8090         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8091         (check-localplt-CFLAGS): Variable removed.
8092         ($(all-built-dso:=.jmprel)): New static pattern rule.
8093         (generated): Add those targets.
8094         (localplt-built-dso): New variable.
8095         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8097         * elf/check-localplt.c: File removed.
8099         * scripts/check-execstack.awk: New file.
8100         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8101         (check-execstack-CFLAGS): Variable removed.
8102         ($(objpfx)check-execstack.h): Target removed.
8103         ($(objpfx)execstack-default): New target.
8104         (generated): Add that instead of check-execstack.h.
8105         ($(all-built-dso:=.phdr)): New static pattern rule.
8106         (generated): Add those targets.
8107         * elf/check-execstack.c: File removed.
8109         * scripts/check-textrel.awk: New file.
8110         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8111         (check-textrel-CFLAGS): Variable removed.
8112         (all-built-dso): Use := to define.o
8113         ($(all-built-dso:=.dyn)): New static pattern rule.
8114         (generated): Add those targets.
8115         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8116         * config.make.in (READELF): New substituted variable.
8117         * elf/check-textrel.c: File removed.
8119 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8121         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8122         allow.
8123         * conform/data/ctype.h-data [C99-based standards] (isblank):
8124         Expect function.
8125         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8126         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8127         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8128         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8129         Specify type.  Require positive value.
8130         (EILSEQ): Likewise.
8131         (ERANGE): Likewise.
8132         [ISO || POSIX] (EILSEQ): Do not expect.
8133         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8134         Specify type.  Require positive value.
8135         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8136         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8137         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8138         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8139         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8140         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8141         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8142         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8143         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8144         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8145         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8146         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8147         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8148         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8149         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8150         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8151         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8152         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8153         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8154         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8155         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8156         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8157         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8158         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8159         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8160         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8161         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8162         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8175         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8176         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8177         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8178         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8179         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8180         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8181         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8182         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8183         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8184         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8205         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8206         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8207         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8208         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8209         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8210         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8211         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8212         Require >= 2.
8213         (FLT_ROUNDS): Expect as macro, not constant.
8214         (FLT_MANT_DIG): Use macro-int-constant.
8215         (DBL_MANT_DIG): Likewise.
8216         (LDBL_MANT_DIG): Likewise.
8217         (FLT_DIG): Likewise.
8218         (DBL_DIG): Likewise.
8219         (LDBL_DIG): Likewise.
8220         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8221         (DBL_MIN_EXP): Likewise.
8222         (LDBL_MIN_EXP): Likewise.
8223         (FLT_MAX_EXP): Use macro-int-constant.
8224         (DBL_MAX_EXP): Likewise.
8225         (LDBL_MAX_EXP): Likewise.
8226         (FLT_MAX_10_EXP): Likewise.
8227         (DBL_MAX_10_EXP): Likewise.
8228         (LDBL_MAX_10_EXP): Likewise.
8229         (FLT_MAX): Use macro-constant.
8230         (DBL_MAX): Likewise.
8231         (LDBL_MAX): Likewise.
8232         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8233         (DBL_EPSILON): Likewise.
8234         (LDBL_EPSILON): Likewise.
8235         (FLT_MIN): Likewise.
8236         (DBL_MIN): Likewise.
8237         (LDBL_MIN): Likewise.
8238         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8239         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8240         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8241         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8242         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8243         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8244         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8245         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8246         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8247         [ISO11] (FLT_TRUE_MIN): Likewise.
8248         [ISO11] (LDBL_TRUE_MIN): Likewise.
8249         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8250         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8251         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8252         (SCHAR_MAX): Likewise.
8253         (UCHAR_MAX): Likewise.
8254         (CHAR_MIN): Likewise.
8255         (CHAR_MAX): Likewise.
8256         (MB_LEN_MAX): Use macro-int-constant.
8257         (SHRT_MIN): Use macro-int-constant.  Specify type.
8258         (SHRT_MAX): Likewise.
8259         (USHRT_MAX): Likewise.
8260         (INT_MAX): Likewise.
8261         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8262         bound negative.
8263         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8264         bound with "U".
8265         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8266         bound with "L".
8267         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8268         bound negative.  Suffix upper bound with "L".
8269         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8270         bound with "UL".
8271         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8272         Specify type.
8273         [C99-based standards] (LLONG_MAX): Likewise.
8274         [C99-based standards] (ULLONG_MAX): Likewise.
8275         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8276         == 0.
8277         [ISO11] (max_align_t): Require type.
8278         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8280         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8281         from $CFLAGS, without defining away __attribute__ calls.
8282         (checknamespace): Use $CFLAGS_namespace.
8284         * conform/conformtest.pl (@keywords): Only include C99 keywords
8285         for standards based on C99 or C11.
8287         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8288         Disable tests.
8289         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8290         UNIX98]: Likewise.
8292         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8293         usability of symbols in #if.
8295         * conform/conformtest.pl: If macro or constant types start
8296         "promoted:", expect the symbol to be of the following type
8297         promoted by the integer promotions.
8299         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8300         in one place.  Also handle "macro-constant".
8302         * conform/conformtest.pl: Only accept expected macro values with
8303         "==".  Parse all "macro" lines in one place.
8304         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8306         * conform/conformtest.pl: Handle braced types on "constant" lines
8307         instead of handling "typed-constant".
8308         * conform/data/signal.h-data: Use "constant" instead of
8309         "typed-constant".
8311         * conform/conformtest.pl: Handle "optional-" at start of lines in
8312         one place rather than duplicating several cases.  Handle each
8313         format of "macro" line with initial "optional-".
8315         * conform/conformtest.pl: Only accept expected constant or
8316         optional-constant values with "==".  Parse all "constant" lines in
8317         one place.  Parse all "optional-constant" lines in one place.
8318         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8319         * conform/data/fmtmsg.h-data: Likewise.
8320         * conform/data/netinet/in.h-data: Likewise.
8321         * conform/data/tar.h-data: Likewise.
8322         * conform/data/limits.h-data: Use "==" form on "constant" and
8323         "optional-constant" lines.
8325         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8326         Use -std=c99 for XOPEN2K.
8327         (@knownproblems): Remove.
8328         (newtoken): Don't check %isknown.
8330         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8331         Do not expect macro.
8332         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8333         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8334         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8335         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8336         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8337         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8338         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8339         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8340         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8341         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8342         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8343         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8344         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8345         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8346         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8348         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8349         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8350         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8351         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8352         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8353         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8354         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8355         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8356         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8357         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8358         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8359         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8360         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8361         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8362         [XPG3] (acosh): Likewise.
8363         [XPG3] (asinh): Likewise.
8364         [XPG3] (atanh): Likewise.
8365         [XPG3] (cbrt): Likewise.
8366         [XPG3] (expm1): Likewise.
8367         [XPG3] (ilogb): Likewise.
8368         [XPG3] (log1p): Likewise.
8369         [XPG3] (logb): Likewise.
8370         [XPG3] (nextafter): Likewise.
8371         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8372         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8373         [XPG3] (remainder): Likewise.
8374         [XPG3] (rint): Likewise.
8375         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8376         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8377         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8378         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8379         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8380         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8381         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8382         [UNIX98 || XOPEN2K] (scalb): Expect.
8383         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8384         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8521         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8522         _XOPEN_SOURCE_EXTENDED for XPG4.
8524         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8526         * Makeconfig (localtime): Remove variable.
8527         (inst_localtime-file): Likewise.
8529 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8532         Update.
8533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8534         Update.
8535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8536         Update.
8537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8538         Update.
8539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8540         Update.
8541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8542         Update.
8543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8544         Update.
8545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8546         Update.
8547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8548         Update.
8550 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8552         [BZ #2550]
8553         [BZ #2570]
8554         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8555         comparisons to determine direction to adjust input.
8556         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8557         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8558         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8559         Likewise.
8560         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8561         Likewise.
8562         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8563         Likewise.
8564         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8565         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8566         Likewise.
8567         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8568         Likewise.
8569         * math/libm-test.inc (nexttoward_test): Add more tests.
8571 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8573         [BZ #14040]
8574         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8575         in version GLIBC_2.1, not GLIBC_2.0.
8576         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8577         Likewise.
8579 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8581         [BZ #13942]
8582         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8583         (1 - x) * (1 + x).
8584         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8585         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8586         * math/libm-test.inc (acos_test): Add more tests.
8587         (asin_test): Likewise.
8588         * sysdeps/i386/fpu/libm-test-ulps: Update.
8589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8591         [BZ #14034]
8592         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8593         of square root.
8594         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8595         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8596         * math/libm-test.inc (acos_test_tonearest): New function.
8597         (acos_test_towardzero): Likewise.
8598         (acos_test_downward): Likewise.
8599         (acos_test_upward): Likewise.
8600         (asin_test_tonearest): Likewise.
8601         (asin_test_towardzero): Likewise.
8602         (asin_test_downward): Likewise.
8603         (asin_test_upward): Likewise.
8604         (main): Call the new functions.
8605         * sysdeps/i386/fpu/libm-test-ulps: Update.
8606         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8608         [BZ #13884]
8609         [BZ #13924]
8610         * math/e_exp10.c: Include <float.h>.
8611         (__ieee754_exp10): Handle underflow here rather than multiplying
8612         large negative argument by M_LN10.
8613         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8614         of __ieee754_expf.
8615         * math/e_exp10l.c: Include <float.h>.
8616         (__ieee754_exp10l): Handle underflow here rather than multiplying
8617         large negative argument by M_LN10l.
8618         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8619         spurious overflow exception on underflow.
8621 2012-04-29  Marek Polacek  <polacek@redhat.com>
8623         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8624         (__fortify_function): New macro.
8625         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8626         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8627         __extern_always_inline.
8628         * libio/bits/stdio2.h: Likewise.
8629         * libio/bits/stdio.h: Likewise.
8630         * string/string.h: Likewise.
8631         * string/bits/string3.h: Likewise.
8632         * include/stdio.h: Likewise.
8633         * stdlib/bits/stdlib.h: Likewise.
8634         * stdlib/stdlib.h: Likewise.
8635         * rt/bits/mqueue2.h: Likewise.
8636         * rt/mqueue.h: Likewise.
8637         * posix/bits/unistd.h: Likewise.
8638         * posix/unistd.h: Likewise.
8639         * io/bits/poll2.h: Likewise.
8640         * io/bits/fcntl2.h: Likewise.
8641         * io/fcntl.h: Likewise.
8642         * io/sys/poll.h: Likewise.
8643         * misc/bits/syslog.h: Likewise.
8644         * misc/bits/syslog-ldbl.h: Likewise.
8645         * misc/sys/syslog.h: Likewise.
8646         * socket/bits/socket2.h: Likewise.
8647         * socket/sys/socket.h: Likewise.
8648         * debug/tst-chk1.c: Likewise.
8649         * wcsmbs/bits/wchar2.h: Likewise.
8650         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8651         * wcsmbs/wchar.h: Likewise.
8653 2012-04-29  Andreas Jaeger  <aj@suse.de>
8655         * Makerules (tests): Remove enable-check-abi protection.
8656         (check-abi-warn): Remove.
8657         (check-abi-%): Remove check-abi-warn usage.
8659         * configure.in: Remove check-abi configure option.
8660         * configure: Regenerated.
8661         * config.make.in (enable-check-abi): Remove.
8663 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8665         [BZ #14033]
8666         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8667         double functions to double *_finite functions.
8669         [BZ #13941]
8670         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8671         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8672         LDBL_MIN_EXP.
8673         * stdio-common/Makefile (tests): Add tst-sprintf3.
8674         * stdio-common/tst-sprintf3.c: New file.
8676         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8677         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8679 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8681         * conform/conformtest.pl: Remove duplicate typed-constant
8682         handling.
8684 2012-04-28  David S. Miller  <davem@davemloft.net>
8686         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8687         (check-abi-%): Remove AWK script prerequisite and explicit
8688         abilist directory.
8689         (check-abi): Rewrite to just diff the symlist with the abilist.
8690         (config-tls, config-abi-config): Delete, no longer used.
8691         (update-abi-%): Remove AWK script and explicit abilist directory.
8692         (update-abi): Rewrite to simply compare and conditionally copy the
8693         symlist and the sysdep abilist file.  Remove update-abi-config
8694         checks.
8695         * abilist/ld.abilist: Remove.
8696         * abilist/libBrokenLocale.abilist: Remove.
8697         * abilist/libanl.abilist: Remove.
8698         * abilist/libcrypt.abilist: Remove.
8699         * abilist/libdl.abilist: Remove.
8700         * abilist/librt.abilist: Remove.
8701         * abilist/libthread_db.abilist: Remove.
8702         * abilist/libutil.abilist: Remove.
8703         * scripts/extract-abilist.awk: Remove.
8704         * scripts/merge-abilist.awk: Remove.
8705         * sysdeps/generic/libcidn.abilist: New file.
8706         * sysdeps/generic/libnss_compat.abilist: New file.
8707         * sysdeps/generic/libnss_db.abilist: New file.
8708         * sysdeps/generic/libnss_dns.abilist: New file.
8709         * sysdeps/generic/libnss_files.abilist: New file.
8710         * sysdeps/generic/libnss_hesiod.abilist: New file.
8711         * sysdeps/generic/libnss_nis.abilist: New file.
8712         * sysdeps/generic/libnss_nisplus.abilist: New file.
8713         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8714         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8715         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8716         file.
8717         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8718         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8719         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8720         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8721         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8722         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8723         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8724         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8725         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8726         file.
8727         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8728         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8729         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8730         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8731         file.
8732         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8733         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8734         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8735         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8736         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8737         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8738         file.
8739         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8740         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8741         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8742         file.
8743         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8744         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8745         New file.
8746         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8747         New file.
8748         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8749         New file.
8750         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8751         New file.
8752         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8753         New file.
8754         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8755         New file.
8756         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8757         New file.
8758         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8759         New file.
8760         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8761         New file.
8762         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8763         New file.
8764         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8765         New file.
8766         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8767         New file.
8768         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8769         New file.
8770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8771         file.
8772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8773         New file.
8774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8775         New file.
8776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8777         file.
8778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8779         New file.
8780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8781         New file.
8782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8783         file.
8784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8785         New file.
8786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8787         New file.
8788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8789         New file.
8790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8791         New file.
8792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8793         New file.
8794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8795         New file.
8796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8797         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8798         file.
8799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8800         New file.
8801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8802         file.
8803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8804         file.
8805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8806         file.
8807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8808         file.
8809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8810         file.
8811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8812         New file.
8813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8814         file.
8815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8816         file.
8817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8818         New file.
8819         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8820         file.
8821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8822         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8823         file.
8824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8825         New file.
8826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8827         file.
8828         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8829         file.
8830         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8831         file.
8832         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8833         file.
8834         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8835         file.
8836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8837         New file.
8838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8839         file.
8840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8841         file.
8842         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8843         New file.
8844         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8845         file.
8846         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8847         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8848         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8849         file.
8850         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8851         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8852         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8853         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8854         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8855         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8856         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8857         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8858         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8859         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8862         file.
8863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8864         New file.
8865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8866         file.
8867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8868         file.
8869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8870         file.
8871         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8872         file.
8873         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8874         file.
8875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8876         New file.
8877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8878         New file.
8879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8880         file.
8881         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8882         New file.
8883         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8884         file.
8885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8886         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8887         file.
8888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8889         New file.
8890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8891         file.
8892         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8893         file.
8894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8895         file.
8896         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8897         file.
8898         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8899         file.
8900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8901         New file.
8902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8903         New file.
8904         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8905         file.
8906         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8907         New file.
8908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8909         file.
8911 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8913         * conform/conformtest.pl: Fix typo in handling typed-constant from
8914         allow-header.
8916 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8918         * README: Cut down references to pre-2.6 Linux kernels and
8919         Linuxthreads.  Update lists of configurations in libc and ports
8920         and sort alphabetically.  Say "or newer" with Linux kernel version
8921         requirements.
8923         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8925 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8927         [BZ #887]
8928         * math/libm-test.inc (logb_test_downward): New test to expose
8929         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8930         rounding mode.
8932 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8934         [BZ #14027]
8935         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8936         to be done.
8937         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8938         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8940 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8942         * sysdeps/unix/i386/brk.S: Remove file.
8943         * sysdeps/unix/i386/dl-brk.S: Likewise.
8944         * sysdeps/unix/i386/pipe.S: Likewise.
8945         * sysdeps/unix/i386/sigreturn.S: Likewise.
8946         * sysdeps/unix/i386/syscall.S: Likewise.
8947         * sysdeps/unix/i386/vfork.S: Likewise.
8948         * sysdeps/unix/i386/wait.S: Likewise.
8950         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8951         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8953         * configure.in (arm*-none*): Do not allow without
8954         --enable-hacker-mode.
8955         (netbsd*): Remove case setting base_os.
8956         (386bsd*): Likewise.
8957         (freebsd*): Likewise.
8958         (bsdi*): Likewise.
8959         (osf*): Likewise.
8960         (sunos*): Likewise.
8961         (ultrix*): Likewise.
8962         (newsos*): Likewise.
8963         (dynix*): Likewise.
8964         (*bsd*): Likewise.
8965         (sysv*): Likewise.
8966         (isc*): Likewise.
8967         (esix*): Likewise.
8968         (sco*): Likewise.
8969         (minix*): Likewise.
8970         (irix4*): Likewise.
8971         (irix6*): Likewise.
8972         (solaris[2-9]*): Likewise.
8973         (none): Likewise.
8974         * configure: Regenerated.
8976 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8978         [BZ #11521]
8979         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8980         overflow or cancellation in calculating denominator.
8981         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8982         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8983         down expression to avoid unexpected rounding in newer GCCs.
8984         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8986 2012-04-26  David S. Miller  <davem@davemloft.net>
8988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8989         long-double compat symbols.
8990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9000         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9001         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9002         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9004 2012-04-25  David S. Miller  <davem@davemloft.net>
9006         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9007         HWCAP_* values only after the memory barriers have been defined.
9008         (atomic_full_barrier): Define.
9009         (atomic_read_barrier): Define.
9010         (atomic_write_barrier): Define.
9012 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9014         * shlib-versions: Add libgcc_s version information.
9015         * sysdeps/generic/libgcc_s.h: Remove.
9016         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9017         libgcc_s.h.
9018         * sysdeps/gnu/unwind-resume.c: Likewise.
9019         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9021 2012-04-25  David S. Miller  <davem@davemloft.net>
9023         * sysdeps/unix/sparc/brk.S: Delete.
9024         * sysdeps/unix/sparc/dl-brk.S: Delete.
9025         * sysdeps/unix/sparc/pipe.S: Delete.
9026         * sysdeps/unix/sparc/sysdep.S: Delete.
9027         * sysdeps/unix/sparc/sysdep.h: Delete.
9028         * sysdeps/unix/sparc/vfork.S: Delete.
9029         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9030         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9031         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9032         ret_ERRVAL, r0, r1, MOVE): Define.
9033         (JUMPTARGET): Remove.
9034         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9035         sysdeps/unix/sparc/sysdep.h
9036         (ENTRY, END): Remove.
9037         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9039 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9041         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9042         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9043         -DIS_IN_build.
9045         * timezone/README: Update upstream location and email address for
9046         tzcode and tzdata.
9047         * timezone/zdump.c: Update from tzcode 2012b.
9048         * timezone/zic.c: Likewise.
9050         * configure.in (libc_cv_as_needed): Remove test.
9051         * configure: Regenerated.
9052         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9053         conditional definition.
9054         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9055         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9056         * config.make.in (have-as-needed): Remove variable.
9058 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9059             Paul Pluzhnikov  <ppluzhnikov@google.com>
9061         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9062         strings correctly.
9064 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9066         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9067         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9068         * sysdeps/sh/strlen.S: Likewise.
9070 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9072         * sysdeps/unix/fork.S: Remove file.
9073         * sysdeps/unix/i386/fork.S: Likewise.
9074         * sysdeps/unix/sparc/fork.S: Likewise.
9076         * sysdeps/unix/system.c: Remove file.
9077         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9079         * sysdeps/unix/getegid.S: Remove file.
9080         * sysdeps/unix/geteuid.S: Likewise.
9082 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9084         * scripts/check-localplt.awk: New file.
9085         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9086         of diff.
9087         * scripts/data/localplt-generic.data: Add a comment.
9089         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9090         NODE when __dir_mkfile failed.
9091         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9092         Reported by Ludovic Courtès <ludo@gnu.org>.
9094 2012-04-24  Andreas Jaeger  <aj@suse.de>
9096         * Makerules (common-clean): Also remove gen-as-const-headers
9097         files.
9099 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9101         * Makerules (native-compile): Do not change working directory for
9102         build.  Use $(OUTPUT_OPTION) in command.
9103         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9105 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9107         [BZ #13886]
9108         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9109         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9110         * math/libm-test.inc (floor_test): Add more tests.
9111         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9113 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9115         * sysdeps/unix/getdents.c: Remove file.
9116         * sysdeps/unix/sysv/getdents.c: Likewise.
9117         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9119         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9120         sysdeps/unix/mman/syscalls.list.
9121         (mmap): Likewise.
9122         (mprotect): Likewise.
9123         (msync): Likewise.
9124         (munmap): Likewise.
9125         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9126         * sysdeps/unix/mman/syscalls.list: Remove.
9127         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9129         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9130         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9131         * configure: Regenerated.
9132         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9133         $(libgcc_s_suffix).
9134         * config.make.in (libgcc_s_suffix): Remove variable.
9136 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9138         * sysdeps/unix/sysv/gethostname.c: Move to ...
9139         * sysdeps/posix/gethostname.c: ... here.
9141         * sysdeps/unix/execve.S: Remove file.
9143         * sysdeps/unix/_exit.S: Remove file.
9145 2012-04-23  Andreas Jaeger  <aj@suse.de>
9147         [BZ #13739]
9148         * manual/Makefile: Remove make dist support, there's no
9149         need for a stand-alone documentation tar ball.
9150         (TEXI2DVI): Define always, it's not in Makeconfig.
9151         (dist): Removed.
9152         (tar-it): Removed.
9153         (edition): Removed.
9154         (glibc-doc-$(edition).tar): Removed
9155         (%.Z): Removed.
9156         (%.gz): Removed.
9157         (%.uu): Removed.
9158         (ETAGS): Remove, it's in Makeconfig.
9159         (move-if-change): Remove, it's in Makeconfig.
9161 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9163         [BZ #13970]
9164         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9165         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9166         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9167         (strtod_l, strtof_l, strtold_l): Remove __wur.
9168         It is not necessarily an error to ignore strtol's return value.
9169         One can reliably look at the stored endptr to decide whether
9170         the number had valid syntax.
9172 2012-04-21  Andreas Jaeger  <aj@suse.de>
9174         [BZ #13739]
9175         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9177 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9179         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9180         * sysdeps/unix/sysv/Versions: Remove file.
9182 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9184         [BZ #13927]
9185         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9187 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9189         [BZ #7064]
9190         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9191         version from __vm86.
9193 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9195         * sysdeps/unix/common/lxstat.c: Remove file.
9196         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9198         * sysdeps/unix/sysv/Makefile: Remove file.
9200         * sysdeps/unix/sysv/direct.h: Remove file.
9202         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9203         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9204         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9205         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9206         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9207         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9208         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9210         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9212         * sysdeps/unix/xmknod.c: Remove file.
9213         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9215         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9217         * sysdeps/unix/sysv/i386/time.S: Remove file.
9219         * sysdeps/unix/fxstat.c: Remove file.
9220         * sysdeps/unix/xstat.c: Likewise.
9221         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9223         * sysdeps/unix/sysv/sigaction.c: Remove file.
9225         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9226         (sysdep_headers): Remove variable.
9227         [termio.h not in sysdep_headers] (generated): Likewise.
9228         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9229         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9230         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9231         * sysdeps/unix/sysv/tcflow.c: Likewise.
9232         * sysdeps/unix/sysv/tcflush.c: Likewise.
9233         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9234         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9235         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9236         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9237         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9239         * sysdeps/unix/siglist.c: Remove file.
9241         * sysdeps/unix/getppid.S: Remove file.
9243         * sysdeps/unix/mkdir.c: Remove file.
9244         * sysdeps/unix/rmdir.c: Likewise.
9246 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9248         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9249         ERR_MAX value.
9250         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9251         errlist-compat value.
9253 2012-04-18  David S. Miller  <davem@davemloft.net>
9255         * sysdeps/generic/memcopy.h (reg_char): Delete.
9256         * debug/strcat_chk.c: Use char, not reg_char.
9257         * debug/strcpy_chk.c: Likewise.
9258         * debug/strncat_chk.c: Likewise.
9259         * debug/strncpy_chk.c: Likewise.
9260         * string/memchr.c: Likewise.
9261         * string/memrchr.c: Likewise.
9262         * string/rawmemchr.c: Likewise.
9263         * string/strcat.c: Likewise.
9264         * string/strchr.c: Likewise.
9265         * string/strchrnul.c: Likewise.
9266         * string/strcmp.c: Likewise.
9267         * string/strcpy.c: Likewise.
9268         * string/strncat.c: Likewise.
9269         * string/strncmp.c: Likewise.
9270         * string/strncpy.c: Likewise.
9272 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9274         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9275         __builtin_memcopy is called when src and dest ranges are known to not
9276         overlap.
9278 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9280         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9281         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9282         fwd_align_merge macro call.
9283         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9284         bwd_align_merge macro call.
9285         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9287 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9289         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9290         bwd_align_merge macros.
9291         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9292         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9293         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9295 2012-04-18  David S. Miller  <davem@davemloft.net>
9297         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9299 2012-04-18  Andreas Jaeger  <aj@suse.de>
9301         [BZ# 6794]
9302         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9303         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9304         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9306         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9307         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9308         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9310         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9311         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9312         Adjust for changed ldbl-128 files.
9314         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9315         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9316         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9318 2012-04-17  David S. Miller  <davem@davemloft.net>
9320         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9322 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9324         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9325         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9326         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9327         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9328         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9329         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9331 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9333         [BZ #6794]
9334         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9335         * math/libm-test.inc: Add ilogb errno and exception tests.
9336         * math/w_ilogb.c: New file: ilogb wrapper.
9337         * math/w_ilogbf.c: New file: ilogbf wrapper.
9338         * math/w_ilogbl.c: New file: ilogbl wrapper.
9339         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9340         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9341         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9342         exception being thrown with 0.0 as argument.
9343         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9344         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9345         exception being thrown with 0.0 as argument.
9346         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9347         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9348         exception being thrown with 0.0 as argument.
9349         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9350         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9351         exception being thrown with 0.0 as argument.
9352         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9353         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9354         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9355         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9356         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9357         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9358         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9359         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9360         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9362 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9364         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9365         with altivec.
9367 2012-04-16  Marek Polacek  <polacek@redhat.com>
9369         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9371 2012-04-16  Marek Polacek  <polacek@redhat.com>
9373         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9374         operands of fdivp instruction.
9376 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9378         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9379         * elf/tst-auditmod3b.c: Likewise.
9380         * elf/tst-auditmod4b.c: Likewise.
9381         * elf/tst-auditmod5b.c: Likewise.
9382         * elf/tst-auditmod6b.c: Likewise.
9383         * elf/tst-auditmod6c.c: Likewise.
9384         * elf/tst-auditmod7b.c: Likewise.
9385         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9386         * sysdeps/x86_64/preconfigure.in: Likewise.
9387         * sysdeps/x86_64/preconfigure: Regenerated.
9389 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9391         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9392         __ILP32__.
9394 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9396         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9397         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9399 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9401         [BZ #13973]
9402         * locale/iso-639.def: Fix gl language name. Spotted by
9403         Yaron Shahrabani.
9405 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9407         [BZ #2074]
9408         * libio/libio.h (__io_write_fn): Update comment.
9410 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9412         [BZ #2074]
9413         * stdio.texi (Hook Functions): The user provided writer function
9414         is not allowed to return -1.
9416 2012-04-11  David S. Miller  <davem@davemloft.net>
9418         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9420 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9422         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9423         Add a leading slash to rtkaio.
9425 2012-04-11  Jim Meyering  <meyering@redhat.com>
9427         [BZ #11959]
9428         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9429         It is not necessarily an error to ignore fwrite's return
9430         value.  One can reliably use ferror to test for errors after
9431         the fact.
9433 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9435         * bits/types.h (__snseconds_t): New type.
9436         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9438         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9439         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9440         (__SNSECONDS_T_TYPE): Likewise.
9441         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9442         (__SNSECONDS_T_TYPE): Likewise.
9443         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9444         (__SNSECONDS_T_TYPE): Likewise.
9446 2012-04-10  Andreas Jaeger  <aj@suse.de>
9448         [BZ #2636]
9449         * manual/time.texi (Processor Time): Return type of times is
9450         elapsed real time since an arbitrary point in the past.
9451         (CPU Time): Move CLK_TCK from here...
9452         (Processor Time): ...to here.  Correct description.
9453         * manual/conf.texi (Constants for Sysconf): Correct description of
9454         _SC_CLK_TCK.
9456 2012-04-10  David S. Miller  <davem@davemloft.net>
9458         [BZ #13967]
9459         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9460         where the is a gap between DT_REL(A) and DT_JMPREL.
9462 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9464         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9465         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9466         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9468 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9470         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9471         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9472         (dl_main): Handle --inhibit-cache.
9473         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9474         _dl_inhibit_cache.
9475         * elf/dl-load.c (_dl_map_object): Use it.
9476         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9478 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9480         [BZ #13872]
9481         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9482         (__ieee754_powl): Saturate large exponents rather than testing for
9483         overflow of y*log2(x).
9484         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9485         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9486         exceptions.
9488         [BZ #11521]
9489         * math/s_ctan.c: Include <float.h>.
9490         (__ctan): Avoid internal overflow or cancellation in calculating
9491         denominator.
9492         * math/s_ctanf.c: Likewise.
9493         * math/s_ctanl.c: Likewise.
9494         * math/s_ctanh.c: Likewise.
9495         * math/s_ctanhf.c: Likewise.
9496         * math/s_ctanhl.c: Likewise.
9497         * math/libm-test.inc (ctan_test): Add more tests.
9498         (ctanh_test): Likewise.
9499         * sysdeps/i386/fpu/libm-test-ulps: Update.
9500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9502 2012-04-09  Andreas Jaeger  <aj@suse.de>
9504         [BZ #6894]
9505         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9506         is an optional BSD extension.
9508         [BZ #10254]
9509         * manual/stdio.texi (Opening Streams): Document additional fopen
9510         parameters.
9512 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9514         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9515         %eax without telling the compiler.
9517 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9519         [BZ # 13963]
9520         * manual/install.texi: Use sourceware.org.
9522 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9524         [BZ #13873]
9525         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9526         (__ieee754_pow): Generate overflow and underflow using huge*huge
9527         and tiny*tiny rather than just returning constant infinity or zero
9528         for large exponents.
9529         * math/libm-test.inc (pow_test): Require overflow exceptions for
9530         applicable cases of large exponents.
9532         [BZ #706]
9533         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9534         (__ieee754_pow): Use iterative multiplication algorithm only for
9535         integer exponents with absolute value below 1024.  Check for odd
9536         integer exponents when using algorithm for real exponents.
9537         * math/libm-test.inc (pow_test): Add more tests.
9538         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9540 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9542         [BZ #13705]
9543         * math/libm-test.inc (exp_test): Do not allow overflow exception
9544         on underflow test.
9546 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9548         [BZ #13705]
9549         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9550         instead of __kernel_standard_f.
9552 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9554         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9555         * sysdeps/x86_64/memset_chk.S: Likewise.
9557 2012-04-08  Andreas Jaeger  <aj@suse.de>
9559         [BZ #10153]
9560         * manual/startup.texi (Environment Access): Describe return value
9561         for putenv and setenv.
9563         [BZ #6895]
9564         * manual/filesys.texi (Directory Entries): Add description for
9565         DT_LNK.
9567         [BZ #6890]
9568         * manual/filesys.texi (Directory Entries): Clarify that it's file
9569         system not operating system in the description of DT_UNKNOWN.
9571         [BZ #6578]
9572         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9574 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9576         [BZ #6649]
9577         * manual/llio.texi (Opening and Closing Files): Add cross
9578         reference to explain mode argument.
9580 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9582         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9583         * sysdeps/x86_64/memset_chk.S: Likewise.
9585 2012-04-07  David S. Miller  <davem@davemloft.net>
9587         * elf/elf.h (R_SPARC_WDISP10): Define.
9588         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9589         R_SPARC_SIZE32.
9590         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9591         R_SPARC_SIZE64 and R_SPARC_H34.
9593 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9595         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9596         conditions and remove no longer applicable assertion.
9598 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9600         * bits/byteswap.h: Include <features.h>.
9601         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9602         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9604 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9606         * bits/byteswap.h (__bswap_16): Removed.
9607         Include <bits/byteswap-16.h> to get __bswap_16.
9608         * sysdeps/i386/bits/byteswap.h: Likewise.
9609         * sysdeps/s390/bits/byteswap.h: Likewise.
9610         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9611         * bits/byteswap-16.h: New file.
9612         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9613         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9614         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9615         * string/Makefile (headers): Add bits/byteswap-16.h.
9617 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9619         [BZ #13895]
9620         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9621         extra indirection.
9622         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9623         * nss/tst-nss-static.c: New.
9625 2012-04-06  Robert Millan  <rmh@gnu.org>
9627         [BZ #6486]
9628         * manual/llio.texi (File Position Primitive): lseek
9629         refers to WHENCE when it really means OFFSET.
9631 2012-04-06  Andreas Jaeger  <aj@suse.de>
9633         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9634         strncmp declarations.
9636         * abilist/libc.abilist: Add __poll and __ppoll.
9638 2012-04-05  David S. Miller  <davem@davemloft.net>
9640         * scripts/check-local-headers.sh: Accept a host triplet in the
9641         path matched by the exclude regexp.
9643         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9644         definition.
9645         * sysdeps/powerpc/powerpc32/dl-machine.h
9646         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9647         * sysdeps/s390/s390-32/dl-machine.h
9648         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9649         * sysdeps/sparc/sparc32/dl-machine.h
9650         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9651         * sysdeps/sparc/sparc64/dl-machine.h
9652         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9654         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9655         lazy binding.
9656         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9657         undefined symbol errors.
9659         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9660         DT_NEEDED entries.
9662 2012-04-05  Michael Matz  <matz@suse.de>
9664         [BZ #13592]
9665         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9667 2012-04-05  Andreas Jaeger  <aj@suse.de>
9669         [BZ #13908]
9670         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9671         comment.
9673 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9675         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9676         which ROUND is no valid rounding mode.
9678 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9680         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9681         read again.
9682         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9684 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9686         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9687         an exception using FPU order intentionally.
9689 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9691         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9692         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9693         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9694         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9696 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9698         [BZ #12340]
9699         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9700         EINVAL when BUFLEN is too smal.
9702 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9704         [BZ #13553]
9705         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9706         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9708 2012-04-03  Andreas Jaeger  <aj@suse.de>
9710         [BZ #13938]
9711         * manual/setjmp.texi (System V contexts): Fix sentence.
9713         [BZ #13926]
9714         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9715         New macro for this case.
9716         [!__GNUC__] (__bswap_64): New inline function for this case.
9717         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9718         * bits/byteswap.h: Likewise.
9719         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9720         ull, guard with __GLIBC_HAVE_LONG_LONG.
9722         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9723         __GLIBC_HAVE_LONG_LONG.
9725         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9726         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9728 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9730         [BZ #13691]
9731         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9732         inptr and inend, rather than using last_ch.
9734 2012-04-02  David S. Miller  <davem@davemloft.net>
9736         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9737         * stdio-common/printf-parse.h (read_int): Change return type to
9738         'int', return -1 on INT_MAX overflow.
9739         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9740         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9741         overflows INT_MAX.  Check for overflow of in-format-string precision
9742         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9743         SIZE_MAX not INT_MAX for integer overflow test.
9744         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9745         skip the construct in the format string but do not record anything.
9746         * stdio-common/bug22.c: Adjust to test both width/prevision
9747         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9748         explicitly for proper errno values.
9750 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9752         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9753         CHAR_MAX.
9754         * string/test-strcmp.c [! WIDE]: Likewise.
9755         * time/tst-mktime2.c: Likewise for INT_MAX.
9756         * string/test-string.h: #include <sys/param.h> for MIN.
9758         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9759         * sysdeps/i386/init-first.c (init): Likewise.
9760         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9761         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9762         * sysdeps/sh/init-first.c (init): Likewise.
9764 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9766         * po/ru.po: Update from translation team.
9767         * po/vi.po: Likewise.
9769 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9771         * resolv/nss_dns/dns-host.c: Merge copyright years.
9773 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9775         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9776         Optimize memcpy with prefetch if
9777         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9778         src, dst pointers have unequal 16 byte alignments.
9780 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9782         [BZ #13928]
9783         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9784         from a CNAME entry and return the minimum ttl for the query.
9785         (gaih_getanswer_slice): Likewise.
9787 2012-03-30  Jeff Law  <law@redhat.com>
9789         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9790         due to long keys.
9791         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9792         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9794         * resolv/nss_dns/dns-host.c: Update copyright year.
9796 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9798         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9799         requests to save a system call.  Fix check that all bytes are sent.
9801         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9802         comments for sendmmsg.
9804 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9806         [BZ #13691]
9807         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9808         with only 1 character between 0x0041 and 0x01b0.
9809         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9810         * wcsmbs/tst-mbsnrtowcs.c: New file.
9812 2012-03-29  David S. Miller  <davem@davemloft.net>
9814         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9815         small copies by hand.
9817 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9819         [BZ #13761]
9820         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9821         _nss_compat_initgroups_dyn): Fall back to malloc/free
9822         for large group memberships.
9824 2012-03-28  David S. Miller  <davem@davemloft.net>
9826         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9827         that branches into memcpy.
9828         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9829         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9830         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9831         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9832         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9833         bits.
9834         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9835         implementation too.
9836         * sysdeps/sparc/mempcpy.S: New file.
9838         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9839         the IFUNC routine in the libc case.
9840         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9842         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9843         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9844         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9845         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9846         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9847         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9848         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9849         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9851         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9852         loop to 256 bytes instead of 64 bytes and fix test signedness.
9854         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9855         * sysdeps/sparc/sparc32/Makefile: rather than here...
9856         * sysdeps/sparc/sparc64/Makefile: and here.
9858 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9860         * malloc/mallocbug.c: Avoid warnings about unused variables.
9862 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9864         [BZ #13760]
9865         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9866         in the right place. Discard and retry query if response is
9867         larger than input buffer size.
9869 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9871         [BZ #369]
9872         [BZ #2678]
9873         [BZ #3866]
9874         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9875         x for large integer exponent.
9876         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9877         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9878         sign of result as needed afterwards.
9879         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9880         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9881         result for underflowing pow the same as for overflow.
9882         (__kernel_standard_l): Handle powl overflow and underflow here
9883         rather than calling __kernel_standard.
9884         * math/libm-test.inc (pow_test): Add more tests.
9886         [BZ #3868]
9887         [BZ #13879]
9888         [BZ #13910]
9889         [BZ #13911]
9890         [BZ #13912]
9891         [BZ #13913]
9892         [BZ #13915]
9893         [BZ #13916]
9894         [BZ #13917]
9895         [BZ #13918]
9896         [BZ #13919]
9897         [BZ #13920]
9898         [BZ #13921]
9899         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9900         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9901         (__kernel_standard_l): New function.
9902         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9903         __kernel_standard.
9904         * math/w_acosl.c (__acosl): Likewise.
9905         * math/w_asinl.c (__asinl): Likewise.
9906         * math/w_atan2l.c (__atan2l): Likewise.
9907         * math/w_atanhl.c (__atanhl): Likewise.
9908         * math/w_coshl.c (__coshl): Likewise.
9909         * math/w_exp10l.c (__exp10l): Likewise.
9910         * math/w_exp2l.c (__exp2l): Likewise.
9911         * math/w_fmodl.c (__fmodl): Likewise.
9912         * math/w_hypotl.c (__hypotl): Likewise.
9913         * math/w_j0l.c (__j0l, __y0l): Likewise.
9914         * math/w_j1l.c (__j1l, __y1l): Likewise.
9915         * math/w_jnl.c (__jnl, __ynl): Likewise.
9916         * math/w_lgammal.c (__lgammal): Likewise.
9917         * math/w_log10l.c (__log10l): Likewise.
9918         * math/w_log2l.c (__log2l): Likewise.
9919         * math/w_logl.c (__logl): Likewise.
9920         * math/w_powl.c (__powl): Likewise.
9921         * math/w_remainderl.c (__remainderl): Likewise.
9922         * math/w_scalbl.c (sysv_scalbl): Likewise.
9923         * math/w_sinhl.c (__sinhl): Likewise.
9924         * math/w_sqrtl.c (__sqrtl): Likewise.
9925         * math/w_tgammal.c (__tgammal): Likewise.
9926         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9927         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9928         * math/libm-test.inc (acos_test): Add more tests.
9929         (acosh_test): Likewise.
9930         (asin_test): Likewise.
9931         (atanh_test): Likewise.
9932         (exp_test): Likewise.
9933         (exp10_test): Likewise.
9934         (exp2_test): Likewise.
9935         (expm1_test): Likewise.
9936         (lgamma_test): Likewise.
9937         (log_test): Likewise.
9938         (log10_test): Likewise.
9939         (log1p_test): Likewise.
9940         (log2_test): Likewise.
9941         (pow_test): Do not allow some spurious overflow exceptions.
9942         (sqrt_test): Add more tests.
9943         (tgamma_test): Likewise.
9944         (y0_test): Likewise.
9945         (y1_test): Likewise.
9946         (yn_test): Likewise.
9948 2012-03-27  Anton Blanchard  <anton@samba.org>
9950         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9951         MAP_HUGETLB.
9952         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9953         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9954         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9956 2012-03-27  David S. Miller  <davem@davemloft.net>
9958         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9960         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9961         have-as-vis3 check.
9963 2012-03-27  Andreas Jaeger  <aj@suse.de>
9965         * sysdeps/x86_64/elf/configure.in: Moved to ...
9966         * sysdeps/x86_64/configure.in: ... here.
9967         * sysdeps/x86_64/elf/start.S: Moved to ...
9968         * sysdeps/x86_64/start.S: ... here.
9969         * sysdeps/x86_64/elf/configure: Delete.
9971         * sysdeps/x86_64/configure.in: Merge contents from
9972         sysdeps/i386/configure.in (without i686 check).
9974         * sysdeps/i386/elf/Versions: Merge into ...
9975         * sysdeps/i386/Versions: ... this.
9976         * sysdeps/i386/elf/Versions: Delete file.
9977         * sysdeps/i386/elf/start.S: Moved to ...
9978         * sysdeps/i386/start.S: ...here.
9979         * sysdeps/i386/elf/configure.in: Merge into...
9980         * sysdeps/i386/configure.in: ...here.
9981         * sysdeps/i386/elf/configure.in: Delete file.
9982         * sysdeps/i386/elf/configure: Delete file.
9984         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9985         * debug/backtracesyms.c: ... here.
9986         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9987         * debug/backtracesymsfd.c: ... here.
9988         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9989         * sysdeps/generic/ifunc-sel.h: ... here.
9991         * sysdeps/unix/i386/start.c: Delete file.
9992         * sysdeps/unix/sparc/start.c: Delete file.
9993         * sysdeps/unix/start.c: Delete file.
9995         * sysdeps/sh/elf/configure.in: Moved to ...
9996         * sysdeps/sh/configure.in: ... here.
9997         * sysdeps/sh/elf/start.S: Moved to ...
9998         * sysdeps/sh/start.S: ... here.
9999         * sysdeps/sh/elf/configure: Delete file.
10001         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10002         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10003         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10004         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10005         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10006         * sysdeps/powerpc/powerpc64/start.S: here.
10007         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10008         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10009         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10010         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10011         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10013         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10014         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10015         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10016         * sysdeps/powerpc/powerpc32/start.S: ... here.
10017         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10018         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10019         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10021         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10022         * sysdeps/powerpc/ifunc-sel.h: ... here.
10023         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10024         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10026         * sysdeps/sparc/elf/configure.in: Moved to ...
10027         * sysdeps/sparc/configure.in: ... here.
10028         * sysdeps/sparc/elf/configure: Delete file.
10029         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10030         * sysdeps/sparc/sparc32/start.S: ... here.
10031         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10032         * sysdeps/sparc/sparc64/start.S: ... here.
10033         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10034         * sysdeps/sparc/sparc32/Makefile: ... this.
10035         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10036         * sysdeps/sparc/sparc64/Makefile: ... this.
10038         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10039         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10040         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10041         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10042         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10043         * sysdeps/s390/s390-32/setjmp.S: ... here.
10044         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10045         * sysdeps/s390/s390-32/configure.in: ... here.
10046         * sysdeps/s390/s390-32/elf/configure: Delete file.
10047         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10048         * sysdeps/s390/s390-32/start.S: ... here.
10050         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10051         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10052         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10053         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10054         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10055         * sysdeps/s390/s390-64/setjmp.S: ... here.
10056         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10057         * sysdeps/s390/s390-64/configure.in: ... here
10058         * sysdeps/s390/s390-64/elf/configure: Delete file.
10059         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10060         * sysdeps/s390/s390-64/start.S: ... here.
10061         * sysdeps/s390/s390-64/elf/configure: Delete.
10063         * configure.in: Remove support for elf directories in sysdeps.
10065         * configure: Regenerated.
10066         * sysdeps/i386/configure: Regenerated.
10067         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10068         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10069         * sysdeps/s390/s390-32/configure: Regenerated.
10070         * sysdeps/s390/s390-64/configure: Regenerated.
10071         * sysdeps/sh/configure: Regenerated.
10072         * sysdeps/sparc/configure: Regenerated.
10073         * sysdeps/x86_64/configure: Regenerated.
10075 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10077         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10079         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10080         denormal result into account.
10082 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10084         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10085         Reported by Allan McRae <allan@archlinux.org>.
10087 2012-03-23  Jeff Law  <law@redhat.com>
10089         * nss/getnssent.c (__nss_getent): Fix typo.
10091 2012-03-23  David S. Miller  <davem@davemloft.net>
10093         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10095 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10097         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10098         to pad to uint64_t for each field.
10099         (dl_tls_index): Replace unsigned long with uint64_t.
10101 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10102         Paul Pluzhnikov  <ppluzhnikov@google.com>
10104         [BZ #6528]
10105         * grp/Makefile (otherlibs): Don't set it.
10106         * inet/Makefile (otherlibs): Likewise.
10107         * login/Makefile (otherlibs): Likewise.
10108         * nscd/Makefile (otherlibs): Likewise.
10109         * posix/Makefile (otherlibs): Likewise.
10110         * pwd/Makefile (otherlibs): Likewise.
10111         * rt/Makefile (otherlibs): Likewise.
10112         * sunrpc/Makefile (otherlibs): Likewise.
10113         * nss/Makefile (otherlibs): Likewise.
10114         Add libnss_files to routines and static-only-routines.
10115         ($(objpfx)getent): Remove rule.
10116         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10117         static-only-routines.
10119 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10121         [BZ #13892]
10122         * math/s_cexp.c: Include <float.h>.
10123         (__cexp): Handle exp result overflowing not necessarily
10124         overflowing both real and imaginary parts of result.
10125         * math/s_cexpf.c: Likewise.
10126         * math/s_cexpl.c: Likewise.
10127         * math/libm-test.inc (cexp_test): Add more tests.
10128         * sysdeps/i386/fpu/libm-test-ulps: Update.
10129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10131 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10133         * include/link.h (ELFW): New macro.
10134         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10135         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10137 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10139         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10140         with uint64_t.
10142 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10144         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10145         declaration.
10146         (struct La_x32_retval): Likewise.
10148 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10150         * sysdeps/x86_64/preconfigure.in: New file.
10151         * sysdeps/x86_64/preconfigure: New generated file.
10153 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10155         [BZ #13824]
10156         * math/e_exp2l.c: Include <float.h>.
10157         (__ieee754_exp2l): Handle overflow and underflow cases
10158         separately.  Only pass fractional part of argument to
10159         __ieee754_expl.
10160         * math/libm-test.inc (exp2_test): Add more tests.
10162         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10163         negating x to take absolute value.
10164         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10165         Likewise.
10166         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10167         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10168         Likewise.
10169         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10170         computing low part if x was negated.
10171         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10173 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10175         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10176         la_x32_gnu_pltexit.
10177         (pltexit): Cast int_retval to ptrdiff_t.
10178         * elf/tst-auditmod3b.c: Likewise.
10179         * elf/tst-auditmod4b.c: Likewise.
10180         * elf/tst-auditmod5b.c: Likewise.
10181         * elf/tst-auditmod6b.c: Likewise.
10182         * elf/tst-auditmod6c.c: Likewise.
10183         * elf/tst-auditmod7b.c: Likewise.
10185         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10186         and x32_gnu_pltexit.
10188         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10189         __ELF_NATIVE_CLASS.
10190         (La_x32_regs): New macro.
10191         (La_x32_retval): Likewise.
10192         (la_x32_gnu_pltenter): New function prototype.
10193         (la_x32_gnu_pltexit): Likewise.
10195 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10197         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10198         exponent.
10200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10202         * configure.in (libc_cv_cc_nofma): Check for option to disable
10203         generation of FMA instructions.
10204         * configure: Regenerate.
10205         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10206         * sysdeps/ieee754/dbl-64/Makefile: New file.
10207         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10208         Remove brandred-fma4.
10209         (CFLAGS-brandred-fma4.c): Remove.
10210         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10211         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10212         define.
10213         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10214         define.
10216 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10218         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10219         LLONG_MAX != LONG_MAX.
10220         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10221         (_fitoa_word): Likewise.
10222         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10223         LLONG_MAX != LONG_MAX.
10224         * stdio-common/_itowa.h: Include <_itoa.h>.
10225         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10226         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10227         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10228         only if not defined.
10229         (_ITOA_WORD_TYPE): Likewise.
10230         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10231         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10233 2012-03-21  David S. Miller  <davem@davemloft.net>
10235         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10237 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10239         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10240         of x86_64 when setting libc_cv_slibdir, libdir and
10241         libc_cv_localedir.
10242         * sysdeps/unix/sysv/linux/configure: Regenerated.
10244 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10246         * manual/lang.texi (Old Varargs): Remove section.
10247         (How Variadic): Update menu.
10248         (va_start): Do not mention varargs.h.
10250 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10251             Joseph Myers  <joseph@codesourcery.com>
10253         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10254         link test.
10255         * configure: Regenerated.
10257 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10259         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10260         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10261         conformtest.pl
10263 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10265         * NOTES: Remove.
10266         * Makefile (files-for-dist): Remove NOTES.
10267         (NOTES): Remove rule.
10268         * README: Don't refer to NOTES.
10269         * manual/creature.texi: Don't include macros.texi.
10270         * manual/intro.texi (creature.texi): Remove comment referring to
10271         NOTES.
10273         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10274         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10275         * configure: Regenerated.
10276         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10277         LIBC_TRY_CC_OPTION.
10278         (libc_cv_as_i686): Likewise.
10279         (libc_cv_cc_avx): Likewise.
10280         (libc_cv_cc_sse2avx): Likewise.
10281         (libc_cv_cc_fma4): Likewise.
10282         (libc_cv_cc_novzeroupper): Likewise.
10283         * sysdeps/i386/configure: Regenerated.
10285         [BZ #13883]
10286         * sysdeps/i386/fpu/s_cexp.S: Remove.
10287         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10288         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10289         * math/libm-test.inc (cexp_test): Add more tests.
10290         * sysdeps/i386/fpu/libm-test-ulps: Update.
10291         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10293 2012-03-21  Allan McRae  <allan@archlinux.org>
10295         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10297 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10299         [BZ #13871]
10300         * math/w_exp2.c: Do not include <float.h>.
10301         (o_threshold, u_threshold): Remove.
10302         (__exp2): Calculate result before checking finiteness and calling
10303         __kernel_standard.
10304         * math/w_exp2f.c: Likewise.
10305         * math/w_exp2l.c: Likewise.
10306         * math/libm-test.inc (exp2_test): Require overflow exception for
10307         1e6 input.
10309         [BZ #3866]
10310         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10311         range of signed 64-bit integers before using fistpll.  Remove
10312         checks for whether integers fit in mantissa bits.
10313         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10314         the range of signed 32-bit integers before using fistpl.  Remove
10315         checks for whether integers fit in mantissa bits.
10316         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10317         (__ieee754_powl): Test for y outside the range of signed 64-bit
10318         integers before using fistpll.  Reduce 64-bit values to 63-bit
10319         ones as needed.
10320         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10321         divide-by-zero is raised for zero to large negative powers.
10322         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10323         (__ieee754_powl): Test for y outside the range of signed 64-bit
10324         integers before using fistpll.  Reduce 64-bit values to 63-bit
10325         ones as needed.
10326         * math/libm-test.inc (pow_test): Add more tests.
10328 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10330         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10331         <stdio-common/_itoa.h>.
10332         * debug/segfault.c: Likewise.
10333         * elf/dl-cache.c: Likewise.
10334         * elf/dl-minimal.c: Likewise.
10335         * elf/dl-misc.c: Likewise.
10336         * elf/dl-sysdep.c: Likewise.
10337         * elf/dl-version.c: Likewise.
10338         * elf/rtld.c: Likewise.
10339         * hurd/hurdsock.c: Likewise.
10340         * hurd/lookup-retry.c: Likewise.
10341         * malloc/malloc.c: Likewise.
10342         * malloc/mtrace.c: Likewise.
10343         * nscd/nscd_getgr_r.c: Likewise.
10344         * nscd/nscd_getpw_r.c: Likewise.
10345         * nscd/nscd_getserv_r.c: Likewise.
10346         * posix/getopt_init.c: Likewise.
10347         * posix/wordexp.c: Likewise.
10348         * stdio-common/_itoa.c: Likewise.
10349         * stdio-common/printf_fphex.c: Likewise.
10350         * stdio-common/vfprintf.c: Likewise.
10351         * string/_strerror.c: Likewise.
10352         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10353         * sysdeps/i386/i686/hp-timing.h: Likewise.
10354         * sysdeps/mach/_strerror.c: Likewise.
10355         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10356         * sysdeps/mach/hurd/sethostid.c: Likewise.
10357         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10358         * sysdeps/mach/xpg-strerror.c: Likewise.
10359         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10360         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10361         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10362         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10363         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10364         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10365         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10366         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10367         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10368         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10369         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10370         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10371         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10372         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10373         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10374         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10375         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10376         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10377         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10378         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10379         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10381         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10383         * stdio-common/_itoa.h: Moved to ...
10384         * sysdeps/generic/_itoa.h: Here.
10386         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10388         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10389         instead of "_itoa.h" and "_itowa.h".
10390         * stdio-common/vfprintf.: Likewise.
10392 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10394         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10395         <bits/wordsize.h>.
10396         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10397         (__signbit): Likwise.
10398         (llrintf): Likwise.
10399         (llrint): Likwise.
10401 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10403         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10404         __WORDSIZE != 64.
10406 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10408         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10409         OVERFLOW_EXCEPTION_OK.
10410         * math/libm-test.inc ("Philosophy"): Update comment about
10411         exception testing.
10412         (OVERFLOW_EXCEPTION): Define.
10413         (OVERFLOW_EXCEPTION_OK): Likewise.
10414         (INVALID_EXCEPTION_OK): Renumber.
10415         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10416         (IGNORE_ZERO_INF_SIGN): Likewise.
10417         (test_exceptions): Handle FE_OVERFLOW.
10418         (exp10_test): Expect overflow exceptions.
10419         (exp2_test): Likewise.
10420         (expm1_test): Likewise.
10421         (nextafter_test): Likewise.
10422         (pow_test): Likewise.
10423         (scalbn_test): Likewise.
10424         (scalbln_test): Likewise.
10426 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10428         * sysdeps/x86_64/bits/atomic.h
10429         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10430         64bit integer.
10431         (atomic_exchange_acq): Likewise.
10432         (__arch_exchange_and_add_body): Likewise.
10433         (__arch_add_body): Likewise.
10434         (atomic_add_negative): Likewise.
10435         (atomic_add_zero): Likewise.
10437 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10439         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10440         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10442 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10444         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10445         Check __x86_64__ instead of __WORDSIZE.
10447 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10449         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10451 2012-03-19  David S. Miller  <davem@davemloft.net>
10453         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10455         * sysdeps/sparc/fpu/fenv_private.h: New file.
10456         * sysdeps/sparc/fpu/math_private.h: Use it.
10457         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10458         Remove.
10459         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10460         (libc_feholdexcept_setroundl): Remove.
10461         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10462         Remove.
10463         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10464         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10466 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10468         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10469         int64_t instead of long int.
10470         (INSERT_WORDS64): Likwise.
10472 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10474         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10475         _Unwind_GetCFA return to _Unwind_Ptr first.
10477 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10479         [BZ #13629]
10480         * math/s_clog.c: Include <float.h>.
10481         (__clog): Scale large or subnormal inputs.
10482         * math/s_clogf.c: Likewise.
10483         * math/s_clogl.c: Likewise.
10484         * math/s_clog10.c: Include <float.h>.
10485         (M_LOG10_2): Define.
10486         (__clog10): Scale large or subnormal inputs.
10487         * math/s_clog10f.c: Likewise.
10488         * math/s_clog10l.c: Likewise.
10489         * math/libm-test.inc (clog_test): Add more tests.
10490         (clog10_test): Likewise.
10491         * sysdeps/i386/fpu/libm-test-ulps: Update.
10492         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10494         [BZ #11451]
10495         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10496         x and y.
10497         * math/libm-test.inc (atan2_test): Add another test.
10499         * Makerules (common-objdir-compile): Remove.
10500         * sysdeps/unix/Makefile (config-generated): Do not add
10501         $(unix-generated) to variable.
10502         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10503         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10504         Remove rule.
10505         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10506         Likewise.
10507         [generic bits/local_lim.h] (before-compile): Do not append to
10508         variable.
10509         [generic bits/local_lim.h] (common-generated): Likewise.
10510         [generic sys/param.h] (before-compile): Do not append to variable.
10511         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10512         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10513         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10514         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10515         include.
10516         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10517         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10518         [generic sys/param.h] ($(addprefix
10519         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10520         [generic sys/param.h] (common-generated): Do not append to
10521         variable.
10522         [generic sys/param.h] (sysdep_headers): Likewise.
10523         [generic bits/errno.h] (before-compile): Do not append to
10524         variable.
10525         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10526         rule.
10527         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10528         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10529         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10530         [generic bits/errno.h] (common-generated): Do not append to
10531         variable.
10532         [generic bits/ioctls.h] (before-compile): Do not append to
10533         variable.
10534         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10535         rule.
10536         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10537         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10538         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10539         rule.
10540         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10541         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10542         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10543         [generic bits/ioctls.h] (common-generated): Do not append to
10544         variable.
10545         [generic sys/syscall.h] (syscall.h): Remove variable.
10546         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10547         rule.
10548         [generic sys/syscall.h] (before-compile): Do not append to
10549         variable.
10550         [generic sys/syscall.h] (common-generated): Likewise.
10551         * sysdeps/unix/errnos-tmpl.c: Remove file.
10552         * sysdeps/unix/errnos.awk: Likewise.
10553         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10554         * sysdeps/unix/ioctls.awk: Likewise.
10555         * sysdeps/unix/mk-local_lim.c: Likewise.
10556         * sysdeps/unix/snarf-ioctls: Likewise.
10558 2012-03-19  Richard Henderson  <rth@twiddle.net>
10560         * sysdeps/i386/fpu/fenv_private.h: New file.
10561         * sysdeps/i386/fpu/math_private.h: Use it.
10562         (math_opt_barrier, math_force_eval): Remove.
10563         (libc_feholdexcept_setround_53bit): Remove.
10564         (libc_feupdateenv_53bit): Remove.
10565         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10566         (math_opt_barrier, math_force_eval): Remove.
10567         (libc_feholdexcept): Remove.
10568         (libc_feholdexcept_setround): Remove.
10569         (libc_fetestexcept, libc_fesetenv): Remove.
10570         (libc_feupdateenv_test): Remove.
10571         (libc_feupdateenv, libc_feholdsetround): Remove.
10572         (libc_feresetround): Remove.
10574         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10575         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10577         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10578         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10579         (libc_feupdateenv_testl): New.
10580         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10581         (libc_feupdateenv_testf): New.
10582         (libc_feupdateenv): Use libc_feupdateenv_test.
10583         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10584         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10586         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10587         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10588         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10589         (libc_feresetround_noex): New.
10590         (libc_feresetround_noexf): New.
10591         (libc_feresetround_noexl): New.
10592         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10593         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10594         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10595         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10596         SET_RESTORE_ROUND.
10597         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10598         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10599         (__cos): Likewise.
10600         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10601         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10602         SET_RESTORE_ROUND_NOEX.
10603         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10604         SET_RESTORE_ROUND_NOEXF.
10605         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10606         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10607         (libc_feholdsetroundf): New.
10608         (libc_feresetround, libc_feresetroundf): New.
10610         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10611         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10612         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10614         * sysdeps/generic/math_private.h: Include <fenv.h>.
10615         (default_libc_feholdexcept): New.
10616         (default_libc_feholdexcept_setround): New.
10617         (default_libc_fesetenv, default_libc_feupdateenv): New.
10618         (libc_feholdexcept): Only define if undefined.
10619         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10620         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10621         (libc_feholdexcept_setroundl): Likewise.
10622         (libc_feholdexcept_setround_53bit): Likewise.
10623         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10624         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10625         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10626         (libc_feupdateenv_53bit): Likewise.
10627         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10628         (libc_feholdexcept): Convert from macro to inline function.
10629         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10630         (libc_fesetenv, libc_feupdateenv): Likewise.
10632         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10633         not previously defined.
10634         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10635         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10636         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10637         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10638         * sysdeps/ieee754/flt-32/math_private.h: New file.
10639         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10640         math_private.h below SET_FLOAT_WORD.
10641         (__isnan, __isinf_ns, __finite): Remove.
10642         (__isnanf, __isinf_nsf, __finitef): Remove.
10644 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10648 2012-03-17  David S. Miller  <davem@davemloft.net>
10650         [BZ #6471]
10651         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10652         for 2.16.
10654 2012-03-16  David S. Miller  <davem@davemloft.net>
10656         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10657         warnings.
10659         [BZ #6471]
10660         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10661         properly.
10662         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10663         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10664         sysdep_routines when subdir is sysvipc.
10665         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10666         __getshmlba helper.
10668         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10670 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10672         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10673         [__LP64__].
10675 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10677         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10678         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10679         (__lround): Renamed to ...
10680         (__llround): This.  Replace long int with long long int.
10681         Define lround functions as aliases of llround functions.
10682         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10684 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10686         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10687         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10688         adresses to uintptr_t.  Replace "long int" and "unsigned long
10689         int" with "greg_t" on va_arg.
10691 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10693         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10694         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10696         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10697         Move e_machine check before EI_CLASS check.  Handle x32
10698         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10699         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10700         SKIP_EM_IA_64 and include
10701         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10703         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10704         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10705         (add_system_dir): New macro.
10707         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10708         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10710 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10712         [BZ #2551]
10713         [BZ #2552]
10714         [BZ #2553]
10715         [BZ #2554]
10716         [BZ #2562]
10717         [BZ #2563]
10718         [BZ #2565]
10719         [BZ #2566]
10720         [BZ #2576]
10721         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10722         (y0): Likewise.
10723         * math/w_j0f.c (j0f): Likewise.
10724         (y0f): Likewise.
10725         * math/w_j0l.c (__j0l): Likewise.
10726         (__y0l): Likewise.
10727         * math/w_j1.c (j1): Likewise.
10728         (y1): Likewise.
10729         * math/w_j1f.c (j1f): Likewise.
10730         (y1f): Likewise.
10731         * math/w_j1l.c (__j1l): Likewise.
10732         (__y1l): Likewise.
10733         * math/w_jn.c (jn): Likewise.
10734         (yn): Likewise.
10735         * math/w_jnf.c (jnf): Likewise.
10736         (ynf): Likewise.
10737         * math/w_jnl.c (__jnl): Likewise.
10738         (__ynl): Likewise.
10739         * math/libm-test.inc (j0_test): Add more tests.
10740         (j1_test): Likewise.
10741         (jn_test): Likewise.  Add trailing semicolon to existing test.
10742         (y0_test): Likewise.
10743         (y1_test): Likewise.
10744         * sysdeps/i386/fpu/libm-test-ulps: Update.
10745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10747         [BZ #13851]
10748         [BZ #13854]
10749         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10750         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10751         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10752         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10753         (__tanl): Set errno for infinite argument.
10754         * sysdeps/i386/fpu/mptan.c: Remove.
10755         * sysdeps/i386/fpu/s_tan.S: Likewise.
10756         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10757         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10758         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10759         * math/libm-test.inc (tan_test): Add more tests and enable more
10760         tests for double and long double.
10761         * sysdeps/i386/fpu/libm-test-ulps: Update.
10762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10764 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10766         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10767         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10769 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10771         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10772         * configure.in: Use it for both main tree and add-ons.
10773         * configure: Regenerated.
10775 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10777         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10779 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10781         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10782         in comment.
10784         [BZ #13851]
10785         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10786         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10787         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10788         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10789         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10790         infinite argument.
10791         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10792         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10793         != 0 for prec == 2.
10794         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10795         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10796         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10797         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10798         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10799         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10800         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10801         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10802         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10803         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10804         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10805         * math/libm-test.inc (cos_test): Add more tests and enable more
10806         tests for long double.
10807         (sin_test): Likewise.
10808         (sincos_test): Likewise.
10809         * sysdeps/i386/fpu/libm-test-ulps: Update.
10810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10812 2012-03-16  David S. Miller  <davem@davemloft.net>
10814         * sysdeps/sparc/fpu/math_private.h: New file.
10816 2012-03-15  David S. Miller  <davem@davemloft.net>
10818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10819         file.
10820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10822         file.
10823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10824         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10825         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10826         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10827         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10828         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10829         sysdep routines.
10830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10832         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10833         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10835         * sysdeps/sparc/sparc-ifunc.h: New file.
10836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10837         sparc-ifunc.h
10838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10840         Likewise.
10841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10842         Likewise.
10843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10847         Likewise.
10848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10853         Likewise.
10854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10855         Likewise.
10856         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10860         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10861         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10862         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10863         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10864         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10865         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10866         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10867         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10868         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10869         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10870         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10871         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10872         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10873         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10874         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10875         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10876         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10877         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10878         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10879         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10881 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10883         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10884         scaling.
10885         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10887 2012-03-15  Andreas Jaeger  <aj@suse.de>
10889         [BZ #13852]
10890         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10891         ieee754/flt-32 implementation for sin, cos and sincos.
10892         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10893         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10894         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10895         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10896         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10897         ieee754/flt-32 implementation for tan.
10899         * math/libm-test.inc (cos_test): Enable some large input tests for
10900         float as well
10901         (sin_test): Likewise.
10902         (sincos_test): Likewise.
10903         (tan_test): Add tests for large input.
10905         * sysdeps/i386/fpu/libm-test-ulps: Update.
10907 2012-03-15  Andreas Jaeger  <aj@suse.de>
10909         [BZ #13658]
10910         * math/libm-test.inc (cos_test): Add more test cases.
10911         (sin_test): Likewise.
10912         (sincos_test): Likewise.
10914 2012-03-15  Andreas Jaeger  <aj@suse.de>
10916         [BZ #13837]
10917         * math/libm-test.inc (cos_test): Add a test case for large input
10918         value.
10919         (sin_test): Likewise.
10920         (sincos_test): Likewise.
10922 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10923         Joseph Myers  <joseph@codesourcery.com>
10925         [BZ #13658]
10926         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10927         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10928         * sysdeps/i386/fpu/branred.c: Likewise.
10929         * sysdeps/i386/fpu/dosincos.c: Likewise.
10930         * sysdeps/i386/fpu/mpa.c: Likewise.
10931         * sysdeps/i386/fpu/s_cos.S: Likewise.
10932         * sysdeps/i386/fpu/s_sin.S: Likewise.
10933         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10934         * sysdeps/i386/fpu/sincos32.c: Likewise.
10936         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10937         Define.
10938         (libc_feupdateenv_53bit): Define.
10939         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10940         Define.
10941         (libc_feupdateenv_53bit): Define.
10943         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10944         53 bit (without extend i386 double precision).
10946         * math/libm-test.inc (sincos_test): Add tests for large input.
10947         (sin): Likewise.
10948         (cos): Likewise.
10950         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10952 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10954         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10956 2012-03-15  David S. Miller  <davem@davemloft.net>
10958         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10959         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10960         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10961         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10964         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10965         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10967         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10968         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10969         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10970         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10971         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10972         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10974         file.
10975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10977         file.
10978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10980         file.
10981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10983         file.
10984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10986         fmin/fmax sysdep routines.
10987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10989 2012-03-14  David S. Miller  <davem@davemloft.net>
10991         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10992         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10998         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11000         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11001         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11002         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11003         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11004         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11005         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11006         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11007         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11008         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11009         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11010         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11011         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11012         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11013         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11014         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11015         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11016         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11017         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11018         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11019         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11020         routines.
11021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11022         file.
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11025         file.
11026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11028         file.
11029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11031         file.
11032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11034         file.
11035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11037         file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11039         file.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11041         file.
11042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11043         file.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11045         New file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11047         file.
11048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11049         file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11052         file.
11053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11055         file.
11056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11058         file.
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11061         VIS3 routines.
11063         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11064         New file.
11066         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11068         * sysdeps/sparc/configure.in: New file.
11069         * sysdeps/sparc/configure: Generate.
11070         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11071         * configure: Regenerate.
11072         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11073         * config.make.in (have-as-vis3): New.
11074         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11075         available use -Av9d instead of -Av9a.
11076         * sysdeps/sparc/sparc64/Makefile: Likewise.
11077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11079         New file.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11081         file.
11082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11083         New file.
11084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11085         file.
11086         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11087         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11088         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11089         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11090         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11092         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11093         fzeros/fnegs to load 0x80000000 into a float register instead of
11094         using the stack.
11095         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11097 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11099         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11100         bits/syscall.h.
11101         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11102         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11103         ($(inst_includedir)/bits/syscall.h): Remove rule.
11104         ($(objpfx)bits/syscall.d): Include instead of
11105         $(objpfx)syscall-list.d.
11106         (generated): Change syscall-list.h and syscall-list.d to
11107         bits/syscall.h and bits/syscall.d.
11109 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11111         [BZ #13846]
11112         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11114 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11116         [BZ #13841]
11117         * math/s_csqrt.c: Include <float.h>.
11118         (__csqrt): Scale large or subnormal inputs.
11119         * math/s_csqrtf.c: Likewise.
11120         * math/s_csqrtl.c: Likewise.
11121         * math/libm-test.inc (csqrt_test): Add more tests.
11122         * sysdeps/i386/fpu/libm-test-ulps: Update.
11123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11125         [BZ #13840]
11126         * math/libm-test.inc (hypot_test): Add more tests.
11128 2012-03-13  David S. Miller  <davem@davemloft.net>
11130         [BZ #13840]
11131         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11132         double-precision for the calculation instead of scaling.
11134 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11136         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11137         manipulate bits before adding and subtracting TWO52[sx].
11138         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11139         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11140         Likewise.
11141         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11143 2012-03-13  David S. Miller  <davem@davemloft.net>
11145         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11146         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11147         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11148         rtld-global-offsets.h
11149         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11151         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11152         large parameters.
11154         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11156         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11157         'err' in the ifdef scope in which it is actually used.
11159         * nss/nss_db/db-init.c: Include string.h
11161 2012-03-12  David S. Miller  <davem@davemloft.net>
11163         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11164         masking out of the most significant byte of random value used.
11165         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11166         Fix coding style in previous change.
11168         * sysdeps/unix/sysv/linux/kernel-features.h
11169         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11170         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11171         expression.
11172         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11173         later.
11175 2012-03-11  David S. Miller  <davem@davemloft.net>
11177         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11178         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11179         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11180         for 'resultvar' otherwise things get truncated on 64-bit.
11182         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11183         Fix masking out of the most significant byte of random value used.
11185         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11187 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11189         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11191 2012-03-09  David S. Miller  <davem@davemloft.net>
11193         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11194         variables with appropriate CPP guards.
11195         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11196         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11197         on resulting framesize and the management of the outregs buffer for pltexit.
11198         Preserve floating point return values across _dl_call_pltexit call.
11199         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11200         framesize and the management of the outregs buffer for pltexit.
11201         Preserve floating point return values across _dl_call_pltexit
11202         call.
11203         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11204         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11205         (print_exit): Fix format string for return register value.
11207 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11209         * sunrpc/Makefile (others): Add rpcgen.
11210         ($(objpfx)rpcgen): Remove special build rule and dependency on
11211         libc.
11212         * sunrpc/rpcgen.c: New file.
11214 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11216         [BZ #13673]
11217         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11218         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11219         * sysdeps/i386/crti.S: Likewise.
11220         * sysdeps/i386/crtn.S: Likewise.
11221         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11222         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11223         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11224         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11225         * sysdeps/sh/crti.S: Likewise.
11226         * sysdeps/sh/crtn.S: Likewise.
11227         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11229         [BZ #13673]
11230         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11231         with URL.
11232         * locale/programs/locfile-kw.gperf: Likewise.
11233         * locale/programs/charmap-kw.h: Regenerated.
11234         * locale/programs/locfile-kw.h: Likewise.
11236         [BZ #13673]
11237         * intl/plural.y: Replace FSF snail mail address with URL.
11238         * intl/plural.c: Regenerated.
11240 2012-03-09  Richard Henderson  <rth@twiddle.net>
11242         * include/math_private.h: Remove file.
11243         * math/math_private.h: Move file ...
11244         * sysdeps/generic/math_private.h: ... here.
11246         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11247         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11248         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11250         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11251         and <math_private.h>.
11252         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11253         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11254         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11255         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11256         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11257         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11258         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11259         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11260         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11261         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11262         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11267         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11268         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11269         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11270         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11340         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11341         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11342         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11343         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11344         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11345         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11346         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11347         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11348         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11349         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11350         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11351         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11352         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11353         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11354         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11357         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11358         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11361         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11362         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11363         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11365         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11366         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11367         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11368         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11370         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11371         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11372         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11374         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11376         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11377         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11378         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11379         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11380         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11381         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11382         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11383         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11384         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11385         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11386         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11387         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11388         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11389         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11390         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11391         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11392         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11393         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11394         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11395         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11396         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11397         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11398         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11399         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11401         * sysdeps/ieee754/k_standard.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11517         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11521         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11524         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11529         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11534         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11550         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11551         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11552         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11562         * sysdeps/ieee754/s_lib_version.c: Likewise.
11563         * sysdeps/ieee754/s_matherr.c: Likewise.
11564         * sysdeps/ieee754/s_signgam.c: Likewise.
11565         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11566         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11567         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11568         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11569         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11570         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11571         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11572         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11573         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11574         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11575         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11576         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11577         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11578         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11579         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11580         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11581         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11582         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11583         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11584         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11585         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11587 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11589         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11590         * sunrpc/rpc_main.c: Likewise.
11591         * sunrpc/rpc_svcout.c: Likewise.
11593 2012-03-09  David S. Miller  <davem@davemloft.net>
11595         * include/math_private.h: New file.
11597 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11599         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11600         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11601         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11602         from <bits/socket_type.h>.
11603         (enum __socket_type): Don't define here.
11604         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11605         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11606         bits/socket_type.h.
11608         [BZ #13566]
11609         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11610         checking __USE_GNU.
11612         * Makerules ($(inst_includedir)/%.h): New rule.
11613         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11614         (install-others): Remove variable setting.
11615         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11617 2012-03-08  Richard Henderson  <rth@twiddle.net>
11619         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11620         from macro to inline function; merge with the
11621         !__LIBC_INTERNAL_MATH_INLINES version.
11622         (__ieee754_sqrtf): Likewise.
11624         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11625         to inline function.
11626         (__rintf, __floor, __floorf): Likewise.
11628         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11629         macro to inline function.
11630         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11632         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11633         not <math/math_private.h>.
11635 2012-03-08  David S. Miller  <davem@davemloft.net>
11637         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11638         copyright year.
11639         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11641 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11643         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11644         normalization.
11645         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11646         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11648 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11650         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11651         be defined individually, they must be defined as a block.  Define
11652         S for printing a string instead of hidint the different by using a
11653         macro for adding the 'l'.
11654         * stdio-common/tst-fphex-wide.c: Adjust.
11656 2012-03-07  Marek Polacek  <polacek@redhat.com>
11658         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11660 2012-03-08  Marek Polacek  <polacek@redhat.com>
11662         [BZ #13806]
11663         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11664         * stdio-common/tst-fphex.c: Define a few macros to make the
11665         test reusable.  Use them.
11666         * stdio-common/tst-fphex-wide.c: New file.
11668 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11670         [BZ #6911]
11671         * manual/macros.texi (gnusystems): New macro.
11672         (nongnusystems): Likewise.
11673         (gnulinuxhurdsystems): Likewise.
11674         (gnuhurdsystems): Likewise..
11675         (gnulinuxsystems): Likewise.
11676         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11677         variants of the GNU system, not "GNU system".
11678         * manual/conf.texi: Likewise.
11679         * manual/errno.texi: Likewise.  Update example of errno macro
11680         expansion.
11681         * manual/filesys.texi: Likewise.
11682         (getumask): Document as specific to GNU/Hurd.
11683         * manual/install.texi: Likewise.  Reword some references to
11684         GNU/Linux.
11685         * manual/intro.texi: Likewise.
11686         * manual/io.texi: Likewise.
11687         (File Name Portability): Detail which constraints are inapplicable
11688         to all GNU systems and which are only inapplicable to GNU/Hurd.
11689         * manual/job.texi: Likewise.
11690         * manual/llio.texi: Likewise.
11691         (O_NOCTTY): Document as present on GNU/Linux.
11692         * manual/maint.texi: Likewise.
11693         * manual/memory.texi: Likewise.
11694         * manual/pattern.texi: Likewise.
11695         * manual/pipe.texi: Likewise.
11696         * manual/process.texi: Likewise.
11697         * manual/resource.texi: Likewise.
11698         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11699         child on GNU/Hurd.
11700         * manual/setjmp.texi: Likewise.
11701         * manual/signal.texi: Likewise.
11702         * manual/startup.texi: Likewise.
11703         * manual/stdio.texi: Likewise.
11704         * manual/terminal.texi: Likewise.
11705         (ONLCR): Document as POSIX.
11706         (OXTABS): Document availability on GNU/Linux as XTABS.
11707         (ONOEOT): Document availability separately from other bits.
11708         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11709         * manual/time.texi: Likewise.
11710         * manual/users.texi: Likewise.
11711         * INSTALL: Regenerated.
11712         * sysdeps/gnu/errlist.c: Regenerated.
11714         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11715         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11716         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11717         puts.
11718         * configure: Regenerated.
11720 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11722         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11723         default includes instead of AC_HEADER_CHECK.
11724         * sysdeps/i386/configure: Regenerated.
11726         [BZ #10716]
11727         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11728         * math/s_cacoshf.c (__cacoshf): Likewise.
11729         * math/s_cacoshl.c (__cacoshl): Likewise.
11730         * math/s_casinh.c (__casinh): Set signs of result from argument.
11731         * math/s_casinhf.c (__casinhf): Likewise.
11732         * math/s_casinhl.c (__casinhl): Likewise.
11733         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11734         (casinh_test): Add more tests.
11735         * sysdeps/i386/fpu/libm-test-ulps: Update.
11736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11738 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11740         * po/zh_TW.po: Update from translation team.
11742         * login/Makefile (distribute): Remove variable.
11743         * catgets/Makefile: Likewise.
11744         * mach/Makefile: Likewise.
11745         * malloc/Makefile: Likewise.
11746         * misc/Makefile: Likewise.
11747         * iconv/Makefile: Likewise.
11748         * nscd/Makefile: Likewise.
11749         * hurd/Makefile: Likewise.
11750         * manual/Makefile: Likewise.
11751         * locale/Makefile: Likewise.
11752         * intl/Makefile: Likewise.
11753         * conform/Makefile: Likewise.
11754         * nss/Makefile: Likewise.
11755         * time/Makefile: Likewise.
11756         * soft-fp/Makefile: Likewise.
11757         * dirent/Makefile: Likewise.
11758         * gmon/Makefile: Likewise.
11759         * po/Makefile: Likewise.
11760         * rt/Makefile: Likewise.
11761         * socket/Makefile: Likewise.
11762         * math/Makefile: Likewise.
11763         * signal/Makefile: Likewise.
11764         * debug/Makefile: Likewise.
11765         * elf/Makefile: Likewise.
11766         * timezone/Makefile: Likewise.
11767         * stdlib/Makefile: Likewise.
11768         * iconvdata/Makefile: Likewise.
11769         * sunrpc/Makefile: Likewise.
11770         * io/Makefile: Likewise.
11771         * argp/Makefile: Likewise.
11772         * inet/Makefile: Likewise.
11773         * hesiod/Makefile: Likewise.
11774         * grp/Makefile: Likewise.
11775         * csu/Makefile: Likewise.
11776         * wctype/Makefile: Likewise.
11777         * crypt/Makefile: Likewise.
11778         * libio/Makefile: Likewise.
11779         * string/Makefile: Likewise.
11780         * nis/Makefile: Likewise.
11781         * resolv/Makefile: Likewise.
11782         * stdio-common/Makefile: Likewise.
11783         * wcsmbs/Makefile: Likewise.
11784         * dlfcn/Makefile: Likewise.
11785         * posix/Makefile: Likewise.
11787         [BZ #6959]
11788         * timezone/Makefile: Don't install timezone files, just the programs
11789         and scripts.
11791 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11793         * nss/databases.def: Add missing gshadow entry.
11795         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11797 2012-03-06  Marek Polacek  <polacek@redhat.com>
11799         [BZ #13726]
11800         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11801         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11802         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11803         * stdio-common/tst-long-dbl-fphex.c: New file.
11805 2012-03-06  David S. Miller  <davem@davemloft.net>
11807         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11808         (set_obp_int): New function.
11809         (get_obp_int): New function.
11810         (__get_clockfreq_via_dev_openprom): Likewise.
11811         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11812         Avoid unused variable warnings on 'val' and use builtin_expect.
11813         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11814         __builtin_expect.
11815         (INLINE_CLONE_SYSCALL): Likewise.
11817 2012-03-05  David S. Miller  <davem@davemloft.net>
11819         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11821 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11825         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11826         only for |x| >= 40.
11827         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11829 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11831         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11832         Replace gettimeofday with __vdso_gettimeofday.
11834         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11835         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11836         __vdso_clock_gettime and __vdso_getcpu.
11838         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11839         time with __vdso_time.
11841 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11843         * manual/lang.texi (size_t): Note types to which size_t may be
11844         equivalent with the GNU C Library, but do not describe when
11845         differences between them are significant.
11847 2012-03-05  Andreas Jaeger  <aj@suse.de>
11849         * sysdeps/i386/fpu/libm-test-ulps: Update.
11851 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11853         [BZ #3976]
11854         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11855         (__ieee754_pow): Save and restore rounding mode and use
11856         round-to-nearest for main computations.
11857         * math/libm-test.inc (pow_test_tonearest): New function.
11858         (pow_test_towardzero): Likewise.
11859         (pow_test_downward): Likewise.
11860         (pow_test_upward): Likewise.
11861         (main): Call the new functions.
11862         * sysdeps/i386/fpu/libm-test-ulps: Update.
11863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11865         [BZ #3976]
11866         * math/libm-test.inc (cosh_test_tonearest): New function.
11867         (cosh_test_towardzero): Likewise.
11868         (cosh_test_downward): Likewise.
11869         (cosh_test_upward): Likewise.
11870         (sinh_test_tonearest): Likewise.
11871         (sinh_test_towardzero): Likewise.
11872         (sinh_test_downward): Likewise.
11873         (sinh_test_upward): Likewise.
11874         (main): Call the new functions.
11875         * sysdeps/i386/fpu/libm-test-ulps: Update.
11876         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11878 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11880         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11881         default stack guard is set in last bytes.
11882         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11884 2012-03-05  Kees Cook  <keescook@chromium.org>
11886         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11888         [BZ #13656]
11889         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11890         possibly allocate from heap instead of stack.
11891         * stdio-common/bug-vfprintf-nargs.c: New file.
11892         * stdio-common/Makefile (tests): Add nargs overflow test.
11894 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11896         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11898 2012-03-03  Marek Polacek  <polacek@redhat.com>
11900         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11901         * math/math_private.h: Likewise.
11902         * stdlib/tst-strtod.c: Likewise.
11903         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11904         * sysdeps/x86_64/bits/atomic.h: Likewise.
11906 2012-03-02  David S. Miller  <davem@davemloft.net>
11908         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11909         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11910         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11911         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11912         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11913         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11914         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11915         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11917 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11919         [BZ #13792]
11920         * manual/examples/README: New file, says the example source files
11921         can be used under GPL>=2.
11922         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11923         line containing just "*/".
11924         * manual/examples/add.c: Add copyright header (GPL>=2).
11925         * manual/examples/argp-ex1.c: Likewise.
11926         * manual/examples/argp-ex2.c: Likewise.
11927         * manual/examples/argp-ex3.c: Likewise.
11928         * manual/examples/argp-ex4.c: Likewise.
11929         * manual/examples/atexit.c: Likewise.
11930         * manual/examples/db.c: Likewise.
11931         * manual/examples/dir.c: Likewise.
11932         * manual/examples/dir2.c: Likewise.
11933         * manual/examples/execinfo.c: Likewise.
11934         * manual/examples/filecli.c: Likewise.
11935         * manual/examples/filesrv.c: Likewise.
11936         * manual/examples/fmtmsgexpl.c: Likewise.
11937         * manual/examples/genpass.c: Likewise.
11938         * manual/examples/inetcli.c: Likewise.
11939         * manual/examples/inetsrv.c: Likewise.
11940         * manual/examples/isockad.c: Likewise.
11941         * manual/examples/longopt.c: Likewise.
11942         * manual/examples/memopen.c: Likewise.
11943         * manual/examples/memstrm.c: Likewise.
11944         * manual/examples/mkfsock.c: Likewise.
11945         * manual/examples/mkisock.c: Likewise.
11946         * manual/examples/mygetpass.c: Likewise.
11947         * manual/examples/pipe.c: Likewise.
11948         * manual/examples/popen.c: Likewise.
11949         * manual/examples/rprintf.c: Likewise.
11950         * manual/examples/search.c: Likewise.
11951         * manual/examples/select.c: Likewise.
11952         * manual/examples/setjmp.c: Likewise.
11953         * manual/examples/sigh1.c: Likewise.
11954         * manual/examples/sigusr.c: Likewise.
11955         * manual/examples/stpcpy.c: Likewise.
11956         * manual/examples/strdupa.c: Likewise.
11957         * manual/examples/strftim.c: Likewise.
11958         * manual/examples/strncat.c: Likewise.
11959         * manual/examples/subopt.c: Likewise.
11960         * manual/examples/swapcontext.c: Likewise.
11961         * manual/examples/termios.c: Likewise.
11962         * manual/examples/testopt.c: Likewise.
11963         * manual/examples/testpass.c: Likewise.
11964         * manual/examples/timeval_subtract.c: Likewise.
11966         [BZ #13792]
11967         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11968         function to ...
11969         * manual/timeval_subtract.c.texi: ... here, new file.
11971 2012-03-02  David S. Miller  <davem@davemloft.net>
11973         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11975 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11977         [BZ #3976]
11978         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11979         (__sin): Save and restore rounding mode and use round-to-nearest
11980         for all computations.
11981         (__cos): Save and restore rounding mode and use round-to-nearest
11982         for all computations.
11983         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11984         <fenv.h>.
11985         (tan): Save and restore rounding mode and use round-to-nearest for
11986         all computations.
11987         * math/libm-test.inc (cos_test_tonearest): New function.
11988         (cos_test_towardzero): Likewise.
11989         (cos_test_downward): Likewise.
11990         (cos_test_upward): Likewise.
11991         (sin_test_tonearest): Likewise.
11992         (sin_test_towardzero): Likewise.
11993         (sin_test_downward): Likewise.
11994         (sin_test_upward): Likewise.
11995         (tan_test_tonearest): Likewise.
11996         (tan_test_towardzero): Likewise.
11997         (tan_test_downward): Likewise.
11998         (tan_test_upward): Likewise.
11999         (main): Call the new functions.
12000         * sysdeps/i386/fpu/libm-test-ulps: Update.
12001         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12003         [BZ #10135]
12004         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12005         small n, then large n, before computing and testing k+n.
12006         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12007         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12008         Likewise.
12009         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12010         Likewise.
12011         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12012         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12013         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12014         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12015         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12016         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12017         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12018         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12019         * math/libm-test.inc (scalbn_test): Add more tests.
12020         (scalbln_test): Likewise.
12022         * manual/filesys.texi (mode_t): Describe constraints on size and
12023         signedness, not exact equivalence to a particular type.
12024         (ino_t): Likewise.
12025         (ino64_t): Likewise.
12026         (dev_t): Likewise.
12027         (nlink_t): Likewise.
12028         (blkcnt_t): Likewise.
12029         (blkcnt64_t): Likewise.
12030         * manual/llio.texi (off_t): Likewise.
12032         [BZ #3976]
12033         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12034         (__ieee754_exp): Save and restore rounding mode and use
12035         round-to-nearest for all computations.
12036         * math/libm-test.inc (exp_test_tonearest): New function.
12037         (exp_test_towardzero): Likewise.
12038         (exp_test_downward): Likewise.
12039         (exp_test_upward): Likewise.
12040         (main): Call the new functions.
12041         * sysdeps/i386/fpu/libm-test-ulps: Update.
12042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12044 2012-03-01  Chris Demetriou  <cgd@google.com>
12046         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12047         have predictable order.
12049 2012-03-01  David S. Miller  <davem@davemloft.net>
12051         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12053         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12054         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12055         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12056         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12058         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12059         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12060         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12062         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12063         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12064         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12065         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12066         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12070         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12071         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12072         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12074         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12075         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12076         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12077         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12078         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12079         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12080         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12081         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12082         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12083         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12084         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12085         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12086         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12087         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12088         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12089         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12090         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12091         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12092         * sysdeps/sparc/elf/configure: Regenerated.
12094 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12096         * configure.in (AS, LD): Require binutils 2.20 or later.
12097         * configure: Regenerated.
12098         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12099         as required minimum version.
12100         * INSTALL: Regenerated.
12102         [BZ #2541]
12103         [BZ #4108]
12104         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12105         before squaring exponent.
12106         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12107         bottom long double and 27 bits of top long double before squaring
12108         exponent.
12109         * math/libm-test.inc (erfc_test): Add more tests.
12110         * sysdeps/i386/fpu/libm-test-ulps: Update.
12111         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12114 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12116         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12117         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12118         containing bit-fields.
12119         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12120         * soft-fp/single.h (_FP_UNION_S): Likewise.
12121         * soft-fp/double.h (_FP_UNION_D): Likewise.
12123 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12125         [BZ #13786]
12126         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12127         not include ../strcmp.S.
12128         [USE_AS_STRNCASECMP_L]: Likewise.
12129         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12130         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12131         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12132         (__strncasecmp_l_ia32): Define as alias to
12133         __strncasecmp_l_nonascii.
12135         [BZ #5794]
12136         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12137         * sysdeps/i386/fpu/libm-test-ulps: Update.
12138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12140         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12143 2012-02-29  Jeff Law  <law@redhat.com>
12145         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12146         out of bounds read.
12148 2012-02-29  Marek Polacek  <polacek@redhat.com>
12150         [BZ #13706]
12151         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12152         * elf/Makefile: Add rules to run tst-unused-dep.out.
12154 2012-02-28  David S. Miller  <davem@davemloft.net>
12156         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12157         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12158         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12159         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12160         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12161         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12163 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12165         * math/libm-test.inc (llround_test): Move one test from
12166         lround_test.  Use TEST_f_L in moved test.
12167         (lround_test): Move misplaced test to llround_test.  Add testcase
12168         from bug 2561.
12170 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12172         * sysdeps/x86_64/fpu/e_expf.S: New file.
12173         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12175 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12177         [BZ #13637]
12178         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12179         of remain_len that may cause incomplete multi-byte character and
12180         false match.
12181         * posix/bug-regex33.c: New file.
12182         * posix/Makefile (tests): Add bug-regex33.
12184 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12186         * manual/macros.texi: New file.
12187         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12188         * manual/libc.texinfo: Include macros.texi.
12189         * manual/creatute.texi: Likewise.
12190         * manual/install.texi: Likewise.
12191         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12192         @glibcadj{} in references to the GNU C Library.
12193         * manual/charset.texi: Likewise.
12194         * manual/conf.texi: Likewise.
12195         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12196         when not using those macros.
12197         * manual/creature.texi: Likewise.
12198         * manual/crypt.texi: Likewise.
12199         * manual/errno.texi: Likewise.
12200         * manual/filesys.texi: Likewise.
12201         * manual/header.texi: Likewise.
12202         * manual/install.texi: Likewise.
12203         * manual/intro.texi: Likewise.
12204         * manual/io.texi: Likewise.
12205         * manual/job.texi: Likewise.
12206         * manual/lang.texi: Likewise.
12207         * manual/libc.texiinfo: Likewise.
12208         * manual/llio.texi: Likewise.
12209         * manual/locale.texi: Likewise.
12210         * manual/maint.texi: Likewise.
12211         * manual/math.texi: Likewise.
12212         * manual/memory.texi: Likewise.
12213         * manual/message.texi: Likewise.
12214         * manual/nss.texi: Likewise.
12215         * manual/pattern.texi: Likewise.
12216         * manual/process.texi: Likewise.
12217         * manual/resource.texi: Likewise.
12218         * manual/search.texi: Likewise.
12219         * manual/setjmp.texi: Likewise.
12220         * manual/signal.texi: Likewise.
12221         * manual/socket.texi: Likewise.
12222         * manual/startup.texi: Likewise.
12223         * manual/stdio.texi: Likewise.
12224         * manual/string.texi: Likewise.
12225         * manual/sysinfo.texi: Likewise.
12226         * manual/syslog.texi: Likewise.
12227         * manual/terminal.texi: Likewise.
12228         * manual/time.texi: Likewise.
12229         * manual/users.texi: Likewise.
12230         * INSTALL: Regenerated.
12231         * NOTES: Regenerated.
12232         * sysdeps/gnu/errlist.c: Regenerated.
12234 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12236         * include/dirent.h: Include <dirstream.h> before
12237         <dirent/dirent.h>.
12239 2012-02-28  David S. Miller  <davem@davemloft.net>
12241         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12242         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12243         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12244         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12246 2012-02-27  David S. Miller  <davem@davemloft.net>
12248         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12250         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12251         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12254         frame pointer instead of stack pointer relative arg slot.
12255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12256         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12257         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12259 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12261         [BZ #3992]
12262         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12264 2012-02-27  David S. Miller  <davem@davemloft.net>
12266         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12268         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12270         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12271         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12272         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12273         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12275 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12277         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12278         later.  Allow versions 5-9.
12279         * configure: Regenerated.
12280         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12281         required minimum version and 4.6 as recommended version.  Do not
12282         mention bugs in GCC 2.7 and 2.8.
12283         * INSTALL: Regenerated.
12285 2012-02-27  David S. Miller  <davem@davemloft.net>
12287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12288         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12291         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12292         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12293         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12294         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12296         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12297         manipulate bits before adding and subtracting TWO112[sx].
12298         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12300 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12302         [BZ #13775]
12303         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12304         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12305         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12306         being in POSIX, because they are in 1003.1-2008.
12308         * rt/tst-aio.c: Include <fcntl.h>.
12309         * rt/tst-aio7.c: Likewise.
12310         * rt/tst-aio64.c: Likewise.
12312         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12314 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12316         * manual/install.texi (--with-headers): Describe headers as
12317         interface headers, not private headers.
12318         (Specific advice for GNU/Linux systems): Describe use of headers
12319         from "make headers_install", not private headers from older
12320         kernels.
12321         * INSTALL: Regenerated.
12322         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12323         Change to 2.6.19.
12324         * sysdeps/unix/sysv/linux/configure: Regenerated.
12326         * manual/llio.texi (fclean): Remove documentation.
12328         * manual/Makefile (libc-texi-generated): New variable.  Include
12329         version.texi.
12330         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12331         $(libc-texi-generated), not duplicated list of files.
12332         (version.texi, stamp-version): New rules.
12333         (realclean): Remove $(libc-texi-generated), not individual files
12334         from that list.  Do not remove dir-add.texinfo.
12335         * manual/libc.texinfo: Comment out uses of edition numbers and
12336         references to printed manual.  Remove last-updated dates.
12337         (EDITION): Comment out.
12338         (ISBN): Likewise.
12339         (VERSION, UPDATED): Remove.
12340         (version.texi): Include.
12342 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12344         * sysdeps/posix/spawni.c: Include <signal.h>.
12345         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12346         * sysdeps/pthread/aio_fsync.c: Likewise.
12348 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12350         * conform/Makefile (tests): Run only when not cross-compiling and
12351         when fast-check is not defined.
12353         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12354         * conform/data/limits.h-data: Fixes for POSIX2008.
12355         * conform/run-conformtest.sh: Run all tests.
12356         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12357         headers.
12358         * include/bits/dlfcn.h: Likewise.
12359         * include/langinfo.h: Likewise.
12360         * include/monetary.h: Likewise.
12361         * include/sys/poll.h: Likewise.
12363         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12364         for __USE_GNU.
12365         * posix/spawn.h: Define __need_sigset_t.
12366         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12367         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12368         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12369         to get sigevent_t only.
12370         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12371         only for __USE_GNU.
12372         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12373         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12374         process_vm_writev only for __USE_GNU.
12375         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12377         * conform/Makefile: For now ignore errors from run-conformtest.
12378         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12379         POSIX to avoid namespace pollution.  Don't prepend headers.
12380         * conform/data/aio.h-data: Fixes for POSIX testing.
12381         * conform/data/fcntl.h-data: Likewise.
12382         * conform/data/glob.h-data: Likewise.
12383         * conform/data/grp.h-data: Likewise.
12384         * conform/data/pthread.h-data: Likewise.
12385         * conform/data/pwd.h-data: Likewise.
12386         * conform/data/signal.h-data: Likewise.
12387         * conform/data/spawn.h-data: Likewise.
12388         * conform/data/stdio.h-data: Likewise.
12389         * conform/data/stdlib.h-data: Likewise.
12390         * conform/data/stropts.h-data: Likewise.
12391         * conform/data/sys/mman.h-data: Likewise.
12392         * conform/data/sys/stat.h-data: Likewise.
12393         * conform/data/sys/types.h-data: Likewise.
12394         * conform/data/sys/wait.h-data: Likewise.
12395         * conform/data/time.h-data: Likewise.
12396         * conform/data/unistd.h-data: Likewise.
12397         * conform/data/utime.h-data: Likewise.
12399         * io/sys/stat.h: fchmod was always in POSIX.
12400         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12401         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12402         * rt/aio.h: Define __need_timespec before including <time.h>.
12403         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12404         struct.  Add forward declaration of pthread_attr_t and use it in
12405         sigevent.
12406         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12407         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12408         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12409         always remove CLK_TCK definition.
12411 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12413         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12415 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12417         * conform/run-conformtest.sh: New file.
12418         * conform/Makefile: Run run-conformtest for tests.
12419         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12420         support.
12422         * conform/data/uchar.h-data: New file.
12423         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12424         * conform/data/arpa/inet.h-data: Likewise.
12425         * conform/data/assert.h-data: Likewise.
12426         * conform/data/complex.h-data: Likewise.
12427         * conform/data/cpio.h-data: Likewise.
12428         * conform/data/ctype.h-data: Likewise.
12429         * conform/data/dirent.h-data: Likewise.
12430         * conform/data/dlfcn.h-data: Likewise.
12431         * conform/data/errno.h-data: Likewise.
12432         * conform/data/fcntl.h-data: Likewise.
12433         * conform/data/float.h-data: Likewise.
12434         * conform/data/fmtmsg.h-data: Likewise.
12435         * conform/data/fnmatch.h-data: Likewise.
12436         * conform/data/ftw.h-data: Likewise.
12437         * conform/data/glob.h-data: Likewise.
12438         * conform/data/grp.h-data: Likewise.
12439         * conform/data/iconv.h-data: Likewise.
12440         * conform/data/inttypes.h-data: Likewise.
12441         * conform/data/langinfo.h-data: Likewise.
12442         * conform/data/libgen.h-data: Likewise.
12443         * conform/data/limits.h-data: Likewise.
12444         * conform/data/locale.h-data: Likewise.
12445         * conform/data/math.h-data: Likewise.
12446         * conform/data/monetary.h-data: Likewise.
12447         * conform/data/mqueue.h-data: Likewise.
12448         * conform/data/ndbm.h-data: Likewise.
12449         * conform/data/net/if.h-data: Likewise.
12450         * conform/data/netdb.h-data: Likewise.
12451         * conform/data/netinet/in.h-data: Likewise.
12452         * conform/data/nl_types.h-data: Likewise.
12453         * conform/data/poll.h-data: Likewise.
12454         * conform/data/pthread.h-data: Likewise.
12455         * conform/data/pwd.h-data: Likewise.
12456         * conform/data/regex.h-data: Likewise.
12457         * conform/data/sched.h-data: Likewise.
12458         * conform/data/search.h-data: Likewise.
12459         * conform/data/semaphore.h-data: Likewise.
12460         * conform/data/setjmp.h-data: Likewise.
12461         * conform/data/signal.h-data: Likewise.
12462         * conform/data/spawn.h-data: Likewise.
12463         * conform/data/stdarg.h-data: Likewise.
12464         * conform/data/stdio.h-data: Likewise.
12465         * conform/data/stdlib.h-data: Likewise.
12466         * conform/data/string.h-data: Likewise.
12467         * conform/data/strings.h-data: Likewise.
12468         * conform/data/stropts.h-data: Likewise.
12469         * conform/data/sys/ipc.h-data: Likewise.
12470         * conform/data/sys/mman.h-data: Likewise.
12471         * conform/data/sys/msg.h-data: Likewise.
12472         * conform/data/sys/resource.h-data: Likewise.
12473         * conform/data/sys/select.h-data: Likewise.
12474         * conform/data/sys/sem.h-data: Likewise.
12475         * conform/data/sys/shm.h-data: Likewise.
12476         * conform/data/sys/socket.h-data: Likewise.
12477         * conform/data/sys/stat.h-data: Likewise.
12478         * conform/data/sys/statvfs.h-data: Likewise.
12479         * conform/data/sys/time.h-data: Likewise.
12480         * conform/data/sys/timeb.h-data: Likewise.
12481         * conform/data/sys/times.h-data: Likewise.
12482         * conform/data/sys/types.h-data: Likewise.
12483         * conform/data/sys/uio.h-data: Likewise.
12484         * conform/data/sys/un.h-data: Likewise.
12485         * conform/data/sys/utsname.h-data: Likewise.
12486         * conform/data/sys/wait.h-data: Likewise.
12487         * conform/data/syslog.h-data: Likewise.
12488         * conform/data/tar.h-data: Likewise.
12489         * conform/data/termios.h-data: Likewise.
12490         * conform/data/utime.h-data: Likewise.
12491         * conform/data/utmpx.h-data: Likewise.
12492         * conform/data/varargs.h-data: Likewise.
12493         * conform/data/wchar.h-data: Likewise.
12494         * conform/data/wctype.h-data: Likewise.
12495         * conform/data/wordexp.h-data: Likewise.
12497         * include/stropts.h: New file.
12498         * include/uchar.h: New file.
12499         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12500         * include/assert.h: Likewise.
12501         * include/ctype.h: Likewise.
12502         * include/dirent.h: Likewise.
12503         * include/dlfcn.h: Likewise.
12504         * include/fcntl.h: Likewise.
12505         * include/fnmatch.h: Likewise.
12506         * include/glob.h: Likewise.
12507         * include/grp.h: Likewise.
12508         * include/libio.h: Likewise.
12509         * include/locale.h: Likewise.
12510         * include/math.h: Likewise.
12511         * include/net/if.h: Likewise.
12512         * include/netdb.h: Likewise.
12513         * include/netinet/in.h: Likewise.
12514         * include/pthread.h: Likewise.
12515         * include/pwd.h: Likewise.
12516         * include/regex.h: Likewise.
12517         * include/sched.h: Likewise.
12518         * include/search.h: Likewise.
12519         * include/setjmp.h: Likewise.
12520         * include/signal.h: Likewise.
12521         * include/stdio.h: Likewise.
12522         * include/stdlib.h: Likewise.
12523         * include/string.h: Likewise.
12524         * include/sys/cdefs.h: Likewise.
12525         * include/sys/mman.h: Likewise.
12526         * include/sys/msg.h: Likewise.
12527         * include/sys/resource.h: Likewise.
12528         * include/sys/select.h: Likewise.
12529         * include/sys/socket.h: Likewise.
12530         * include/sys/stat.h: Likewise.
12531         * include/sys/statvfs.h: Likewise.
12532         * include/sys/time.h: Likewise.
12533         * include/sys/times.h: Likewise.
12534         * include/sys/uio.h: Likewise.
12535         * include/sys/utsname.h: Likewise.
12536         * include/sys/wait.h: Likewise.
12537         * include/termios.h: Likewise.
12538         * include/time.h: Likewise.
12539         * include/ulimit.h: Likewise.
12540         * include/unistd.h: Likewise.
12541         * include/utime.h: Likewise.
12542         * include/wchar.h: Likewise.
12543         * include/wctype.h: Likewise.
12544         * include/wordexp.h: Likewise.
12546         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12548         * time/time.h: TIME_UTC must be a macro.
12549         Make timespec_get available for ISO C11 only as well.
12551 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12553         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12554         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12556 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12558         * configure.in: Use -o not -a in test for unsupported multi-arch.
12560 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12562         * manual/texinfo.tex: Update to version 2012-01-19.16.
12564 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12566         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12568 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12570         [BZ #13738]
12571         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12572         * manual/fdl-1.3.texi: New file.
12573         * manual/fdl-1.1.texi: File removed.
12575         [BZ #13738]
12576         * manual/libc.texinfo (FDL_VERSION): New @set.
12577         Use it for mention of FDL in cover text.
12578         (Documentation License): Use it in @include file name.
12580 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12581             Roland McGrath  <roland@hack.frob.com>
12583         [BZ #5461]
12584         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12585         not LONG_LONG_MAX and LONG_LONG_MIN.
12586         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12587         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12588         name.
12589         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12591 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12593         [BZ #2547]
12594         [BZ #11365]
12595         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12596         manipulate bits before adding and subtracting TWO23[sx].
12597         * math/libm-test.inc (nearbyint_test): Add more tests.
12599 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12601         [BZ #2548]
12602         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12603         bits before adding and subtracting TWO23[sx].
12604         * math/libm-test.inc (rint_test): Add more tests.
12605         (rint_test_tonearest): Likewise.
12606         (rint_test_towardzero): Likewise.
12607         (rint_test_downward): Likewise.
12608         (rint_test_upward: Likewise.
12610 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12612         [BZ #10110]
12613         * include/stdc-predef.h: New file.  Extracted from features.h.
12614         * include/features.h: Include stdc-predef.h.
12615         * Makefile (headers): Add stdc-predef.h.
12616         * CONFORMANCE (Compiler limitations): Update.
12618 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12620         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12622 2012-02-21  David S. Miller  <davem@davemloft.net>
12624         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12625         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12627 2012-02-20  David S. Miller  <davem@davemloft.net>
12629         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12630         using a normal save/restore sequence, rather than allocating a
12631         dummy stack frame just to store a frame pointer and restore.
12632         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12634 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12636         * manual/install.texi: Fix stray word in line-wrapped comment.
12638 2012-02-20  David S. Miller  <davem@davemloft.net>
12640         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12641         both binutils and gcc support GOTDATA.
12643         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12644         "rd %pc" in the PIC register setup sequences.
12646         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12647         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12648         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12649         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12650         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12651         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12652         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12653         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12654         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12655         (SYSCALL_ERROR_HANDLER): Likewise.
12656         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12657         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12658         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12659         (SYSCALL_ERROR_HANDLER): Likewise.
12661         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12662         (HAVE_GCC_GOTDATA): New.
12663         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12664         relocation support in both binutils and gcc.
12665         * sysdeps/sparc/elf/configure: Regenerate.
12667         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12668         * sysdeps/sparc/sparc32/elf/configure: Delete.
12669         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12670         * sysdeps/sparc/sparc64/elf/configure: Delete.
12671         * sysdeps/sparc/elf/configure.in: New file.
12672         * sysdeps/sparc/elf/configure: Generate.
12674         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12675         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12676         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12677         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12678         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12680 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12682         * manual/install.texi: Do not mention specific glibc version
12683         numbers.
12684         * manual/libc.texinfo (VERSION, UPDATED): Update.
12685         (@copying): Use @copyright{} and range of years.
12687 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12689         [BZ #13695]
12690         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12691         [crti.S not in sysdirs] (generated): Do not append.
12692         [crti.S not in sysdirs] (omit-deps): Likewise.
12693         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12694         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12695         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12696         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12697         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12698         Likewise.
12699         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12700         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12701         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12702         * csu/defs.awk: Remove file.
12703         * sysdeps/generic/initfini.c: Likewise.
12704         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12705         variable.
12706         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12707         Likewise.
12709 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12711         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12712         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12713         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12714         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12715         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12716         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12717         <bits/epoll.h>.
12718         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12719         (__EPOLL_PACKED): Define to empty if not defined by
12720         <bits/epoll.h>.
12721         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12722         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12723         bits/epoll.h.
12725 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12727         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12728         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12729         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12730         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12731         <bits/timerfd.h>.
12732         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12733         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12734         bits/timerfd.h.
12736 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12738         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12739         in C locale.
12740         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12741         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12742         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12745 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12747         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12748         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12750 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12752         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12753         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12754         defined.
12755         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12756         Likewise.
12757         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12758         entry for 2.16.
12760 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12762         * math/w_acos.c: Use non-signaling floating-point comparisons.
12763         * math/w_acosf.c: Likewise.
12764         * math/w_acosh.c: Likewise.
12765         * math/w_acoshf.c: Likewise.
12766         * math/w_acoshl.c: Likewise.
12767         * math/w_acosl.c: Likewise.
12768         * math/w_asin.c: Likewise.
12769         * math/w_asinf.c: Likewise.
12770         * math/w_asinl.c: Likewise.
12771         * math/w_atanh.c: Likewise.
12772         * math/w_atanhf.c: Likewise.
12773         * math/w_atanhl.c: Likewise.
12774         * math/w_exp2.c: Likewise.
12775         * math/w_exp2f.c: Likewise.
12776         * math/w_exp2l.c: Likewise.
12777         * math/w_j0.c: Likewise.
12778         * math/w_j0f.c: Likewise.
12779         * math/w_j0l.c: Likewise.
12780         * math/w_j1.c: Likewise.
12781         * math/w_j1f.c: Likewise.
12782         * math/w_j1l.c: Likewise.
12783         * math/w_jn.c: Likewise.
12784         * math/w_jnf.c: Likewise.
12785         * math/w_log.c: Likewise.
12786         * math/w_log10.c: Likewise.
12787         * math/w_log10f.c: Likewise.
12788         * math/w_log10l.c: Likewise.
12789         * math/w_log2.c: Likewise.
12790         * math/w_log2f.c: Likewise.
12791         * math/w_log2l.c: Likewise.
12792         * math/w_logf.c: Likewise.
12793         * math/w_logl.c: Likewise.
12794         * math/w_sqrt.c: Likewise.
12795         * math/w_sqrtf.c: Likewise.
12796         * math/w_sqrtl.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12798         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12799         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12800         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12801         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12803 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12805         [BZ #9739]
12806         * manual/string.texi (strnlen): Use correct parameter name in
12807         equivalent expression.
12809 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12811         [BZ #11174]
12812         * manual/users.texi (seteuid): Consistently use neweuid for
12813         argument name.
12815 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12817         [BZ #13704]
12818         * manual/nss.texi (Services in the NSS configuration): Correct
12819         list of services in example configuration file.
12821 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12823         [BZ #11322]
12824         * manual/arith.texi: Remove statements about negative zero
12825         behaving identically to zero.
12827 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12829         [BZ #5993]
12830         * manual/install.texi: Do not document upgrading from libc5.
12832 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12834         [BZ #4596]
12835         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12837 2012-02-18  David S. Miller  <davem@davemloft.net>
12839         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12840         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12841         %o7 across the call.
12842         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12843         instead.
12844         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12845         SETUP_PIC_REG_LEAF.
12846         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12847         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12848         * sysdeps/sparc/crtn.S: Likewise.
12850 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12852         * aout/Makefile: Remove.
12854 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12856         [BZ #13058]
12857         * manual/examples/argp-ex1.c (main): Format definition in GNU
12858         style.
12859         * manual/examples/argp-ex2.c (main): Likewise.
12860         * manual/examples/argp-ex3.c (main): Likewise.
12861         * manual/examples/argp-ex4.c (main): Likewise.
12862         * manual/examples/longopt.c (main): Use new-style prototype
12863         definition.
12864         * manual/examples/strncat.c (main): Specify return type and use
12865         (void) for arguments.
12866         * manual/examples/subopt.c (main): Use char **argv argument.
12868 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12870         [BZ #5077]
12871         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12872         rounding modes.
12874 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12876         [BZ #6907]
12877         * manual/string.texi (strchr): Change when strchrnul is
12878         recommended.
12880 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12882         [BZ #174]
12883         * manual/locale.texi (setlocale): Document LOCPATH.
12885 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12887         [BZ #10210]
12888         * manual/process.texi (execle): Move @dots{} before last argument.
12890 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12892         [BZ #12047]
12893         * manual/charset.texi (Generic Charset Conversion): Fix typo
12894         (LC_TYPE -> LC_CTYPE).
12896 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12898         [BZ #5805]
12899         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12900         (scalbnf): Likewise.
12901         (scalbnl): Likewise.
12902         (scalbln): Likewise.
12903         (scalblnf): Likewise.
12904         (scalblnl): Likewise.
12905         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12906         (vwarnx): Likewise.
12907         (verr): Likewise.
12908         (verrx): Likewise.
12909         * manual/filesys.texi (telldir): Use braces around return type.
12910         * manual/llio.texi (mmap): Add space after comma.
12911         (mmap64): Likewise.
12912         * manual/math.texi (jn): Use @var{} on parameter names.
12913         (jnf): Likewise.
12914         (jnl): Likewise.
12915         (yn): Likewise.
12916         (ynf): Likewise.
12917         (ynl): Likewise.
12918         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12919         line.
12920         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12921         "...".
12922         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12923         (sched_get_priority_max): Likewise.
12924         * manual/signal.texi (sigvec): Add space after comma.
12925         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12926         names.
12927         (if_indextoname): Likewise.
12928         (if_freenameindex): Likewise.
12929         (sendto): Use ',' instead of '.' in prototype.
12930         * manual/startup.texi (syscall): Use @dots{} instead of literal
12931         "...".
12932         * manual/stdio.texi (__fpending): Separate initial words of
12933         paragraph from @deftypefun line.
12934         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12935         "...".
12936         (vsyslog): Use @var{} on parameter names.
12937         * manual/terminal.texi (stty): Use @var{} on parameter names.
12938         * manual/users.texi (getutmp): Use @var{} on parameter names.
12939         (getutmpx): Likewise.
12941 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12943         [BZ #6884]
12944         * manual/stdio.texi (fopen): Fix typos in description of
12945         ",ccs=STRING".
12947 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12949         [BZ #4026]
12950         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12951         get clock_id definition.
12953 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12955         [BZ #4822]
12956         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12957         (madvise): Cast every argument to void on its own.
12959 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12961         [BZ #9902]
12962         * manual/startup.texi (Exit Status): Fix typo.
12964 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12966         [BZ #10140]
12967         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12968         * manual/examples/argp-ex2.c: Likewise.
12969         * manual/examples/argp-ex3.c: Likewise.
12971 2012-02-16  Richard Henderson  <rth@redhat.com>
12973         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12974         * sysdeps/s390/s390-32/initfini.c: Remove.
12975         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12976         * sysdeps/s390/s390-64/initfini.c: Remove.
12978 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12980         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12981         compiler output for sysdeps/generic/initfini.c.
12982         * sysdeps/sh/elf/initfini.c: Remove file.
12984 2012-02-16  David S. Miller  <davem@davemloft.net>
12986         [BZ #11494]
12987         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12989         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12990         * sysdeps/sparc/crti.S: New file.
12991         * sysdeps/sparc/crtn.S: New file.
12992         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12993         * sysdeps/sparc/sparc64/Makefile: Likewise.
12995 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12997         [BZ #3335]
12998         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13000 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13002         [BZ #4822]
13003         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13005         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13006         (write, read, close): Likewise.
13007         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13009 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13011         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13012         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13013         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13014         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13015         <bits/signalfd.h>.
13016         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13017         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13018         bits/signalfd.h.
13020 2012-02-14  Marek Polacek  <polacek@redhat.com>
13022         * sysdeps/x86_64/crti.S: New file.
13023         * sysdeps/x86_64/crtn.S: New file.
13024         * sysdeps/x86_64/elf/initfini.c: Remove file.
13026 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13028         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13029         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13030         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13031         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13032         <bits/inotify.h>.
13033         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13034         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13035         bits/inotify.h.
13037 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13039         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13040         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13041         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13042         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13043         <bits/eventfd.h>.
13044         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13045         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13046         bits/eventfd.h.
13048 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13050         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13051         __feraiseexcept instead of feraiseexcept.
13053         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13054         nanosleep invocations.
13055         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13056         strings, and add error checking for a nanosleep invocations.
13058 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13060         Replace FSF snail mail address with URLs, as per GNU coding standards.
13061         Most of the snail mail addresses were wrong anyway, and omitting
13062         them makes the source code easier to maintain.  Almost all of the
13063         changes are to license notices and to locale LC_IDENTIFICATION
13064         addresses, except for this one:
13065         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13066         not its snail mail address.
13068 2012-02-09  Richard Henderson  <rth@twiddle.net>
13070         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13071         of kernel-features.h.
13073         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13075 2012-02-08  Marek Polacek  <polacek@redhat.com>
13077         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13078         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13079         * sysdeps/gnu/_G_config.h: Likewise.
13080         * sysdeps/generic/_G_config.h: Likewise.
13082 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13084         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13085         tests.
13086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13088         * sysdeps/powerpc/powerpc32/crti.S: New file.
13089         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13090         * sysdeps/powerpc/powerpc64/crti.S: New file.
13091         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13093         * Makeconfig (have-initfini): Don't set.
13094         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13095         * configure.in (nopic_initfini): Don't substitute.
13096         * config.h.in (HAVE_INITFINI): Don't #undef.
13097         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13098         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13100 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13102         Support crti.S and crtn.S provided directly by architectures.
13103         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13104         [crti.S in sysdirs] (omit-deps): Likewise.
13105         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13106         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13107         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13108         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13109         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13110         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13111         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13112         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13113         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13114         compiler output for sysdeps/generic/initfini.c.
13115         * sysdeps/i386/elf/Makefile: Remove file.
13116         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13118 2012-02-07  Marek Polacek  <polacek@redhat.com>
13120         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13121         * sysdeps/gnu/_G_config.h: Likewise.
13122         * sysdeps/mach/hurd/_G_config.h: Likewise.
13124 2012-02-07  Marek Polacek  <polacek@redhat.com>
13126         * math/Makefile (tests): Add tst-CMPLX2.
13127         * math/tst-CMPLX2.c: New file.
13129 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13131         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13133         * math/libm-test.inc (jn_test): Add missing L suffix.
13135 2012-02-06  Marek Polacek  <polacek@redhat.com>
13137         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13138         * sysdeps/i386/fpu/e_powf.S: Likewise.
13139         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13140         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13141         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13142         * sysdeps/i386/fpu/e_pow.S: Likewise.
13143         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13144         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13145         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13146         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13147         * sysdeps/i386/fpu/e_log2.S: Likewise.
13148         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13149         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13150         * sysdeps/i386/fpu/e_powl.S: Likewise.
13151         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13152         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13153         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13154         * sysdeps/i386/fpu/e_logl.S: Likewise.
13155         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13156         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13157         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13158         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13159         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13160         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13161         * sysdeps/i386/fpu/e_log.S: Likewise.
13162         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13163         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13164         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13165         * sysdeps/i386/fpu/e_logf.S: Likewise.
13166         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13167         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13168         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13169         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13170         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13171         * sysdeps/i386/fpu/e_log10.S: Likewise.
13172         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13173         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13174         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13175         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13176         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13177         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13178         * sysdeps/i386/asm-syntax.h: Likewise.
13179         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13180         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13181         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13182         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13183         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13184         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13185         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13186         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13187         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13188         * sysdeps/powerpc/sysdep.h: Likewise.
13189         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13190         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13192 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13194         [BZ #411]
13195         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13197 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13199         * sysdeps/i386/sysdep.h: Include <features.h>.
13200         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13201         version.
13203 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13205         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13206         Define.
13207         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13208         LOAD_PIC_REG_STR.
13210 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13212         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13213         (SETUP_PIC_REG): Use GET_PC_THUNK.
13214         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13215         macro.
13217 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13219         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13220         for non-PIC compilation.
13221         (SETUP_PIC_REG): Add .p2align directive.
13222         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13223         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13229         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13230         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13231         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13232         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13233         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13234         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13235         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13236         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13237         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13241         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13242         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13243         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13244         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13245         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13246         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13247         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13248         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13249         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13250         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13251         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13252         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13253         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13254         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13255         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13256         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13257         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13258         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13259         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13260         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13261         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13262         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13264 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13266         * math/tst-CMPLX.c: Include <stdio.h>.
13268 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13270         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13271         float.
13272         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13273         * sysdeps/sparc/bits/mathdef.h: Likewise.
13275 2012-01-31  Marek Polacek  <polacek@redhat.com>
13277         * libio/libio.h: Don't define _PARAMS.
13278         * locale/programs/config.h: Don't define PARAMS.
13279         * stdlib/strtol_l.c: Likewise.
13280         (__strtol_l): Remove PARAMS from the prototype.
13282 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13284         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13285         names.  Just use the correct names.  Remove unnecessary wrapper
13286         functions.
13287         * malloc/arena.c: Likewise.
13288         * malloc/hooks.c: Likewise.
13290         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13291         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13292         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13294 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13296         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13297         into tail calls.
13298         (update_get_addr): New function.
13299         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13300         GET_ADDR_MODULE parameter.
13302 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13304         * crypt/cert.c: Remove __STDC__ conditionals.
13305         * crypt/crypt-entry.c: Likewise.
13306         * crypt/crypt_util.c: Likewise.
13307         * libio/filedoalloc.c: Likewise.
13308         * libio/fileops.c: Likewise.
13309         * libio/genops.c: Likewise.
13310         * libio/iofclose.c: Likewise.
13311         * libio/iofdopen.c: Likewise.
13312         * libio/iofopen.c: Likewise.
13313         * libio/iofopen64.c: Likewise.
13314         * libio/iogetdelim.c: Likewise.
13315         * libio/iopopen.c: Likewise.
13316         * libio/obprintf.c: Likewise.
13317         * libio/oldfileops.c: Likewise.
13318         * libio/oldiofclose.c: Likewise.
13319         * libio/oldiofdopen.c: Likewise.
13320         * libio/oldiofopen.c: Likewise.
13321         * libio/oldiopopen.c: Likewise.
13322         * libio/wfiledoalloc.c: Likewise.
13323         * libio/wgenops.c: Likewise.
13324         * locale/programs/xmalloc.c: Likewise.
13325         * misc/syslog.c: Likewise.
13326         * stdio-common/xbug.c: Likewise.
13327         * string/memchr.c: Likewise.
13328         * string/memcmp.c: Likewise.
13329         * string/memrchr.c: Likewise.
13330         * string/rawmemchr.c: Likewise.
13331         * sysdeps/posix/getcwd.c: Likewise.
13332         * time/strftime_l.c: Likewise.
13334 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13336         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13337         * config.make.in (config-cflags-sse2avx): Define.
13338         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13339         Fix typo.
13341 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13343         * scripts/config.guess: Update from upstream config git repository.
13344         * scripts/config.sub: Likewise.
13346 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13348         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13349         (EM_NUM): Update.
13350         (R_TILEPRO_*, R_TILEGX_*): New macros.
13352         * scripts/firstversions.awk: Fix bug in version range handling.
13354         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13356         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13358         * include/sys/epoll.h: New file.
13359         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13360         libc_hidden_def.
13362 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13364         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13365         Avoid unnecessary __WORDSIZE == 64 test.
13366         (fmaxf): Use VEX format if possible.
13367         (fmax): Likewise.
13368         (fminf): Likewise.
13369         (fmin): Likewise.
13371         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13372         * math/math_private.h: Remove libc_fegetround* and
13373         libc_fesetround*.
13374         * sysdeps/i386/configure.in: Check for -msse2avx.
13375         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13376         also if SSE2AVX is defined.
13377         Remove libc_fegetround* and libc_fesetround*.
13378         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13379         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13380         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13381         of HAS_YMM_USABLE.
13382         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13383         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13384         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13385         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13386         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13388         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13390 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13392         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13393         size is not set.
13394         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13396 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13398         [BZ #13618]
13399         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13400         relocation.
13401         * Makeconfig (libm): Define.
13402         * elf/Makefile: Add rules to build and run tst-relsort1.
13403         * elf/tst-relsort1.c: New file.
13404         * elf/tst-relsort1mod1.c: New file.
13405         * elf/tst-relsort1mod2.c: New file.
13407 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13409         * math/s_ldexp.c: Remove __STDC__ conditionals.
13410         * math/s_ldexpf.c: Likewise.
13411         * math/s_ldexpl.c: Likewise.
13412         * math/s_nextafter.c: Likewise.
13413         * math/s_nexttowardf.c: Likewise.
13414         * math/s_significand.c: Likewise.
13415         * math/s_significandf.c: Likewise.
13416         * math/s_significandl.c: Likewise.
13417         * math/w_jnl.c: Likewise.
13418         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13419         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13420         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13421         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13422         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13423         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13427         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13428         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13429         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13430         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13431         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13432         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13433         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13434         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13435         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13436         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13437         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13438         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13439         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13440         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13441         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13442         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13443         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13444         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13445         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13446         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13447         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13448         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13449         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13450         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13451         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13452         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13453         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13454         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13455         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13456         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13457         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13458         * sysdeps/ieee754/k_standard.c: Likewise.
13459         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13460         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13461         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13462         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13463         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13464         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13465         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13466         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13467         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13468         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13469         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13470         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13471         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13472         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13473         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13474         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13477         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13478         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13479         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13480         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13481         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13482         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13483         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13484         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13485         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13486         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13490         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13491         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13492         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13494         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13495         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13498         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13499         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13500         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13504         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13505         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13506         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13507         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13508         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13511         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13512         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13516         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13517         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13520         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13521         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13522         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13525         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13527         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13529         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13530         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13531         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13532         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13533         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13534         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13535         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13536         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13538         * sysdeps/ieee754/s_matherr.c: Likewise.
13539         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13540         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13541         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13542         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13544 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13546         * crypt/md5.h: Remove __STDC__ conditionals.
13547         * libio/libioP.h: Likewise.
13548         * locale/programs/config.h: Likewise.
13549         * sysdeps/generic/sysdep.h: Likewise.
13550         * sysdeps/i386/asm-syntax.h: Likewise.
13551         * sysdeps/s390/asm-syntax.h: Likewise.
13552         * sysdeps/unix/sysdep.h: Likewise.
13553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13556 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13558         * libio/libio.h: Remove __STDC__ conditionals.
13559         * malloc/obstack.h: Likewise.
13560         * math/complex.h: Likewise.
13561         * math/math.h: Likewise.
13562         * sysdeps/generic/_G_config.h: Likewise.
13563         * sysdeps/gnu/_G_config.h: Likewise.
13564         * sysdeps/mach/hurd/_G_config.h: Likewise.
13565         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13566         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13567         * sysdeps/sparc/bits/mathdef.h: Likewise.
13569 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13571         [BZ #13583]
13572         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13573         Clean up HAS_* macros.
13574         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13575         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13576         possible.
13577         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13578         HAS_AVX.
13579         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13580         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13581         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13582         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13583         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13585 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13587         * elf/tst-unique3.cc (gets): Remove declaration.
13588         * elf/tst-unique3lib.cc (gets): Likewise.
13589         * elf/tst-unique3lib2.cc (gets): Likewise.
13590         * elf/tst-unique4.cc (gets): Likewise.
13592 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13594         * include/stdio.h: Add C++ protection.  Add gets declarations and
13595         definitions.
13596         * debug/tst-chk1.c: Don't declare gets here.
13597         * stdio-common/tst-gets.c: Likewise.
13599 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13601         * posix/glob: Remove directory.
13603 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13605         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13607 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13609         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13610         of the non-standard EPFNOSUPPORT.
13612 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13614         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13615         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13616         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13618 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13620         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13622 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13624         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13625         transient errors.
13626         * nscd/grpcache.c (cache_addgr): Likewise.
13627         * nscd/hstcache.c (cache_addhst): Likewise.
13628         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13629         * nscd/pwdcache.c (cache_addpw): Likewise.
13630         * nscd/servicescache.c (cache_addserv): Likewise.
13632 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13634         * malloc/malloc.c: Various cleanups.
13635         * malloc/hooks.c: Likewise.
13637         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13638         * stdlib/bug-fmtmsg1.c: New file.
13640         * stdlib/fmtmsg.c (init): Add missing unlock.
13641         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13643 2012-01-12  Marek Polacek  <polacek@redhat.com>
13645         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13646         and _GNU_SOURCE.
13648 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13650         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13651         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13652         macro to ensure uniqueness of label name.
13653         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13654         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13656 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13658         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13660         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13661         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13662         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13663         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13665 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13667         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13669         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13670         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13671         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13673         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13675         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13676         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13677         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13678         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13680         * math/bits/math-finite.h: Add ldexp support.
13682 2012-01-10  Marek Polacek  <polacek@redhat.com>
13684         * locale/programs/localedef.h (show_archive_content): Add noreturn
13685         attribute.
13687 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13689         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13691 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13693         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13695         * io/Makefile (headers): Add bits/poll2.h.
13697 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13700         typo #include statement.
13702 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13704         * include/sys/cdefs.h: Define __attribute_alloc_size.
13705         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13706         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13707         * elf/pldd.c: Likewise.
13708         * iconv/iconv_charmap.c: Likewise.
13709         * iconv/iconvconfig.c: Likewise.
13710         * iconv/strtab.c: Likewise.
13711         * locale/programs/locale.c: Likewise.
13712         * locale/programs/localedef.h: Likewise.
13713         * locale/programs/simple-hash.c: Likewise.
13714         * nscd/nscd.h: Likewise.
13715         * nss/makedb.c: Likewise.
13716         * sysdeps/generic/ldconfig.h: Likewise.
13717         * locale/programs/localedef.c: Remove xmalloc prototype.
13718         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13720 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13722         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13723         appropriate.
13725 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13727         * math/Makefile (tests): Add tst-CMPLX.
13728         * math/tst-CMPLX.c: New file.
13730         * math/complex.h (CMPLXL): Fix typo.
13732         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13733         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13734         GLIBC_2.16.
13735         * debug/tst-chk1.c: Add poll and ppoll tests.
13736         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13737         * include/sys/poll.h: Add hidden proto for ppoll.
13738         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13739         * sysdeps/mach/hurd/ppoll.c: Likewise.
13740         * io/ppoll.c: Likewise.
13741         * debug/poll_chk.c: New file.
13742         * debug/ppoll_chk.c: New file.
13743         * include/bits/poll2.h: New file.
13744         * io/bits/poll2.h: New file.
13746         [BZ #1350]
13747         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13749         * configure.in: static is always set to yes.  Remove.
13750         * config.make.in: Don't set build-static.
13751         * Makeconfig: Remove use of build-static.
13752         * dlfcn/Makefile: Likewise.
13753         * elf/Makefile: Likewise.
13754         * math/Makefile: Likewise.
13755         * misc/Makefile: Likewise.
13756         * nptl/Makefile: Likewise.
13757         * sysdeps/mach/hurd/Makefile: Likewise.
13759         * configure.in: PWD_P is not used anymore.
13760         * config.make.in: Remove PWD_P entry.
13762         * configure.in: Remove last remnants of RANLIB.
13763         No need to check for signed size_t anymore.
13764         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13765         and IA-64.
13766         Remove __builtin_expect test because we require at least gcc 3.4.
13767         * aclocal.m4: Likewise.
13769         * wcsmbs/mbrtoc16.c: Implement using towc function.
13770         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13771         * wcsmbs/wcsmbsload.c: Likewise.
13772         * iconv/gconv_simple.c: Likewise.
13773         * iconv/gconv_int.h: Likewise.
13774         * iconv/gconv_builtin.h: Likewise.
13775         * iconv/iconv_prog.c: Remove CHAR16 handling.
13777         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13779         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13781         * configure.in: Remove --with-elf and --enable-bounded options.
13782         Dont set base_machine for ia64.  More non-ELF conditions removed.
13783         Remove testing and setting of leading underscore information.
13784         * config.make.in (build-bounded): Set to no.
13785         * config.h.in: Remove NO_UNDERSCORES entry.
13786         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13787         them.
13788         * csu/start.c: Remove !NO_UNDERSCORE code.
13789         * locale/localeinfo.h: Likewise.
13790         * sysdeps/generic/machine-gmon.h: Likewise.
13791         * sysdeps/generic/sysdep.h: Likewise.
13792         * sysdeps/i386/sysdep.h: Likewise.
13793         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13794         * sysdeps/mach/sysdep.h: Likewise.
13795         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13796         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13797         * sysdeps/sh/sysdep.h: Likewise.
13798         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13799         * sysdeps/unix/i386/sysdep.S: Likewise.
13800         * sysdeps/unix/sparc/start.c: Likewise.
13801         * sysdeps/unix/sparc/sysdep.S: Likewise.
13802         * sysdeps/unix/sparc/sysdep.h: Likewise.
13803         * sysdeps/unix/start.c: Likewise.
13804         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13805         * sysdeps/x86_64/sysdep.h: Likewise.
13807 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13809         [BZ #13553]
13810         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13811         for non-gcc.
13812         * argp/argp-fmtstream.h: Use const instead __const.
13813         * argp/argp.h: Likewise.
13814         * assert/assert.h: Likewise.
13815         * bits/fenv.h: Likewise.
13816         * bits/sched.h: Likewise.
13817         * bits/sigset.h: Likewise.
13818         * bits/sigthread.h: Likewise.
13819         * catgets/nl_types.h: Likewise.
13820         * conform/data/pthread.h-data: Likewise.
13821         * crypt/crypt-private.h: Likewise.
13822         * crypt/crypt.h: Likewise.
13823         * crypt/crypt_util.c: Likewise.
13824         * ctype/ctype.h: Likewise.
13825         * debug/execinfo.h: Likewise.
13826         * debug/mbsnrtowcs_chk.c: Likewise.
13827         * debug/mbsrtowcs_chk.c: Likewise.
13828         * debug/wcsnrtombs_chk.c: Likewise.
13829         * debug/wcsrtombs_chk.c: Likewise.
13830         * debug/wcstombs_chk.c: Likewise.
13831         * dirent/dirent.h: Likewise.
13832         * dlfcn/dlfcn.h: Likewise.
13833         * elf/neededtest4.c: Likewise.
13834         * grp/grp.h: Likewise.
13835         * gshadow/gshadow.h: Likewise.
13836         * iconv/gconv.h: Likewise.
13837         * iconv/gconv_int.h: Likewise.
13838         * iconv/gconv_simple.c: Likewise.
13839         * iconv/iconv.h: Likewise.
13840         * iconv/loop.c: Likewise.
13841         * iconv/skeleton.c: Likewise.
13842         * include/aio.h: Likewise.
13843         * include/aliases.h: Likewise.
13844         * include/argz.h: Likewise.
13845         * include/arpa/inet.h: Likewise.
13846         * include/assert.h: Likewise.
13847         * include/dirent.h: Likewise.
13848         * include/dlfcn.h: Likewise.
13849         * include/execinfo.h: Likewise.
13850         * include/fcntl.h: Likewise.
13851         * include/fenv.h: Likewise.
13852         * include/glob.h: Likewise.
13853         * include/grp.h: Likewise.
13854         * include/libintl.h: Likewise.
13855         * include/mntent.h: Likewise.
13856         * include/netdb.h: Likewise.
13857         * include/pwd.h: Likewise.
13858         * include/rpc/netdb.h: Likewise.
13859         * include/sched.h: Likewise.
13860         * include/search.h: Likewise.
13861         * include/shadow.h: Likewise.
13862         * include/signal.h: Likewise.
13863         * include/stdio.h: Likewise.
13864         * include/stdlib.h: Likewise.
13865         * include/string.h: Likewise.
13866         * include/sys/socket.h: Likewise.
13867         * include/sys/stat.h: Likewise.
13868         * include/sys/statfs.h: Likewise.
13869         * include/sys/statvfs.h: Likewise.
13870         * include/sys/syslog.h: Likewise.
13871         * include/sys/time.h: Likewise.
13872         * include/sys/uio.h: Likewise.
13873         * include/time.h: Likewise.
13874         * include/unistd.h: Likewise.
13875         * include/utmp.h: Likewise.
13876         * include/wchar.h: Likewise.
13877         * include/wctype.h: Likewise.
13878         * inet/aliases.h: Likewise.
13879         * inet/arpa/inet.h: Likewise.
13880         * inet/netinet/ether.h: Likewise.
13881         * inet/netinet/in.h: Likewise.
13882         * intl/libintl.h: Likewise.
13883         * io/bits/fcntl2.h: Likewise.
13884         * io/fcntl.h: Likewise.
13885         * io/ftw.h: Likewise.
13886         * io/sys/poll.h: Likewise.
13887         * io/sys/stat.h: Likewise.
13888         * io/sys/statfs.h: Likewise.
13889         * io/sys/statvfs.h: Likewise.
13890         * io/utime.h: Likewise.
13891         * libio/bits/stdio.h: Likewise.
13892         * libio/bits/stdio2.h: Likewise.
13893         * libio/libio.h: Likewise.
13894         * libio/libioP.h: Likewise.
13895         * libio/stdio.h: Likewise.
13896         * locale/lc-ctype.c: Likewise.
13897         * locale/locale.h: Likewise.
13898         * login/utmp.h: Likewise.
13899         * malloc/arena.c: Likewise.
13900         * malloc/malloc.c: Likewise.
13901         * malloc/malloc.h: Likewise.
13902         * malloc/mcheck.c: Likewise.
13903         * malloc/mtrace.c: Likewise.
13904         * math/bits/mathcalls.h: Likewise.
13905         * math/fenv.h: Likewise.
13906         * math/math_private.h: Likewise.
13907         * misc/bits/error.h: Likewise.
13908         * misc/bits/syslog.h: Likewise.
13909         * misc/err.h: Likewise.
13910         * misc/error.h: Likewise.
13911         * misc/fstab.h: Likewise.
13912         * misc/mntent.h: Likewise.
13913         * misc/regexp.h: Likewise.
13914         * misc/search.h: Likewise.
13915         * misc/sgtty.h: Likewise.
13916         * misc/sys/mman.h: Likewise.
13917         * misc/sys/syslog.h: Likewise.
13918         * misc/sys/uio.h: Likewise.
13919         * misc/sys/xattr.h: Likewise.
13920         * misc/ttyent.h: Likewise.
13921         * nis/rpcsvc/ypclnt.h: Likewise.
13922         * nss/nss.h: Likewise.
13923         * posix/bits/unistd.h: Likewise.
13924         * posix/fnmatch.h: Likewise.
13925         * posix/glob.h: Likewise.
13926         * posix/sched.h: Likewise.
13927         * posix/spawn.h: Likewise.
13928         * posix/sys/wait.h: Likewise.
13929         * posix/unistd.h: Likewise.
13930         * posix/wordexp.h: Likewise.
13931         * pwd/pwd.h: Likewise.
13932         * resolv/netdb.h: Likewise.
13933         * resource/sys/resource.h: Likewise.
13934         * rt/aio.h: Likewise.
13935         * rt/bits/mqueue2.h: Likewise.
13936         * rt/mqueue.h: Likewise.
13937         * shadow/shadow.h: Likewise.
13938         * signal/signal.h: Likewise.
13939         * socket/send.c: Likewise.
13940         * socket/sendto.c: Likewise.
13941         * socket/sys/socket.h: Likewise.
13942         * stdio-common/printf.h: Likewise.
13943         * stdlib/bits/stdlib.h: Likewise.
13944         * stdlib/fmtmsg.h: Likewise.
13945         * stdlib/monetary.h: Likewise.
13946         * stdlib/stdlib.h: Likewise.
13947         * stdlib/ucontext.h: Likewise.
13948         * streams/stropts.h: Likewise.
13949         * string/argz.h: Likewise.
13950         * string/bits/string2.h: Likewise.
13951         * string/string.h: Likewise.
13952         * string/strings.h: Likewise.
13953         * sunrpc/rpc/auth.h: Likewise.
13954         * sunrpc/rpc/auth_des.h: Likewise.
13955         * sunrpc/rpc/clnt.h: Likewise.
13956         * sunrpc/rpc/netdb.h: Likewise.
13957         * sunrpc/rpc/pmap_clnt.h: Likewise.
13958         * sunrpc/rpc/xdr.h: Likewise.
13959         * sysdeps/generic/inttypes.h: Likewise.
13960         * sysdeps/generic/net/if.h: Likewise.
13961         * sysdeps/generic/sys/swap.h: Likewise.
13962         * sysdeps/gnu/net/if.h: Likewise.
13963         * sysdeps/gnu/utmpx.h: Likewise.
13964         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13965         * sysdeps/i386/i486/bits/string.h: Likewise.
13966         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13967         * sysdeps/s390/bits/string.h: Likewise.
13968         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13969         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13970         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13971         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13972         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13973         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13974         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13975         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13976         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13977         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13978         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13979         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13980         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13981         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13982         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13983         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13984         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13985         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13986         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13987         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13988         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13989         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13990         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13991         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13992         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13993         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13994         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13995         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13996         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13997         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13998         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13999         * sysvipc/sys/ipc.h: Likewise.
14000         * sysvipc/sys/msg.h: Likewise.
14001         * sysvipc/sys/sem.h: Likewise.
14002         * sysvipc/sys/shm.h: Likewise.
14003         * termios/termios.h: Likewise.
14004         * time/sys/time.h: Likewise.
14005         * time/time.h: Likewise.
14006         * wcsmbs/bits/wchar2.h: Likewise.
14007         * wcsmbs/uchar.h: Likewise.
14008         * wcsmbs/wchar.h: Likewise.
14009         * wctype/wctype.h: Likewise.
14011         [BZ #13551]
14012         * Makeconfig: Remove all but ELF support including AIX support.
14013         * Makerules: Likewise.
14014         * config.h.in: Likewise.
14015         * config.make.in: Likewise.
14016         * configure: Likewise.
14017         * configure.in: Likewise.
14018         * csu/Makefile: Likewise.
14019         * csu/version.c: Likewise.
14020         * debug/Makefile: Likewise.
14021         * dlfcn/Makefile: Likewise.
14022         * elf/Makefile: Likewise.
14023         * extra-lib.mk: Likewise.
14024         * iconv/Makefile: Likewise.
14025         * include/libc-symbols.h: Likewise.
14026         * include/shlib-compat.h: Likewise.
14027         * resolv/Makefile: Likewise.
14028         * resolv/res_libc.c: Likewise.
14029         * rt/Makefile: Likewise.
14030         * sysdeps/i386/asm-syntax.h: Likewise.
14031         * sysdeps/i386/sysdep.h: Likewise.
14032         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14033         * sysdeps/mach/sysdep.h: Likewise.
14034         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14035         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14036         * sysdeps/s390/asm-syntax.h: Likewise.
14037         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14038         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14039         * sysdeps/sh/sysdep.h: Likewise.
14040         * sysdeps/unix/sparc/sysdep.h: Likewise.
14041         * sysdeps/wordsize-32/divdi3.c: Likewise.
14042         * sysdeps/x86_64/sysdep.h: Likewise.
14044         * argp/Versions: Remove _argp_unlock_xxx.
14046         [BZ #13559]
14047         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14048         * abilist/libBrokenLocale.abilist: Likewise.
14049         * abilist/libanl.abilist: Likewise.
14050         * abilist/libc.abilist: Likewise.
14051         * abilist/libcrypt.abilist: Likewise.
14052         * abilist/libdl.abilist: Likewise.
14053         * abilist/libm.abilist: Likewise.
14054         * abilist/libnsl.abilist: Likewise.
14055         * abilist/libpthread.abilist: Likewise.
14056         * abilist/libresolv.abilist: Likewise.
14057         * abilist/librt.abilist: Likewise.
14058         * abilist/libthread_db.abilist: Likewise.
14059         * abilist/libutil.abilist: Likewise.
14060         * abilist/libnss_db.abilist: New file.
14062         * scripts/abilist.awk: Add support for indirect functions.
14064         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14066         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14068         * shlib-versions: Remove entries for ports architectures.
14070         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14071         files in ports.
14072         * elf/stackguard-macros.h: Remove support for IA-64.
14073         * elf/tst-auditmod1.c: Likewise.
14074         * sysdeps/generic/ldsodefs.h: Likewise.
14076         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14077         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14078         configure files.
14080         [BZ #13552]
14081         * configure.in: Remove --enable-omitfp support.
14082         * FAQ.in: Adjust.
14083         * config.make.in: Likewise.
14084         * Makeconfig: Likewise.
14085         * manual/install.texi: Likewise.
14087         In case anyone cares, the IA-64 architecture could move to ports.
14088         * sysdeps/ia64/*: Removed.
14089         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14090         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14092         [BZ #13555]
14093         * configure.in: Remove entries for unsupported architectures.
14095         [BZ #13533]
14096         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14097         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14098         routines.
14099         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14100         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14101         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14102         fall back to using wcrtomb.
14103         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14104         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14105         renaming.
14106         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14107         * wcsmbs/tst-c16c32-1.c: New file.
14109         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14110         local variable.
14112         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14114         * elf/tst-unique3.cc: Add explicit declaration of gets.
14115         * elf/tst-unique3lib.cc: Likewise.
14116         * elf/tst-unique3lib2.cc: Likewise.
14117         * elf/tst-unique4.cc: Likewise.
14119         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14121 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14123         [BZ #13566]
14124         * assert/assert.h (static_assert): Don't define for C++.
14125         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14126         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14128 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14130         * iconv/loop.c (single loop): Fix assertion in storing of
14131         remaining bytes.
14133         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14135 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14137         * posix/getconf.c: Update copyright year.
14138         * nss/getent.c: Likewise.
14139         * nss/makedb.c: Likewise.
14140         * iconv/iconvconfig.c: Likewise.
14141         * iconv/iconv_prog.c: Likewise.
14142         * elf/ldconfig.c: Likewise.
14143         * elf/pldd.c: Likewise.
14144         * elf/sotruss.ksh: Likewise.
14145         * catgets/gencat.c: Likewise.
14146         * csu/version.c: Likewise.
14147         * elf/ldd.bash.in: Likewise.
14148         * elf/sprof.c (print_version): Likewise.
14149         * locale/programs/locale.c: Likewise.
14150         * locale/programs/localedef.c: Likewise.
14151         * login/programs/pt_chown.c: Likewise.
14152         * nscd/nscd.c (print_version): Likewise.
14153         * debug/xtrace.sh: Likewise.
14154         * malloc/memusage.sh: Likewise.
14155         * malloc/mtrace.pl: Likewise.
14156         * debug/catchsegv.sh: Likewise.
14158 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14160         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14161         pure attribute.
14163 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14165         [BZ #13533]
14166         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14167         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14168         transformations.
14169         * iconv/gconv_int.h: Likewise.
14170         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14171         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14172         from libc for GLIBC_2.16.
14173         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14174         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14175         * wcsmbs/uchar.h: Really define mbstate_t.
14176         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14177         * wcsmbs/c16rtomb.c: New file.
14178         * wcsmbs/mbrtoc16.c: New file.
14179         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14180         for C/POSIX locale.
14181         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14182         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14184         * wcsmbs/wchar.h: Add missing __restrict.
14186 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14188         [BZ #13532]
14189         * time/Makefile (routines): Add timespec_get.
14190         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14191         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14192         timespec for ISO C11.
14193         * time/timespec_get.c: New file.
14194         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14195         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14197         [BZ #13531]
14198         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14199         * stdlib/stdlib.h: Declare aligned_alloc.
14200         * Versions.def: Add GLIBC_2.16 for libc.
14201         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14203         [BZ 13527]
14204         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14205         ISO C11.
14207         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14208         code.
14210         [BZ #13528]
14211         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14213         [BZ #13529]
14214         * assert/assert.h (static_assert): Define.
14216         * version.h: Update for 2.16 development version.
14218         [BZ #13526]
14219         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14220         _ISOC11_SOURCE.
14222         * version.h (RELEASE): Bump for 2.15 release.
14223         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14225         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14226         Patch by Marek Polacek <mpolacek@redhat.com>.
14228         * bits/byteswap.h: Protect long long constants with __extension__.
14229         * sysdeps/i386/bits/byteswap.h: Likewise.
14230         * sysdeps/ia64/bits/byteswap.h: Likewise.
14231         * sysdeps/s390/bits/byteswap.h: Likewise.
14232         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14234 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14236         [BZ #13540]
14237         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14238         destination buffer.
14239         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14241 2011-12-23  Marek Polacek  <polacek@redhat.com>
14243         * elf/dl-addr.c (determine_info): Add inline keyword.
14244         * elf/tst-auditmod4b.c (check_avx): Likewise.
14245         * elf/tst-auditmod6b.c (check_avx): Likewise.
14246         * elf/tst-auditmod6c.c (check_avx): Likewise.
14247         * elf/tst-auditmod7b.c (check_avx): Likewise.
14249 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14251         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14252         !__SSE_MATH__.
14254 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14256         [BZ #13540]
14257         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14258         processing for last bytes.
14260 2011-08-06  Bruno Haible  <bruno@clisp.org>
14262         [BZ #13061]
14263         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14264         U+0385, not to U+1FEE.
14266         [BZ #13062]
14267         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14268         entry for U+00A5 U+0301.
14270 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14272         [BZ #13166]
14273         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14274         buffer for the output is too small.
14276         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14277         optimization.
14279         [BZ #13185]
14280         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14281         SSE flags if possible.
14283 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14285         [BZ #13540]
14286         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14287         processing for last bytes.
14289 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14291         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14292         (syscall-list-default-options, syscall-list-default-condition)
14293         (syscall-list-includes): Define.
14294         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14295         list of ABIs and options and #if conditions for each ABI.  Do not
14296         handle common syscalls between ABIs specially.
14297         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14298         Remove.
14299         (syscall-list-variants, syscall-list-32bit-options)
14300         (syscall-list-32bit-condition, syscall-list-64bit-options)
14301         (syscall-list-64bit-condition): Define.
14302         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14303         (syscall-list-variants, syscall-list-32bit-options)
14304         (syscall-list-32bit-condition, syscall-list-64bit-options)
14305         (syscall-list-64bit-condition): Define.
14306         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14307         Remove.
14308         (syscall-list-variants, syscall-list-32bit-options)
14309         (syscall-list-32bit-condition, syscall-list-64bit-options)
14310         (syscall-list-64bit-condition): Define.
14311         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14312         Remove.
14313         (syscall-list-variants, syscall-list-32bit-options)
14314         (syscall-list-32bit-condition, syscall-list-64bit-options)
14315         (syscall-list-64bit-condition): Define.
14317 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14319         * locale/iso-639.def: Add brx entry.
14321         [BZ #13328]
14322         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14323         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14325         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14326         __feraiseexcept_renamed.
14328 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14330         [BZ #13538]
14331         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14332         EPOLLET with unsigned values.
14333         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14334         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14336         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14337         to large cancellation.
14338         * math/s_cacoshf.c: Likewise.
14339         * math/s_cacoshl.c: Likewise.
14341 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14343         [BZ #13305]
14344         [BZ #12786]
14345         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14346         * math/s_cacoshf.c: Likewise.
14347         * math/s_cacoshl.c: Likewise.
14349 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14351         [BZ #13439]
14352         * iconv/gconv.h: Define __GCONV_SWAP.
14353         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14354         * iconvdata/utf-16.c: Likewise.
14355         * iconvdata/utf-32.c: Likewise.
14357 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14359         [BZ #13524]
14360         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14361         numerator after shifting it by one limb.
14363 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14365         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14366         under [__USE_EXTERN_INLINES].
14368 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14370         [BZ #13446]
14371         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14373 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14375         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14376         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14377         optimized code.
14378         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14379         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14380         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14381         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14382         for strncasecmp/strncasecmp_l compilation.
14383         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14384         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14386 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14388         [BZ #13484]
14389         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14390         of __asm__.
14392 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14394         [BZ #13506]
14395         * time/tzfile.c (__tzfile_read): Check values from file header.
14397 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14399         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14400         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14401         * powerpc/powerpc32/dl-start.S: Likewise.
14402         * powerpc/powerpc32/elf/start.S: Likewise.
14403         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14404         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14405         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14406         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14407         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14408         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14409         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14410         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14411         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14412         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14413         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14414         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14415         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14416         * powerpc/powerpc32/memset.S: Likewise.
14417         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14418         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14419         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14420         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14421         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14422         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14423         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14424         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14425         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14426         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14427         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14428         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14429         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14431 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14433         * math/libm-test.inc: Added more nearbyint tests.
14434         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14435         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14436         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14437         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14439 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14441         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14442         FD_CLOEXEC.
14444 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14446         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14447         Add wcscpy-ssse3 wcscpy-c.
14448         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14449         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14450         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14451         * sysdeps/x86_64/wcschr.S: New file.
14452         * sysdeps/x86_64/wcsrchr.S: New file.
14453         * string/test-strcmp.c: Remove checking of wcscmp function for
14454         wrong alignments.
14455         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14456         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14457         wcsrchr-sse2 wcsrchr-c.
14458         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14459         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14460         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14461         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14462         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14463         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14464         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14465         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14466         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14467         * wcsmbc/wcschr.c (WCSCHR): New macro.
14469 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14471         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14472         * wcsmbs/test-wcsrchr.c: New file.
14473         * string/test-strrchr.c: Add wcsrchr support.
14474         (WIDE): New macro.
14475         * wcsmbs/test-wcscpy.c: New file.
14476         * string/test-strcpy.c: Add wcscpy support.
14477         (WIDE): New macro.
14479 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14481         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14482         the inner loop.
14484 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14486         [BZ #13472]
14487         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14489 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14491         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14492         Minor optimizations.
14494         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14495         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14496         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14498 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14500         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14501         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14502         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14503         for gcc to avoid warnings.
14504         * inet/Makefile (tests): Add tst-checks.
14505         * inet/tst-checks.c: New file.
14507         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14508         warning.
14510         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14511         __wmemcmp_sse2.
14513         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14514         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14516         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14518 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14520         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14521         problem.
14523         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14525 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14527         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14528         conditional on GCC version.
14529         (__arch_compare_and_exchange_val_8_acq)
14530         (__arch_compare_and_exchange_val_16_acq)
14531         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14532         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14533         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14535 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14537         * sysdeps/sh/backtrace.c: New file.
14539 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14541         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14542         parenthesis.
14544 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14546         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14547         falling back to utime.
14549 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14551         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14552         expectations for float.
14554 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14556         * locale/weight.h (findidx): Add parameter len.
14557         * locale/weightwc.h (findidx): Likewise.
14558         * posix/fnmatch_loop.c (FCT): Adjust caller.
14559         * posix/regcomp.c (build_equiv_class): Likewise.
14560         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14561         * posix/regexec.c (check_node_accept_bytes): Likewise.
14562         * string/strcoll_l.c (STRCOLL): Likewise.
14563         * string/strxfrm_l.c (STRXFRM): Likewise.
14565 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14567         * Makefile.in: Remove CVSOPT handling.
14568         * configure.in: Remove use of AC_REVISION.
14569         * iconvdata/Makefile (distribute): No need to filter out CVS.
14570         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14571         handling.
14573 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14575         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14576         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14577         [USE_AS_STRNCASECMP_L]: Likewise.
14578         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14579         NO_TLS_DIRECT_SEG_REFS.
14580         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14581         Fix argument offsets for non-PIC.
14582         [USE_AS_STRNCASECMP_L]: Likewise.
14583         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14584         NO_TLS_DIRECT_SEG_REFS.
14586 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14588         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14589         O_CLOEXEC.
14590         * locale/loadlocale.c (_nl_load_locale): Likewise.
14592 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14594         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14595         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14596         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14597         (SYSCALL_GETTIME): Set errno on error.
14599         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14600         count references to noai6ai_cached.
14602 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14604         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14606         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14607         FD_CLOEXEC for /proc/self/maps.
14609         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14610         FD_CLOEXEC for /proc/meminfo.
14612         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14613         gai.conf.
14615         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14616         FD_CLOEXEC for given file.
14618         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14620         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14621         FD_CLOEXEC for /etc/hosts.
14622         (_gethtent): Likewise.
14624         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14626         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14627         cancellation and set FD_CLOEXEC for /etc/netgroup.
14629         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14630         reading /etc/publickey.
14632         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14633         allow cancellation when reading /etc/group.
14635         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14636         cancellation.
14637         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14639         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14640         when using data file.
14642         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14644         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14645         (write_nis_obj): Use "c" and "e" in fopen.
14647         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14649         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14651         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14653         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14655         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14656         locale.alias.
14658         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14660         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14662         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14664         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14665         file parsing and set FD_CLOEXEC.
14667 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14669         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14671 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14673         * malloc/arena.c (arena_get2): Don't call reused_arena when
14674         _int_new_arena failed.
14676 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14678         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14679         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14680         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14681         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14682         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14683         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14684         to compile strcasecmp and strncasecmp.
14685         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14686         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14688         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14690 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14692         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14693         locale-defines.sym to gen-as-const-headers.
14694         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14695         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14696         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14697         to compile strcasecmp and strncasecmp.
14698         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14699         strcasecmp_l and strncasecmp_l.
14700         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14701         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14702         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14703         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14704         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14705         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14706         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14707         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14708         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14709         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14710         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14712 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14714         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14715         result of SYSDEP_GETTIME_CPU to retval.
14716         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14717         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14719         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14720         variable.
14722         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14723         mantissa words.
14724         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14726         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14727         from unused variable.
14729         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14730         DWARF definitions.
14731         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14732         for assembling.
14734         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14735         over namespaces.
14737         * sunrpc/rpc_prot.c (rejected): Fix case value.
14739         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14740         unsigned long long int to avoid warnings in shift.
14742         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14743         of use of trans.
14744         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14745         variable tmp.
14747         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14748         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14749         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14751         * nis/nis_table.c (nis_list): Use variable of correct type for
14752         result of __follow_path call.
14754 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14756         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14757         of math functions ceil, trunc, floor, round, and sqrt, when
14758         avaliable on the platform.
14759         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14760         name clash.
14761         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14762         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14763         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14765 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14767         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14768         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14770 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14772         * include/unistd.h: Fix __readlink return type.
14773         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14775 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14777         * stdlib/ucontext.h: Undo last change for makecontext.
14779 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14781         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14783         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14784         * setjmp/setjmp.h: Mark functions as non-leaf.
14785         * setjmp/bits/setjmp2.h: Likewise.
14786         * stdlib/ucontext.h: Likewise.
14788 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14790         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14791         (reused_arena): Don't check arena limit.
14792         (arena_get2): Atomically check arena limit.
14794 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14796         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14797         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14799         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14800         instructions.
14802 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14804         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14805         handler when locking.
14807         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14808         Fix size of allocated buffer.
14810 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14812         [BZ #10103]
14813         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14814         declarations for long double functions.
14815         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14817         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14819 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14821         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14822         installed.
14824         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14825         is disabled.
14827 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14829         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14831 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14833         * include/alloca.h (stackinfo_alloca_round): Define.
14834         (extend_alloca): Use it.
14835         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14836         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14837         here.
14839         * scripts/check-local-headers.sh: Ignore libaudit.h.
14841         * nscd/Makefile (extra-objs): Make recursively expanded.
14843 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14845         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14846         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14848         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14849         * posix/tst-rfc3484-2.c: Likewise.
14850         * posix/tst-rfc3484-3.c: Likewise.
14852         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14853         process_vm_writev.
14854         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14855         process_vm_writev.
14856         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14857         process_vm_writev from libc using GLIBC_2.15 version.
14859         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14861 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14863         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14864         stack usage.
14866 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14868         [BZ #13367]
14869         * nss/getent.c (initgroups_keys): Show error message in case no group
14870         names are given.
14872         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14873         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14874         __bump_nl_timestamp.
14875         * nscd/connections (nscd_init): When host database is served open
14876         netlink socket and request notification about configuration changes.
14877         (main_loop_poll): Track netlink file descriptor and bump timestamp
14878         in case data becomes available.
14879         (main_loop_epoll): Likewise.
14880         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14881         (database_pers_head): Add extra_data fileds.
14882         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14883         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14884         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14885         Adjust caller.
14886         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14887         in6ai data, call __free_in6ai.
14888         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14889         Add -DHAVE_NETLINK.
14890         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14891         interface information.  Reuse previous data if netlink timestamp
14892         is not changed.
14893         (__bump_nl_timestamp): New function.
14894         (__free_in6ai): New function.
14896 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14898         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14899         close_not_cancel_no_status here.
14900         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14902 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14904         [BZ #13276]
14905         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14906         return value.
14908         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14909         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14910         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14912 2011-07-03  Andreas Jaeger  <aj@suse.de>
14914         [BZ #10709]
14915         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14916         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14917         * math/libm-test.inc (sin_test): Add test case.
14919 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14921         [BZ #13337]
14922         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14923         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14925         * elf/chroot_canon.c (chroot_canon): Cleanups.
14927         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14929         [BZ #13335]
14930         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14931         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14933         * string/test-strchr.c: Make usable for strchrnul testing.
14934         * string/test-strchrnul.c: New file.
14935         * string/Makefile (strop-tests): Add strchrnul.
14937         * po/it.po: Update from translation team.
14938         * po/es.po: Likewise.
14940 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14942         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14943         the three constants needed as parameters.  Drop the others.
14944         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14945         __m128i_strloadu_tolower.
14946         Create and initialize variable zero and use it in all the places
14947         where _mm_setzero_si128 was used.
14949         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14950         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14951         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14952         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14953         anymore.
14954         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14955         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14956         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14957         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14958         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14959         __mpranred, __mptan.
14960         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14961         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14962         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14963         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14964         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14965         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14966         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14967         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14968         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14970 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14972         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14973         redefine if SHARED.
14974         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14976         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14977         wide char related routines to wcsmbs subdir.
14979 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14981         [BZ #13344]
14982         * misc/sys/cdefs.h (__THROWNL): Define.
14983         * posix/unistd.h: Use __THREADNL instead of __THREAD
14984         for memory synchronization functions.
14986 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14988         [BZ #13349]
14989         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14990         doesn't exist.
14991         * manual/stdio.texi (Obstack Streams): Node removed.
14993 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14995         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14996         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14997         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14999         * math/math_private.h (math_force_eval): Allow non-addressable
15000         arguments.
15001         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15003 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15005         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15006         file is not needed.
15008         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15009         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15010         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15011         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15012         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15013         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15014         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15015         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15016         Add AVX variants.
15017         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15018         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15019         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15020         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15021         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15022         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15023         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15024         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15025         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15026         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15027         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15028         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15029         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15030         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15031         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15032         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15033         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15034         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15035         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15037         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15038         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15040         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15041         place.  Use VEX encoding when compiling for AVX.
15043 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15045         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15046         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15048         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15050 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15052         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15053         useless if() expression.
15054         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15055         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15056         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15057         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15058         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15059         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15060         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15061         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15062         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15063         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15064         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15065         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15066         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15067         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15068         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15069         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15070         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15071         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15072         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15074         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15076 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15078         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15079         condition.
15080         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15082 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15084         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15085         .text section.  Avoid duplicate constants.
15086         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15087         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15088         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15089         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15090         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15091         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15092         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15093         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15094         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15095         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15096         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15097         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15098         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15099         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15100         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15101         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15102         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15103         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15104         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15105         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15106         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15107         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15108         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15109         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15110         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15111         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15112         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15113         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15114         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15115         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15116         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15117         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15118         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15119         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15120         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15121         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15122         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15123         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15124         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15125         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15126         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15127         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15128         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15129         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15130         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15132 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15134         * sysdeps/x86_64/dla.h: Move to ...
15135         * sysdeps/x86_64/fpu/dla.h: ...here.
15136         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15137         situations.  Use __builtin_fma only for gcc 4.6 and up.
15139         * config.make.in: Add have-mfma4 entry.
15140         * configure.in: Substitute libc_cv_cc_fma4.
15141         * math/Makefile (dbl-only-routines): Add sincostab.
15142         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15143         Use __sincostab not sincos.
15144         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15145         name is a macro.
15146         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15147         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15148         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15149         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15150         using __copysign.
15151         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15152         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15153         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15154         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15155         and __inv.
15156         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15157         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15158         __copysign.
15159         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15160         define aliases when function name is a macro.
15161         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15162         sysdeps/ieee754/dbl-64/sincos.tbl.
15163         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15164         fma4-enabled routines.
15165         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15166         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15167         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15168         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15169         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15170         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15171         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15172         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15173         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15174         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15175         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15176         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15177         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15178         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15179         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15180         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15181         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15182         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15183         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15184         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15185         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15186         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15187         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15188         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15189         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15190         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15191         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15192         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15193         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15194         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15196         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15197         rename.
15198         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15199         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15200         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15201         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15202         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15203         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15204         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15205         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15207 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15209         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15211 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15213         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15215         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15216         prediction.
15217         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15219         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15220         Remove unused variable magic_bits.
15221         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15223         * string/strnlen.c: Define and use STRNLEN macro.
15224         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15225         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15226         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15227         * wcsmbs/wcslen.c: Define and use WCSLEN.
15228         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15229         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15230         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15231         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15232         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15233         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15234         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15236 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15238         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15239         strnlen-sse2-no-bsf.
15240         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15241         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15242         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15243         Add strnlen support.
15244         (USE_AS_STRNLEN): New macro.
15245         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15246         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15247         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15248         * sysdeps/x86_64/wcslen.S: New file.
15250 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15252         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15253         XMM-moves are used for copying on small sizes.
15255 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15257         * wcsmbs/Makefile (strop-tests): Add wcschr.
15258         * wcsmbs/test-wcschr.c: New file.
15259         * string/test-strchr.c: Update.
15260         Add wcschr support.
15261         (WIDE): New macro.
15263 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15265         * wcsmbs/Makefile (strop-tests): Add wcslen.
15266         * wcsmbs/test-wcslen.c: New file.
15267         * string/test-strlen.c: Update.
15268         Add wcslen support.
15269         (WIDE): New macro.
15271 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15273         * po/it.po: Update from translation team.
15275 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15277         * sysdeps/x86_64/wcscmp.S: Update.
15278         Fix wrong comparison semantics.
15279         wcscmp shall use signed comparison not unsigned.
15280         Don't use substraction to avoid overflow bug.
15281         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15282         * wcsmbc/wcscmp.c: Likewise.
15283         * string/test-strcmp.c: Likewise.
15284         Add new tests to check cases with negative values.
15286 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15288         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15289         * sysdeps/x86_64/dla.h: ...here.  New file.
15290         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15291         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15292         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15293         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15294         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15295         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15296         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15297         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15298         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15300 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15302         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15303         __ynl_finite aliases.
15305 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15307         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15309         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15310         define DLA_FMA.
15311         [DLA_FMA] (EMULV): Use DLA_FMA.
15312         [DLA_FMA] (MUL12): Use EMULV.
15313         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15314         that are not needed.
15315         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15316         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15317         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15318         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15319         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15320         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15321         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15323 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15325         * math/s_nan.c: Undef __nan.
15326         * math/s_nanf.c: Undef __nanf.
15327         * math/s_nanl.c: Undef __nanl.
15328         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15329         "math_private.h".
15331 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15333         * math/s_catan.c: Add branch predictions.
15334         * math/s_catanf.c: Likewise.
15335         * math/s_catanh.c: Likewise.
15336         * math/s_catanhf.c: Likewise.
15337         * math/s_catanhl.c: Likewise.
15338         * math/s_catanl.c: Likewise.
15339         * math/s_cexp.c: Likewise.
15340         * math/s_cexpf.c: Likewise.
15341         * math/s_cexpl.c: Likewise.
15342         * math/s_clog.c: Likewise.
15343         * math/s_clog10.c: Likewise.
15344         * math/s_clog10f.c: Likewise.
15345         * math/s_clog10l.c: Likewise.
15346         * math/s_clogf.c: Likewise.
15347         * math/s_clogl.c: Likewise.
15348         * math/s_csqrt.c: Likewise.
15349         * math/s_csqrtf.c: Likewise.
15350         * math/s_csqrtl.c: Likewise.
15351         * math/s_ctanf.c: Likewise.
15352         * math/s_ctanh.c: Likewise.
15353         * math/s_ctanhf.c: Likewise.
15354         * math/s_ctanhl.c: Likewise.
15355         * math/s_ctanl.c: Likewise.
15357         * math/math_private.h: Define __nan, __nanf, __nanl.
15358         * math/s_cacosh.c: Include <math_private.h>.
15359         * math/s_cacoshl.c: Likewise.
15360         * math/s_casinh.c: Likewise.
15361         * math/s_casinhf.c: Likewise.
15362         * math/s_casinhl.c: Likewise.
15363         * math/s_ccos.c: Rely entire on ccosh.
15364         * math/s_ccosf.c: Rely entire on ccoshf.
15365         * math/s_ccosl.c: Rely entirely on ccoshl.
15366         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15367         Remove tests for FE_INVALID.
15368         * math/s_ccoshf.c: Likewise.
15369         * math/s_ccoshl.c: Likewise.
15370         * math/s_csin.c: Likewise.
15371         * math/s_csinf.c: Likewise.
15372         * math/s_csinh.c Likewise.
15373         * math/s_csinhf.c: Likewise.
15374         * math/s_csinhl.c: Likewise.
15375         * math/s_csinl.c: Likewise.
15376         * math/s_ctan.c: Likewise.
15377         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15378         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15379         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15381 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15383         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15384         compilation problems.
15386         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15387         __builtin_expect.
15389 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15391         * sysdeps/i386/configure.in: Test for -mfma4 option.
15392         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15393         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15394         COMMON_CPUID_INDEX_80000001.
15395         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15396         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15397         use it if FMA3 is not supported.
15398         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15400         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15401         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15403 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15405         [BZ #12892]
15406         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15407         it would create a cycle with a link time dependency.
15409 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15411         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15412         instruction.
15413         * string/Makefile (strop-tests): Add rawmemchr.
15414         * string/test-rawmemchr.c: New file.
15416         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15417         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15418         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15419         when compiling str{,n}casecmp and when AVX is available.  Hook up
15420         new optimized code in initializers.
15422 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15424         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15425         __feraiseexcept instead of feraiseexcept.
15427 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15429         * math/math_private.h: Define defaults for libc_fetestexcept and
15430         libc_feupdateenv.
15431         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15432         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15433         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15434         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15435         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15436         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15437         libc_fetestexcept and libc_feupdateenv.
15439         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15440         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15441         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15442         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15443         libc_feholdexcept_setround.
15445         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15446         Add s_nearbyint-c and s_nearbyintf-c.
15447         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15448         nearbyintf inlines.
15449         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15450         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15451         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15452         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15454         * math/math_private.h: Define defaults for libc_fegetround,
15455         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15456         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15457         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15458         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15459         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15460         standard functions.
15461         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15462         Remove comments and hacks for old compiler versions.
15463         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15464         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15465         libc_feholdexceptl.
15467 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15469         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15470         (__feraiseexcept_renamed): Add __NTH.
15471         (feraiseexcept): Add __NTH.  Rename local variables to fix
15472         namespace violations.
15474 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15476         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15478         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15480         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15481         recently added interfaces.
15482         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15484         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15485         about macro parameter expansion.
15487         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15488         __NO_MATH_INLINES is defined.  Cleanups.
15490         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15491         and __floorf is target has SSE4.1.
15492         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15493         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15494         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15495         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15497         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15498         name.
15499         (floorf): Likewise.
15501         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15503 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15505         * misc/sys/cdefs.h: Fix last change.
15507         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15508         database lookup.
15510 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15512         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15514         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15515         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15516         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15517         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15518         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15519         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15520         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15521         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15522         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15523         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15524         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15525         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15526         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15527         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15528         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15529         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15530         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15531         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15532         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15533         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15534         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15535         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15537         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15538         ceil, ceilf, floor, floorf.
15540         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15541         Perform IRELATIVE relocations last.
15543         * elf/do-rel.h: Add another parameter nrelative, replacing the
15544         local variable with the same name.  Change name of the function
15545         to end in Rel or Rela (uppercase).
15546         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15547         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15548         elf_dynamic_do_##reloc function.
15550 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15552         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15553         is sufficient, at least on modern CPUs.
15555         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15557         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15558         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15560         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15561         __expl_finite.
15562         * math/bits/math-finite.h: Add entries for exp.
15563         * math/e_expl.c: Add __*_finite alias.
15564         * sysdeps/i386/fpu/e_exp.S: Likewise.
15565         * sysdeps/i386/fpu/e_expf.S: Likewise.
15566         * sysdeps/i386/fpu/e_expl.c: Likewise.
15567         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15568         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15569         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15570         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15571         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15572         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15573         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15575         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15576         is sufficient, at least on modern CPUs.
15578         * ctype/ctype-info.c (__ctype_init): Define.
15579         * include/ctype.h (__ctype_init): Declare.
15580         (__ctype_b_loc): The variable is always initialized.
15581         (__ctype_toupper_loc): Likewise.
15582         (__ctype_tolower_loc): Likewise.
15583         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15584         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15586 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15588         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15590         * configure.in: Also look in $cxxmachine/include for C++ system
15591         headers.
15593 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15595         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15596         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15597         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15598         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15599         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15600         (USE_AS_WMEMCMP): New macro.
15601         Fixing indents.
15602         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15603         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15604         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15605         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15606         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15607         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15608         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15609         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15610         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15611         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15612         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15613         (USE_AS_WMEMCMP): New macro.
15614         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15615         * sysdeps/string/test-memcmp.c: Update.
15616         Fix simple_wmemcmp.
15617         Add new tests.
15618         * wcsmbs/wmemcmp.c: Update.
15619         (WMEMCMP): New macro.
15620         Fix overflow bug.
15622 2011-10-12  Andreas Jaeger  <aj@suse.de>
15624         [BZ #13268]
15625         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15627 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15629         * libio/iofwide.c (do_length): Avoid warning.
15631         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15633 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15635         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15637         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15638         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15639         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15640         * sysdeps/i386/i686/fpu/e_log.S: New file.
15641         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15642         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15644         * ctype/ctype.h: Add support for inlined isXXX functions when
15645         compiling C++ code.
15647 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15649         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15651         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15653 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15655         [BZ #13291]
15656         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15658 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15660         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15661         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15662         feraiseexcept.
15664         * sysdeps/x86_64/memrchr.S: Check for zero size.
15666         * string/stratcliff.c: Add memrchr tests.
15668 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15670         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15671         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15672         rawmemchr-sse2 rawmemchr-sse2-bsf.
15673         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15674         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15675         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15676         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15677         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15678         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15679         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15680         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15681         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15682         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15683         * string/memrchr.c (MEMRCHR): New macro.
15685 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15687         Add integration with gcc's -ffinite-math-only and optimize wrapper
15688         functions in libm.
15689         * Versions.def: Define GLIBC_2.15 version for libm.
15690         * math/Makefile (headers): Add bits/math-finite.h.
15691         * math/bits/math-finite.h: New file.
15692         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15693         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15694         * math/e_acoshl.c: Add __*_finite alias.
15695         * math/e_acosl.c: Likewise.
15696         * math/e_asinl.c: Likewise.
15697         * math/e_atan2l.c: Likewise.
15698         * math/e_atanhl.c: Likewise.
15699         * math/e_coshl.c: Likewise.
15700         * math/e_exp10.c: Likewise.
15701         * math/e_exp10f.c: Likewise.
15702         * math/e_exp10l.c: Likewise.
15703         * math/e_exp2l.c: Likewise.
15704         * math/e_fmodl.c: Likewise.
15705         * math/e_gammal_r.c: Likewise.
15706         * math/e_hypotl.c: Likewise.
15707         * math/e_j0l.c: Likewise.
15708         * math/e_j1l.c: Likewise.
15709         * math/e_jnl.c: Likewise.
15710         * math/e_lgammal_r.c: Likewise.
15711         * math/e_log10l.c: Likewise.
15712         * math/e_log2l.c: Likewise.
15713         * math/e_logl.c: Likewise.
15714         * math/e_powl.c: Likewise.
15715         * math/e_sinhl.c: Likewise.
15716         * math/e_sqrtl.c: Likewise.
15717         * math/e_scalb.c: Completely rewritten and optimized.
15718         * math/e_scalbf.c: Likewise.
15719         * math/e_scalbl.c: Likewise.
15720         * math/w_acos.c: Likewise.
15721         * math/w_acosf.c: Likewise.
15722         * math/w_acosl.c: Likewise.
15723         * math/w_acosh.c: Likewise.
15724         * math/w_acoshf.c: Likewise.
15725         * math/w_acoshl.c: Likewise.
15726         * math/w_asin.c: Likewise.
15727         * math/w_asinf.c: Likewise.
15728         * math/w_asinl.c: Likewise.
15729         * math/w_atan2.c: Likewise.
15730         * math/w_atan2f.c: Likewise.
15731         * math/w_atan2l.c: Likewise.
15732         * math/w_atanh.c: Likewise.
15733         * math/w_atanhf.c: Likewise.
15734         * math/w_atanhl.c: Likewise.
15735         * math/w_exp10.c: Likewise.
15736         * math/w_exp10f.c: Likewise.
15737         * math/w_exp10l.c: Likewise.
15738         * math/w_fmod.c: Likewise.
15739         * math/w_fmodf.c: Likewise.
15740         * math/w_fmodl.c: Likewise.
15741         * math/w_j0.c: Likewise.
15742         * math/w_j0f.c: Likewise.
15743         * math/w_j0l.c: Likewise.
15744         * math/w_j1.c: Likewise.
15745         * math/w_j1f.c: Likewise.
15746         * math/w_j1l.c: Likewise.
15747         * math/w_jn.c: Likewise.
15748         * math/w_jnf.c: Likewise.
15749         * math/w_log.c: Likewise.
15750         * math/w_logf.c: Likewise.
15751         * math/w_logl.c: Likewise.
15752         * math/w_log10.c: Likewise.
15753         * math/w_log10f.c: Likewise.
15754         * math/w_log10l.c: Likewise.
15755         * math/w_log2.c: Likewise.
15756         * math/w_log2f.c: Likewise.
15757         * math/w_log2l.c: Likewise.
15758         * math/w_pow.c: Likewise.
15759         * math/w_powf.c: Likewise.
15760         * math/w_powl.c: Likewise.
15761         * math/w_remainder.c: Likewise.
15762         * math/w_remainderf.c: Likewise.
15763         * math/w_remainderl.c: Likewise.
15764         * math/w_scalb.c: Likewise.
15765         * math/w_scalbf.c: Likewise.
15766         * math/w_scalbl.c: Likewise.
15767         * math/w_sqrt.c: Likewise.
15768         * math/w_sqrtf.c: Likewise.
15769         * math/w_sqrtl.c: Likewise.
15770         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15771         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15772         used.
15773         * math/math_private.h: Declare __kernel_standard_f.
15774         * math/w_cosh.c: Remove cruft and optimize a bit.
15775         * math/w_coshf.c: Likewise.
15776         * math/w_coshl.c: Likewise.
15777         * math/w_exp2.c: Likewise.
15778         * math/w_exp2f.c: Likewise.
15779         * math/w_exp2l.c: Likewise.
15780         * math/w_hypot.c: Likewise.
15781         * math/w_hypotf.c: Likewise.
15782         * math/w_hypotl.c: Likewise.
15783         * math/w_lgamma.c: Likewise.
15784         * math/w_lgamma_r.c: Likewise.
15785         * math/w_lgammaf.c: Likewise.
15786         * math/w_lgammaf_r.c: Likewise.
15787         * math/w_lgammal.c: Likewise.
15788         * math/w_lgammal_r.c: Likewise.
15789         * math/w_sinh.c: Likewise.
15790         * math/w_sinhf.c: Likewise.
15791         * math/w_sinhl.c: Likewise.
15792         * math/w_tgamma.c: Likewise.
15793         * math/w_tgammaf.c: Likewise.
15794         * math/w_tgammal.c: Likewise.
15795         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15796         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15797         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15798         Minor optimizations.  Pretty printing.  Remove cruft.
15799         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15800         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15801         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15802         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15803         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15804         * sysdeps/i386/fpu/e_asin.S: Likewise.
15805         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15806         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15807         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15808         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15809         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15810         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15811         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15812         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15813         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15814         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15815         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15816         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15817         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15818         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15819         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15820         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15821         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15822         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15823         * sysdeps/i386/fpu/e_log.S: Likewise.
15824         * sysdeps/i386/fpu/e_log10.S: Likewise.
15825         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15826         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15827         * sysdeps/i386/fpu/e_log2.S: Likewise.
15828         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15829         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15830         * sysdeps/i386/fpu/e_logf.S: Likewise.
15831         * sysdeps/i386/fpu/e_logl.S: Likewise.
15832         * sysdeps/i386/fpu/e_pow.S: Likewise.
15833         * sysdeps/i386/fpu/e_powf.S: Likewise.
15834         * sysdeps/i386/fpu/e_powl.S: Likewise.
15835         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15836         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15837         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15838         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15839         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15840         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15841         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15842         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15843         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15844         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15845         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15846         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15847         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15848         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15849         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15850         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15851         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15852         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15853         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15854         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15855         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15856         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15857         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15858         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15859         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15860         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15861         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15862         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15863         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15864         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15865         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15866         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15867         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15868         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15869         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15870         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15871         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15872         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15873         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15874         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15875         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15876         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15877         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15878         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15879         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15880         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15881         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15882         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15883         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15884         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15885         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15886         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15887         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15888         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15889         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15890         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15891         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15892         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15893         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15894         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15895         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15896         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15897         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15898         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15899         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15900         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15901         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15904         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15905         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15906         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15907         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15908         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15909         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15910         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15911         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15912         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15913         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15914         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15915         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15916         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15917         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15920         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15921         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15922         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15923         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15924         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15925         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15926         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15927         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15928         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15929         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15930         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15931         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15932         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15933         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15934         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15935         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15936         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15937         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15938         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15939         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15940         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15941         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15942         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15943         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15944         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15945         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15946         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15947         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15948         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15949         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15950         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15951         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15952         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15953         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15954         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15955         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15956         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15957         (__isnanf): Likewise.
15958         (__isinf_ns): Likewise.
15959         (__isinf_nsf): Likewise.
15960         (__finite): Likewise.
15961         (__finitef): Likewise.
15962         (__ieee754_sqrt): Define as macro.
15963         (__ieee754_sqrtf): Define as macro.
15964         (__ieee754_sqrtl): Define as macro.
15965         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15966         inlined copy.
15967         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15968         __FINITE_MATH_ONLY__ consistent.
15969         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15971 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15973         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15974         of rawmemchr.
15976         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15978 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15980         * po/ja.po: Update from translation team.
15982 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15984         * locale/programs/locarchive.c (prepare_address_space): New function.
15985         (create_archive, enlarge_archive, open_archive): Use it.
15987         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15988         inside [SHARED], where it is used.
15990         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15992         * nss/getent.c (netgroup_keys): Remove unused variable.
15993         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15995 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15997         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15998         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15999         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16000         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16001         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16002         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16003         * math/Makefile (libm-calls): Add s_isinf_ns.
16004         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16005         * math/multc3.c: Likewise.
16006         * math/s_casin.c: Likewise.
16007         * math/s_casinf.c: Likewise.
16008         * math/s_casinl.c: Likewise.
16009         * math/s_ccos.c: Likewise.
16010         * math/s_ccosf.c: Likewise.
16011         * math/s_ccosl.c: Likewise.
16012         * math/s_ctan.c: Likewise.
16013         * math/s_ctanf.c: Likewise.
16014         * math/s_ctanh.c: Likewise.
16015         * math/s_ctanhf.c: Likewise.
16016         * math/s_ctanhl.c: Likewise.
16017         * math/s_ctanl.c: Likewise.
16018         * math/w_fmod.c: Likewise.
16019         * math/w_fmodf.c: Likewise.
16020         * math/w_fmodl.c: Likewise.
16021         * math/w_remainder.c: Likewise.
16022         * math/w_remainderf.c: Likewise.
16023         * math/w_remainderl.c: Likewise.
16024         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16025         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16026         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16027         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16028         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16029         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16030         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16031         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16033         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16034         of the number.
16035         * stdio-common/printf_fphex.c: Likewise.
16036         * stdio-common/printf_size.c: Likewise.
16038         * math/e_exp10.c: Include math_private.h using <...> not "...".
16039         * math/e_exp10f.c: Likewise.
16040         * math/e_exp10l.c: Likewise.
16041         * math/e_exp2l.c: Likewise.
16042         * math/e_j0l.c: Likewise.
16043         * math/e_j1l.c: Likewise.
16044         * math/e_jnl.c: Likewise.
16045         * math/e_lgammal_r.c: Likewise.
16046         * math/e_rem_pio2l.c: Likewise.
16047         * math/e_scalb.c: Likewise.
16048         * math/e_scalbf.c: Likewise.
16049         * math/e_scalbl.c: Likewise.
16050         * math/k_cosl.c: Likewise.
16051         * math/k_sinl.c: Likewise.
16052         * math/k_tanl.c: Likewise.
16053         * math/s_cacoshf.c: Likewise.
16054         * math/s_catan.c: Likewise.
16055         * math/s_catanf.c: Likewise.
16056         * math/s_catanh.c: Likewise.
16057         * math/s_catanhf.c: Likewise.
16058         * math/s_catanhl.c: Likewise.
16059         * math/s_catanl.c: Likewise.
16060         * math/s_ccosh.c: Likewise.
16061         * math/s_ccoshf.c: Likewise.
16062         * math/s_ccoshl.c: Likewise.
16063         * math/s_cexp.c: Likewise.
16064         * math/s_cexpf.c: Likewise.
16065         * math/s_cexpl.c: Likewise.
16066         * math/s_clog.c: Likewise.
16067         * math/s_clog10.c: Likewise.
16068         * math/s_clog10f.c: Likewise.
16069         * math/s_clog10l.c: Likewise.
16070         * math/s_clogf.c: Likewise.
16071         * math/s_clogl.c: Likewise.
16072         * math/s_csin.c: Likewise.
16073         * math/s_csinf.c: Likewise.
16074         * math/s_csinh.c: Likewise.
16075         * math/s_csinhf.c: Likewise.
16076         * math/s_csinhl.c: Likewise.
16077         * math/s_csinl.c: Likewise.
16078         * math/s_csqrt.c: Likewise.
16079         * math/s_csqrtf.c: Likewise.
16080         * math/s_csqrtl.c: Likewise.
16081         * math/s_ctan.c: Likewise.
16082         * math/s_ctanf.c: Likewise.
16083         * math/s_ctanh.c: Likewise.
16084         * math/s_ctanhf.c: Likewise.
16085         * math/s_ctanhl.c: Likewise.
16086         * math/s_ctanl.c: Likewise.
16087         * math/s_ldexp.c: Likewise.
16088         * math/s_ldexpf.c: Likewise.
16089         * math/s_ldexpl.c: Likewise.
16090         * math/s_significand.c: Likewise.
16091         * math/s_significandf.c: Likewise.
16092         * math/s_significandl.c: Likewise.
16093         * math/w_acos.c: Likewise.
16094         * math/w_acosf.c: Likewise.
16095         * math/w_acosh.c: Likewise.
16096         * math/w_acoshf.c: Likewise.
16097         * math/w_acoshl.c: Likewise.
16098         * math/w_acosl.c: Likewise.
16099         * math/w_asin.c: Likewise.
16100         * math/w_asinf.c: Likewise.
16101         * math/w_asinl.c: Likewise.
16102         * math/w_atan2.c: Likewise.
16103         * math/w_atan2f.c: Likewise.
16104         * math/w_atan2l.c: Likewise.
16105         * math/w_atanh.c: Likewise.
16106         * math/w_atanhf.c: Likewise.
16107         * math/w_atanhl.c: Likewise.
16108         * math/w_cosh.c: Likewise.
16109         * math/w_coshf.c: Likewise.
16110         * math/w_coshl.c: Likewise.
16111         * math/w_dremf.c: Likewise.
16112         * math/w_exp10.c: Likewise.
16113         * math/w_exp10f.c: Likewise.
16114         * math/w_exp10l.c: Likewise.
16115         * math/w_exp2.c: Likewise.
16116         * math/w_exp2f.c: Likewise.
16117         * math/w_fmod.c: Likewise.
16118         * math/w_fmodf.c: Likewise.
16119         * math/w_fmodl.c: Likewise.
16120         * math/w_hypot.c: Likewise.
16121         * math/w_hypotf.c: Likewise.
16122         * math/w_hypotl.c: Likewise.
16123         * math/w_j0.c: Likewise.
16124         * math/w_j0f.c: Likewise.
16125         * math/w_j0l.c: Likewise.
16126         * math/w_j1.c: Likewise.
16127         * math/w_j1f.c: Likewise.
16128         * math/w_j1l.c: Likewise.
16129         * math/w_jn.c: Likewise.
16130         * math/w_jnf.c: Likewise.
16131         * math/w_jnl.c: Likewise.
16132         * math/w_lgamma.c: Likewise.
16133         * math/w_lgamma_r.c: Likewise.
16134         * math/w_lgammaf.c: Likewise.
16135         * math/w_lgammaf_r.c: Likewise.
16136         * math/w_lgammal.c: Likewise.
16137         * math/w_lgammal_r.c: Likewise.
16138         * math/w_log.c: Likewise.
16139         * math/w_log10.c: Likewise.
16140         * math/w_log10f.c: Likewise.
16141         * math/w_log10l.c: Likewise.
16142         * math/w_log2.c: Likewise.
16143         * math/w_log2f.c: Likewise.
16144         * math/w_log2l.c: Likewise.
16145         * math/w_logf.c: Likewise.
16146         * math/w_logl.c: Likewise.
16147         * math/w_pow.c: Likewise.
16148         * math/w_powf.c: Likewise.
16149         * math/w_powl.c: Likewise.
16150         * math/w_remainder.c: Likewise.
16151         * math/w_remainderf.c: Likewise.
16152         * math/w_remainderl.c: Likewise.
16153         * math/w_scalb.c: Likewise.
16154         * math/w_scalbf.c: Likewise.
16155         * math/w_scalbl.c: Likewise.
16156         * math/w_sinh.c: Likewise.
16157         * math/w_sinhf.c: Likewise.
16158         * math/w_sinhl.c: Likewise.
16159         * math/w_sqrt.c: Likewise.
16160         * math/w_sqrtf.c: Likewise.
16161         * math/w_sqrtl.c: Likewise.
16162         * math/w_tgamma.c: Likewise.
16163         * math/w_tgammaf.c: Likewise.
16164         * math/w_tgammal.c: Likewise.
16166         * po/ja.po: Update from translation team.
16168 2011-09-29  Andreas Jaeger  <aj@suse.de>
16170         [BZ #13179]
16171         * sunrpc/netname.c (netname2host): Fix logic.
16173         [BZ #6779]
16174         [BZ #6783]
16175         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16176         correctly.
16177         * math/w_remainder.c (__remainder): Likewise.
16178         * math/w_remainderf.c (__remainderf): Likewise.
16179         * math/libm-test.inc (remainder_test): Add test cases.
16181 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16183         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16184         sdiv_qrnnd.
16186 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16188         * string/test-memcmp.c: Avoid unncessary #defines.
16189         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16191 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16193         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16194         Use new sse2 version for core i3 - i7 as it's faster
16195         than sse42 version.
16196         (bit_Prefer_PMINUB_for_stringop): New.
16197         * sysdeps/x86_64/rawmemchr.S: Update.
16198         Replace with faster SSE2 version.
16199         * sysdeps/x86_64/memrchr.S: New file.
16200         * sysdeps/x86_64/memchr.S: Update.
16201         Replace with faster SSE2 version.
16203 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16205         * elf/dl-load.c (lose): Add cast to avoid warning.
16207 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16209         * po/ca.po: Update from translation team.
16211         * inet/getnetgrent_r.c: Hook up nscd.
16212         * nscd/Makefile (routines): Add nscd_netgroup.
16213         (nscd-modules): Add netgroupcache.
16214         (CFLAGS-netgroupcache.c): Define.
16215         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16216         (cache_search): Add const to second parameter.
16217         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16218         INNETGR.
16219         (dbs): Add netgrdb entry.
16220         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16221         (verify_persistent_db): Handle netgrdb.
16222         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16223         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16224         GETFDNETGR.
16225         (netgroup_response_header): Define.
16226         (innetgroup_response_header): Define.
16227         (datahead): Add netgroup_response_header and innetgroup_response_header
16228         elements.
16229         * nscd/nscd.conf: Add entries for netgroup cache.
16230         * nscd/nscd.h (dbtype): Add netgrdb.
16231         (_PATH_NSCD_NETGROUP_DB): Define.
16232         (netgroup_iov_disabled): Declare.
16233         (xmalloc, xcalloc, xrealloc): Move declarations here.
16234         (cache_search): Adjust prototype.
16235         Add netgroup-related prototypes.
16236         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16237         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16238         (__nscd_innetgr): Declare.
16239         * nscd/selinux.c (perms): Use access_vector_t as element type and
16240         add netgroup-related initializers.
16241         * nscd/netgroupcache.c: New file.
16242         * nscd/nscd_netgroup.c: New file.
16243         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16244         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16245         For four parameters use innetgr.
16246         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16247         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16248         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16249         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16251         * nscd/connections.c (register_traced_file): Don't register file
16252         for disabled databases.
16254 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16256         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16258         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16259         from tree and freeing node.
16261 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16263         * nss/nsswitch.c (__nss_database_lookup): Handle
16264         nss_parse_service_list out of memory case.
16266 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16268         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16269         out of memory case.
16271 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16273         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16274         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16275         pass it down.
16276         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16277         elf_machine_rela, elf_machine_lazy_rel.
16278         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16279         (ELF_DYNAMIC_DO_REL): Likewise.
16280         (ELF_DYNAMIC_DO_RELA): Likewise.
16281         (ELF_DYNAMIC_RELOCATE): Likewise.
16282         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16283         to ELF_DYNAMIC_DO_REL.
16284         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16285         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16286         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16287         elf_machine_rela.
16288         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16289         skip_ifunc, don't call ifunc function if non-zero.
16290         (elf_machine_rela): Likewise.
16291         (elf_machine_lazy_rel): Likewise.
16292         (elf_machine_lazy_rela): Likewise.
16293         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16294         (elf_machine_lazy_rel): Likewise.
16295         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16296         Likewise.
16297         (elf_machine_lazy_rel): Likewise.
16298         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16299         Likewise.
16300         (elf_machine_lazy_rel): Likewise.
16301         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16302         (elf_machine_lazy_rel): Likewise.
16303         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16304         (elf_machine_lazy_rel): Likewise.
16305         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16306         (elf_machine_lazy_rel): Likewise.
16307         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16308         (elf_machine_lazy_rel): Likewise.
16309         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16310         (elf_machine_lazy_rel): Likewise.
16311         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16312         (elf_machine_lazy_rel): Likewise.
16314 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16316         * nss/nss_files/files-init.c (_nss_files_init): Use static
16317         initialization for all the *_traced_file variables.
16319 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16321         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16323 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16325         [BZ #13226]
16326         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16328 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16330         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16331         Reread the line before reparsing it.
16333 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16335         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16337 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16338             Maxim Kuvyrkov  <maxim@codesourcery.com>
16339             Joseph Myers  <joseph@codesourcery.com>
16341         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16342         if needed for __stack_chk_guard.
16344 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16346         * sysdeps/posix/spawni.c (script_execute): Always define it.
16347         It will be optimized away if unused.
16348         (maybe_script_execute): New function.
16349         (__spawni): Call it.
16351         * Makerules: Don't include tls.make.
16352         (config-tls): Always set to thread.
16353         * tls.make.c: File removed.
16355 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16357         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16358         * config.make.in (CPPFLAGS-config): New substituted variable.
16360 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16362         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16364         [BZ #13192]
16365         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16366         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16368 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16370         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16371         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16372         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16373         (CALL_FAIL): Likewise.
16374         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16375         (CALL_FAIL): Macro removed.
16376         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16378 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16380         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16381         for __FINITE_MATH_ONLY__ == 1.
16383 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16385         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16386         __ieee754_sqrt instead of sqrt.
16387         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16388         __ieee754_sqrtf instead of sqrtf.
16389         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16390         __floorf instead of floorf.
16391         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16392         __floorf, __truncf instead of floorf, truncf.
16394 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16396         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16398         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16399         __extern_always_inline.
16400         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16401         32-bit.
16403 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16405         * elf/rtld.c (dl_main): Also relocate in dependency order when
16406         doing symbol dependency testing.
16408 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16410         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16411         Always define `refsym'.
16413 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16415         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16416         (__FD_ELT): Renamed from __FDELT.
16417         * misc/bits/select2.h (__FD_ELT): Likewise.
16418         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16419         __FD_MASK instead of __FDELT, __FDMASK.
16420         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16421         Likewise.
16422         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16423         Likewise.
16425         * elf/Makefile (gen-ldd): Fix pattern.
16427         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16428         (init_tls): Likewise.
16430 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16432         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16434 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16436         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16437         `struct cmsghdr *' instead of `void *'.
16438         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16439         Likewise.
16441 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16443         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16444         if non-absolute.
16445         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16446         ldd_rewrite_script.
16448 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16450         * configure.in: Remove --with-tls option.
16451         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16452         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16453         out in case it is missing.
16454         * sysdeps/ia64/elf/configure.in: Likewise.
16455         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16456         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16457         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16458         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16459         * sysdeps/sh/elf/configure.in: Likewise.
16460         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16461         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16462         * sysdeps/x86_64/elf/configure.in: Likewise.
16463         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16464         * sysdeps/mach/hurd/tls.h: Likewise.
16466         [BZ #13067]
16467         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16469         [BZ #13090]
16470         * configure.in: Fix use of AC_INIT.
16472         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16474 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16476         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16477         __set_errno.
16478         * malloc/hooks.c: Likewise.
16480         [BZ #11929]
16481         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16482         variables statically.
16483         (narenas): Initialize.
16484         (list_lock): Initialize.
16485         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16486         initializtion of main_arena and list_lock.  Small cleanups.
16487         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16488         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16489         Add initializers to main_arena and mp_.
16490         (malloc_state): Remove pagesize member.  Change all users to use
16491         GLRO(dl_pagesize).
16493         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16494         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16495         is always initialized.
16497         * malloc/malloc.c: Removed unused configurations and dead code.
16498         * malloc/arena.c: Likewise.
16499         * malloc/hooks.c: Likewise.
16500         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16502         * include/tls.h: Removed.  USE___THREAD must always be defined.
16503         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16504         * elf/dl-libc.c: Likewise.
16505         * elf/dl-tsd.c: Likewise.
16506         * include/errno.h: Likewise.
16507         * include/netdb.h: Likewise.
16508         * include/resolv.h: Likewise.
16509         * inet/herrno-loc.c: Likewise.
16510         * inet/herrno.c: Likewise.
16511         * malloc/arena.c: Likewise.
16512         * malloc/hooks.c: Likewise.
16513         * malloc/malloc.c: Likewise.
16514         * resolv/res-state.c: Likewise.
16515         * resolv/res_libc.c: Likewise.
16516         * sysdeps/i386/dl-machine.h: Likewise.
16517         * sysdeps/ia64/dl-machine.h: Likewise.
16518         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16519         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16520         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16521         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16522         * sysdeps/sh/dl-machine.h: Likewise.
16523         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16524         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16525         * sysdeps/unix/i386/sysdep.S: Likewise.
16526         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16527         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16528         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16529         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16530         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16531         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16532         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16533         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16534         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16535         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16536         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16537         * sysdeps/x86_64/dl-machine.h: Likewise.
16538         * tls.make.c: Likewise.
16540         * configure.in: Remove --with-__thread option.  Make tests for
16541         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16542         tls_model attribute fail if no support is available.  Remove
16543         USE_IN_LIBIO.
16544         * Makeconfig: Adjust for dropped configure option.  All features are
16545         now mandatory.
16546         * Makerules: Likewise.
16547         * Versions.def: Likewise.
16548         * argp/argp-fmtstream.c: Likewise.
16549         * argp/argp-fmtstream.h: Likewise.
16550         * argp/argp-help.c: Likewise.
16551         * assert/assert.c: Likewise.
16552         * config.h.in: Likewise.
16553         * config.make.in: Likewise.
16554         * configure: Likewise.
16555         * configure.in: Likewise.
16556         * csu/Versions: Likewise.
16557         * csu/init.c: Likewise.
16558         * elf/tst-audit2.c: Likewise.
16559         * elf/tst-tls10.c: Likewise.
16560         * elf/tst-tls10.h: Likewise.
16561         * elf/tst-tls11.c: Likewise.
16562         * elf/tst-tls12.c: Likewise.
16563         * elf/tst-tls14.c: Likewise.
16564         * elf/tst-tlsmod11.c: Likewise.
16565         * elf/tst-tlsmod12.c: Likewise.
16566         * elf/tst-tlsmod13.c: Likewise.
16567         * elf/tst-tlsmod13a.c: Likewise.
16568         * elf/tst-tlsmod14a.c: Likewise.
16569         * elf/tst-tlsmod15b.c: Likewise.
16570         * elf/tst-tlsmod16a.c: Likewise.
16571         * elf/tst-tlsmod16b.c: Likewise.
16572         * elf/tst-tlsmod7.c: Likewise.
16573         * elf/tst-tlsmod8.c: Likewise.
16574         * elf/tst-tlsmod9.c: Likewise.
16575         * gmon/gmon.c: Likewise.
16576         * grp/fgetgrent_r.c: Likewise.
16577         * grp/putgrent.c: Likewise.
16578         * hurd/fopenport.c: Likewise.
16579         * include/libc-symbols.h: Likewise.
16580         * include/tls.h: Likewise.
16581         * intl/gettextP.h: Likewise.
16582         * intl/loadinfo.h: Likewise.
16583         * locale/global-locale.c: Likewise.
16584         * locale/localeinfo.h: Likewise.
16585         * mach/devstream.c: Likewise.
16586         * malloc/arena.c: Likewise.
16587         * malloc/set-freeres.c: Likewise.
16588         * misc/err.c: Likewise.
16589         * misc/getttyent.c: Likewise.
16590         * misc/mntent_r.c: Likewise.
16591         * posix/getopt.c: Likewise.
16592         * posix/wordexp.c: Likewise.
16593         * pwd/fgetpwent_r.c: Likewise.
16594         * resolv/Versions: Likewise.
16595         * resolv/res_hconf.c: Likewise.
16596         * shadow/fgetspent_r.c: Likewise.
16597         * shadow/putspent.c: Likewise.
16598         * stdio-common/printf_fphex.c: Likewise.
16599         * stdio-common/tmpfile.c: Likewise.
16600         * stdlib/abort.c: Likewise.
16601         * stdlib/fmtmsg.c: Likewise.
16602         * sunrpc/auth_unix.c: Likewise.
16603         * sunrpc/clnt_perr.c: Likewise.
16604         * sunrpc/clnt_tcp.c: Likewise.
16605         * sunrpc/clnt_udp.c: Likewise.
16606         * sunrpc/clnt_unix.c: Likewise.
16607         * sunrpc/openchild.c: Likewise.
16608         * sunrpc/svc_simple.c: Likewise.
16609         * sunrpc/svc_tcp.c: Likewise.
16610         * sunrpc/svc_udp.c: Likewise.
16611         * sunrpc/svc_unix.c: Likewise.
16612         * sunrpc/xdr.c: Likewise.
16613         * sunrpc/xdr_array.c: Likewise.
16614         * sunrpc/xdr_rec.c: Likewise.
16615         * sunrpc/xdr_ref.c: Likewise.
16616         * sunrpc/xdr_stdio.c: Likewise.
16618 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16620         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16622 2011-07-03  Andreas Jaeger  <aj@suse.de>
16624         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16625         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16626         regenerate with gen-libm-tests.pl.
16628 2010-05-12  Petr Baudis  <pasky@suse.cz>
16630         [BZ #11589]
16631         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16632         around j0() zero points by switching to j1().
16633         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16634         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16635         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16636         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16638 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16640         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16641         instead of 0.
16642         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16643         instead of 0.                              .
16644         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16645         Patch in part by Pavel Roskin <proski@gnu.org>.
16647         [BZ #13138]
16648         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16649         realloc.
16650         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16651         Free memory block if necessary.
16653         [BZ #12847]
16654         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16655         be NULL.  Don't lock in this case.
16657 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16659         * elf/elf.h (ELFOSABI_GNU): New macro.
16660         (ELFOSABI_LINUX): Define to that.
16662 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16664         * string/strncat.c (strncat): Undef the symbol in case it has been
16665         defined in bits/string.h.
16667 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16669         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16671         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16672         link map.
16674 2011-08-17  Andreas Jaeger  <aj@suse.de>
16676         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16678 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16679             Ian Lance Taylor  <iant@google.com>
16681         * math/libm-test.inc (lround_test): New testcase.
16682         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16684 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16686         * Makefile: Remove support for automatic cvs check-ins.
16687         * Makerules: Likewise.
16688         * config.make.in: Likewise.
16689         * configure.in: Likewise.
16690         * intl/Makefile: Likewise.
16691         * locale/Makefile: Likewise.
16692         * po/Makefile: Likewise.
16693         * posix/Makefile: Likewise.
16694         * sysdeps/gnu/Makefile: Likewise.
16695         * sysdeps/mach/hurd/Makefile: Likewise.
16696         * sysdeps/sparc/sparc32/Makefile: Likewise.
16698         [BZ #13118]
16699         * posix/Makefile (bug-regex32-ENV): Define.
16700         Patch by John Stanley <jpsinthemix@verizon.net>.
16702         * misc/Makefile (headers): Add bits/select2.h.
16703         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16704         * misc/bits/select2.h: New file.
16705         * include/bits/select2.h: New file.
16706         * debug/Makefile (routines): Add fdelt_chk.
16707         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16708         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16709         FD_ISSET.
16710         * debug/fdelt_chk.c: New file.
16712         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16713         * wcsmbs/test-wmemcmp.c: Likewise.
16714         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16715         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16717 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16719         * string/Makefile (strop-tests): Add memcmp.
16720         * string/test-wmemcmp.c: New file.
16721         * string/test-memcmp.c: Add wmemcmp support.
16723 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16725         [BZ #13153]
16726         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16727         2011-07-19 change.
16729         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16730         garbage value in a __mach_port_mod_refs call in the cases of the
16731         task-self and thread-self ports.
16733 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16735         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16737 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16739         * elf/dl-load.c (lose): Check for non-null L.
16741 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16743         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16745         * elf/dl-libc.c (dlerror_run): Pass back error code from
16746         dl_catch_error.
16748         [BZ #13123]
16749         * elf/dl-load.c (lose): Free l_origin if it is valid.
16751         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16752         names.
16753         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16754         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16755         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16756         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16757         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16758         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16760 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16762         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16763         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16764         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16765         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16766         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16767         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16768         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16769         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16770         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16771         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16773 2011-08-15  Alan Modra  <amodra@gmail.com>
16775         [BZ #13092]
16776         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16777         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16778         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16779         ppc_mcount to static-only-routines.
16780         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16781         __mcount_internal.
16782         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16783         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16785 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16787         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16788         for finite and infinity parameters.
16790 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16792         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16793         and add nop instructions for throughput optimization.
16794         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16796 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16798         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16799         aligned copy for power7 with vector-scalar instructions.
16800         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16802 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16804         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16805         AVX check.
16807 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16809         [BZ #13144]
16810         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16811         last change.
16813 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16815         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16816         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16817         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16818         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16819         clock_gettime.
16821 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16823         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16824         Forgot to demangle the pointer.
16826         * sysdeps/i386/sysdep.h: Define atom_text_section.
16827         * sysdeps/x86_64/sysdep.h: Likewise.
16828         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16829         section with atom_text_section.
16830         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16831         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16832         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16833         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16834         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16836         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16837         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16838         already be defined.  Change to take two parameters and don't assign
16839         result to variable.  Adjust all users.
16840         Define INTERNAL_GETTIME if not already defined.
16841         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16842         call.
16843         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16844         HAVE_CLOCK_GETTIME_VSYSCALL.
16845         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16847         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16848         gettimeofday vsyscall, just use time.
16850 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16852         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16853         <errno.h>.
16855 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16857         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16858         syscall on x86-64.
16859         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16860         syscall.
16861         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16862         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16863         syscall if possible.
16865 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16867         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16868         e_ident.  Don't pass to find_mapsXX.
16869         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16871 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16873         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16874         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16875         * sysdeps/x86_64/multiarch/strchr.S: Update.
16876         Check bit_slow_BSF bit.
16877         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16878         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16879         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16881 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16883         [BZ #13134]
16884         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16885         before glibc 2.15.
16886         (tryshell): Define.
16887         (__spawni): Change last parameter to be flag.  Test
16888         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16889         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16890         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16891         * posix/spawni.c: Likewise.
16892         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16893         * posix/spawnp.c: Likewise.  Change normal version to use
16894         SPAWN_XFLAGS_USE_PATH.
16895         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16896         SPAWN_XFLAGS_TRY_SHELL.
16898         [BZ #13150]
16899         * posix/glob.h: Remove gcc 1.x support.
16901         [BZ #13068]
16902         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16904 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16906         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16907         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16908         strrchr-sse2-bsf
16909         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16910         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16911         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16912         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16913         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16914         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16916 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16918         * sysdeps/x86_64/wcscmp.S: New file.
16920         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16921         wcscmp-c wcscmp-sse2
16922         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16923         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16924         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16925         * wcsmbs/wcscmp.c: Allow renaming.
16927 2011-09-05  David S. Miller  <davem@davemloft.net>
16929         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16930         stack slot, rather than the struct return pointer slot.
16931         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16932         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16934         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16936 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16938         * po/ja.po: Update from translation team.
16940         [BZ #13144]
16941         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16942         kernel in 64-bit binaries.
16944 2011-09-01  David S. Miller  <davem@davemloft.net>
16946         * elf/elf.h (HWCAP_SPARC_*): Move to..
16947         * sysdeps/sparc/sysdep.h: this new file and add new values.
16948         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16949         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16950         _DL_HWCAP_COUNT to 24.
16951         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16952         entries.
16953         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16954         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16955         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16956         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16957         instead of magic constants.
16958         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16960 2011-08-31  David S. Miller  <davem@davemloft.net>
16962         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16963         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16964         Reimplement to do errno handling inline.
16965         (SYSCALL_ERROR_HANDLER): New macro.
16966         (__SYSCALL_STRING): Do not do errno handling in asm.
16967         (__CLONE_SYSCALL_STRING): Delete.
16968         (__INTERNAL_SYSCALL_STRING): Delete.
16969         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16970         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16971         (PSEUDO): Reimplement to do errno handling inline.
16972         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16973         (SYSCALL_ERROR_HANDLER): New macro.
16974         (__SYSCALL_STRING): Do not do errno handling in asm.
16975         (__CLONE_SYSCALL_STRING): Delete.
16976         (__INTERNAL_SYSCALL_STRING): Delete.
16977         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16978         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16979         i386.
16980         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16981         (inline_syscall*): Add 'err' argument.
16982         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16983         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16984         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16985         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16987         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16988         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16990 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16992         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16994 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16996         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16997         directive.
16999 2011-08-24  David S. Miller  <davem@davemloft.net>
17001         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17003 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17005         * elf/Makefile: Add rules to build and run unload8 test.
17006         * elf/unload8.c: New file.
17007         * elf/unload8mod1.c: New file.
17008         * elf/unload8mod1x.c: New file.
17009         * elf/unload8mod2.c: New file.
17010         * elf/unload8mod3.c: New file.
17012         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17013         it wasn't used.
17015 2011-08-23  David S. Miller  <davem@davemloft.net>
17017         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17018         subtract stack bias.
17019         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17020         %sp not %fp in calculations.
17021         (_JMPBUF_UNWINDS_ADJ): Likewise.
17023         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17024         (aio_suspend): Call it to force an exception region around the
17025         AIO_MISC_WAIT() invocation.
17027 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17029         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17030         backslash.
17032 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17034         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17035         protection macro.
17036         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17037         and <dl-machine.h>.
17038         (Elf64_FuncDesc): Remove.
17040 2011-08-22  David S. Miller  <davem@davemloft.net>
17042         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17043         sigaltstack check, add missing cfi directives.
17044         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17045         missing cfi directives, and sigaltstack handling.
17047 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17049         [BZ #11724]
17050         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17051         object is seen twice.
17052         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17054         * elf/Makefile (distribute): Add tst-initorder2.c.
17055         (tests): Add tst-initorder2.
17056         (modules-names): Add tst-initorder2a tst-initorder2b
17057         tst-initorder2c tst-initorder2d.  Add rules to build them.
17058         ($(objpfx)tst-initorder2.out): New rule.
17059         * elf/tst-initorder2.c: New file.
17060         * elf/tst-initorder2.exp: New file.
17062 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17064         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17066         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17067         dependencies back to end of function.
17069         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17070         $(elfobjdir)/ld.so.
17072 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17074         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17075         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17076         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17077         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17078         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17079         of __vdso_gettimeofday.
17080         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17081         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17082         attribute_hidden.
17083         (_libc_vdso_platform_setup): Remove initialization of
17084         __vdso_gettimeofday and __vdso_time.
17086 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17088         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17089         and fgetc_unlocked.
17090         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17091         getc_unlocked.
17093         * elf/dl-open.c (add_to_global): Report additions to the global scope
17094         for LD_DEBUG=scopes.
17095         (dl_open_worker): Also print scope of newly loaded dependencies.
17096         (_dl_show_scope): Indicate if there is no scope.
17098         [BZ #13114]
17099         * stdio-common/Makefile (tests): Add bug24.
17100         * stdio-common/bug24.c: New file.
17102 2011-08-19  Andreas Jaeger  <aj@suse.de>
17104         [BZ #13114]
17105         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17106         non-existant file when using close-on-exec mode.
17108 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17110         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17111         the very first instruction.
17113         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17114         the CFI state in the end.
17115         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17116         inclusion of dl-trampoline.h.
17117         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17119 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17121         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17122         expectations for long double.
17124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17125         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17127 2011-08-14  David S. Miller  <davem@davemloft.net>
17129         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17130         artificual limit depends upon the system page size.
17132 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17134         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17135         * resolv/Makefile: Define CFLAGS-libresolv.
17137 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17139         * nss/makedb.c (compute_tables): Make variables used in nested
17140         function static.
17142 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17144         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17145         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17146         if buffer was too small.
17148         * elf/pldd.c (main): Attach to all threads in the process.
17149         Rewrite /proc handling to use *at functions.
17151 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17153         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17154         specifies first scope to show.
17155         (dl_open_worker): Update callers.  Move printing scope of new
17156         object to before the relocation.
17157         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17158         * sysdeps/generic/ldsodefs.h: Update declaration.
17160         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17161         string for the scope number.
17163 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17165         * nscd/servicescache.c (cache_addserv): Make sure written is always
17166         initialized.
17168 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17170         * sysdeps/i386/i486/bits/atomic.h
17171         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17172         statement expression, so as to suppress "set but not used" warning.
17173         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17175         * string/strncat.c (STRNCAT): Use prototype definition.
17177         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17178         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17179         -Iprograms here.
17180         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17181         (localedef-modules): Add localedef.
17182         (locale-modules): Add locale.
17184         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17185         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17186         to avoid a warning.
17188 2011-08-14  David S. Miller  <davem@davemloft.net>
17190         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17191         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17193 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17195         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17196         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17197         * elf/rtld.c (dl_main): Set l_name of vDSO.
17198         Call _dl_show_scope when DL_DEBUG_SCOPES.
17199         (process_dl_debug): Recognize scopes flag and also set it for all.
17200         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17201         Declare _dl_show_scope.
17203         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17204         (do_dlopen): Pass caller_dlopen to dl_open.
17205         (__libc_dlopen_mode): Initialize caller_dlopen.
17207         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17208         of libc.  Make tolower call locale-independent.  Optimize a bit by
17209         using isdigit instead of isalnum.
17210         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17212 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17214         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17215         was a dependency or dynamically loaded.
17217 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17219         * intl/l10nflist.c: Allow architecture-specific pop function.
17220         * sysdeps/x86_64/l10nflist.c: New file.
17222         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17223         classification.
17225 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17227         * include/dirent.h: Add libc_hidden_proto for scandirat and
17228         scandirat64.  Don't declare __scandirat64.
17229         * dirent/scandirat.c: Add libc_hidden_def.
17230         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17231         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17233 2011-08-10  David S. Miller  <davem@davemloft.net>
17235         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17236         enum.
17237         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17238         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17239         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17241 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17243         * Versions.def [libc]: Add GLIBC_2.15.
17244         * dirent/Makefile (routines): Add scandirat and scandirat64.
17245         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17246         GLIBC_2.15.
17247         * dirent/dirent.h: Declare scandirat and scandirat64.
17248         * dirent/scandirat.c: New file.
17249         * dirent/scandirat64.c: New file.
17250         * sysdeps/wordsize-64/scandirat.c: New file.
17251         * sysdeps/wordsize-64/scandirat64.c: New file.
17252         * dirent/opendir.c: Define opendirat.
17253         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17254         using scandirat.
17255         * dirent/scandir64.c: Adjust for scandir.c change.
17256         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17257         __scandirat64, and __scandir_cancel_handler.
17258         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17259         additional parameter and use openat instead of open (outside of ld.so).
17260         Add new __opendir as wrapper around __opendirat.
17261         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17262         here without requiring old scandirat implementation.
17264 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17266         * dirent/scandir.c (cancel_handler): Renamed to
17267         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17268         defined.  Adjust users.
17269         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17270         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17272 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17274         * string/test-string.h (IMPL): Use __STRING to expand name and then
17275         stringify it.
17277         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17278         of cleanups.
17280 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17282         * string/Makefile: Update.
17283         (strop-tests): Append strncat.
17284         * string/test-wcscmp.c: New file.
17285         New comprehensive test for wcscmp.
17286         * string/test-strcmp.c: Update.
17287         (WIDE): New define.
17289 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17291         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17292         line.
17294 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17296         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17297         encoding to ACE if AI_IDN.
17299 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17301         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17302         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17304 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17306         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17307         Fix overflow bug in strncat.
17308         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17310         * string/test-strncat.c: Update.
17311         Add new tests for checking overflow bugs.
17313 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17315         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17316         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17317         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17318         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17319         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17320         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17321         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17322         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17323         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17325         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17326         (USE_AS_STRCAT): Define.
17327         Add strcat and strncat support.
17328         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17330 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17332         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17333         __n bigger than INT_MAX+1.
17334         (__strncmp_g): Likewise.
17336 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17338         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17339         * libio/stido.h: Likewise.
17341         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17342         (AF_NFC): Define.
17343         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17344         (AF_NFC): Define.
17346         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17347         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17348         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17349         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17350         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17352         [BZ #13021]
17353         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17354         installed.
17356         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17357         typo.
17358         (_dl_x86_64_save_sse): Likewise.
17360 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17362         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17363         OSXSAVE.
17364         (_dl_x86_64_save_sse): Likewise.
17366         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17368         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17370 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17372         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17373         change.
17374         (_dl_x86_64_save_sse): Use correct AVX check.
17376 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17378         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17379         bug in strncpy/strncat.
17380         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17382 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17384         * string/tester.c (test_strcat): Add tests for different alignments
17385         of source and destination.
17386         (test_strncat): Likewise.
17388 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17390         [BZ #12852]
17391         * posix/glob.c (glob): Check passed in values before using them in
17392         expressions to avoid some overflows.
17393         (glob_in_dir): Likewise.
17395         [BZ #13007]
17396         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17397         check for AVX enablement so that we don't crash with old kernels and
17398         new hardware.
17399         * elf/tst-audit4.c: Add same checks here.
17400         * elf/tst-audit6.c: Likewise.
17402         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17404 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17406         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17408 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17410         * po/cs.po: Update from translation team.
17411         * po/bg.po: Likewise.
17413 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17415         * misc/sys/cdefs.h: Add support for const attribute.
17416         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17417         to gnu_dev_{major,minor,makedev} functions.
17419 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17421         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17423 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17425         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17426         strlen results.
17428 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17430         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17431         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17432         register in order to avoid conflicts with the soft frame pointer
17433         being held in r11 when necessary.
17434         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17435         (INTERNAL_VSYSCALL_NCS): Likewise.
17437 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17439         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17440         * elf/dl-fini.c (_dl_fini): Adjust caller.
17441         * elf/dl-close.c (_dl_close_worker): Likewise.
17442         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17444 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17446         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17447         "aux_cache->nlibs < 0".
17449         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17450         in the reload-count case.
17452 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17454         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17455         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17456         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17457         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17458         * sysdeps/x86_64/multiarch/strcat.S: New file.
17459         * sysdeps/x86_64/multiarch/strncat.S: New file.
17460         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17461         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17462         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17463         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17464         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17465         (USE_AS_STRCAT): Define.
17466         Add strcat and strncat support.
17467         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17468         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17469         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17470         * string/strncat.c: Update.
17471         (USE_AS_STRNCAT): Define.
17472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17473         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17474         and i7.
17475         * sysdeps/x86_64/multiarch/init-arch.h
17476         (bit_Prefer_PMINUB_for_stringop): New.
17477         (index_Prefer_PMINUB_for_stringop): Likewise.
17478         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17479         bit_Prefer_PMINUB_for_stringop.
17481 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17483         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17484         buffer64.
17485         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17486         of casting of buffer.
17487         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17488         buffer32 and buffer64.
17489         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17490         writes instead of casting of buffer.
17491         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17492         buffer32.
17493         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17494         casting of buffer.
17496 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17498         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17500 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17502         * nscd/nscd.c (termination_handler): Don't do anything for a database
17503         if it has not yet been initialized.
17505 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17507         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17509 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17511         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17513 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17515         * po/nl.po: Update from translation team.
17516         * po/sv.po: Likewise.
17518 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17520         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17521         now disallowed by GCC.
17523         * configure.in (use-default-link): Default to yes if a test -shared
17524         link meets our qualifications.
17525         * configure: Regenerated.
17527         * config.make.in (output-format): New variable.
17528         * configure.in: Check for ld --print-output-format support.
17529         * configure: Regenerated.
17530         * Makerules ($(common-objpfx)format.lds)
17531         [$(output-format) != unknown]: Just use $(output-format),
17532         instead of the linker-script munging.
17534 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17536         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17537         of $(common-objpfx)shlib.lds.
17538         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17540         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17541         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17543         * configure.in (-z relro check): Adjust test code to add a large
17544         writable data section after it.
17545         * configure: Regenerated.
17547 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17549         * configure.in (-z relro check): Fix test code to make the variable
17550         truly const.
17551         * configure: Regenerated.
17553 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17555         * nscd/nscd.h (struct traced_file): Define.
17556         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17557         elements.  Add traced_files.
17558         (inotify_fd): Declare.
17559         (register_traced_file): Declare.
17560         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17561         (inotify_fd): Export.
17562         (resolv_conf_descr): Remove.
17563         (nscd_init): Move inotify descriptor creation to main.
17564         Don't register files for notification here.
17565         (register_traced_file): New function.
17566         (invalidate_cache): Don't use reset_res to determine whether to call
17567         res_init, go through the list of registered files.
17568         (main_loop_poll): The inotify descriptors are now stored in the
17569         structures for the traced files.
17570         (main_loop_epoll): Likewise
17571         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17572         to __nss_disable_nscd.
17573         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17574         for a database anymore.  Check the records for all the registered
17575         files instead.
17576         * nss/Makefile (libnss_files-routines): Add files-init.
17577         (libnss_db-routines): Add db-init.
17578         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17579         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17580         * nss/nss_db/db-init.c: New file.
17581         * nss/nss_files/files-init.c: New file.
17582         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17583         __nss_lookup_function.
17584         (__nss_lookup_function): Call nss_load_library.
17585         (nss_load_all_libraries): New function.
17586         (__nss_disable_nscd): Take parameter with callback function for files
17587         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17588         used for the cached services.
17589         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17590         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17591         options for features to all the files in nscd.
17593         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17595 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17597         * csu/elf-init.c (__libc_csu_init): Comment typo.
17599 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17601         * po/pl.po: Update from translation team.
17602         * po/ja.po: Likewise.
17603         * po/ru.po: Likewise.
17604         * po/ko.po: Likewise.
17605         * po/fr.po: Likewise.
17607 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17609         * configure.in (.ctors/.dtors header and trailer check):
17610         Use an empirical test on a built program.
17611         * configure: Regenerated.
17613         * configure.in (-z relro check): Use an empirical test on a built DSO.
17614         Detect, but do not require, on ia64.
17615         * configure: Regenerated.
17617         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17618         Update tests that use readelf to use $READELF instead.
17619         * configure: Regenerated.
17621 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17623         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17624         if the result is not used.
17626 2011-07-05  Andreas Jaeger  <aj@suse.de>
17628         [BZ#9696]
17629         * stdlib/tst-strtod.c: Add testcase.
17631 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17633         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17634         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17635         The latter has a higher limit.  Take additional parameter to pass to
17636         the new function.
17637         (__pathconf): Pass file to __statfs_link_max.
17638         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17639         __statfs_link_max.
17640         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17641         __statfs_link_max.
17643         [BZ #12868]
17644         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17645         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17646         Handle Lustre.
17647         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17648         (__statfs_filesize_max): Likewise.
17649         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17651 2011-07-05  Andreas Jaeger  <aj@suse.de>
17653         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17655 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17657         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17658         `status' variable.
17659         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17660         Likewise.
17662 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17664         * Makefile (strop-tests): Add strncat.
17665         * string/test-strncat.c: New file.
17667 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17669         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17671 2011-06-21  Andreas Jaeger  <aj@suse.de>
17673         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17674         Copy rule from iconvdata/Makefile.
17676 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17678         [BZ #12922]
17679         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17680         but no long options are defined, just return 'W'.
17682 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17684         [BZ #9696]
17685         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17687 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17689         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17690         netgroups to read.
17691         (innetgr): Likewise.
17693 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17695         * config.make.in (install_root): Default to $(DESTDIR).
17697 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17699         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17701 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17703         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17705         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17706         containing directory rather than embedding absolute directory names.
17708         * scripts/check-local-headers.sh: Rewritten using awk.
17709         Match by word, not by line.  Print error messages for matches.
17710         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17712         * Makerules [shlib-lds-flags empty]:
17713         ($(common-objpfx)libc_pic.opts): New target.
17714         ($(common-objpfx)libc_pic.os.clean): New target.
17715         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17717         * config.make.in (OBJCOPY): New variable.
17718         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17719         * configure: Regenerated.
17721         * config.make.in (use-default-link): New variable.
17722         * configure.in (use_default_link): Grok --with-default-link to set it.
17723         * configure: Regenerated.
17724         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17725         (shlib-lds, shlib-lds-flags): Define to empty.
17727         * Makerules (shlib-lds): New variable.
17728         (shlib-lds-flags): New variable.
17729         (build-shlib, build-moduile, build-module-asneeded): Use it.
17730         ($(common-objpfx)libc.so): Use $(shlib-lds).
17731         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17732         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17734         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17735         DT_FLAGS/DT_FLAGS_1 with zero flags.
17737         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17738         linker script munging.
17740 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17742         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17743         as 128-bit value.
17744         * crypt/sha512.c (sha512_process_block): Perform total addition using
17745         128-bit if possible.
17746         (__sha512_finish_ctx): Likewise.
17747         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17748         as 64-bit value.
17749         * crypt/sha256.c (SWAP64): Define.
17750         (sha256_process_block): Perform total addition using 64-bit if
17751         possible.
17752         (__sha256_finish_ctx): Likewise.
17754 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17756         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17757         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17758         * nscd/hstcache.c (cache_addhst): Likewise.
17759         * nscd/grpcache.c (cache_addgr): Likewise.
17760         * nscd/aicache.c (addhstaiX): Likewise
17761         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17763 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17765         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17766         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17767         * nscd/hstcache.c (cache_addhst): Likewise.
17768         * nscd/grpcache.c (cache_addgr): Likewise.
17769         * nscd/aicache.c (addhstaiX): Likewise
17771 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17773         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17774         domain only when needed.
17776 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17778         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17779         is always restored.
17781 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17783         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17784         are re-adding the entry.
17785         * nscd/servicescache.c (cache_addserv): Likewise.
17787 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17789         * sysdeps/generic/dl-irel.h: fix protection against multiple
17790         inclusions.
17791         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17793 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17795         [BZ #12935]
17796         * malloc/memusage.sh: Fix quoting in message.
17797         * debug/xtrace.sh: Likewise.
17799         * configure.in: Remove support for --experimental-malloc option, make
17800         it the default.
17801         * config.make.in: Likewise.
17802         * malloc/Makefile: Likewise.
17804 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17806         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17807         two-byte characters.
17809 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17811         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17812         AC_CACHE_CHECK invocation.
17813         * configure: Regenerated.
17815         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17817 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17819         [BZ #12350]
17820         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17821         bit from old_res_options.
17823         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17825         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17826         value type for setfct.
17828 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17830         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17831         __gettimeofday instead of gettimeofday.
17833 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17835         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17837 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17839         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17841         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17842         info.
17844 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17846         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17847         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17848         strcpy-sse2-unaligned strncpy-sse2-unaligned
17849         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17850         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17851         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17852         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17853         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17854         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17855         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17856         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17857         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17858         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17859         (STRCPY): Support SSE2 and SSSE3 versions.
17861 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17863         [BZ #12874]
17864         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17865         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17866         kernels which artificially limit size of requests.
17868 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17870         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17871         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17872         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17873         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17874         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17875         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17876         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17877         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17878         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17879         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17880         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17881         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17882         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17883         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17884         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17885         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17886         Enable unaligned load optimization for Intel Core i3, i5 and i7
17887         processors.
17888         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17889         Define.
17890         (index_Fast_Unaligned_Load): Define.
17891         (HAS_FAST_UNALIGNED_LOAD): Define.
17893 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17895         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17897 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17899         [BZ #12907]
17900         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17901         until it is clear that the information is realy needed.
17902         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17904 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17906         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17908 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17910         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17911         /sys/devices/system/cpu/online if it is usable.
17913         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17914         reading the information from the /proc filesystem to once a second.
17916 2011-06-21  Andreas Jaeger  <aj@suse.de>
17918         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17919         NULL after inclusion of kernel headers.
17921 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17923         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17924         calls to internal_setent.
17926         [BZ #12885]
17927         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17928         addresses using gethostbyname4_r ignore IPv4 addresses.
17930         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17931         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17933         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17935 2011-06-20  David S. Miller  <davem@davemloft.net>
17937         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17938         inclusions.
17939         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17941         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17942         (elf_irel): Use it.
17943         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17944         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17945         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17946         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17947         * sysdeps/x86_64/dl-irel.h: Likewise.
17949         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17950         * elf/dl-sym.c: Likewise.
17952 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17954         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17955         need to dereference resplen2.
17957 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17959         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17961 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17963         * Makeconfig: Define vardbdir and inst_vardbdir.
17964         * nss/Makefile: Add rules to install db-Makefile.
17966         * nss/nss_db/db-XXX.c: Cleanup.
17968         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17969         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17970         GLIBC_PRIVATE.
17971         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17972         * nss/makedb.c: Implement -g option to specify that value strings
17973         are generated and should not be added to table iterated over for
17974         get*ent calls.
17975         * nss/nss_db/db-initgroups.c: New file.
17977         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17978         interface.
17980         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17981         (internal_getgrouplist): Adjust to name change.
17982         Update use_initgroups_entry if this is not the first call.
17983         * nss/databases.def: Add initgroups entry.
17985         * nss/makedb.c (compute_tables): Check result of multiple hash table
17986         sizes to minimize maximum chain length.
17988 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17990         * Versions.def: Add entry for libnss_db.
17991         * shlib-versions: Likewise.
17992         * nss/Makefile: Add rules to build libnss_db.
17993         * nss/Versions: Add libnss_db information.  Organize libnss_files
17994         entries better.
17995         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17996         makedb progra.  Some minor improvements to generate smaller files.
17997         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17998         here from...
17999         * nss/makedb.c: ...here.
18000         Improve database format to be smaller and require less memory at
18001         runtime.
18002         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18003         db anymore.
18004         * nss/nss_db/db-netgrp.c: Likewise.
18005         * nss/nss_db/db-open.c: Likewise.
18006         * nss/nss_files/flies-XXX.x: Adjust comments.
18007         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18008         * nss/nss_files/files-grp.c: Likewise.
18009         * nss/nss_files/files-hosts.c: Likewise.
18010         * nss/nss_files/files-network.c: Likewise.
18011         * nss/nss_files/files-proto.c: Likewise.
18012         * nss/nss_files/files-pwd.c: Likewise.
18013         * nss/nss_files/files-rpc.c: Likewise.
18014         * nss/nss_files/files-service.c: Likewise.
18015         * nss/nss_files/files-sgrp.c: Likewise.
18016         * nss/nss_files/files-spwd.c: Likewise.
18017         * nss/nss_db/db-alias.c: Removed.
18018         * nss/nss_db/dummy-db.h: Removed.
18020 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18022         * nss/makedb.c: Rewritten to not use database library.
18023         * nss/Makefile: Update to build new makedb program.
18025 2011-06-14  Andreas Jaeger  <aj@suse.de>
18027         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18028         memset declaration.
18030 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18032         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18033         tmpbuf.
18035 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18037         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18038         * elf/Makefile ($(objpfx)ld.so): Likewise.
18040         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18041         Don't list ld.so twice in dependencies.
18043         * posix/bug-regex31.c: Include <stdlib.h>.
18045         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18047         * nis/nss_compat/compat-spwd.c
18048         (getspent_next_nss_netgr): Remove unused variable.
18049         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18051         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18052         nonmembers" output to use the right array.
18054         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18056         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18058         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18059         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18060         * catgets/gencat.c (read_input_file): Likewise.
18061         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18063         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18064         variable definition inside #if's controlling its use.
18066         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18068         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18070         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18072         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18073         unreachable code.
18075         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18077         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18078         * configure: Regenerated.
18080         * Makerules: Revert last change.
18081         * elf/Makefile: Likewise.
18083 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18085         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18086         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18087         (reloc-link): Likewise.
18089 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18091         * elf/Makefile: Add rules to build pldd.
18092         * elf/pldd.c: New file.
18093         * elf/pldd-xx.c: New file.
18095 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18097         * version.h: Update for 2.15 development version.
18099 2011-06-07  David S. Miller  <davem@davemloft.net>
18101         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18102         ifuncs.
18103         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18104         elf_machine_lazy_rel): Likewise.
18105         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18106         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18107         elf_machine_lazy_rel): Likewise.
18108         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18109         dl_hwcap via passed in argument.
18110         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18111         Likewise.
18113 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18115         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18117 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18119         [BZ #12849]
18120         * manual/fdl-1.1.texi: New file, verbatim from:
18121         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18122         * manual/lgpl-2.1.texi: New file, verbatim from:
18123         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18124         * manual/Makefile (licenses): New variable, list those new file names.
18125         (texis): Use it.
18126         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18128         * manual/fdl.texi: File removed.
18129         * manual/lesser.texi: File removed.
18130         * manual/libc.texinfo (Copying, Documentation License):
18131         Use new @include file names, put @appendix directive before @include.
18133 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18135         [BZ #12841]
18136         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18137         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18138         (mq_open): Add __NTH.
18140 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18142         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18143         Assume Intel Core i3/i5/i7 processor if AVX is available.
18145 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18147         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18148         typo.
18150 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18152         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18153         memory.  Use alloca_account.  Fix memory leak when retrying.
18155 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18157         * version.h (RELEASE): Bump for 2.14 release.
18158         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18160         * config.make.in (RANLIB): Remove entry.
18162 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18164         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18165         (libc.pot): Work around missing support for .ksh extension in xgettext.
18167         [BZ #12684]
18168         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18169         if both request failed.
18170         (send_dg): In case of server errors clear resplen or *resplen2.
18172         [BZ #12454]
18173         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18174         when there are multiple maps.
18175         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18176         (_dl_fini): Remove test here.
18178         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18180 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18182         [BZ #12350]
18183         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18184         bit from old_res_options.
18185         (gaih_inet): Likewise.
18187         [BZ #11099]
18188         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18189         as signed.
18191         * resolv/res_init.c (res_setoptions): Make the code more compact.
18193         [BZ #11558]
18194         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18195         set RES_USEVC.
18197         [BZ #11634]
18198         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18200         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18202         [BZ #11781]
18203         * malloc/malloc.h: Declare malloc hook variables as volatile.
18205         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18206         in last patch.
18208         [BZ #11799]
18209         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18210         raise in the comment.
18211         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18212         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18213         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18215 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18217         [BZ #12811]
18218         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18219         grow the buffers more if it already has to be sufficient.
18220         (build_wcs_upper_buffer): Likewise.
18221         * posix/regexec.c (check_matching): Likewise.
18222         (clean_state_log_if_needed): Likewise.
18223         (extend_buffers): Don't enlarge buffers beyond size of the input
18224         buffer.
18225         Patches mostly by Emil Wojak <emil@wojak.eu>.
18226         * posix/bug-regex32.c: New file.
18227         * posix/Makefile (tests): Add bug-regex32.
18229         * locale/findlocale.c (_nl_find_locale): Return right away if
18230         _nl_explode_name failed.
18231         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18233         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18235         * debug/xtrace.sh: Unify messages.
18236         * malloc/memusage.sh: Likewise.
18238         [BZ #12813]
18239         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18240         time symbol from vDSO.  Substitute with vsyscall if not available.
18241         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18242         __vdso_time.
18244         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18245         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18246         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18247         Add sendmmsg and internal_sendmmsg.
18248         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18249         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18250         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18252         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18253         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18254         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18256 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18258         [BZ #12813]
18259         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18260         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18261         available.
18262         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18263         __vdso_getcpu.
18265         [BZ #12814]
18266         * iconvdata/Makefile (tests): Add bug-iconv9.
18267         * iconvdata/bug-iconv9.c: New file.
18269 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18271         [BZ #12814]
18272         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18274 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18276         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18277         (struct user_regs_struct): Change intcs field back to cs.
18279 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18281         * po/ja.po: Update from translation team.
18283 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18285         [BZ #12795]
18286         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18287         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18289 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18291         * stdlib/longlong.h: Update from GCC.
18293 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18295         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18296         parameter name.
18297         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18298         Add parameter name.
18299         (__sysconf): Pass it down.
18301 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18303         [BZ #12671]
18304         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18305         some situations.
18306         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18307         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18308         add in in __libc_use_alloca calls.  Adjust callers.
18309         (glob): Use malloc in some situations.
18311         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18312         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18313         pltexit.
18315 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18317         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18318         and CLOCK_BOOTTIME_ALARM.
18320         [BZ #12782]
18321         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18322         is returned.
18324         * string/_strerror.c (__strerror_r): Print negative errors as signed
18325         numbers.
18327         [BZ #12777]
18328         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18329         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18330         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18332         * configure.in: Fix typo in redirection and correct removal of test
18333         files in two cases.
18335         [BZ #12788]
18336         * locale/setlocale.c (new_composite_name): Fix test to check for
18337         identical name of all categories.
18339         [BZ #12792]
18340         * libio/filedoalloc.c (local_isatty): New function.
18341         (_IO_file_doallocate): Use local_isatty.
18342         * stdio-common/perror.c (perror): In case a new stream is used
18343         forward the stream error.
18344         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18345         error flag.
18347 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18349         [BZ #11869]
18350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18351         alloca.
18352         * include/alloca.h (extend_alloca_account): Define.
18354         [BZ #11857]
18355         * posix/regex.h: Fix comments with documentation of user-accessible
18356         fields after compilation and describe correct free'ing of pattern
18357         after re_compile_pattern.
18358         Patch by Reuben Thomas <rrt@sc3d.org>.
18360 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18362         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18363         and -mno-altivec to prevent the compiler from using Altivec and/or
18364         VSX instructions when the corresponding registers are not available.
18366 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18368         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18370 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18372         * libio/freopen.c (freopen): Use __dup2, not dup2.
18373         * libio/freopen64.c (freopen64): Likewise.
18375 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18377         [BZ #12775]
18378         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18379         * math/Makefile (tests): Add test-powl.
18380         (CFLAGS-test-powl.c): Define.
18381         * math/test-powl.c: New file.
18383 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18385         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18387 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18389         [BZ #11837]
18390         * iconvdata/gb18030.c: Update to GB18020-2005.
18392 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18394         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18395         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18396         Patch by Aharon Robbins <arnold@skeeve.com>.
18398         [BZ #11892]
18399         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18400         on the stack.
18402         [BZ #11895]
18403         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18404         through underflows.
18406         [BZ #12766]
18407         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18408         point to strings before performing equality test for error_one_per_line
18409         mode.
18411         [BZ #11697]
18412         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18414         [BZ #11820]
18415         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18416         (struct user_fpregs_struct): Avoid __uint*_t types.
18418         [BZ #6420]
18419         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18420         symbol info.  Use it instead of calling _dl_addr locally.
18421         (lock_and_info): New function.
18422         (tr_freehook): Call lock_and_info and pass symbol info as additional
18423         parameter to tr_where.
18424         (tr_mallochook): Likewise.
18425         (tr_reallochook): Likewise.
18426         (tr_memalignhook): Likewise.
18428         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18429         used and couldn't be at all thread-safe.
18431 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18433         * libio/freopen.c (freopen): Don't close old file descriptor
18434         before the new one is opened.  Instead dup the new file descriptor
18435         to the old one after the new stream is created.
18436         * libio/freopen64.c (freopen64): Likewise.
18437         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18438         * libio/fileops.c (_IO_new_file_close_it): Handle new
18439         _IO_FLAGS2_NOCLOSE flag.
18440         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18441         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18442         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18443         _IO_FLAGS2_NOCLOSE flag.
18444         * include/unistd.h: Add hidden_proto for dup3.
18445         Define __have_dup3.
18446         * io/dup3.c: Define hidden symbol.
18447         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18449         [BZ #7101]
18450         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18451         when an incomplete long option is used.
18452         * posix/tst-getopt_long1.c: New file.
18453         * posix/Makefile (tests): Add tst-getopt_long1.
18455         [BZ #10138]
18456         * scripts/config.guess: Update from autoconf-2.68.
18457         * scripts/config.sub: Likewise.
18459         [BZ #10157]
18460         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18461         tests into ...
18462         (has_cpuclock): ...this.  New function.
18463         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18464         macro here based on has_cpuclock code.
18466         [BZ #10149]
18467         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18468         First byte (not low byte) is now always NUL.
18469         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18471         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18472         Use non-cancelable interfaces.
18474         [BZ #9809]
18475         * locale/iso-639.def: Add entry for Sorani.
18477         [BZ #11901]
18478         * include/stdlib.h: Move include protection to the right place.
18479         Define abort_msg_s.  Declare __abort_msg with it.
18480         * stdlib/abort.c (__abort_msg): Adjust type.
18481         * assert/assert.c (__assert_fail_base): New function.  Majority
18482         of code from __assert_fail.  Allocate memory for __abort_msg with
18483         mmap.
18484         (__assert_fail): Now call __assert_fail_base.
18485         * assert/assert-perr.c: Remove bulk of implementation.  Use
18486         __assert_fail_base.
18487         * include/assert.hL Declare __assert_fail_base.
18488         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18489         mmap.
18490         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18492 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18494         [BZ #11952]
18495         [BZ #12453]
18496         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18497         until all modules are registered in the DTV.
18498         * elf/Makefile: Add rules to build and run tst-tls19.
18499         * elf/tst-tls19.c: New file.
18500         * elf/tst-tls19mod1.c: New file.
18501         * elf/tst-tls19mod2.c: New file.
18502         * elf/tst-tls19mod3.c: New file.
18503         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18505         [BZ #12083]
18506         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18507         correctly.
18509         [BZ #12601]
18510         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18511         two-byte sequence errors.
18512         * iconvdata/Makefile (tests): Add bug-iconv8.
18513         * iconvdata/bug-iconv8.c: New file.
18515         [BZ #12626]
18516         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18517         buf2 definition.
18519         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18521         [BZ #12432]
18522         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18523         (dummy_getcfa): New function.
18524         (init): Get _Unwind_GetCFA address, use dummy if not found.
18525         (backtrace_helper): In recursion check, also check whether CFA changes.
18526         (__backtrace): Completely initialize arg.
18528         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18529         storing incomplete byte sequence in state object.  Avoid testing for
18530         guaranteed too small input if we know there is enough data available.
18532 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18534         * Makeconfig (+link-pie): Indent.
18535         * Rules (binaries-pie): Define if $(have-fpie) and
18536         $(build-shared).
18537         (binaries-shared): Also filter out $(binaries-pie).
18538         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18539         * nscd/Makefile (others-pie): Add nscd.
18540         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18541         ($(objpfx)nscd): Remove command override.
18542         * login/Makefile (others-pie): Add pt_chown.
18543         ($(objpfx)pt_chown): Remove command override.
18544         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18545         remove command overrides.
18547 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18549         * libio/tst_putwc.c: Fix error messages.
18551         [BZ #12724]
18552         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18553         currently writing and seek to current position when not.
18554         * libio/Makefile (tests): Add bug-fclose1.
18555         * libio/bug-fclose1.c: New file.
18557 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18559         [BZ #12511]
18560         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18561         don't set DF_1_NODELETE here.
18562         (do_lookup_x): When entering new entry test for copy relocation
18563         and if necessary set DF_1_NODELETE flag.
18564         * elf/tst-unique4.cc: New file.
18565         * elf/tst-unique4.h: New file.
18566         * elf/tst-unique4lib.cc: New file.
18567         * elf/Makefile: Add rules to build and run tst-unique4.
18568         Patch by Piotr Bury <pbury@goahead.com>.
18570 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18572         [BZ #12052]
18573         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18575         [BZ #12625]
18576         * misc/mntent_r.c (addmntent): Flush the stream after the output
18578         [BZ #12393]
18579         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18580         (is_trusted_path_normalize): Skip initial colon.  Append slash
18581         to empty buffer.  Duplicate is_trusted_path code but allow
18582         constructed patch to be prefix.
18583         (is_dst): Allow $ORIGIN followed by /.
18584         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18585         Correct testing of result of is_trusted_path_normalize
18586         (decompose_rpath): Fix warning.
18588 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18590         [BZ #11257]
18591         * grp/initgroups.c (internal_getgrouplist): When we found the service
18592         list through the initgroups entry in nsswitch.conf do not always
18593         continue on a successful lookup.  Don't always use the
18594         __nss_group_database value if it is set.
18595         * nss/nsswitch.conf (initgroups): Change action for successful db
18596         lookup to continue for compatibility.
18598 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18600         [BZ #11532]
18601         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18602         and CP774 modules.
18603         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18604         and CP774 modules.
18605         * iconvdata/tst-tables.sh: Likewise.
18606         * iconvdata/cp770.c: New file.
18607         * iconvdata/cp771.c: New file.
18608         * iconvdata/cp772.c: New file.
18609         * iconvdata/cp773.c: New file.
18610         * iconvdata/cp774.c: New file.
18611         * iconvdata/testdata/CP770: New file.
18612         * iconvdata/testdata/CP770..UTF8: New file.
18613         * iconvdata/testdata/CP771: New file.
18614         * iconvdata/testdata/CP771..UTF8: New file.
18615         * iconvdata/testdata/CP772: New file.
18616         * iconvdata/testdata/CP772..UTF8: New file.
18617         * iconvdata/testdata/CP773: New file.
18618         * iconvdata/testdata/CP773..UTF8: New file.
18619         * iconvdata/testdata/CP774: New file.
18620         * iconvdata/testdata/CP774..UTF8: New file.
18622         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18623         END CHARMAP line.
18624         * iconvdata/gen-8bit-gap.sh: Likewise.
18625         * iconvdata/gen-8bit.sh: Likewise.
18627         * locale/iso-639.def: Add ary entry.
18629         [BZ #11258]
18630         * locale/C-translit.h.in: Add U20A1 transliteration.
18632         [BZ #12178]
18633         * locale/iso-639.def: Add wae entry.
18634         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18636         [BZ #12545]
18637         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18638         for n.
18640         [BZ #12711]
18641         * locale/C-translit.h.in: Add entry for U20B9.
18642         Patch by pravin.d.s@gmail.com.
18644 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18646         [BZ #12713]
18647         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18648         ENAMETOOLONG use generic getcwd.
18649         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18650         in rtld.  Use *stat64.
18651         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18652         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18653         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18654         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18655         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18656         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18657         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18658         __fstatat64 macros.
18659         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18660         * dirent/rewinddir.c: Add libc_hidden_def.
18661         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18662         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18664         * include/dirent.h (__alloc_dir): Add flags parameter.
18665         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18666         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18667         __alloc_dir.
18668         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18669         from fdopendir if O_CLOEXEC is already set.
18671 2011-03-15  Alan Modra  <amodra@gmail.com>
18673         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18674         l_tls_firstbyte_offset non-zero.  Save padding offset in
18675         l_tls_firstbyte_offset for later use.
18676         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18677         freeing static tls block.
18679 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18681         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18682         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18683         being defined by the kernel headers.
18685 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18687         [BZ #12734]
18688         * resolv/resolv.h: Define RES_NOTLDQUERY.
18689         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18690         no-tld-query and set RES_NOTLDQUERY.
18691         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18692         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18693         modern BIND to search name as TLD unless forbidden.
18695 2011-05-07  Petr Baudis  <pasky@suse.cz>
18696             Ulrich Drepper  <drepper@gmail.com>
18698         [BZ #12393]
18699         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18700         (is_trusted_path): ...to here.
18701         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18702         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18703         using is_trusted_path_normalize() in setuid scripts.
18705 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18707         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18708         __BEGIN/__END_DECLS.
18710 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18712         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18713         NSS_STATUS_NOTFOUND if no record was found.
18715 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18717         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18718         (headers-not-in-tirpc): Remove rpc/netdb.h
18719         * resolv/netdb.h: Revert last change.
18721 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18723         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18724         circular dependency between libgcc.a and libc.a.
18726 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18728         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18729         * nis/Makefile: Don't install rpcsvc/*.
18730         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18731         instead of <rpc/types.h>.
18732         (MAXHOSTNAMELEN): Define.
18734 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18736         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18738 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18740         [BZ #12714]
18741         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18742         gethostbyname4_r when IPv6 results are possible.
18744 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18746         [BZ #12723]
18747         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18748         _PC_PIPE_BUF handling.
18750 2011-04-30  Bruno Haible  <bruno@clisp.org>
18752         [BZ #12717]
18753         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18754         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18755         to 'int'.
18756         * inet/getnameinfo.c (getnameinfo): Likewise.
18758 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18760         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18761         to groups setting in database lookup.
18762         * nss/nsswitch.conf: Add initgroups entry.
18764 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18766         [BZ #12685]
18767         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18768         mode string.
18769         Patch by Eric Blake <eblake@redhat.com>.
18771 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18773         * sunrpc/Makefile (need-export-routines): Add svc_run.
18774         (routines): Remove svc_run.
18775         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18776         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18777         * sunrpc/svc_run.c (svc_run): Likewise.
18778         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18780 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18782         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18783         problem in reallocation in last patch.
18785 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18787         * sunrpc/Makefile: Move inclusion of Rules.
18789 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18791         * nss/nss_files/files-initgroups.c: New file.
18792         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18793         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18794         _nss_files_initgroups_dyn.
18796 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18798         * elf/elf.h (R_ARM_IRELATIVE): Define.
18800 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18802         * po/ru.po: Update from translation team.
18804 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18806         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18807         dependencies.
18809 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18811         [BZ #12653]
18812         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18813         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18814         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18815         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18816         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18818 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18820         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18821         differing bytes.
18822         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18823         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18824         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18826 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18828         [BZ #12420]
18829         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18830         storing it.
18831         * stdlib/bug-getcontext.c: New file.
18832         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18834 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18836         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18837         instructions into .machine "z9-109".
18838         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18839         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18841 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18843         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18844         between environment variables and auxiliary vector.
18846 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18848         * Makefile: Add rules to build linkobj/libc.so.
18849         * include/libc-symbols.h: Define libc_hidden_nolink.
18850         * include/rpc/auth.h: Mark functions which are to be hidden.
18851         * include/rpc/auth_des.h: Likewise.
18852         * include/rpc/auth_unix.h: Likewise.
18853         * include/rpc/clnt.h: Likewise.
18854         * include/rpc/des_crypt.h: Likewise.
18855         * include/rpc/key_prot.h: Likewise.
18856         * include/rpc/pmap_clnt.h: Likewise.
18857         * include/rpc/pmap_prot.h: Likewise.
18858         * include/rpc/pmap_rmt.h: Likewise.
18859         * include/rpc/rpc_msg.h: Likewise.
18860         * include/rpc/svc.h: Likewise.
18861         * include/rpc/svc_auth.h: Likewise.
18862         * include/rpc/xdr.h: Likewise.
18863         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18864         * nss/Makefile: Likewise.
18865         * sunrpc/Makefile: Don't install headers.  Build library with normal
18866         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18867         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18868         for the compat linking library.  Remove use of INTDEF/INTUSE.
18869         * sunrpc/auth_none.c: Likewise.
18870         * sunrpc/auth_unix.c: Likewise.
18871         * sunrpc/authdes_prot.c: Likewise.
18872         * sunrpc/authuxprot.c: Likewise.
18873         * sunrpc/clnt_gen.c: Likewise.
18874         * sunrpc/clnt_perr.c: Likewise.
18875         * sunrpc/clnt_raw.c: Likewise.
18876         * sunrpc/clnt_simp.c: Likewise.
18877         * sunrpc/clnt_tcp.c: Likewise.
18878         * sunrpc/clnt_udp.c: Likewise.
18879         * sunrpc/clnt_unix.c: Likewise.
18880         * sunrpc/des_crypt.c: Likewise.
18881         * sunrpc/des_soft.c: Likewise.
18882         * sunrpc/get_myaddr.c: Likewise.
18883         * sunrpc/key_call.c: Likewise.
18884         * sunrpc/key_prot.c: Likewise.
18885         * sunrpc/netname.c: Likewise.
18886         * sunrpc/pm_getmaps.c: Likewise.
18887         * sunrpc/pm_getport.c: Likewise.
18888         * sunrpc/pmap_clnt.c: Likewise.
18889         * sunrpc/pmap_prot.c: Likewise.
18890         * sunrpc/pmap_prot2.c: Likewise.
18891         * sunrpc/pmap_rmt.c: Likewise.
18892         * sunrpc/publickey.c: Likewise.
18893         * sunrpc/rpc_cmsg.c: Likewise.
18894         * sunrpc/rpc_common.c: Likewise.
18895         * sunrpc/rpc_dtable.c: Likewise.
18896         * sunrpc/rpc_prot.c: Likewise.
18897         * sunrpc/rpc_thread.c: Likewise.
18898         * sunrpc/rtime.c: Likewise.
18899         * sunrpc/svc.c: Likewise.
18900         * sunrpc/svc_auth.c: Likewise.
18901         * sunrpc/svc_authux.c: Likewise.
18902         * sunrpc/svc_raw.c: Likewise.
18903         * sunrpc/svc_run.c: Likewise.
18904         * sunrpc/svc_simple.c: Likewise.
18905         * sunrpc/svc_tcp.c: Likewise.
18906         * sunrpc/svc_udp.c: Likewise.
18907         * sunrpc/svc_unix.c: Likewise.
18908         * sunrpc/svcauth_des.c: Likewise.
18909         * sunrpc/xcrypt.c: Likewise.
18910         * sunrpc/xdr.c: Likewise.
18911         * sunrpc/xdr_array.c: Likewise.
18912         * sunrpc/xdr_float.c: Likewise.
18913         * sunrpc/xdr_intXX_t.c: Likewise.
18914         * sunrpc/xdr_mem.c: Likewise.
18915         * sunrpc/xdr_rec.c: Likewise.
18916         * sunrpc/xdr_ref.c: Likewise.
18917         * sunrpc/xdr_sizeof.c: Likewise.
18918         * sunrpc/xdr_stdio.c: Likewise.
18920 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18922         [BZ #12650]
18923         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18924         * sysdeps/ia64/dl-tls.h: Likewise.
18925         * sysdeps/powerpc/dl-tls.h: Likewise.
18926         * sysdeps/s390/dl-tls.h: Likewise.
18927         * sysdeps/sh/dl-tls.h: Likewise.
18928         * sysdeps/sparc/dl-tls.h: Likewise.
18929         * sysdeps/x86_64/dl-tls.h: Likewise.
18930         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18932 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18934         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18935         rpath element also skip the following colon.
18936         (expand_dynamic_string_token): Add is_path parameter and pass
18937         down to DL_DST_REQUIRED and _dl_dst_substitute.
18938         (decompose_rpath): Call expand_dynamic_string_token with
18939         non-zero is_path.  Ignore empty rpaths.
18940         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18941         with zero is_path.
18943 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18946         Make cancelable.
18948 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18950         [BZ #12655]
18951         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18952         Patch by Filipe David Manana <fdmanana@apache.org>.
18954 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18956         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18957         Maintain aligned stack.
18958         (CHECK_RSP): Remove unused macro.
18960 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18962         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18963         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18965 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18967         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18969         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18971 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18973         [BZ #12518]
18974         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18975         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18976         * sysdeps/x86_64/memmove.c: New file.
18977         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18978         (memcpy): Renamed to ...
18979         (__new_memcpy): This.
18980         (memcpy): Provide GLIBC_2_14 memcpy.
18981         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18982         (memcpy): Provide GLIBC_2_2_5 memcpy.
18984 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18986         [BZ #12631]
18987         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18989 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18991         * misc/syncfs.c: New file.
18992         * misc/Makefile (routines): Add syncfs.
18993         * posix/unistd.h: Declare syncfs.
18994         * sysdeps/unix/syscalls.list: Add syncfs.
18996 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18998         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18999         open_by_handle_at.
19000         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19001         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19002         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19003         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19004         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19005         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19006         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19008 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19010         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19011         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19012         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19013         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19014         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19015         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19016         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19018         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19019         sync_file_range.c with -fexceptions.
19020         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19021         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19022         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19023         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19024         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19025         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19026         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19027         sync_file_range as cancellation point
19028         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19029         now a wrapper around __call_sync_file_range with cancellation handling.
19030         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19031         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19032         function name to __call_sync_file_range.
19033         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19034         Add call_sync_file_range.
19036 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19038         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19039         bits/timex.h.
19041 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19043         * iconv/iconv.h: Fix typo in comment.
19044         * io/fcntl.h: Likewise.
19045         * libio/stdio.h: Likewise.
19046         * posix/spawn.h: Likewise.
19047         * posix/unistd.h: Likewise.
19048         * stdlib/stdlib.h: Likewise.
19049         * time/time.h: Likewise.
19050         * wcsmbs/wchar.h: Likewise.
19052         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19053         open_by_handle): Add.
19054         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19055         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19056         Augment a few comments.
19057         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19058         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19059         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19060         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19061         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19062         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19063         open_by_handle.
19065         * io/fcntl.h (AT_EMPTY_PATH): Define.
19067 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19069         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19070         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19071         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19072         to...
19073         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19074         * Versions.def: Add GLIBC_2.14.
19075         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19076         Export.
19078 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19080         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19081         round counter.
19082         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19084 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19086         [BZ #12597]
19087         * string/test-strncmp.c (do_page_test): New function.
19088         (check2): Likewise.
19089         (test_main): Call check2.
19090         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19092 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19094         [BZ #12587]
19095         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19096         Handle cache information in CPU leaf 4.
19097         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19099 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19101         [BZ #12583]
19102         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19103         character representation.
19104         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19106 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19108         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19109         END(__isnan) to END(__isnanf) to match function entry point/label
19110         EALIGN(__isnanf,...).
19112 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19114         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19116 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19118         [BZ #12510]
19119         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19120         copy from the symbol referenced in the relocation to initialize the
19121         used variable.
19122         Patch by Piotr Bury <pbury@goahead.com>.
19123         * elf/Makefile: Add rules to build and tst-unique3.
19124         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19125         * elf/tst-unique3.cc: New file.
19126         * elf/tst-unique3.h: New file.
19127         * elf/tst-unique3lib.cc: New file.
19128         * elf/tst-unique3lib2.cc: New file.
19130         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19132 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19134         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19135         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19136         to _start.
19138 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19140         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19141         to-be-loaded object along a path to loader is ld.so.
19143 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19144             Ulrich Drepper  <drepper@gmail.com>
19146         * sysdeps/x86_64/memset.S: After aligning destination, code
19147         branches to different locations depending on the value of
19148         misalignment, when multiarch is enabled. Fix this.
19150 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19152         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19153         Set _x86_64_preferred_memory_instruction for AMD processsors.
19154         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19155         Set bit_Prefer_SSE_for_memop for AMD processors.
19157 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19159         * libio/fmemopen.c (fmemopen): Optimize a bit.
19161 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19163         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19165 2011-03-03  Roland McGrath  <roland@redhat.com>
19167         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19169 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19171         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19172         __bzero_ultra1 instead of __memset_ultra1.
19174 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19175             Ulrich Drepper  <drepper@gmail.com>
19177         [BZ #12509]
19178         * include/link.h (struct link_map): Add l_orig_initfini.
19179         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19180         returning unsuccessfully.
19181         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19182         close of a file loaded at startup, restore the original l_initfini
19183         list.
19184         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19185         list, store the pointer.
19186         * elf/Makefile ($(objpfx)noload-mem): New rule.
19187         (noload-ENV): Define.
19188         (tests): Add $(objpfx)noload-mem.
19189         * elf/noload.c: Include <memcheck.h>.
19190         (main): Call mtrace.  Close all opened handles.
19192 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19194         [BZ #12454]
19195         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19196         dependencies are missing.
19198 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19200         Fix __if_freereq crash: Unlike the generic version which uses free,
19201         Hurd needs munmap.
19202         * sysdeps/mach/hurd/ifreq.h: New file.
19204 2011-01-27  Petr Baudis  <pasky@suse.cz>
19205             Ulrich Drepper  <drepper@gmail.com>
19207         [BZ 12445]#
19208         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19209         to extend_alloca().
19210         * stdio-common/bug23.c: New file.
19211         * stdio-common/Makefile (tests): Add bug23.
19213 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19214             Ulrich Drepper  <drepper@gmail.com>
19216         [BZ #12489]
19217         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19218         before performing relro protection.  At old place add assertion
19219         to make sure nothing changed.
19221 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19222             Glauber de Oliveira Costa  <glommer@gmail.com>
19224         * elf/elf.h: Add new ARM TLS relocs.
19226 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19229         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19230         cast from r3.
19231         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19232         'tests' variable.
19233         * sysdeps/wordsize-64/tst-writev.c: New file.
19235 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19237         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19238         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19239         insns in _dl_start to prevent a TOC reference before relocs are
19240         resolved.
19242 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19244         [BZ #12469]
19245         * Makeconfig: Remove RANLIB definition.
19246         * Makerules: Don't use RANLIB.
19247         * aclocal.m4: Remove ranlib test.
19248         * configure.in: No need to check for ranlib.
19249         * elf/rtld-Rules: Don't use RANLIB.
19251 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19253         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19254         protection macro.
19255         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19256         inclusion protection macro.
19258         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19259         SIGRTMIN and SIGRTMAX and print information in that case only when
19260         SIGRTMIN is defined.
19262 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19264         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19265         arginfo fn returning -1.
19267         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19268         and thousands string is zero terminated.
19270 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19272         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19273         sysdeps/unix/sysv/linux/bits/socket.h.
19275 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19277         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19278         (__CPU_COUNT): Remove old macros.
19279         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19280         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19281         (__CPU_ALLOC, __CPU_FREE): Add macros.
19282         (__sched_cpualloc, __sched_cpufree): Add declarations.
19284 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19286         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19287         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19288         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19289         (readdhstai): Return value of addhstaiX call.
19290         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19291         (addgrbyX): Return value returned by cache_addgr.
19292         (readdgrbyname): Return value returned by addgrbyX.
19293         (readdgrbygid): Likewise.
19294         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19295         (addpwbyX): Return value returned by cache_addpw.
19296         (readdpwbyname): Return value returned by addhstbyX.
19297         (readdpwbyuid): Likewise.
19298         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19299         (addservbyX): Return value returned by cache_addserv.
19300         (readdservbyname): Return value returned by addservbyX:
19301         (readdservbyport): Likewise.
19302         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19303         (addhstbyX): Return value returned by cache_addhst.
19304         (readdhstbyname): Return value returned by addhstbyX.
19305         (readdhstbyaddr): Likewise.
19306         (readdhstbynamev6): Likewise.
19307         (readdhstbyaddrv6): Likewise.
19308         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19309         (readdinitgroups): Return value returned by addinitgroupsX.
19310         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19311         (prune_cache): Keep track of timeout value of re-added entries.
19312         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19313         * nscd/nscd.h: Adjust prototypes of readd* functions.
19315 2011-02-04  Roland McGrath  <roland@redhat.com>
19317         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19318         (nis_stats): Likewise.
19319         * nis/nis_modify.c (nis_modify): Likewise.
19320         * nis/nis_remove.c (nis_remove): Likewise.
19321         * nis/nis_add.c (nis_add): Likewise.
19323         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19325         * posix/fnmatch_loop.c: Add some consts.
19327         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19329 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19331         [BZ #12460]
19332         * config.make.in (config-cflags-novzeroupper): Define.
19333         * configure.in: Substitute libc_cv_cc_novzeroupper.
19334         * elf/Makefile (AVX-CFLAGS): Define.
19335         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19336         (CFLAGS-tst-auditmod4a.c): Likewise.
19337         (CFLAGS-tst-auditmod4b.c): Likewise.
19338         (CFLAGS-tst-auditmod6b.c): Likewise.
19339         (CFLAGS-tst-auditmod6c.c): Likewise.
19340         (CFLAGS-tst-auditmod7b.c): Likewise.
19341         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19343 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19345         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19346         function to the callback.
19347         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19349 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19351         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19352         of errno.
19354 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19356         [BZ #11724]
19357         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19358         of constructors.
19359         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19360         of destructors.
19361         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19363         [BZ #11724]
19364         * elf/Makefile: Add rules to build and run new test.
19365         * elf/tst-initorder.c: New file.
19366         * elf/tst-initorder.exp: New file.
19367         * elf/tst-initordera1.c: New file.
19368         * elf/tst-initordera2.c: New file.
19369         * elf/tst-initordera3.c: New file.
19370         * elf/tst-initordera4.c: New file.
19371         * elf/tst-initorderb1.c: New file.
19372         * elf/tst-initorderb2.c: New file.
19373         * elf/tst-order-a1.c: New file.
19374         * elf/tst-order-a2.c: New file.
19375         * elf/tst-order-a3.c: New file.
19376         * elf/tst-order-a4.c: New file.
19377         * elf/tst-order-b1.c: New file.
19378         * elf/tst-order-b2.c: New file.
19379         * elf/tst-order-main.c: New file.
19380         New test case by George Gensure <werkt0@gmail.com>.
19382 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19384         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19385         decoding ACE if AI_CANONIDN.
19387 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19389         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19391 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19393         * version.h (RELEASE): Bump for 2.13 release.
19394         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19396         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19398         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19399         MADV_NOHUGEPAGE.
19400         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19401         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19402         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19403         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19404         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19405         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19407         * posix/getconf.c: Update copyright year.
19408         * catgets/gencat.c: Likewise.
19409         * csu/version.c: Likewise.
19410         * debug/catchsegv.sh: Likewise.
19411         * debug/xtrace.sh: Likewise.
19412         * elf/ldconfig.c: Likewise.
19413         * elf/ldd.bash.in: Likewise.
19414         * elf/sprof.c (print_version): Likewise.
19415         * iconv/iconv_prog.c: Likewise.
19416         * iconv/iconvconfig.c: Likewise.
19417         * locale/programs/locale.c: Likewise.
19418         * locale/programs/localedef.c: Likewise.
19419         * malloc/memusage.sh: Likewise.
19420         * malloc/mtrace.pl: Likewise.
19421         * nscd/nscd.c (print_version): Likewise.
19422         * nss/getent.c: Likewise.
19424         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19425         PF_CAIF, and PF_ALG.
19426         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19428 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19430         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19431         (modules-names): Use them.
19432         (ifunc-test-modules, ifunc-pie-tests): Define.
19433         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19434         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19435         (test-extras): Likewise.
19436         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19437         $(compile-command.c).
19438         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19439         (all-built-dso): Define.
19440         (check-textrel.out, check-execstack.out): Depend on it.
19442         * configure.in: Don't override --enable-multi-arch.
19444 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19446         [BZ #6812]
19447         * nscd/hstcache.c (tryagain): Define.
19448         (cache_addhst): Return tryagain not notfound for temporary errors.
19449         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19450         failed.
19452 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19454         [BZ #10563]
19455         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19456         to make the syscall.
19457         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19459         [BZ #12378]
19460         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19461         and fall back to matching as normal character if the string ends before
19462         the matching ']' is found.  This is what POSIX requires.
19463         * posix/testfnm.c: Adjust test result.
19464         * posix/globtest.sh: Adjust test result.  Add new test.
19465         * posix/tst-fnmatch.input: Likewise.
19466         * posix/tst-fnmatch2.c: Add new test.
19468 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19470         * elf/Makefile (check-execstack): Revert last change.  Depend on
19471         check-execstack.h.
19472         (check-execstack.h): New target.
19473         (generated): Add check-execstack.h.
19474         * elf/check-execstack.c: Include "check-execstack.h".
19475         (main): Revert last change.
19476         (handle_file): Return zero if GNU_STACK is absent and
19477         DEFAULT_STACK_PERMS doesn't include PF_X.
19479 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19481         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19482         in child fails because the descriptor is already closed.
19483         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19484         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19485         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19487         [BZ #12397]
19488         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19489         syscall.
19491         [BZ #10484]
19492         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19493         temporary buffer used to handle multi lookups locally.
19494         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19496 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19498         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19499         loader is ld.so.
19501 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19503         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19504         alignment for SSE2.
19506 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19508         [BZ #12394]
19509         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19510         characters.  When rounding increased number of integer digits recompute
19511         number of groups.
19512         * stdio-common/tst-grouping.c: New file.
19513         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19515 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19517         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19518         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19520         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19521         void.
19522         * bits/select.h: Likewise.
19524 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19526         * po/ja.po: Update from translation team.
19528 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19530         [BZ #11155]
19531         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19532         implementation just like for lxstat, fxstatat, et al.
19534 2010-12-27  Jim Meyering  <meyering@redhat.com>
19536         [BZ #12348]
19537         * posix/regexec.c (build_trtable): Return failure indication upon
19538         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19540 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19542         [BZ #12201]
19543         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19544         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19545         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19546         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19548         [BZ #12207]
19549         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19551         [BZ #12204]
19552         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19553         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19555 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19557         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19558         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19559         script has SORT_BY_INIT_PRIORITY.
19560         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19561         NO_CTORS_DTORS_SECTIONS is defined.
19562         * elf/soinit.c: Likewise.
19563         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19564         NO_CTORS_DTORS_SECTIONS is defined.
19565         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19566         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19567         * sysdeps/sh/init-first.c: Likewise.
19568         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19570 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19572         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19573         always use the slow path.
19575 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19577         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19578         similar rule which adds the sysdep directories to the header search in
19579         order to pick up the correct platform stackinfo.h.
19580         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19581         perform test if it is, otherwise return successfully without testing.
19582         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19583         DEFAULT_STACK_PERMS define in stackinfo.h.
19584         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19585         defined in stackinfo.h.
19586         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19587         DEFAULT_STACK_PERMS defined in stackinfo.h.
19588         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19589         * sysdeps/ia64/stackinfo.h: Likewise.
19590         * sysdeps/s390/stackinfo.h: Likewise.
19591         * sysdeps/sh/stackinfo.h: Likewise.
19592         * sysdeps/sparc/stackinfo.h: Likewise.
19593         * sysdeps/x86_64/stackinfo.h: Likewise.
19594         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19595         PF_X for powerpc64.  Retain PF_X for powerpc32.
19597 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19599         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19600         accurately.
19601         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19602         GETDENTS_64BIT_ALIGNED.
19604 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19606         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19608 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19610         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19611         _GNU_SOURCE.
19613         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19614         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19615         Remove __restrict.
19616         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19617         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19619 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19621         [BZ #11655]
19622         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19623         are initialized.
19625 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19627         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19629 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19631         * po/it.po: Update from translation team.
19633 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19635         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19636         unused codes.
19638 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19640         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19642 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19644         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19645         specially.
19646         (gaih_getanswer_slice): Likewise.
19648 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19650         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19652 2010-05-31  Petr Baudis  <pasky@suse.cz>
19654         [BZ #11149]
19655         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19656         silently even in the chroot mode.
19658 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19660         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19661         last patch a bit.  Pretty printing
19663 2010-05-31  Petr Baudis <pasky@suse.cz>
19665         [BZ #10085]
19666         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19667         initialization of skip_initgroups_dyn.
19669 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19671         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19672         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19674 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19676         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19678 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19680         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19681         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19682         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19683         ($(objpfx)tst-fnmatch-mem): New rule.
19684         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19685         * posix/tst-fnmatch.c (main): Call mtrace.
19687 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19689         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19690         Support Intel processor model 6 and model 0x2c.
19692 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19694         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19695           signed comparison.
19697 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19699         [BZ #12205]
19700         * string/test-strncasecmp.c (check_result): New function.
19701         (do_one_test): Use it.
19702         (check1): New function.
19703         (test_main): Use it.
19704         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19705         Support strcasecmp and strncasecmp.
19707 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19709         [BZ #12194]
19710         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19711         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19713 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19715         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19716         IFUNC support.
19717         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19718         memset-x86-64.
19719         * sysdeps/x86_64/multiarch/bzero.S: New file.
19720         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19721         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19722         * sysdeps/x86_64/multiarch/memset.S: New file.
19723         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19724         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19725         Set bit_Prefer_SSE_for_memop for Intel processors.
19726         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19727         Define.
19728         (index_Prefer_SSE_for_memop): Define.
19729         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19731 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19733         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19734         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19736 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19738         [BZ #12191]
19739         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19740         (__x86_64_raw_data_cache_size_half): Likewise.
19741         (__x86_64_raw_shared_cache_size): Likewise.
19742         (__x86_64_raw_shared_cache_size_half): Likewise.
19744         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19745         (__x86_64_raw_data_cache_size_half): Likewise.
19746         (__x86_64_raw_shared_cache_size): Likewise.
19747         (__x86_64_raw_shared_cache_size_half): Likewise.
19748         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19749         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19750         and __x86_64_raw_shared_cache_size_half.  Round
19751         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19752         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19753         to multiple of 256 bytes.
19755 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19757         [BZ #12167]
19758         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19759         of inacessible symlinks.  Verify result of symlink before returning it.
19760         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19761         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19763 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19765         * math/math.h (isinf): Fix typo in comment.
19767 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19769         * po/da.po: Update from translation team.
19771 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19773         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19774         is added to the list.
19776 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19777             Ulrich Drepper  <drepper@gmail.com>
19779         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19780         the global list here.  Move code to...
19781         (_dl_add_to_namespace_list): ...here.  New function.
19782         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19783         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19784         * elf/dl-load.c (lose): Don't remove the element from the list.
19785         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19786         (_dl_map_object): Likewise.
19788 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19790         [BZ #12159]
19791         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19792         into all bytes of SSE register.
19793         Patch by Richard Li <richardpku@gmail.com>.
19795 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19797         [BZ #12140]
19798         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19799         perturbing.
19801 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19803         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19804         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19805         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19806         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19808         submachine.
19809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19811 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19813         * include/dlfcn.h (__RTLD_SECURE): Define.
19814         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19815         mode & __RTLD_SECURE instead.
19816         (open_path): Rename preloaded parameter to secure.
19817         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19818         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19819         * elf/dl-deps.c (openaux): Likewise.
19820         * elf/rtld.c (struct map_args): Remove is_preloaded.
19821         (map_doit): Don't use it.
19822         (dl_main): Likewise.
19823         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19824         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19826 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19828         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19829         (sysd-rules-targets): Remove duplicates.
19830         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19831         rtld-%.$o dependency.
19833 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19835         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19836         _dl_map_object do it.
19838 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19840         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19841         fast fma builtins, define the macros in the C99 standard.
19842         (FP_FAST_FMAF): Likewise.
19843         (FP_FAST_FMAL): Likewise.
19844         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19846         * bits/mathdef.h: Update copyright year.
19847         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19849 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19851         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19852         builtins, define the macros in the C99 standard.
19853         (FP_FAST_FMAF): Likewise.
19854         (FP_FAST_FMAL): Likewise.
19855         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19856         multiply/add.
19857         (FP_FAST_FMAF): Likewise.
19859 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19861         [BZ #3268]
19862         * math/libm-test.inc (fma_test): Some new testcases.
19863         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19864         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19865         y and infinite z.  Do multiplication by C already in long double.
19866         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19867         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19868         y and infinite z.  Do bitwise or of inexact bit into u.d.
19869         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19870         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19871         * sysdeps/i386/fpu/s_fma.S: Removed.
19872         * sysdeps/i386/fpu/s_fmal.S: Removed.
19874 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19876         [BZ #3268]
19877         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19878         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19879         computation is not scheduled after fetestexcept.  Fix value
19880         of minimum denormal long double.
19882 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19884         [BZ #3268]
19885         * math/libm-test.inc (fma_test): Add some more tests.
19886         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19887         correctly.
19889 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19891         * scripts/data/localplt-s390-linux-gnu.data: New file.
19892         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19894 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19896         [BZ #3268]
19897         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19898         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19899         instead of dbl-64.
19900         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19901         inlines.
19902         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19903         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19904         if one of x and y is very large and the other is subnormal.
19905         * sysdeps/s390/fpu/s_fmaf.c: New file.
19906         * sysdeps/s390/fpu/s_fma.c: New file.
19907         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19908         * sysdeps/powerpc/fpu/s_fma.S: New file.
19909         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19910         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19911         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19913 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19915         [BZ #3268]
19916         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19917         fma tests.
19918         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19919         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19920         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19921         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19922         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19923         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19924         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19926 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19928         [BZ #12078]
19929         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19930         * posix/bug-regex31.input: Add test case.
19932 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19934         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19935         * posix/bug-regex31.input: New file.
19937         [BZ #12078]
19938         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19939         (parse_sub_exp): Fix last change, use postorder.
19941         * posix/bug-regex31.c: New file.
19942         * posix/Makefile: Add rules to build and run bug-regex31.
19944         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19946         [BZ #12078]
19947         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19949         [BZ #12108]
19950         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19951         to have entries in sys_siglist.
19953         [BZ #12093]
19954         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19955         be NULL.
19957 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19959         [BZ #3268]
19960         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19961         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19962         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19963         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19964         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19965         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19966         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19967         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19968         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19969         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19970         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19971         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19972         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19973         * math/ftestexcept.c (fetestexcept): Likewise.
19974         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19975         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19976         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19977         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19978         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19979         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19980         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19982 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19984         [BZ #12107]
19985         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19986         newline.
19988 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19990         * string/bug-strstr1.c: New file.
19991         * string/Makefile: Add rules to build and run bug-strstr1.
19993 2010-10-05  Eric Blake  <eblake@redhat.com>
19995         [BZ #12092]
19996         * string/str-two-way.h (two_way_long_needle): Always clear memory
19997         when skipping input due to the shift table.
19999 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20001         [BZ #12005]
20002         * malloc/mcheck.c: Handle large requests.
20004         [BZ #12077]
20005         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20006         for strncmp and strncasecmp.
20007         * string/stratcliff.c: Add tests for strcmp and strncmp.
20008         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20010 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20012         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20013         __set_fpscr.
20015 2010-09-30  Andreas Jaeger  <aj@suse.de>
20017         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20018         (CGROUP_SUPER_MAGIC): Define.
20019         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20020         Handle btrfs and cgroup file systems.
20021         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20022         Likewise.
20024 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20026         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20027         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20029 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20031         [BZ #12067]
20032         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20033         trying to locate the ELF header.
20035 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20037         [BZ #11611]
20038         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20039         Mask out sign-bit copies when constructing f_fsid.
20041 2010-09-24  Petr Baudis <pasky@suse.cz>
20043         * debug/stack_chk_fail_local.c: Add missing licence exception.
20044         * debug/warning-nop.c: Likewise.
20046 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20048         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20049         implementing getdents64 using getdents syscall, set d_type if
20050         __ASSUME_GETDENTS32_D_TYPE.
20052 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20054         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20055         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20057 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20059         [BZ #12037]
20060         * posix/unistd.h: Undo change of feature selection for ftruncate from
20061         2010-01-11.
20063 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20065         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20066         detection.
20068 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20070         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20071         fanotify_mark.
20072         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20074 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20076         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20077         variables after CHECK_SP call.
20078         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20080 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20081             Ulrich Drepper  <drepper@redhat.com>
20083         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20084         re-relocationg ld.so.
20085         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20086         _dl_init_paths call.
20087         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20088         here anymore.
20090 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20092         * resolv/res_init.c (__res_vinit): Count the default server we added.
20094 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20095             Ulrich Drepper  <drepper@redhat.com>
20097         [BZ #11968]
20098         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20099         (____longjmp_chk): Use %ebx for saving value across system call.
20100         Add unwind info.
20102 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20104         * manual/Makefile: Don't mix pattern rules with normal rules.
20106 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20108         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20109         operation.
20110         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20111         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20112         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20113         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20114         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20115         Likewise.
20117 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20119         [BZ #11979]
20120         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20121         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20123 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20125         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20126         * sysdeps/x86_64/addmul_1.S: Likewise.
20127         * sysdeps/x86_64/lshift.S: Likewise.
20128         * sysdeps/x86_64/mul_1.S: Likewise.
20129         * sysdeps/x86_64/rshift.S: Likewise.
20130         * sysdeps/x86_64/sub_n.S: Likewise.
20131         * sysdeps/x86_64/submul_1.S: Likewise.
20133 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20135         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20136         Define __sched_param instead of SCHED_* and sched_param when
20137         <bits/sched.h> is included with __need_schedparam defined.
20138         * bits/sched.h [__need_schedparam]
20139         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20140         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20141         (__defined_schedparam): Define to 1.
20142         (__sched_param): New structure, identical to sched_param.
20143         (__need_schedparam): Undefine.
20145 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20147         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20148         (epoll_create1): Declare.
20150         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20152 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20154         [BZ #7066]
20155         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20156         shifting retval into place.
20158 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20160         * nis/rpcsvc/nis.h: Update copyright notice.
20161         * nis/rpcsvc/nis.x: Likewise.
20162         * nis/rpcsvc/nis_callback.h: Likewise.
20163         * nis/rpcsvc/nis_callback.x: Likewise.
20164         * nis/rpcsvc/nis_object.x: Likewise.
20165         * nis/rpcsvc/nis_tags.h: Likewise.
20166         * nis/rpcsvc/yp.h: Likewise.
20167         * nis/rpcsvc/yp.x: Likewise.
20168         * nis/rpcsvc/ypupd.h: Likewise.
20169         * nis/yp_xdr.c: Likewise.
20170         * nis/ypupdate_xdr.c: Likewise.
20172         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20173         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20174         (pmap_getport): Use __libc_rpc_getport.
20175         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20176         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20177         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20179 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20182         fanotify_mark.
20184 2010-08-27  Roland McGrath  <roland@redhat.com>
20186         * sysdeps/i386/i686/multiarch/Makefile
20187         (CFLAGS-varshift.c): New variable.
20189 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20191         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20192         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20194         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20196         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20198 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20200         * sysdeps/x86_64/strlen.S: Unroll the loop.
20201         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20202         strlen-sse2 strlen-sse2-bsf.
20203         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20204         __strlen_no_bsf if bit_Slow_BSF is set.
20205         (__strlen_sse42): Removed.
20206         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20207         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20209 2010-08-25  Roland McGrath  <roland@redhat.com>
20211         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20212         * sysdeps/x86_64/multiarch/varshift.c: New file.
20213         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20214         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20215         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20216         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20218 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20220         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20221         strlen-sse2 strlen-sse2-bsf.
20222         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20223         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20224         (__strlen_sse2): Removed.
20225         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20226         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20227         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20228         bit_Slow_BSF for Atom.
20229         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20230         (index_Slow_BSF): Define.
20231         (HAS_SLOW_BSF): Define.
20233 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20235         [BZ #10851]
20236         * resolv/res_init.c (__res_vinit): When no server address at all
20237         is given default to loopback.
20239 2010-08-24  Roland McGrath  <roland@redhat.com>
20241         * configure.in: Remove config-name.h generation.
20242         * configure: Regenerated.
20243         * config-name.in: File removed.
20244         * scripts/config-uname.sh: New file.
20245         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20246         ($(objdir)config-name.h): New target.
20248         * sunrpc/rpc_parse.h: Avoid nested comment.
20250 2010-08-24  Richard Henderson  <rth@redhat.com>
20251             Ulrich Drepper  <drepper@redhat.com>
20252             H.J. Lu  <hongjiu.lu@intel.com>
20254         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20255         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20256         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20257         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20258         _mm_alignr_epi8 with _mm_loadu_si128.
20259         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20260         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20261         (__m128i_shift_right): Removed.
20262         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20263         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20264         * sysdeps/x86_64/multiarch/varshift.h: New file.
20265         * sysdeps/x86_64/multiarch/varshift.S: New file.
20267 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20269         * configure.in: Move assembler checks to before sysdep dir checking.
20271 2010-08-20  Petr Baudis  <pasky@suse.cz>
20273         * LICENSES: Sync the sunrpc license.
20275 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20277         * sunrpc/auth_des.c: Update copyright notice once again.
20278         * sunrpc/auth_none.c: Likewise.
20279         * sunrpc/auth_unix.c: Likewise.
20280         * sunrpc/authdes_prot.c: Likewise.
20281         * sunrpc/authuxprot.c: Likewise.
20282         * sunrpc/bindrsvprt.c: Likewise.
20283         * sunrpc/clnt_gen.c: Likewise.
20284         * sunrpc/clnt_perr.c: Likewise.
20285         * sunrpc/clnt_raw.c: Likewise.
20286         * sunrpc/clnt_simp.c: Likewise.
20287         * sunrpc/clnt_tcp.c: Likewise.
20288         * sunrpc/clnt_udp.c: Likewise.
20289         * sunrpc/clnt_unix.c: Likewise.
20290         * sunrpc/des_crypt.c: Likewise.
20291         * sunrpc/des_soft.c: Likewise.
20292         * sunrpc/get_myaddr.c: Likewise.
20293         * sunrpc/getrpcport.c: Likewise.
20294         * sunrpc/key_call.c: Likewise.
20295         * sunrpc/key_prot.c: Likewise.
20296         * sunrpc/openchild.c: Likewise.
20297         * sunrpc/pm_getmaps.c: Likewise.
20298         * sunrpc/pm_getport.c: Likewise.
20299         * sunrpc/pmap_clnt.c: Likewise.
20300         * sunrpc/pmap_prot.c: Likewise.
20301         * sunrpc/pmap_prot2.c: Likewise.
20302         * sunrpc/pmap_rmt.c: Likewise.
20303         * sunrpc/rpc/auth.h: Likewise.
20304         * sunrpc/rpc/auth_unix.h: Likewise.
20305         * sunrpc/rpc/clnt.h: Likewise.
20306         * sunrpc/rpc/des_crypt.h: Likewise.
20307         * sunrpc/rpc/key_prot.h: Likewise.
20308         * sunrpc/rpc/netdb.h: Likewise.
20309         * sunrpc/rpc/pmap_clnt.h: Likewise.
20310         * sunrpc/rpc/pmap_prot.h: Likewise.
20311         * sunrpc/rpc/pmap_rmt.h: Likewise.
20312         * sunrpc/rpc/rpc.h: Likewise.
20313         * sunrpc/rpc/rpc_des.h: Likewise.
20314         * sunrpc/rpc/rpc_msg.h: Likewise.
20315         * sunrpc/rpc/svc.h: Likewise.
20316         * sunrpc/rpc/svc_auth.h: Likewise.
20317         * sunrpc/rpc/types.h: Likewise.
20318         * sunrpc/rpc/xdr.h: Likewise.
20319         * sunrpc/rpc_clntout.c: Likewise.
20320         * sunrpc/rpc_cmsg.c: Likewise.
20321         * sunrpc/rpc_common.c: Likewise.
20322         * sunrpc/rpc_cout.c: Likewise.
20323         * sunrpc/rpc_dtable.c: Likewise.
20324         * sunrpc/rpc_hout.c: Likewise.
20325         * sunrpc/rpc_main.c: Likewise.
20326         * sunrpc/rpc_parse.c: Likewise.
20327         * sunrpc/rpc_parse.h: Likewise.
20328         * sunrpc/rpc_prot.c: Likewise.
20329         * sunrpc/rpc_sample.c: Likewise.
20330         * sunrpc/rpc_scan.c: Likewise.
20331         * sunrpc/rpc_scan.h: Likewise.
20332         * sunrpc/rpc_svcout.c: Likewise.
20333         * sunrpc/rpc_tblout.c: Likewise.
20334         * sunrpc/rpc_util.c: Likewise.
20335         * sunrpc/rpc_util.h: Likewise.
20336         * sunrpc/rpcinfo.c: Likewise.
20337         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20338         * sunrpc/rpcsvc/key_prot.x: Likewise.
20339         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20340         * sunrpc/rpcsvc/mount.x: Likewise.
20341         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20342         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20343         * sunrpc/rpcsvc/rex.x: Likewise.
20344         * sunrpc/rpcsvc/rstat.x: Likewise.
20345         * sunrpc/rpcsvc/rusers.x: Likewise.
20346         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20347         * sunrpc/rpcsvc/spray.x: Likewise.
20348         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20349         * sunrpc/rtime.c: Likewise.
20350         * sunrpc/svc.c: Likewise.
20351         * sunrpc/svc_auth.c: Likewise.
20352         * sunrpc/svc_authux.c: Likewise.
20353         * sunrpc/svc_raw.c: Likewise.
20354         * sunrpc/svc_run.c: Likewise.
20355         * sunrpc/svc_simple.c: Likewise.
20356         * sunrpc/svc_tcp.c: Likewise.
20357         * sunrpc/svc_udp.c: Likewise.
20358         * sunrpc/svc_unix.c: Likewise.
20359         * sunrpc/svcauth_des.c: Likewise.
20360         * sunrpc/xcrypt.c: Likewise.
20361         * sunrpc/xdr.c: Likewise.
20362         * sunrpc/xdr_array.c: Likewise.
20363         * sunrpc/xdr_float.c: Likewise.
20364         * sunrpc/xdr_mem.c: Likewise.
20365         * sunrpc/xdr_rec.c: Likewise.
20366         * sunrpc/xdr_ref.c: Likewise.
20367         * sunrpc/xdr_sizeof.c: Likewise.
20368         * sunrpc/xdr_stdio.c: Likewise.
20370         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20371         handling.
20373 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20375         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20377 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20379         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20380         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20381         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20382         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20383         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20384         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20385         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20386         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20387         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20388         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20389         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20390         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20391         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20392         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20394 2010-07-26  Anton Blanchard  <anton@samba.org>
20396         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20397         * malloc/arena.c (heap_trim): Likewise.
20399 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20401         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20402         here.  Not...
20403         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20404         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20406 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20408         * sysdeps/i386/elf/Makefile: New file.
20410 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20412         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20413         from fanotify_init.
20414         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20415         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20417 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20419         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20420         of strncasecmp_l.
20421         * sysdeps/multiarch/strcmp.S: Likewise.
20423 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20425         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20426         strncase_l-nonascii.
20427         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20428         Add strncase_l-ssse3.
20429         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20430         * sysdeps/x86_64/strcmp.S: Likewise.
20431         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20432         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20433         * sysdeps/x86_64/strncase.S: New file.
20434         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20435         * sysdeps/x86_64/strncase_l.S: New file.
20436         * string/Makefile (strop-tests): Add strncasecmp.
20437         * string/test-strncasecmp.c: New file.
20439         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20440         warning.
20442         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20443         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20445 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20447         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20449 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20451         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20452         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20453         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20455 2010-05-01  Alan Modra  <amodra@gmail.com>
20457         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20458         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20459         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20460         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20461         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20462         tidying.  Don't tail-call __sigjmp_save for static lib.
20463         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20464         save location.
20465         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20466         (CALL_MCOUNT): Add eh info, and nop after bl.
20467         (TAIL_CALL_SYSCALL_ERROR): New macro.
20468         (PSEUDO_RET): Use it.
20469         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20470         Correct save location of integer regs and cr.
20471         (_dl_profile_resolve): Correct cr save location.  Delete nops
20472         after bl when SHARED.  Reduce cfi size a little by better
20473         placement of cfi directives.
20474         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20475         make a stack frame.  Instead use parm save area as a temp.
20476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20477         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20479         Don't make a stack frame for parent, use parm save area.
20480         Increase child stack frame to 112 bytes.  Don't save unused reg,
20481         and adjust reg usage.  Set up cfi on error recovery and
20482         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20484         (__makecontext): Add dummy nop after jump to exit.
20485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20486         Use correct parm save area and cr save, reduce stack frame.
20487         Correct cfi for possible PSEUDO_RET frame setup.
20488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20489         Branch to local label emitted by PSEUDO_RET rather than
20490         __syscall_error.
20492 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20494         [BZ #11904]
20495         * locale/programs/locale.c (print_assignment): New function.
20496         (show_locale_vars): Use it.
20498 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20500         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20501         field.
20502         (struct statfs64): Likewise.
20503         (_STATFS_F_FLAGS): Define.
20504         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20505         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20506         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20507         (ST_VALID): Define locally.
20508         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20509         __statvfs_getflags, use the provided value.
20510         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20511         __ASSUME_STATFS_F_FLAGS.
20513         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20515         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20516         Add sys/fanotify.h.
20517         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20518         fanotify_mask for GLIBC_2.13.
20519         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20520         fanotify_init and fanotify_mark.
20521         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20522         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20524         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20525         Add prlimit.
20526         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20527         prlimit64 for GLIBC_2.13.
20528         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20529         prlimit64.
20530         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20531         syscall.
20532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20533         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20534         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20535         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20536         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20537         add prlimit alias.
20538         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20540         [BZ #11903]
20541         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20542         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20544         * nss/Makefile: Add rules to build and run tst-nss-test1.
20545         * shlib-versions: Add entry for libnss_test1.
20546         * nss/nss_test1.c: New file.
20547         * nss/tst-nss-test1.c: New file.
20549         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20550         (__nss_configure_lookup): Set appropriate entry in
20551         __nss_configure_lookup to true.
20552         * nss/nsswitch.h: Define enum with indeces of databases in
20553         databases and __nss_database_custom arrays.  Declare
20554         __nss_database_custom.
20555         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20556         to avoid using nscd when custom rules are installed.
20557         * nss/getXXbyYY_r.c: Likewise.
20558         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20560         * nss/nss_files/files-parse.c: Whitespace fixes.
20562 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20564         [BZ #11883]
20565         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20566         * posix/fnmatch_loop.c: Likewise.
20568 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20570         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20571         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20572         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20573         * Versions.def [GLIBC_2.13]: Add.
20575 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20577         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20578         Also fail if tpwd after pwuid call is NULL.
20580 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20582         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20583         when converting to ms.
20585 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20587         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20588         EOPNOTSUPP errors with ENOTTY.
20589         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20590         EOPNOTSUPP errors with ENOTTY.
20592 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20594         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20595         Add strcasecmp_l-ssse3.
20596         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20597         strcasecmp.
20598         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20599         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20600         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20602 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20604         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20606         * string/Makefile (strop-tests): Add strcasecmp.
20607         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20608         strcasecmp_l-nonascii.
20609         (gen-as-const-headers): Add locale-defines.sym.
20610         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20611         * sysdeps/x86_64/strcasecmp.S: New file.
20612         * sysdeps/x86_64/strcasecmp_l.S: New file.
20613         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20614         * sysdeps/x86_64/locale-defines.sym: New file.
20615         * string/test-strcasecmp.c: New file.
20617         * string/test-strcasestr.c: Test both ends of the range of characters.
20618         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20620 2010-07-29  Roland McGrath  <roland@redhat.com>
20622         [BZ #11856]
20623         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20625 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20627         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20628         for ld.so.
20630 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20632         * manual/memory.texi (Malloc Tunable Parameters): Document
20633         M_PERTURB.
20635 2010-07-26  Roland McGrath  <roland@redhat.com>
20637         [BZ #11840]
20638         * configure.in (-fgnu89-inline check): Set and substitute
20639         gnu89_inline, not libc_cv_gnu89_inline.
20640         * configure: Regenerated.
20641         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20643 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20645         * string/test-strnlen.c: New file.
20646         * string/Makefile (strop-tests): Add strnlen.
20647         * string/tester.c (test_strnlen): Add a few more test cases.
20648         * string/tst-strlen.c: Better error reporting.
20650         * sysdeps/x86_64/strnlen.S: New file.
20652 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20654         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20655         lower-latency instructions.
20657 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20659         * string/test-strcasestr.c: New file.
20660         * string/test-strstr.c: New file.
20661         * string/Makefile (strop-tests): Add strstr and strcasestr.
20662         * string/str-two-way.h: Don't undefine MAX.
20663         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20665 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20667         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20668         strcasestr-nonascii.
20669         (CFLAGS-strcasestr-nonascii.c): Define.
20670         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20671         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20672         Remove unused attribute.
20674 2010-07-20  Roland McGrath  <roland@redhat.com>
20676         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20677         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20678         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20679         like LD_HWCAP_MASK can disable hwcaps.
20681 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20683         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20685 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20687         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20688         call in strcasestr.
20689         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20690         __strcasestr_sse42_nonascii.
20691         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20692         strcasestr-nonascii.c.
20693         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20695 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20697         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20698         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20699         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20700         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20702 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20704         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20705         fcntl.
20707 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20709         [BZ #11577]
20710         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20711         dl_signal_cerror.
20713 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20715         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20716         _PC_PIPE_BUF using F_GETPIPE_SZ.
20718 2010-07-05  Roland McGrath  <roland@redhat.com>
20720         * manual/arith.texi (Rounding Functions): Fix rint description
20721         implicit in round description.
20723 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20725         * elf/Makefile: Fix linking for a few tests to make recent linker
20726         happy.
20728 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20730         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20731         $(common-objpfx)libc_nonshared.a.
20733 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20735         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20736         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20737         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20738         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20739         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20740         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20741         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20742         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20757         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20758         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20759         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20760         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20761         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20762         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20763         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20764         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20765         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20766         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20767         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20768         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20784 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20786         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20787         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20788         * string/memmove.c (memmove): Renamed to ...
20789         (MEMMOVE): ...this.  Default to memmove.
20790         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20791         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20792         (END_CHK): Define.
20793         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20794         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20795         mempcpy-ssse3-back memmove-ssse3-back.
20796         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20797         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20798         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20799         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20800         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20801         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20802         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20803         * sysdeps/x86_64/multiarch/memmove.c: New file.
20804         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20805         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20806         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20807         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20808         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20809         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20810         Define.
20811         (index_Fast_Copy_Backward): Define.
20812         (HAS_ARCH_FEATURE): Define.
20813         (HAS_FAST_REP_STRING): Define.
20814         (HAS_FAST_COPY_BACKWARD): Define.
20816 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20818         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20819         Restore proper fallback handling.
20821 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20823         [BZ #11701]
20824         * posix/group_member.c (__group_member): Correct checking loop.
20826         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20827         OOM in getpwuid_r correctly.  Return error number when the caller
20828         should return, otherwise -1.
20829         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20830         call returning > 0 value.
20831         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20833 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20835         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20836         libc_nonshared.a from targets in modules-names.
20838 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20840         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20841         requires it.
20843 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20845         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20846         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20847         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20848         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20850 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20852         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20854 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20856         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20857         and F_GETPIPE_SZ.
20858         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20859         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20860         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20861         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20862         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20863         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20865 2010-06-14  Roland McGrath  <roland@redhat.com>
20867         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20869 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20871         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20872         __REDIRECT followed by __THROW.
20873         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20874         * posix/getopt.h (getopt): Likewise.
20876 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20878         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20879         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20880         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20881         in AT_FLAGS.
20882         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20883         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20885 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20887         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20889 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20891         [BZ #11640]
20892         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20893         Properly check family and model.
20895 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20897         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20899 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20901         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20903 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20905         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20906         symbol reference.
20908 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20910         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20911         symbol reference.
20913 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20915         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20916         and internal_recvmmsg.
20917         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20918         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20919         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20920         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20922         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20923         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20924         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20926 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20928         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20930 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20932         POWER7 optimizations.
20933         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20934         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20936 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20938         * version.h: Update for 2.13 development version.
20940 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20942         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20943         exceptions.  Return 0.
20945 2010-05-07  Roland McGrath  <roland@redhat.com>
20947         * elf/ldconfig.c (main): Add a const.
20949 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20951         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20952         (args_options): Add no-idn option.
20953         (ahosts_keys_int): Add idn_flags to ai_flags.
20954         (parse_option): Handle 'i' option to clear idn_flags.
20956         * malloc/malloc.c (_int_free): Possible race in the most recently
20957         added check.  Only act on the data if no current modification
20958         happened.
20960 See ChangeLog.17 for earlier changes.