Correct incorrect bug number ordering in resolved bug list.
[glibc.git] / ChangeLog
blob54db43db1023a931bc24ec6e1c91fe1444091899
1 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3         * config.h.in [IS_IN_build]: Allow compiling without optimization.
5 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7         [BZ #887]
8         * math/libm-test.inc (logb_test_downward): New test to expose
9         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10         rounding mode.
12 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14         [BZ #14027]
15         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
16         to be done.
17         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
18         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
20 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
22         * sysdeps/unix/i386/brk.S: Remove file.
23         * sysdeps/unix/i386/dl-brk.S: Likewise.
24         * sysdeps/unix/i386/pipe.S: Likewise.
25         * sysdeps/unix/i386/sigreturn.S: Likewise.
26         * sysdeps/unix/i386/syscall.S: Likewise.
27         * sysdeps/unix/i386/vfork.S: Likewise.
28         * sysdeps/unix/i386/wait.S: Likewise.
30         * sysdeps/unix/common/tcsendbrk.c: Move to ...
31         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
33         * configure.in (arm*-none*): Do not allow without
34         --enable-hacker-mode.
35         (netbsd*): Remove case setting base_os.
36         (386bsd*): Likewise.
37         (freebsd*): Likewise.
38         (bsdi*): Likewise.
39         (osf*): Likewise.
40         (sunos*): Likewise.
41         (ultrix*): Likewise.
42         (newsos*): Likewise.
43         (dynix*): Likewise.
44         (*bsd*): Likewise.
45         (sysv*): Likewise.
46         (isc*): Likewise.
47         (esix*): Likewise.
48         (sco*): Likewise.
49         (minix*): Likewise.
50         (irix4*): Likewise.
51         (irix6*): Likewise.
52         (solaris[2-9]*): Likewise.
53         (none): Likewise.
54         * configure: Regenerated.
56 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58         [BZ #11521]
59         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
60         overflow or cancellation in calculating denominator.
61         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
62         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
63         down expression to avoid unexpected rounding in newer GCCs.
64         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
66 2012-04-26  David S. Miller  <davem@davemloft.net>
68         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
69         long-double compat symbols.
70         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
71         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
72         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
73         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
74         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
75         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
76         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
77         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
78         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
79         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
80         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
81         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
82         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
84 2012-04-25  David S. Miller  <davem@davemloft.net>
86         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
87         HWCAP_* values only after the memory barriers have been defined.
88         (atomic_full_barrier): Define.
89         (atomic_read_barrier): Define.
90         (atomic_write_barrier): Define.
92 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
94         * shlib-versions: Add libgcc_s version information.
95         * sysdeps/generic/libgcc_s.h: Remove.
96         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
97         libgcc_s.h.
98         * sysdeps/gnu/unwind-resume.c: Likewise.
99         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
101 2012-04-25  David S. Miller  <davem@davemloft.net>
103         * sysdeps/unix/sparc/brk.S: Delete.
104         * sysdeps/unix/sparc/dl-brk.S: Delete.
105         * sysdeps/unix/sparc/pipe.S: Delete.
106         * sysdeps/unix/sparc/sysdep.S: Delete.
107         * sysdeps/unix/sparc/sysdep.h: Delete.
108         * sysdeps/unix/sparc/vfork.S: Delete.
109         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
110         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
111         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
112         ret_ERRVAL, r0, r1, MOVE): Define.
113         (JUMPTARGET): Remove.
114         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
115         sysdeps/unix/sparc/sysdep.h
116         (ENTRY, END): Remove.
117         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
119 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
121         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
122         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
123         -DIS_IN_build.
125         * timezone/README: Update upstream location and email address for
126         tzcode and tzdata.
127         * timezone/zdump.c: Update from tzcode 2012b.
128         * timezone/zic.c: Likewise.
130         * configure.in (libc_cv_as_needed): Remove test.
131         * configure: Regenerated.
132         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
133         conditional definition.
134         [$(have-as-needed) != yes] (no-as-needed): Likewise.
135         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
136         * config.make.in (have-as-needed): Remove variable.
138 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
139             Paul Pluzhnikov  <ppluzhnikov@google.com>
141         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
142         strings correctly.
144 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
146         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
147         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
148         * sysdeps/sh/strlen.S: Likewise.
150 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
152         * sysdeps/unix/fork.S: Remove file.
153         * sysdeps/unix/i386/fork.S: Likewise.
154         * sysdeps/unix/sparc/fork.S: Likewise.
156         * sysdeps/unix/system.c: Remove file.
157         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
159         * sysdeps/unix/getegid.S: Remove file.
160         * sysdeps/unix/geteuid.S: Likewise.
162 2012-04-24  Roland McGrath  <roland@hack.frob.com>
164         * scripts/check-localplt.awk: New file.
165         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
166         of diff.
167         * scripts/data/localplt-generic.data: Add a comment.
169         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
170         NODE when __dir_mkfile failed.
171         * sysdeps/mach/hurd/symlinkat.c: Likewise.
172         Reported by Ludovic Courtès <ludo@gnu.org>.
174 2012-04-24  Andreas Jaeger  <aj@suse.de>
176         * Makerules (common-clean): Also remove gen-as-const-headers
177         files.
179 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
181         * Makerules (native-compile): Do not change working directory for
182         build.  Use $(OUTPUT_OPTION) in command.
183         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
185 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
187         [BZ #13886]
188         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
189         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
190         * math/libm-test.inc (floor_test): Add more tests.
191         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
193 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
195         * sysdeps/unix/getdents.c: Remove file.
196         * sysdeps/unix/sysv/getdents.c: Likewise.
197         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
199         * sysdeps/unix/syscalls.list (madvise): Add syscall from
200         sysdeps/unix/mman/syscalls.list.
201         (mmap): Likewise.
202         (mprotect): Likewise.
203         (msync): Likewise.
204         (munmap): Likewise.
205         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
206         * sysdeps/unix/mman/syscalls.list: Remove.
207         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
209         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
210         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
211         * configure: Regenerated.
212         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
213         $(libgcc_s_suffix).
214         * config.make.in (libgcc_s_suffix): Remove variable.
216 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
218         * sysdeps/unix/sysv/gethostname.c: Move to ...
219         * sysdeps/posix/gethostname.c: ... here.
221         * sysdeps/unix/execve.S: Remove file.
223         * sysdeps/unix/_exit.S: Remove file.
225 2012-04-23  Andreas Jaeger  <aj@suse.de>
227         [BZ #13739]
228         * manual/Makefile: Remove make dist support, there's no
229         need for a stand-alone documentation tar ball.
230         (TEXI2DVI): Define always, it's not in Makeconfig.
231         (dist): Removed.
232         (tar-it): Removed.
233         (edition): Removed.
234         (glibc-doc-$(edition).tar): Removed
235         (%.Z): Removed.
236         (%.gz): Removed.
237         (%.uu): Removed.
238         (ETAGS): Remove, it's in Makeconfig.
239         (move-if-change): Remove, it's in Makeconfig.
241 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
243         [BZ #13970]
244         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
245         (strtod, strtof, strtold, strtol, strtoul, strtoq)
246         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
247         (strtod_l, strtof_l, strtold_l): Remove __wur.
248         It is not necessarily an error to ignore strtol's return value.
249         One can reliably look at the stored endptr to decide whether
250         the number had valid syntax.
252 2012-04-21  Andreas Jaeger  <aj@suse.de>
254         [BZ #13739]
255         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
257 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
259         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
260         * sysdeps/unix/sysv/Versions: Remove file.
262 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
264         [BZ #13927]
265         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
267 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
269         [BZ #7064]
270         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
271         version from __vm86.
273 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
275         * sysdeps/unix/common/lxstat.c: Remove file.
276         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
278         * sysdeps/unix/sysv/Makefile: Remove file.
280         * sysdeps/unix/sysv/direct.h: Remove file.
282         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
283         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
284         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
285         * sysdeps/unix/sysv/bits/signum.h: Likewise.
286         * sysdeps/unix/sysv/bits/stat.h: Likewise.
287         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
288         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
290         * sysdeps/unix/sysv/setrlimit.c: Remove file.
292         * sysdeps/unix/xmknod.c: Remove file.
293         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
295         * sysdeps/unix/sysv/settimeofday.c: Remove file.
297         * sysdeps/unix/sysv/i386/time.S: Remove file.
299         * sysdeps/unix/fxstat.c: Remove file.
300         * sysdeps/unix/xstat.c: Likewise.
301         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
303         * sysdeps/unix/sysv/sigaction.c: Remove file.
305         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
306         (sysdep_headers): Remove variable.
307         [termio.h not in sysdep_headers] (generated): Likewise.
308         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
309         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
310         * sysdeps/unix/sysv/tcdrain.c: Likewise.
311         * sysdeps/unix/sysv/tcflow.c: Likewise.
312         * sysdeps/unix/sysv/tcflush.c: Likewise.
313         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
314         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
315         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
316         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
317         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
319         * sysdeps/unix/siglist.c: Remove file.
321         * sysdeps/unix/getppid.S: Remove file.
323         * sysdeps/unix/mkdir.c: Remove file.
324         * sysdeps/unix/rmdir.c: Likewise.
326 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
328         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
329         ERR_MAX value.
330         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
331         errlist-compat value.
333 2012-04-18  David S. Miller  <davem@davemloft.net>
335         * sysdeps/generic/memcopy.h (reg_char): Delete.
336         * debug/strcat_chk.c: Use char, not reg_char.
337         * debug/strcpy_chk.c: Likewise.
338         * debug/strncat_chk.c: Likewise.
339         * debug/strncpy_chk.c: Likewise.
340         * string/memchr.c: Likewise.
341         * string/memrchr.c: Likewise.
342         * string/rawmemchr.c: Likewise.
343         * string/strcat.c: Likewise.
344         * string/strchr.c: Likewise.
345         * string/strchrnul.c: Likewise.
346         * string/strcmp.c: Likewise.
347         * string/strcpy.c: Likewise.
348         * string/strncat.c: Likewise.
349         * string/strncmp.c: Likewise.
350         * string/strncpy.c: Likewise.
352 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
354         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
355         __builtin_memcopy is called when src and dest ranges are known to not
356         overlap.
358 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
360         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
361         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
362         fwd_align_merge macro call.
363         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
364         bwd_align_merge macro call.
365         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
367 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
369         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
370         bwd_align_merge macros.
371         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
372         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
373         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
375 2012-04-18  David S. Miller  <davem@davemloft.net>
377         * sysdeps/sparc/sparc64/memcopy.h: Delete.
379 2012-04-18  Andreas Jaeger  <aj@suse.de>
381         [BZ# 6794]
382         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
383         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
384         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
386         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
387         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
388         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
390         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
391         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
392         Adjust for changed ldbl-128 files.
394         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
395         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
396         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
398 2012-04-17  David S. Miller  <davem@davemloft.net>
400         * sysdeps/sparc/sparc32/memcopy.h: Delete.
402 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
404         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
405         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
406         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
407         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
408         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
409         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
411 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
413         [BZ #6794]
414         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
415         * math/libm-test.inc: Add ilogb errno and exception tests.
416         * math/w_ilogb.c: New file: ilogb wrapper.
417         * math/w_ilogbf.c: New file: ilogbf wrapper.
418         * math/w_ilogbl.c: New file: ilogbl wrapper.
419         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
420         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
421         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
422         exception being thrown with 0.0 as argument.
423         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
424         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
425         exception being thrown with 0.0 as argument.
426         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
427         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
428         exception being thrown with 0.0 as argument.
429         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
430         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
431         exception being thrown with 0.0 as argument.
432         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
433         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
434         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
435         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
436         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
437         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
438         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
439         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
440         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
442 2012-04-17  Petr Baudis  <pasky@ucw.cz>
444         * include/sys/uio.h: Change __vector to __iovec to avoid clash
445         with altivec.
447 2012-04-16  Marek Polacek  <polacek@redhat.com>
449         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
451 2012-04-16  Marek Polacek  <polacek@redhat.com>
453         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
454         operands of fdivp instruction.
456 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
458         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
459         * elf/tst-auditmod3b.c: Likewise.
460         * elf/tst-auditmod4b.c: Likewise.
461         * elf/tst-auditmod5b.c: Likewise.
462         * elf/tst-auditmod6b.c: Likewise.
463         * elf/tst-auditmod6c.c: Likewise.
464         * elf/tst-auditmod7b.c: Likewise.
465         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
466         * sysdeps/x86_64/preconfigure.in: Likewise.
467         * sysdeps/x86_64/preconfigure: Regenerated.
469 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
471         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
472         __ILP32__.
474 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
476         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
477         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
479 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
481         [BZ #13973]
482         * locale/iso-639.def: Fix gl language name. Spotted by
483         Yaron Shahrabani.
485 2012-04-12  Roland McGrath  <roland@hack.frob.com>
487         [BZ #2074]
488         * libio/libio.h (__io_write_fn): Update comment.
490 2012-04-12  Petr Baudis  <pasky@ucw.cz>
492         [BZ #2074]
493         * stdio.texi (Hook Functions): The user provided writer function
494         is not allowed to return -1.
496 2012-04-11  David S. Miller  <davem@davemloft.net>
498         * sysdeps/sparc/fpu/libm-test-ulps: Update.
500 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
502         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
503         Add a leading slash to rtkaio.
505 2012-04-11  Jim Meyering  <meyering@redhat.com>
507         [BZ #11959]
508         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
509         It is not necessarily an error to ignore fwrite's return
510         value.  One can reliably use ferror to test for errors after
511         the fact.
513 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
515         * bits/types.h (__snseconds_t): New type.
516         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
518         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
519         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
520         (__SNSECONDS_T_TYPE): Likewise.
521         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
522         (__SNSECONDS_T_TYPE): Likewise.
523         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
524         (__SNSECONDS_T_TYPE): Likewise.
526 2012-04-10  Andreas Jaeger  <aj@suse.de>
528         [BZ #2636]
529         * manual/time.texi (Processor Time): Return type of times is
530         elapsed real time since an arbitrary point in the past.
531         (CPU Time): Move CLK_TCK from here...
532         (Processor Time): ...to here.  Correct description.
533         * manual/conf.texi (Constants for Sysconf): Correct description of
534         _SC_CLK_TCK.
536 2012-04-10  David S. Miller  <davem@davemloft.net>
538         [BZ #13967]
539         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
540         where the is a gap between DT_REL(A) and DT_JMPREL.
542 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
544         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
545         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
546         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
548 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
550         * elf/dl-support.c (_dl_inhibit_cache): New variable.
551         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
552         (dl_main): Handle --inhibit-cache.
553         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
554         _dl_inhibit_cache.
555         * elf/dl-load.c (_dl_map_object): Use it.
556         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
558 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
560         [BZ #13872]
561         * sysdeps/i386/fpu/e_powl.S (p78): New object.
562         (__ieee754_powl): Saturate large exponents rather than testing for
563         overflow of y*log2(x).
564         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
565         * math/libm-test.inc (pow_test): Do not permit spurious overflow
566         exceptions.
568         [BZ #11521]
569         * math/s_ctan.c: Include <float.h>.
570         (__ctan): Avoid internal overflow or cancellation in calculating
571         denominator.
572         * math/s_ctanf.c: Likewise.
573         * math/s_ctanl.c: Likewise.
574         * math/s_ctanh.c: Likewise.
575         * math/s_ctanhf.c: Likewise.
576         * math/s_ctanhl.c: Likewise.
577         * math/libm-test.inc (ctan_test): Add more tests.
578         (ctanh_test): Likewise.
579         * sysdeps/i386/fpu/libm-test-ulps: Update.
580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
582 2012-04-09  Andreas Jaeger  <aj@suse.de>
584         [BZ #6894]
585         * manual/filesys.texi (Directory Entries): Mention that d_namlen
586         is an optional BSD extension.
588         [BZ #10254]
589         * manual/stdio.texi (Opening Streams): Document additional fopen
590         parameters.
592 2012-04-09  Roland McGrath  <roland@hack.frob.com>
594         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
595         %eax without telling the compiler.
597 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
599         [BZ # 13963]
600         * manual/install.texi: Use sourceware.org.
602 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
604         [BZ #13873]
605         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
606         (__ieee754_pow): Generate overflow and underflow using huge*huge
607         and tiny*tiny rather than just returning constant infinity or zero
608         for large exponents.
609         * math/libm-test.inc (pow_test): Require overflow exceptions for
610         applicable cases of large exponents.
612         [BZ #706]
613         * sysdeps/i386/fpu/e_pow.S (p10): New object.
614         (__ieee754_pow): Use iterative multiplication algorithm only for
615         integer exponents with absolute value below 1024.  Check for odd
616         integer exponents when using algorithm for real exponents.
617         * math/libm-test.inc (pow_test): Add more tests.
618         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
620 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
622         [BZ #13705]
623         * math/libm-test.inc (exp_test): Do not allow overflow exception
624         on underflow test.
626 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
628         [BZ #13705]
629         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
630         instead of __kernel_standard_f.
632 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
634         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
635         * sysdeps/x86_64/memset_chk.S: Likewise.
637 2012-04-08  Andreas Jaeger  <aj@suse.de>
639         [BZ #10153]
640         * manual/startup.texi (Environment Access): Describe return value
641         for putenv and setenv.
643         [BZ #6895]
644         * manual/filesys.texi (Directory Entries): Add description for
645         DT_LNK.
647         [BZ #6890]
648         * manual/filesys.texi (Directory Entries): Clarify that it's file
649         system not operating system in the description of DT_UNKNOWN.
651         [BZ #6578]
652         * manual/syslog.texi (closelog): Fix reference, it's openlog.
654 2012-04-08  Stephen Compall  <s11@member.fsf.org>
656         [BZ #6649]
657         * manual/llio.texi (Opening and Closing Files): Add cross
658         reference to explain mode argument.
660 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
662         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
663         * sysdeps/x86_64/memset_chk.S: Likewise.
665 2012-04-07  David S. Miller  <davem@davemloft.net>
667         * elf/elf.h (R_SPARC_WDISP10): Define.
668         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
669         R_SPARC_SIZE32.
670         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
671         R_SPARC_SIZE64 and R_SPARC_H34.
673 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
675         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
676         conditions and remove no longer applicable assertion.
678 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
680         * bits/byteswap.h: Include <features.h>.
681         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
682         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
684 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
686         * bits/byteswap.h (__bswap_16): Removed.
687         Include <bits/byteswap-16.h> to get __bswap_16.
688         * sysdeps/i386/bits/byteswap.h: Likewise.
689         * sysdeps/s390/bits/byteswap.h: Likewise.
690         * sysdeps/x86_64/bits/byteswap.h: Likewise.
691         * bits/byteswap-16.h: New file.
692         * sysdeps/i386/bits/byteswap-16.h: Likewise.
693         * sysdeps/s390/bits/byteswap-16.h: Likewise.
694         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
695         * string/Makefile (headers): Add bits/byteswap-16.h.
697 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
699         [BZ #13895]
700         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
701         extra indirection.
702         * nss/Makefile (tests-static, tests): Add tst-nss-static.
703         * nss/tst-nss-static.c: New.
705 2012-04-06  Robert Millan  <rmh@gnu.org>
707         [BZ #6486]
708         * manual/llio.texi (File Position Primitive): lseek
709         refers to WHENCE when it really means OFFSET.
711 2012-04-06  Andreas Jaeger  <aj@suse.de>
713         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
714         strncmp declarations.
716         * abilist/libc.abilist: Add __poll and __ppoll.
718 2012-04-05  David S. Miller  <davem@davemloft.net>
720         * scripts/check-local-headers.sh: Accept a host triplet in the
721         path matched by the exclude regexp.
723         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
724         definition.
725         * sysdeps/powerpc/powerpc32/dl-machine.h
726         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
727         * sysdeps/s390/s390-32/dl-machine.h
728         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
729         * sysdeps/sparc/sparc32/dl-machine.h
730         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
731         * sysdeps/sparc/sparc64/dl-machine.h
732         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
734         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
735         lazy binding.
736         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
737         undefined symbol errors.
739         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
740         DT_NEEDED entries.
742 2012-04-05  Michael Matz  <matz@suse.de>
744         [BZ #13592]
745         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
747 2012-04-05  Andreas Jaeger  <aj@suse.de>
749         [BZ #13908]
750         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
751         comment.
753 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
755         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
756         which ROUND is no valid rounding mode.
758 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
760         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
761         read again.
762         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
764 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
766         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
767         an exception using FPU order intentionally.
769 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
771         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
772         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
773         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
774         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
776 2012-04-05  Simon Josefsson  <simon@josefsson.org>
778         [BZ #12340]
779         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
780         EINVAL when BUFLEN is too smal.
782 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
784         [BZ #13553]
785         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
786         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
788 2012-04-03  Andreas Jaeger  <aj@suse.de>
790         [BZ #13938]
791         * manual/setjmp.texi (System V contexts): Fix sentence.
793         [BZ #13926]
794         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
795         New macro for this case.
796         [!__GNUC__] (__bswap_64): New inline function for this case.
797         * sysdeps/x86_64/bits/byteswap.h: Likewise.
798         * bits/byteswap.h: Likewise.
799         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
800         ull, guard with __GLIBC_HAVE_LONG_LONG.
802         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
803         __GLIBC_HAVE_LONG_LONG.
805         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
806         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
808 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
810         [BZ #13691]
811         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
812         inptr and inend, rather than using last_ch.
814 2012-04-02  David S. Miller  <davem@davemloft.net>
816         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
817         * stdio-common/printf-parse.h (read_int): Change return type to
818         'int', return -1 on INT_MAX overflow.
819         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
820         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
821         overflows INT_MAX.  Check for overflow of in-format-string precision
822         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
823         SIZE_MAX not INT_MAX for integer overflow test.
824         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
825         skip the construct in the format string but do not record anything.
826         * stdio-common/bug22.c: Adjust to test both width/prevision
827         INT_MAX overflow as well as total length INT_MAX overflow.  Check
828         explicitly for proper errno values.
830 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
832         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
833         CHAR_MAX.
834         * string/test-strcmp.c [! WIDE]: Likewise.
835         * time/tst-mktime2.c: Likewise for INT_MAX.
836         * string/test-string.h: #include <sys/param.h> for MIN.
838         * csu/init-first.c (__libc_init_first): Call __ctype_init.
839         * sysdeps/i386/init-first.c (init): Likewise.
840         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
841         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
842         * sysdeps/sh/init-first.c (init): Likewise.
844 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
846         * po/ru.po: Update from translation team.
847         * po/vi.po: Likewise.
849 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
851         * resolv/nss_dns/dns-host.c: Merge copyright years.
853 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
855         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
856         Optimize memcpy with prefetch if
857         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
858         src, dst pointers have unequal 16 byte alignments.
860 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
862         [BZ #13928]
863         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
864         from a CNAME entry and return the minimum ttl for the query.
865         (gaih_getanswer_slice): Likewise.
867 2012-03-30  Jeff Law  <law@redhat.com>
869         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
870         due to long keys.
871         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
872         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
874         * resolv/nss_dns/dns-host.c: Update copyright year.
876 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
878         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
879         requests to save a system call.  Fix check that all bytes are sent.
881         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
882         comments for sendmmsg.
884 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
886         [BZ #13691]
887         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
888         with only 1 character between 0x0041 and 0x01b0.
889         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
890         * wcsmbs/tst-mbsnrtowcs.c: New file.
892 2012-03-29  David S. Miller  <davem@davemloft.net>
894         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
895         small copies by hand.
897 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
899         [BZ #13761]
900         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
901         _nss_compat_initgroups_dyn): Fall back to malloc/free
902         for large group memberships.
904 2012-03-28  David S. Miller  <davem@davemloft.net>
906         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
907         that branches into memcpy.
908         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
909         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
910         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
911         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
912         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
913         bits.
914         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
915         implementation too.
916         * sysdeps/sparc/mempcpy.S: New file.
918         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
919         the IFUNC routine in the libc case.
920         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
922         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
923         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
924         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
925         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
926         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
927         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
928         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
929         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
931         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
932         loop to 256 bytes instead of 64 bytes and fix test signedness.
934         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
935         * sysdeps/sparc/sparc32/Makefile: rather than here...
936         * sysdeps/sparc/sparc64/Makefile: and here.
938 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
940         * malloc/mallocbug.c: Avoid warnings about unused variables.
942 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
944         [BZ #13760]
945         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
946         in the right place. Discard and retry query if response is
947         larger than input buffer size.
949 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
951         [BZ #369]
952         [BZ #2678]
953         [BZ #3866]
954         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
955         x for large integer exponent.
956         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
957         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
958         sign of result as needed afterwards.
959         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
960         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
961         result for underflowing pow the same as for overflow.
962         (__kernel_standard_l): Handle powl overflow and underflow here
963         rather than calling __kernel_standard.
964         * math/libm-test.inc (pow_test): Add more tests.
966         [BZ #3868]
967         [BZ #13879]
968         [BZ #13910]
969         [BZ #13911]
970         [BZ #13912]
971         [BZ #13913]
972         [BZ #13915]
973         [BZ #13916]
974         [BZ #13917]
975         [BZ #13918]
976         [BZ #13919]
977         [BZ #13920]
978         [BZ #13921]
979         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
980         * sysdeps/ieee754/k_standard.c: Include <float.h>.
981         (__kernel_standard_l): New function.
982         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
983         __kernel_standard.
984         * math/w_acosl.c (__acosl): Likewise.
985         * math/w_asinl.c (__asinl): Likewise.
986         * math/w_atan2l.c (__atan2l): Likewise.
987         * math/w_atanhl.c (__atanhl): Likewise.
988         * math/w_coshl.c (__coshl): Likewise.
989         * math/w_exp10l.c (__exp10l): Likewise.
990         * math/w_exp2l.c (__exp2l): Likewise.
991         * math/w_fmodl.c (__fmodl): Likewise.
992         * math/w_hypotl.c (__hypotl): Likewise.
993         * math/w_j0l.c (__j0l, __y0l): Likewise.
994         * math/w_j1l.c (__j1l, __y1l): Likewise.
995         * math/w_jnl.c (__jnl, __ynl): Likewise.
996         * math/w_lgammal.c (__lgammal): Likewise.
997         * math/w_log10l.c (__log10l): Likewise.
998         * math/w_log2l.c (__log2l): Likewise.
999         * math/w_logl.c (__logl): Likewise.
1000         * math/w_powl.c (__powl): Likewise.
1001         * math/w_remainderl.c (__remainderl): Likewise.
1002         * math/w_scalbl.c (sysv_scalbl): Likewise.
1003         * math/w_sinhl.c (__sinhl): Likewise.
1004         * math/w_sqrtl.c (__sqrtl): Likewise.
1005         * math/w_tgammal.c (__tgammal): Likewise.
1006         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
1007         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
1008         * math/libm-test.inc (acos_test): Add more tests.
1009         (acosh_test): Likewise.
1010         (asin_test): Likewise.
1011         (atanh_test): Likewise.
1012         (exp_test): Likewise.
1013         (exp10_test): Likewise.
1014         (exp2_test): Likewise.
1015         (expm1_test): Likewise.
1016         (lgamma_test): Likewise.
1017         (log_test): Likewise.
1018         (log10_test): Likewise.
1019         (log1p_test): Likewise.
1020         (log2_test): Likewise.
1021         (pow_test): Do not allow some spurious overflow exceptions.
1022         (sqrt_test): Add more tests.
1023         (tgamma_test): Likewise.
1024         (y0_test): Likewise.
1025         (y1_test): Likewise.
1026         (yn_test): Likewise.
1028 2012-03-27  Anton Blanchard  <anton@samba.org>
1030         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
1031         MAP_HUGETLB.
1032         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1033         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1034         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1036 2012-03-27  David S. Miller  <davem@davemloft.net>
1038         * conform/Makefile: Run run-conformtest.sh using $(BASH).
1040         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
1041         have-as-vis3 check.
1043 2012-03-27  Andreas Jaeger  <aj@suse.de>
1045         * sysdeps/x86_64/elf/configure.in: Moved to ...
1046         * sysdeps/x86_64/configure.in: ... here.
1047         * sysdeps/x86_64/elf/start.S: Moved to ...
1048         * sysdeps/x86_64/start.S: ... here.
1049         * sysdeps/x86_64/elf/configure: Delete.
1051         * sysdeps/x86_64/configure.in: Merge contents from
1052         sysdeps/i386/configure.in (without i686 check).
1054         * sysdeps/i386/elf/Versions: Merge into ...
1055         * sysdeps/i386/Versions: ... this.
1056         * sysdeps/i386/elf/Versions: Delete file.
1057         * sysdeps/i386/elf/start.S: Moved to ...
1058         * sysdeps/i386/start.S: ...here.
1059         * sysdeps/i386/elf/configure.in: Merge into...
1060         * sysdeps/i386/configure.in: ...here.
1061         * sysdeps/i386/elf/configure.in: Delete file.
1062         * sysdeps/i386/elf/configure: Delete file.
1064         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
1065         * debug/backtracesyms.c: ... here.
1066         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
1067         * debug/backtracesymsfd.c: ... here.
1068         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
1069         * sysdeps/generic/ifunc-sel.h: ... here.
1071         * sysdeps/unix/i386/start.c: Delete file.
1072         * sysdeps/unix/sparc/start.c: Delete file.
1073         * sysdeps/unix/start.c: Delete file.
1075         * sysdeps/sh/elf/configure.in: Moved to ...
1076         * sysdeps/sh/configure.in: ... here.
1077         * sysdeps/sh/elf/start.S: Moved to ...
1078         * sysdeps/sh/start.S: ... here.
1079         * sysdeps/sh/elf/configure: Delete file.
1081         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
1082         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
1083         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
1084         * sysdeps/powerpc/powerpc64/entry.h: ... here.
1085         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
1086         * sysdeps/powerpc/powerpc64/start.S: here.
1087         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
1088         * sysdeps/powerpc/powerpc64/Makefile: ... this.
1089         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
1090         * sysdeps/powerpc/powerpc64/configure.in: ... this.
1091         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
1093         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
1094         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
1095         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
1096         * sysdeps/powerpc/powerpc32/start.S: ... here.
1097         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
1098         * sysdeps/powerpc/powerpc32/configure.in: ... this.
1099         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
1101         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
1102         * sysdeps/powerpc/ifunc-sel.h: ... here.
1103         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
1104         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
1106         * sysdeps/sparc/elf/configure.in: Moved to ...
1107         * sysdeps/sparc/configure.in: ... here.
1108         * sysdeps/sparc/elf/configure: Delete file.
1109         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
1110         * sysdeps/sparc/sparc32/start.S: ... here.
1111         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
1112         * sysdeps/sparc/sparc64/start.S: ... here.
1113         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
1114         * sysdeps/sparc/sparc32/Makefile: ... this.
1115         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
1116         * sysdeps/sparc/sparc64/Makefile: ... this.
1118         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
1119         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
1120         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
1121         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
1122         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
1123         * sysdeps/s390/s390-32/setjmp.S: ... here.
1124         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
1125         * sysdeps/s390/s390-32/configure.in: ... here.
1126         * sysdeps/s390/s390-32/elf/configure: Delete file.
1127         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
1128         * sysdeps/s390/s390-32/start.S: ... here.
1130         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
1131         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
1132         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
1133         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
1134         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
1135         * sysdeps/s390/s390-64/setjmp.S: ... here.
1136         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
1137         * sysdeps/s390/s390-64/configure.in: ... here
1138         * sysdeps/s390/s390-64/elf/configure: Delete file.
1139         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
1140         * sysdeps/s390/s390-64/start.S: ... here.
1141         * sysdeps/s390/s390-64/elf/configure: Delete.
1143         * configure.in: Remove support for elf directories in sysdeps.
1145         * configure: Regenerated.
1146         * sysdeps/i386/configure: Regenerated.
1147         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1148         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1149         * sysdeps/s390/s390-32/configure: Regenerated.
1150         * sysdeps/s390/s390-64/configure: Regenerated.
1151         * sysdeps/sh/configure: Regenerated.
1152         * sysdeps/sparc/configure: Regenerated.
1153         * sysdeps/x86_64/configure: Regenerated.
1155 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
1157         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1159         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
1160         denormal result into account.
1162 2012-03-25  Roland McGrath  <roland@hack.frob.com>
1164         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
1165         Reported by Allan McRae <allan@archlinux.org>.
1167 2012-03-23  Jeff Law  <law@redhat.com>
1169         * nss/getnssent.c (__nss_getent): Fix typo.
1171 2012-03-23  David S. Miller  <davem@davemloft.net>
1173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1175 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1177         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
1178         to pad to uint64_t for each field.
1179         (dl_tls_index): Replace unsigned long with uint64_t.
1181 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
1182         Paul Pluzhnikov  <ppluzhnikov@google.com>
1184         [BZ #6528]
1185         * grp/Makefile (otherlibs): Don't set it.
1186         * inet/Makefile (otherlibs): Likewise.
1187         * login/Makefile (otherlibs): Likewise.
1188         * nscd/Makefile (otherlibs): Likewise.
1189         * posix/Makefile (otherlibs): Likewise.
1190         * pwd/Makefile (otherlibs): Likewise.
1191         * rt/Makefile (otherlibs): Likewise.
1192         * sunrpc/Makefile (otherlibs): Likewise.
1193         * nss/Makefile (otherlibs): Likewise.
1194         Add libnss_files to routines and static-only-routines.
1195         ($(objpfx)getent): Remove rule.
1196         * resolv/Makefile: Add libnss_dns and libresolv to routines and
1197         static-only-routines.
1199 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1201         [BZ #13892]
1202         * math/s_cexp.c: Include <float.h>.
1203         (__cexp): Handle exp result overflowing not necessarily
1204         overflowing both real and imaginary parts of result.
1205         * math/s_cexpf.c: Likewise.
1206         * math/s_cexpl.c: Likewise.
1207         * math/libm-test.inc (cexp_test): Add more tests.
1208         * sysdeps/i386/fpu/libm-test-ulps: Update.
1209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1211 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1213         * include/link.h (ELFW): New macro.
1214         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
1215         Replace ELF64_R_TYPE with ELFW(R_TYPE).
1217 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1219         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
1220         with uint64_t.
1222 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1224         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
1225         declaration.
1226         (struct La_x32_retval): Likewise.
1228 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1230         * sysdeps/x86_64/preconfigure.in: New file.
1231         * sysdeps/x86_64/preconfigure: New generated file.
1233 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1235         [BZ #13824]
1236         * math/e_exp2l.c: Include <float.h>.
1237         (__ieee754_exp2l): Handle overflow and underflow cases
1238         separately.  Only pass fractional part of argument to
1239         __ieee754_expl.
1240         * math/libm-test.inc (exp2_test): Add more tests.
1242         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
1243         negating x to take absolute value.
1244         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1245         Likewise.
1246         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1247         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
1248         Likewise.
1249         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
1250         computing low part if x was negated.
1251         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1253 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1255         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
1256         la_x32_gnu_pltexit.
1257         (pltexit): Cast int_retval to ptrdiff_t.
1258         * elf/tst-auditmod3b.c: Likewise.
1259         * elf/tst-auditmod4b.c: Likewise.
1260         * elf/tst-auditmod5b.c: Likewise.
1261         * elf/tst-auditmod6b.c: Likewise.
1262         * elf/tst-auditmod6c.c: Likewise.
1263         * elf/tst-auditmod7b.c: Likewise.
1265         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
1266         and x32_gnu_pltexit.
1268         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
1269         __ELF_NATIVE_CLASS.
1270         (La_x32_regs): New macro.
1271         (La_x32_retval): Likewise.
1272         (la_x32_gnu_pltenter): New function prototype.
1273         (la_x32_gnu_pltexit): Likewise.
1275 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
1277         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1278         exponent.
1280         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1282         * configure.in (libc_cv_cc_nofma): Check for option to disable
1283         generation of FMA instructions.
1284         * configure: Regenerate.
1285         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1286         * sysdeps/ieee754/dbl-64/Makefile: New file.
1287         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1288         Remove brandred-fma4.
1289         (CFLAGS-brandred-fma4.c): Remove.
1290         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1291         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1292         define.
1293         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1294         define.
1296 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1298         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1299         LLONG_MAX != LONG_MAX.
1300         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1301         (_fitoa_word): Likewise.
1302         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1303         LLONG_MAX != LONG_MAX.
1304         * stdio-common/_itowa.h: Include <_itoa.h>.
1305         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1306         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1307         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1308         only if not defined.
1309         (_ITOA_WORD_TYPE): Likewise.
1310         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1311         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1313 2012-03-21  David S. Miller  <davem@davemloft.net>
1315         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1317 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1319         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1320         of x86_64 when setting libc_cv_slibdir, libdir and
1321         libc_cv_localedir.
1322         * sysdeps/unix/sysv/linux/configure: Regenerated.
1324 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1326         * manual/lang.texi (Old Varargs): Remove section.
1327         (How Variadic): Update menu.
1328         (va_start): Do not mention varargs.h.
1330 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1331             Joseph Myers  <joseph@codesourcery.com>
1333         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1334         link test.
1335         * configure: Regenerated.
1337 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1339         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1340         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1341         conformtest.pl
1343 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1345         * NOTES: Remove.
1346         * Makefile (files-for-dist): Remove NOTES.
1347         (NOTES): Remove rule.
1348         * README: Don't refer to NOTES.
1349         * manual/creature.texi: Don't include macros.texi.
1350         * manual/intro.texi (creature.texi): Remove comment referring to
1351         NOTES.
1353         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1354         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1355         * configure: Regenerated.
1356         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1357         LIBC_TRY_CC_OPTION.
1358         (libc_cv_as_i686): Likewise.
1359         (libc_cv_cc_avx): Likewise.
1360         (libc_cv_cc_sse2avx): Likewise.
1361         (libc_cv_cc_fma4): Likewise.
1362         (libc_cv_cc_novzeroupper): Likewise.
1363         * sysdeps/i386/configure: Regenerated.
1365         [BZ #13883]
1366         * sysdeps/i386/fpu/s_cexp.S: Remove.
1367         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1368         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1369         * math/libm-test.inc (cexp_test): Add more tests.
1370         * sysdeps/i386/fpu/libm-test-ulps: Update.
1371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1373 2012-03-21  Allan McRae  <allan@archlinux.org>
1375         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1377 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1379         [BZ #13871]
1380         * math/w_exp2.c: Do not include <float.h>.
1381         (o_threshold, u_threshold): Remove.
1382         (__exp2): Calculate result before checking finiteness and calling
1383         __kernel_standard.
1384         * math/w_exp2f.c: Likewise.
1385         * math/w_exp2l.c: Likewise.
1386         * math/libm-test.inc (exp2_test): Require overflow exception for
1387         1e6 input.
1389         [BZ #3866]
1390         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1391         range of signed 64-bit integers before using fistpll.  Remove
1392         checks for whether integers fit in mantissa bits.
1393         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1394         the range of signed 32-bit integers before using fistpl.  Remove
1395         checks for whether integers fit in mantissa bits.
1396         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1397         (__ieee754_powl): Test for y outside the range of signed 64-bit
1398         integers before using fistpll.  Reduce 64-bit values to 63-bit
1399         ones as needed.
1400         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1401         divide-by-zero is raised for zero to large negative powers.
1402         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1403         (__ieee754_powl): Test for y outside the range of signed 64-bit
1404         integers before using fistpll.  Reduce 64-bit values to 63-bit
1405         ones as needed.
1406         * math/libm-test.inc (pow_test): Add more tests.
1408 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1410         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1411         <stdio-common/_itoa.h>.
1412         * debug/segfault.c: Likewise.
1413         * elf/dl-cache.c: Likewise.
1414         * elf/dl-minimal.c: Likewise.
1415         * elf/dl-misc.c: Likewise.
1416         * elf/dl-sysdep.c: Likewise.
1417         * elf/dl-version.c: Likewise.
1418         * elf/rtld.c: Likewise.
1419         * hurd/hurdsock.c: Likewise.
1420         * hurd/lookup-retry.c: Likewise.
1421         * malloc/malloc.c: Likewise.
1422         * malloc/mtrace.c: Likewise.
1423         * nscd/nscd_getgr_r.c: Likewise.
1424         * nscd/nscd_getpw_r.c: Likewise.
1425         * nscd/nscd_getserv_r.c: Likewise.
1426         * posix/getopt_init.c: Likewise.
1427         * posix/wordexp.c: Likewise.
1428         * stdio-common/_itoa.c: Likewise.
1429         * stdio-common/printf_fphex.c: Likewise.
1430         * stdio-common/vfprintf.c: Likewise.
1431         * string/_strerror.c: Likewise.
1432         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1433         * sysdeps/i386/i686/hp-timing.h: Likewise.
1434         * sysdeps/mach/_strerror.c: Likewise.
1435         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1436         * sysdeps/mach/hurd/sethostid.c: Likewise.
1437         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1438         * sysdeps/mach/xpg-strerror.c: Likewise.
1439         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1440         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1441         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1442         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1443         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1444         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1445         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1446         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1447         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1448         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1449         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1450         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1451         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1452         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1453         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1454         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1455         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1456         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1457         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1458         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1459         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1461         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1463         * stdio-common/_itoa.h: Moved to ...
1464         * sysdeps/generic/_itoa.h: Here.
1466         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1468         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1469         instead of "_itoa.h" and "_itowa.h".
1470         * stdio-common/vfprintf.: Likewise.
1472 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1474         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1475         <bits/wordsize.h>.
1476         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1477         (__signbit): Likwise.
1478         (llrintf): Likwise.
1479         (llrint): Likwise.
1481 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1483         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1484         __WORDSIZE != 64.
1486 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1488         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1489         OVERFLOW_EXCEPTION_OK.
1490         * math/libm-test.inc ("Philosophy"): Update comment about
1491         exception testing.
1492         (OVERFLOW_EXCEPTION): Define.
1493         (OVERFLOW_EXCEPTION_OK): Likewise.
1494         (INVALID_EXCEPTION_OK): Renumber.
1495         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1496         (IGNORE_ZERO_INF_SIGN): Likewise.
1497         (test_exceptions): Handle FE_OVERFLOW.
1498         (exp10_test): Expect overflow exceptions.
1499         (exp2_test): Likewise.
1500         (expm1_test): Likewise.
1501         (nextafter_test): Likewise.
1502         (pow_test): Likewise.
1503         (scalbn_test): Likewise.
1504         (scalbln_test): Likewise.
1506 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1508         * sysdeps/x86_64/bits/atomic.h
1509         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1510         64bit integer.
1511         (atomic_exchange_acq): Likewise.
1512         (__arch_exchange_and_add_body): Likewise.
1513         (__arch_add_body): Likewise.
1514         (atomic_add_negative): Likewise.
1515         (atomic_add_zero): Likewise.
1517 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1519         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1520         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1522 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1524         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1525         Check __x86_64__ instead of __WORDSIZE.
1527 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1529         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1531 2012-03-19  David S. Miller  <davem@davemloft.net>
1533         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1535         * sysdeps/sparc/fpu/fenv_private.h: New file.
1536         * sysdeps/sparc/fpu/math_private.h: Use it.
1537         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1538         Remove.
1539         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1540         (libc_feholdexcept_setroundl): Remove.
1541         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1542         Remove.
1543         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1544         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1546 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1548         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1549         int64_t instead of long int.
1550         (INSERT_WORDS64): Likwise.
1552 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1554         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1555         _Unwind_GetCFA return to _Unwind_Ptr first.
1557 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1559         [BZ #13629]
1560         * math/s_clog.c: Include <float.h>.
1561         (__clog): Scale large or subnormal inputs.
1562         * math/s_clogf.c: Likewise.
1563         * math/s_clogl.c: Likewise.
1564         * math/s_clog10.c: Include <float.h>.
1565         (M_LOG10_2): Define.
1566         (__clog10): Scale large or subnormal inputs.
1567         * math/s_clog10f.c: Likewise.
1568         * math/s_clog10l.c: Likewise.
1569         * math/libm-test.inc (clog_test): Add more tests.
1570         (clog10_test): Likewise.
1571         * sysdeps/i386/fpu/libm-test-ulps: Update.
1572         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1574         [BZ #11451]
1575         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1576         x and y.
1577         * math/libm-test.inc (atan2_test): Add another test.
1579         * Makerules (common-objdir-compile): Remove.
1580         * sysdeps/unix/Makefile (config-generated): Do not add
1581         $(unix-generated) to variable.
1582         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1583         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1584         Remove rule.
1585         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1586         Likewise.
1587         [generic bits/local_lim.h] (before-compile): Do not append to
1588         variable.
1589         [generic bits/local_lim.h] (common-generated): Likewise.
1590         [generic sys/param.h] (before-compile): Do not append to variable.
1591         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1592         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1593         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1594         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1595         include.
1596         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1597         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1598         [generic sys/param.h] ($(addprefix
1599         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1600         [generic sys/param.h] (common-generated): Do not append to
1601         variable.
1602         [generic sys/param.h] (sysdep_headers): Likewise.
1603         [generic bits/errno.h] (before-compile): Do not append to
1604         variable.
1605         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1606         rule.
1607         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1608         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1609         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1610         [generic bits/errno.h] (common-generated): Do not append to
1611         variable.
1612         [generic bits/ioctls.h] (before-compile): Do not append to
1613         variable.
1614         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1615         rule.
1616         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1617         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1618         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1619         rule.
1620         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1621         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1622         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1623         [generic bits/ioctls.h] (common-generated): Do not append to
1624         variable.
1625         [generic sys/syscall.h] (syscall.h): Remove variable.
1626         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1627         rule.
1628         [generic sys/syscall.h] (before-compile): Do not append to
1629         variable.
1630         [generic sys/syscall.h] (common-generated): Likewise.
1631         * sysdeps/unix/errnos-tmpl.c: Remove file.
1632         * sysdeps/unix/errnos.awk: Likewise.
1633         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1634         * sysdeps/unix/ioctls.awk: Likewise.
1635         * sysdeps/unix/mk-local_lim.c: Likewise.
1636         * sysdeps/unix/snarf-ioctls: Likewise.
1638 2012-03-19  Richard Henderson  <rth@twiddle.net>
1640         * sysdeps/i386/fpu/fenv_private.h: New file.
1641         * sysdeps/i386/fpu/math_private.h: Use it.
1642         (math_opt_barrier, math_force_eval): Remove.
1643         (libc_feholdexcept_setround_53bit): Remove.
1644         (libc_feupdateenv_53bit): Remove.
1645         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1646         (math_opt_barrier, math_force_eval): Remove.
1647         (libc_feholdexcept): Remove.
1648         (libc_feholdexcept_setround): Remove.
1649         (libc_fetestexcept, libc_fesetenv): Remove.
1650         (libc_feupdateenv_test): Remove.
1651         (libc_feupdateenv, libc_feholdsetround): Remove.
1652         (libc_feresetround): Remove.
1654         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1655         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1657         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1658         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1659         (libc_feupdateenv_testl): New.
1660         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1661         (libc_feupdateenv_testf): New.
1662         (libc_feupdateenv): Use libc_feupdateenv_test.
1663         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1664         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1666         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1667         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1668         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1669         (libc_feresetround_noex): New.
1670         (libc_feresetround_noexf): New.
1671         (libc_feresetround_noexl): New.
1672         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1673         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1674         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1675         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1676         SET_RESTORE_ROUND.
1677         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1678         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1679         (__cos): Likewise.
1680         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1681         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1682         SET_RESTORE_ROUND_NOEX.
1683         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1684         SET_RESTORE_ROUND_NOEXF.
1685         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1686         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1687         (libc_feholdsetroundf): New.
1688         (libc_feresetround, libc_feresetroundf): New.
1690         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1691         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1692         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1694         * sysdeps/generic/math_private.h: Include <fenv.h>.
1695         (default_libc_feholdexcept): New.
1696         (default_libc_feholdexcept_setround): New.
1697         (default_libc_fesetenv, default_libc_feupdateenv): New.
1698         (libc_feholdexcept): Only define if undefined.
1699         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1700         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1701         (libc_feholdexcept_setroundl): Likewise.
1702         (libc_feholdexcept_setround_53bit): Likewise.
1703         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1704         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1705         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1706         (libc_feupdateenv_53bit): Likewise.
1707         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1708         (libc_feholdexcept): Convert from macro to inline function.
1709         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1710         (libc_fesetenv, libc_feupdateenv): Likewise.
1712         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1713         not previously defined.
1714         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1715         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1716         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1717         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1718         * sysdeps/ieee754/flt-32/math_private.h: New file.
1719         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1720         math_private.h below SET_FLOAT_WORD.
1721         (__isnan, __isinf_ns, __finite): Remove.
1722         (__isnanf, __isinf_nsf, __finitef): Remove.
1724 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1726         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1728 2012-03-17  David S. Miller  <davem@davemloft.net>
1730         [BZ #6471]
1731         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1732         for 2.16.
1734 2012-03-16  David S. Miller  <davem@davemloft.net>
1736         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1737         warnings.
1739         [BZ #6471]
1740         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1741         properly.
1742         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1743         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1744         sysdep_routines when subdir is sysvipc.
1745         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1746         __getshmlba helper.
1748         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1750 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1752         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1753         [__LP64__].
1755 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1757         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1758         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1759         (__lround): Renamed to ...
1760         (__llround): This.  Replace long int with long long int.
1761         Define lround functions as aliases of llround functions.
1762         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1764 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1766         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1767         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1768         adresses to uintptr_t.  Replace "long int" and "unsigned long
1769         int" with "greg_t" on va_arg.
1771 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1773         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1774         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1776         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1777         Move e_machine check before EI_CLASS check.  Handle x32
1778         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1779         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1780         SKIP_EM_IA_64 and include
1781         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1783         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1784         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1785         (add_system_dir): New macro.
1787         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1788         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1790 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1792         [BZ #2551]
1793         [BZ #2552]
1794         [BZ #2553]
1795         [BZ #2554]
1796         [BZ #2562]
1797         [BZ #2563]
1798         [BZ #2565]
1799         [BZ #2566]
1800         [BZ #2576]
1801         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1802         (y0): Likewise.
1803         * math/w_j0f.c (j0f): Likewise.
1804         (y0f): Likewise.
1805         * math/w_j0l.c (__j0l): Likewise.
1806         (__y0l): Likewise.
1807         * math/w_j1.c (j1): Likewise.
1808         (y1): Likewise.
1809         * math/w_j1f.c (j1f): Likewise.
1810         (y1f): Likewise.
1811         * math/w_j1l.c (__j1l): Likewise.
1812         (__y1l): Likewise.
1813         * math/w_jn.c (jn): Likewise.
1814         (yn): Likewise.
1815         * math/w_jnf.c (jnf): Likewise.
1816         (ynf): Likewise.
1817         * math/w_jnl.c (__jnl): Likewise.
1818         (__ynl): Likewise.
1819         * math/libm-test.inc (j0_test): Add more tests.
1820         (j1_test): Likewise.
1821         (jn_test): Likewise.  Add trailing semicolon to existing test.
1822         (y0_test): Likewise.
1823         (y1_test): Likewise.
1824         * sysdeps/i386/fpu/libm-test-ulps: Update.
1825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1827         [BZ #13851]
1828         [BZ #13854]
1829         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1830         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1831         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1832         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1833         (__tanl): Set errno for infinite argument.
1834         * sysdeps/i386/fpu/mptan.c: Remove.
1835         * sysdeps/i386/fpu/s_tan.S: Likewise.
1836         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1837         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1838         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1839         * math/libm-test.inc (tan_test): Add more tests and enable more
1840         tests for double and long double.
1841         * sysdeps/i386/fpu/libm-test-ulps: Update.
1842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1844 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1846         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1847         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1849 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1851         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1852         * configure.in: Use it for both main tree and add-ons.
1853         * configure: Regenerated.
1855 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1857         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1859 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1861         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1862         in comment.
1864         [BZ #13851]
1865         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1866         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1867         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1868         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1869         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1870         infinite argument.
1871         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1872         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1873         != 0 for prec == 2.
1874         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1875         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1876         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1877         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1878         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1879         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1880         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1881         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1882         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1883         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1884         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1885         * math/libm-test.inc (cos_test): Add more tests and enable more
1886         tests for long double.
1887         (sin_test): Likewise.
1888         (sincos_test): Likewise.
1889         * sysdeps/i386/fpu/libm-test-ulps: Update.
1890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1892 2012-03-16  David S. Miller  <davem@davemloft.net>
1894         * sysdeps/sparc/fpu/math_private.h: New file.
1896 2012-03-15  David S. Miller  <davem@davemloft.net>
1898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1899         file.
1900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1902         file.
1903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1905         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1906         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1907         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1908         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1909         sysdep routines.
1910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1912         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1913         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1915         * sysdeps/sparc/sparc-ifunc.h: New file.
1916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1917         sparc-ifunc.h
1918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1920         Likewise.
1921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1922         Likewise.
1923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1927         Likewise.
1928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1933         Likewise.
1934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1935         Likewise.
1936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1940         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1941         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1942         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1943         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1944         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1945         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1946         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1947         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1948         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1949         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1950         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1951         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1952         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1953         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1954         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1955         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1956         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1957         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1958         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1959         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1961 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1963         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1964         scaling.
1965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1967 2012-03-15  Andreas Jaeger  <aj@suse.de>
1969         [BZ #13852]
1970         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1971         ieee754/flt-32 implementation for sin, cos and sincos.
1972         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1973         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1974         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1975         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1976         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1977         ieee754/flt-32 implementation for tan.
1979         * math/libm-test.inc (cos_test): Enable some large input tests for
1980         float as well
1981         (sin_test): Likewise.
1982         (sincos_test): Likewise.
1983         (tan_test): Add tests for large input.
1985         * sysdeps/i386/fpu/libm-test-ulps: Update.
1987 2012-03-15  Andreas Jaeger  <aj@suse.de>
1989         [BZ #13658]
1990         * math/libm-test.inc (cos_test): Add more test cases.
1991         (sin_test): Likewise.
1992         (sincos_test): Likewise.
1994 2012-03-15  Andreas Jaeger  <aj@suse.de>
1996         [BZ #13837]
1997         * math/libm-test.inc (cos_test): Add a test case for large input
1998         value.
1999         (sin_test): Likewise.
2000         (sincos_test): Likewise.
2002 2012-03-15  Andreas Jaeger  <aj@suse.de>,
2003         Joseph Myers  <joseph@codesourcery.com>
2005         [BZ #13658]
2006         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
2007         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
2008         * sysdeps/i386/fpu/branred.c: Likewise.
2009         * sysdeps/i386/fpu/dosincos.c: Likewise.
2010         * sysdeps/i386/fpu/mpa.c: Likewise.
2011         * sysdeps/i386/fpu/s_cos.S: Likewise.
2012         * sysdeps/i386/fpu/s_sin.S: Likewise.
2013         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2014         * sysdeps/i386/fpu/sincos32.c: Likewise.
2016         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
2017         Define.
2018         (libc_feupdateenv_53bit): Define.
2019         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
2020         Define.
2021         (libc_feupdateenv_53bit): Define.
2023         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
2024         53 bit (without extend i386 double precision).
2026         * math/libm-test.inc (sincos_test): Add tests for large input.
2027         (sin): Likewise.
2028         (cos): Likewise.
2030         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
2032 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2036 2012-03-15  David S. Miller  <davem@davemloft.net>
2038         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
2039         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
2040         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
2041         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
2042         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
2043         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
2044         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
2045         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
2046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
2047         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
2048         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
2049         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
2050         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
2051         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
2052         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
2053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
2054         file.
2055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
2056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
2057         file.
2058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
2059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
2060         file.
2061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
2062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
2063         file.
2064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
2065         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
2066         fmin/fmax sysdep routines.
2067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2069 2012-03-14  David S. Miller  <davem@davemloft.net>
2071         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
2072         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
2073         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
2074         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
2075         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
2076         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
2077         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
2078         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
2079         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
2080         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
2081         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
2082         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
2083         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
2084         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
2085         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
2086         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
2087         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
2088         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
2089         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
2090         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
2091         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
2092         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
2093         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
2094         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
2095         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
2096         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
2097         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
2098         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
2099         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
2100         routines.
2101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
2102         file.
2103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
2104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
2105         file.
2106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
2107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
2108         file.
2109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
2110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
2111         file.
2112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
2113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
2114         file.
2115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
2116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
2117         file.
2118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
2119         file.
2120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
2121         file.
2122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
2123         file.
2124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
2125         New file.
2126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
2127         file.
2128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
2129         file.
2130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
2131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
2132         file.
2133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
2134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
2135         file.
2136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
2137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
2138         file.
2139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
2140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
2141         VIS3 routines.
2143         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2144         New file.
2146         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2148         * sysdeps/sparc/configure.in: New file.
2149         * sysdeps/sparc/configure: Generate.
2150         * configure.in (libc_cv_sparc_as_vis3): Substitute.
2151         * configure: Regenerate.
2152         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
2153         * config.make.in (have-as-vis3): New.
2154         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
2155         available use -Av9d instead of -Av9a.
2156         * sysdeps/sparc/sparc64/Makefile: Likewise.
2157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
2158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
2159         New file.
2160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
2161         file.
2162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
2163         New file.
2164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
2165         file.
2166         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
2167         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
2168         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
2169         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
2170         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2172         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
2173         fzeros/fnegs to load 0x80000000 into a float register instead of
2174         using the stack.
2175         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
2177 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2179         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2180         bits/syscall.h.
2181         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
2182         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
2183         ($(inst_includedir)/bits/syscall.h): Remove rule.
2184         ($(objpfx)bits/syscall.d): Include instead of
2185         $(objpfx)syscall-list.d.
2186         (generated): Change syscall-list.h and syscall-list.d to
2187         bits/syscall.h and bits/syscall.d.
2189 2012-03-14  Roland McGrath  <roland@hack.frob.com>
2191         [BZ #13846]
2192         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
2194 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2196         [BZ #13841]
2197         * math/s_csqrt.c: Include <float.h>.
2198         (__csqrt): Scale large or subnormal inputs.
2199         * math/s_csqrtf.c: Likewise.
2200         * math/s_csqrtl.c: Likewise.
2201         * math/libm-test.inc (csqrt_test): Add more tests.
2202         * sysdeps/i386/fpu/libm-test-ulps: Update.
2203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2205         [BZ #13840]
2206         * math/libm-test.inc (hypot_test): Add more tests.
2208 2012-03-13  David S. Miller  <davem@davemloft.net>
2210         [BZ #13840]
2211         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
2212         double-precision for the calculation instead of scaling.
2214 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
2216         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
2217         manipulate bits before adding and subtracting TWO52[sx].
2218         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
2219         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2220         Likewise.
2221         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
2223 2012-03-13  David S. Miller  <davem@davemloft.net>
2225         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
2226         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
2227         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
2228         rtld-global-offsets.h
2229         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2231         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
2232         large parameters.
2234         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2236         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
2237         'err' in the ifdef scope in which it is actually used.
2239         * nss/nss_db/db-init.c: Include string.h
2241 2012-03-12  David S. Miller  <davem@davemloft.net>
2243         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2244         masking out of the most significant byte of random value used.
2245         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2246         Fix coding style in previous change.
2248         * sysdeps/unix/sysv/linux/kernel-features.h
2249         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
2250         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
2251         expression.
2252         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
2253         later.
2255 2012-03-11  David S. Miller  <davem@davemloft.net>
2257         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2258         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
2259         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
2260         for 'resultvar' otherwise things get truncated on 64-bit.
2262         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2263         Fix masking out of the most significant byte of random value used.
2265         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2267 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
2269         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2271 2012-03-09  David S. Miller  <davem@davemloft.net>
2273         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
2274         variables with appropriate CPP guards.
2275         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
2276         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2277         on resulting framesize and the management of the outregs buffer for pltexit.
2278         Preserve floating point return values across _dl_call_pltexit call.
2279         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2280         framesize and the management of the outregs buffer for pltexit.
2281         Preserve floating point return values across _dl_call_pltexit
2282         call.
2283         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2284         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2285         (print_exit): Fix format string for return register value.
2287 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2289         * sunrpc/Makefile (others): Add rpcgen.
2290         ($(objpfx)rpcgen): Remove special build rule and dependency on
2291         libc.
2292         * sunrpc/rpcgen.c: New file.
2294 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2296         [BZ #13673]
2297         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2298         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2299         * sysdeps/i386/crti.S: Likewise.
2300         * sysdeps/i386/crtn.S: Likewise.
2301         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2302         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2303         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2304         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2305         * sysdeps/sh/crti.S: Likewise.
2306         * sysdeps/sh/crtn.S: Likewise.
2307         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2309         [BZ #13673]
2310         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2311         with URL.
2312         * locale/programs/locfile-kw.gperf: Likewise.
2313         * locale/programs/charmap-kw.h: Regenerated.
2314         * locale/programs/locfile-kw.h: Likewise.
2316         [BZ #13673]
2317         * intl/plural.y: Replace FSF snail mail address with URL.
2318         * intl/plural.c: Regenerated.
2320 2012-03-09  Richard Henderson  <rth@twiddle.net>
2322         * include/math_private.h: Remove file.
2323         * math/math_private.h: Move file ...
2324         * sysdeps/generic/math_private.h: ... here.
2326         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2327         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2328         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2330         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2331         and <math_private.h>.
2332         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2333         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2334         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2335         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2336         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2353         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2355         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2356         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2357         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2358         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2360         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2362         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2363         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2364         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2365         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2366         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2367         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2368         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2369         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2370         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2371         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2372         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2373         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2374         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2375         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2376         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2377         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2378         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2379         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2380         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2381         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2382         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2383         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2384         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2385         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2386         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2387         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2388         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2389         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2390         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2391         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2392         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2393         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2394         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2395         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2396         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2397         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2398         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2399         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2400         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2401         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2402         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2403         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2404         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2405         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2406         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2407         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2408         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2409         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2410         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2411         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2412         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2413         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2414         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2415         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2416         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2417         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2418         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2419         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2420         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2421         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2422         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2423         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2424         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2425         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2426         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2427         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2428         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2429         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2430         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2431         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2432         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2433         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2434         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2435         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2436         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2437         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2438         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2439         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2440         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2441         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2442         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2443         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2444         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2445         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2446         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2447         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2448         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2449         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2450         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2451         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2452         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2453         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2454         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2455         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2456         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2457         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2458         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2459         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2460         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2461         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2462         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2463         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2464         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2465         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2466         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2467         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2468         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2469         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2470         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2471         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2472         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2473         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2474         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2475         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2476         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2477         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2478         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2479         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2480         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2481         * sysdeps/ieee754/k_standard.c: Likewise.
2482         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2483         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2484         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2485         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2486         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2487         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2488         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2489         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2490         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2491         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2492         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2493         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2494         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2495         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2496         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2497         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2498         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2499         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2500         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2501         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2502         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2503         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2504         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2505         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2506         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2507         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2508         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2509         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2510         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2511         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2512         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2513         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2514         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2515         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2516         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2517         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2518         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2519         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2520         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2521         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2522         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2523         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2524         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2525         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2526         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2527         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2528         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2529         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2530         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2531         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2532         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2533         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2534         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2535         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2536         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2537         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2538         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2539         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2540         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2541         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2542         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2543         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2544         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2545         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2546         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2547         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2548         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2549         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2550         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2551         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2552         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2553         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2554         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2555         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2556         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2557         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2558         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2559         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2560         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2561         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2562         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2563         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2564         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2565         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2566         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2567         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2568         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2569         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2570         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2571         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2572         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2573         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2574         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2575         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2576         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2577         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2578         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2580         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2581         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2582         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2583         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2584         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2585         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2586         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2587         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2588         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2589         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2590         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2591         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2592         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2593         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2594         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2595         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2596         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2597         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2598         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2599         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2600         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2601         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2602         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2603         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2604         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2605         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2606         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2607         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2608         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2609         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2610         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2611         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2612         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2613         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2614         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2615         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2616         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2617         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2618         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2619         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2620         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2621         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2622         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2623         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2624         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2625         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2626         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2627         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2628         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2629         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2630         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2631         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2632         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2633         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2634         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2635         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2636         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2637         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2638         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2639         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2640         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2641         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2642         * sysdeps/ieee754/s_lib_version.c: Likewise.
2643         * sysdeps/ieee754/s_matherr.c: Likewise.
2644         * sysdeps/ieee754/s_signgam.c: Likewise.
2645         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2646         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2647         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2648         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2649         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2650         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2651         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2652         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2653         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2654         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2655         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2656         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2657         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2658         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2659         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2660         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2661         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2662         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2663         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2664         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2665         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2667 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2669         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2670         * sunrpc/rpc_main.c: Likewise.
2671         * sunrpc/rpc_svcout.c: Likewise.
2673 2012-03-09  David S. Miller  <davem@davemloft.net>
2675         * include/math_private.h: New file.
2677 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2679         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2680         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2681         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2682         from <bits/socket_type.h>.
2683         (enum __socket_type): Don't define here.
2684         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2685         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2686         bits/socket_type.h.
2688         [BZ #13566]
2689         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2690         checking __USE_GNU.
2692         * Makerules ($(inst_includedir)/%.h): New rule.
2693         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2694         (install-others): Remove variable setting.
2695         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2697 2012-03-08  Richard Henderson  <rth@twiddle.net>
2699         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2700         from macro to inline function; merge with the
2701         !__LIBC_INTERNAL_MATH_INLINES version.
2702         (__ieee754_sqrtf): Likewise.
2704         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2705         to inline function.
2706         (__rintf, __floor, __floorf): Likewise.
2708         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2709         macro to inline function.
2710         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2712         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2713         not <math/math_private.h>.
2715 2012-03-08  David S. Miller  <davem@davemloft.net>
2717         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2718         copyright year.
2719         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2721 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2723         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2724         normalization.
2725         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2726         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2728 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2730         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2731         be defined individually, they must be defined as a block.  Define
2732         S for printing a string instead of hidint the different by using a
2733         macro for adding the 'l'.
2734         * stdio-common/tst-fphex-wide.c: Adjust.
2736 2012-03-07  Marek Polacek  <polacek@redhat.com>
2738         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2740 2012-03-08  Marek Polacek  <polacek@redhat.com>
2742         [BZ #13806]
2743         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2744         * stdio-common/tst-fphex.c: Define a few macros to make the
2745         test reusable.  Use them.
2746         * stdio-common/tst-fphex-wide.c: New file.
2748 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2750         [BZ #6911]
2751         * manual/macros.texi (gnusystems): New macro.
2752         (nongnusystems): Likewise.
2753         (gnulinuxhurdsystems): Likewise.
2754         (gnuhurdsystems): Likewise..
2755         (gnulinuxsystems): Likewise.
2756         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2757         variants of the GNU system, not "GNU system".
2758         * manual/conf.texi: Likewise.
2759         * manual/errno.texi: Likewise.  Update example of errno macro
2760         expansion.
2761         * manual/filesys.texi: Likewise.
2762         (getumask): Document as specific to GNU/Hurd.
2763         * manual/install.texi: Likewise.  Reword some references to
2764         GNU/Linux.
2765         * manual/intro.texi: Likewise.
2766         * manual/io.texi: Likewise.
2767         (File Name Portability): Detail which constraints are inapplicable
2768         to all GNU systems and which are only inapplicable to GNU/Hurd.
2769         * manual/job.texi: Likewise.
2770         * manual/llio.texi: Likewise.
2771         (O_NOCTTY): Document as present on GNU/Linux.
2772         * manual/maint.texi: Likewise.
2773         * manual/memory.texi: Likewise.
2774         * manual/pattern.texi: Likewise.
2775         * manual/pipe.texi: Likewise.
2776         * manual/process.texi: Likewise.
2777         * manual/resource.texi: Likewise.
2778         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2779         child on GNU/Hurd.
2780         * manual/setjmp.texi: Likewise.
2781         * manual/signal.texi: Likewise.
2782         * manual/startup.texi: Likewise.
2783         * manual/stdio.texi: Likewise.
2784         * manual/terminal.texi: Likewise.
2785         (ONLCR): Document as POSIX.
2786         (OXTABS): Document availability on GNU/Linux as XTABS.
2787         (ONOEOT): Document availability separately from other bits.
2788         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2789         * manual/time.texi: Likewise.
2790         * manual/users.texi: Likewise.
2791         * INSTALL: Regenerated.
2792         * sysdeps/gnu/errlist.c: Regenerated.
2794         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2795         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2796         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2797         puts.
2798         * configure: Regenerated.
2800 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2802         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2803         default includes instead of AC_HEADER_CHECK.
2804         * sysdeps/i386/configure: Regenerated.
2806         [BZ #10716]
2807         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2808         * math/s_cacoshf.c (__cacoshf): Likewise.
2809         * math/s_cacoshl.c (__cacoshl): Likewise.
2810         * math/s_casinh.c (__casinh): Set signs of result from argument.
2811         * math/s_casinhf.c (__casinhf): Likewise.
2812         * math/s_casinhl.c (__casinhl): Likewise.
2813         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2814         (casinh_test): Add more tests.
2815         * sysdeps/i386/fpu/libm-test-ulps: Update.
2816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2818 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2820         * po/zh_TW.po: Update from translation team.
2822         * login/Makefile (distribute): Remove variable.
2823         * catgets/Makefile: Likewise.
2824         * mach/Makefile: Likewise.
2825         * malloc/Makefile: Likewise.
2826         * misc/Makefile: Likewise.
2827         * iconv/Makefile: Likewise.
2828         * nscd/Makefile: Likewise.
2829         * hurd/Makefile: Likewise.
2830         * manual/Makefile: Likewise.
2831         * locale/Makefile: Likewise.
2832         * intl/Makefile: Likewise.
2833         * conform/Makefile: Likewise.
2834         * nss/Makefile: Likewise.
2835         * time/Makefile: Likewise.
2836         * soft-fp/Makefile: Likewise.
2837         * dirent/Makefile: Likewise.
2838         * gmon/Makefile: Likewise.
2839         * po/Makefile: Likewise.
2840         * rt/Makefile: Likewise.
2841         * socket/Makefile: Likewise.
2842         * math/Makefile: Likewise.
2843         * signal/Makefile: Likewise.
2844         * debug/Makefile: Likewise.
2845         * elf/Makefile: Likewise.
2846         * timezone/Makefile: Likewise.
2847         * stdlib/Makefile: Likewise.
2848         * iconvdata/Makefile: Likewise.
2849         * sunrpc/Makefile: Likewise.
2850         * io/Makefile: Likewise.
2851         * argp/Makefile: Likewise.
2852         * inet/Makefile: Likewise.
2853         * hesiod/Makefile: Likewise.
2854         * grp/Makefile: Likewise.
2855         * csu/Makefile: Likewise.
2856         * wctype/Makefile: Likewise.
2857         * crypt/Makefile: Likewise.
2858         * libio/Makefile: Likewise.
2859         * string/Makefile: Likewise.
2860         * nis/Makefile: Likewise.
2861         * resolv/Makefile: Likewise.
2862         * stdio-common/Makefile: Likewise.
2863         * wcsmbs/Makefile: Likewise.
2864         * dlfcn/Makefile: Likewise.
2865         * posix/Makefile: Likewise.
2867         * timezone/Makefile: Don't install timezone files, just the programs
2868         and scripts.
2870 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2872         * nss/databases.def: Add missing gshadow entry.
2874         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2876 2012-03-06  Marek Polacek  <polacek@redhat.com>
2878         [BZ #13726]
2879         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2880         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2881         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2882         * stdio-common/tst-long-dbl-fphex.c: New file.
2884 2012-03-06  David S. Miller  <davem@davemloft.net>
2886         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2887         (set_obp_int): New function.
2888         (get_obp_int): New function.
2889         (__get_clockfreq_via_dev_openprom): Likewise.
2890         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2891         Avoid unused variable warnings on 'val' and use builtin_expect.
2892         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2893         __builtin_expect.
2894         (INLINE_CLONE_SYSCALL): Likewise.
2896 2012-03-05  David S. Miller  <davem@davemloft.net>
2898         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2900 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2902         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2904         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2905         only for |x| >= 40.
2906         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2908 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2910         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2911         Replace gettimeofday with __vdso_gettimeofday.
2913         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2914         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2915         __vdso_clock_gettime and __vdso_getcpu.
2917         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2918         time with __vdso_time.
2920 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2922         * manual/lang.texi (size_t): Note types to which size_t may be
2923         equivalent with the GNU C Library, but do not describe when
2924         differences between them are significant.
2926 2012-03-05  Andreas Jaeger  <aj@suse.de>
2928         * sysdeps/i386/fpu/libm-test-ulps: Update.
2930 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2932         [BZ #3976]
2933         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2934         (__ieee754_pow): Save and restore rounding mode and use
2935         round-to-nearest for main computations.
2936         * math/libm-test.inc (pow_test_tonearest): New function.
2937         (pow_test_towardzero): Likewise.
2938         (pow_test_downward): Likewise.
2939         (pow_test_upward): Likewise.
2940         (main): Call the new functions.
2941         * sysdeps/i386/fpu/libm-test-ulps: Update.
2942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2944         [BZ #3976]
2945         * math/libm-test.inc (cosh_test_tonearest): New function.
2946         (cosh_test_towardzero): Likewise.
2947         (cosh_test_downward): Likewise.
2948         (cosh_test_upward): Likewise.
2949         (sinh_test_tonearest): Likewise.
2950         (sinh_test_towardzero): Likewise.
2951         (sinh_test_downward): Likewise.
2952         (sinh_test_upward): Likewise.
2953         (main): Call the new functions.
2954         * sysdeps/i386/fpu/libm-test-ulps: Update.
2955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2957 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2959         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2960         default stack guard is set in last bytes.
2961         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2963 2012-03-05  Kees Cook  <keescook@chromium.org>
2965         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2967         [BZ #13656]
2968         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2969         possibly allocate from heap instead of stack.
2970         * stdio-common/bug-vfprintf-nargs.c: New file.
2971         * stdio-common/Makefile (tests): Add nargs overflow test.
2973 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2975         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2977 2012-03-03  Marek Polacek  <polacek@redhat.com>
2979         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2980         * math/math_private.h: Likewise.
2981         * stdlib/tst-strtod.c: Likewise.
2982         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2983         * sysdeps/x86_64/bits/atomic.h: Likewise.
2985 2012-03-02  David S. Miller  <davem@davemloft.net>
2987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2991         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2992         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2993         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2994         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2996 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2998         [BZ #13792]
2999         * manual/examples/README: New file, says the example source files
3000         can be used under GPL>=2.
3001         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
3002         line containing just "*/".
3003         * manual/examples/add.c: Add copyright header (GPL>=2).
3004         * manual/examples/argp-ex1.c: Likewise.
3005         * manual/examples/argp-ex2.c: Likewise.
3006         * manual/examples/argp-ex3.c: Likewise.
3007         * manual/examples/argp-ex4.c: Likewise.
3008         * manual/examples/atexit.c: Likewise.
3009         * manual/examples/db.c: Likewise.
3010         * manual/examples/dir.c: Likewise.
3011         * manual/examples/dir2.c: Likewise.
3012         * manual/examples/execinfo.c: Likewise.
3013         * manual/examples/filecli.c: Likewise.
3014         * manual/examples/filesrv.c: Likewise.
3015         * manual/examples/fmtmsgexpl.c: Likewise.
3016         * manual/examples/genpass.c: Likewise.
3017         * manual/examples/inetcli.c: Likewise.
3018         * manual/examples/inetsrv.c: Likewise.
3019         * manual/examples/isockad.c: Likewise.
3020         * manual/examples/longopt.c: Likewise.
3021         * manual/examples/memopen.c: Likewise.
3022         * manual/examples/memstrm.c: Likewise.
3023         * manual/examples/mkfsock.c: Likewise.
3024         * manual/examples/mkisock.c: Likewise.
3025         * manual/examples/mygetpass.c: Likewise.
3026         * manual/examples/pipe.c: Likewise.
3027         * manual/examples/popen.c: Likewise.
3028         * manual/examples/rprintf.c: Likewise.
3029         * manual/examples/search.c: Likewise.
3030         * manual/examples/select.c: Likewise.
3031         * manual/examples/setjmp.c: Likewise.
3032         * manual/examples/sigh1.c: Likewise.
3033         * manual/examples/sigusr.c: Likewise.
3034         * manual/examples/stpcpy.c: Likewise.
3035         * manual/examples/strdupa.c: Likewise.
3036         * manual/examples/strftim.c: Likewise.
3037         * manual/examples/strncat.c: Likewise.
3038         * manual/examples/subopt.c: Likewise.
3039         * manual/examples/swapcontext.c: Likewise.
3040         * manual/examples/termios.c: Likewise.
3041         * manual/examples/testopt.c: Likewise.
3042         * manual/examples/testpass.c: Likewise.
3043         * manual/examples/timeval_subtract.c: Likewise.
3045         [BZ #13792]
3046         * manual/time.texi (Elapsed Time): Move timeval_subtract example
3047         function to ...
3048         * manual/timeval_subtract.c.texi: ... here, new file.
3050 2012-03-02  David S. Miller  <davem@davemloft.net>
3052         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
3054 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
3056         [BZ #3976]
3057         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
3058         (__sin): Save and restore rounding mode and use round-to-nearest
3059         for all computations.
3060         (__cos): Save and restore rounding mode and use round-to-nearest
3061         for all computations.
3062         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
3063         <fenv.h>.
3064         (tan): Save and restore rounding mode and use round-to-nearest for
3065         all computations.
3066         * math/libm-test.inc (cos_test_tonearest): New function.
3067         (cos_test_towardzero): Likewise.
3068         (cos_test_downward): Likewise.
3069         (cos_test_upward): Likewise.
3070         (sin_test_tonearest): Likewise.
3071         (sin_test_towardzero): Likewise.
3072         (sin_test_downward): Likewise.
3073         (sin_test_upward): Likewise.
3074         (tan_test_tonearest): Likewise.
3075         (tan_test_towardzero): Likewise.
3076         (tan_test_downward): Likewise.
3077         (tan_test_upward): Likewise.
3078         (main): Call the new functions.
3079         * sysdeps/i386/fpu/libm-test-ulps: Update.
3080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3082         [BZ #10135]
3083         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
3084         small n, then large n, before computing and testing k+n.
3085         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3086         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3087         Likewise.
3088         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3089         Likewise.
3090         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
3091         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3092         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3093         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3094         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3095         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3096         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3097         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
3098         * math/libm-test.inc (scalbn_test): Add more tests.
3099         (scalbln_test): Likewise.
3101         * manual/filesys.texi (mode_t): Describe constraints on size and
3102         signedness, not exact equivalence to a particular type.
3103         (ino_t): Likewise.
3104         (ino64_t): Likewise.
3105         (dev_t): Likewise.
3106         (nlink_t): Likewise.
3107         (blkcnt_t): Likewise.
3108         (blkcnt64_t): Likewise.
3109         * manual/llio.texi (off_t): Likewise.
3111         [BZ #3976]
3112         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
3113         (__ieee754_exp): Save and restore rounding mode and use
3114         round-to-nearest for all computations.
3115         * math/libm-test.inc (exp_test_tonearest): New function.
3116         (exp_test_towardzero): Likewise.
3117         (exp_test_downward): Likewise.
3118         (exp_test_upward): Likewise.
3119         (main): Call the new functions.
3120         * sysdeps/i386/fpu/libm-test-ulps: Update.
3121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3123 2012-03-01  Chris Demetriou  <cgd@google.com>
3125         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
3126         have predictable order.
3128 2012-03-01  David S. Miller  <davem@davemloft.net>
3130         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
3132         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
3133         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
3134         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
3135         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
3137         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
3138         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
3139         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
3140         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
3141         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
3142         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
3143         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
3144         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
3145         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
3147         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3149         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
3150         * sysdeps/sparc/fpu/libm-test-ulps: to here.
3151         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
3153         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
3154         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3155         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3156         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
3157         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
3158         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
3159         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
3160         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3161         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3162         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
3163         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
3164         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3165         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3166         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3167         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3168         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3169         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
3170         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
3171         * sysdeps/sparc/elf/configure: Regenerated.
3173 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
3175         * configure.in (AS, LD): Require binutils 2.20 or later.
3176         * configure: Regenerated.
3177         * manual/install.texi (Tools for Compilation): Give binutils 2.20
3178         as required minimum version.
3179         * INSTALL: Regenerated.
3181         [BZ #2541]
3182         [BZ #4108]
3183         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
3184         before squaring exponent.
3185         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
3186         bottom long double and 27 bits of top long double before squaring
3187         exponent.
3188         * math/libm-test.inc (erfc_test): Add more tests.
3189         * sysdeps/i386/fpu/libm-test-ulps: Update.
3190         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3191         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3193 2012-03-01  Kai Tietz  <ktietz@redhat.com>
3195         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
3196         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
3197         containing bit-fields.
3198         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3199         * soft-fp/single.h (_FP_UNION_S): Likewise.
3200         * soft-fp/double.h (_FP_UNION_D): Likewise.
3202 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3204         [BZ #13786]
3205         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
3206         not include ../strcmp.S.
3207         [USE_AS_STRNCASECMP_L]: Likewise.
3208         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
3209         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
3210         * sysdeps/i386/i686/multiarch/strncase_l-c.c
3211         (__strncasecmp_l_ia32): Define as alias to
3212         __strncasecmp_l_nonascii.
3214         [BZ #5794]
3215         * math/libm-test.inc (expm1_test): Add test for bug 5794.
3216         * sysdeps/i386/fpu/libm-test-ulps: Update.
3217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3219         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
3220         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3222 2012-02-29  Jeff Law  <law@redhat.com>
3224         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
3225         out of bounds read.
3227 2012-02-29  Marek Polacek  <polacek@redhat.com>
3229         [BZ #13706]
3230         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
3231         * elf/Makefile: Add rules to run tst-unused-dep.out.
3233 2012-02-28  David S. Miller  <davem@davemloft.net>
3235         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
3236         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
3237         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
3238         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
3239         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
3240         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
3242 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3244         * math/libm-test.inc (llround_test): Move one test from
3245         lround_test.  Use TEST_f_L in moved test.
3246         (lround_test): Move misplaced test to llround_test.  Add testcase
3247         from bug 2561.
3249 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
3251         * sysdeps/x86_64/fpu/e_expf.S: New file.
3252         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
3254 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
3256         [BZ #13637]
3257         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
3258         of remain_len that may cause incomplete multi-byte character and
3259         false match.
3260         * posix/bug-regex33.c: New file.
3261         * posix/Makefile (tests): Add bug-regex33.
3263 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
3265         * manual/macros.texi: New file.
3266         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
3267         * manual/libc.texinfo: Include macros.texi.
3268         * manual/creatute.texi: Likewise.
3269         * manual/install.texi: Likewise.
3270         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
3271         @glibcadj{} in references to the GNU C Library.
3272         * manual/charset.texi: Likewise.
3273         * manual/conf.texi: Likewise.
3274         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
3275         when not using those macros.
3276         * manual/creature.texi: Likewise.
3277         * manual/crypt.texi: Likewise.
3278         * manual/errno.texi: Likewise.
3279         * manual/filesys.texi: Likewise.
3280         * manual/header.texi: Likewise.
3281         * manual/install.texi: Likewise.
3282         * manual/intro.texi: Likewise.
3283         * manual/io.texi: Likewise.
3284         * manual/job.texi: Likewise.
3285         * manual/lang.texi: Likewise.
3286         * manual/libc.texiinfo: Likewise.
3287         * manual/llio.texi: Likewise.
3288         * manual/locale.texi: Likewise.
3289         * manual/maint.texi: Likewise.
3290         * manual/math.texi: Likewise.
3291         * manual/memory.texi: Likewise.
3292         * manual/message.texi: Likewise.
3293         * manual/nss.texi: Likewise.
3294         * manual/pattern.texi: Likewise.
3295         * manual/process.texi: Likewise.
3296         * manual/resource.texi: Likewise.
3297         * manual/search.texi: Likewise.
3298         * manual/setjmp.texi: Likewise.
3299         * manual/signal.texi: Likewise.
3300         * manual/socket.texi: Likewise.
3301         * manual/startup.texi: Likewise.
3302         * manual/stdio.texi: Likewise.
3303         * manual/string.texi: Likewise.
3304         * manual/sysinfo.texi: Likewise.
3305         * manual/syslog.texi: Likewise.
3306         * manual/terminal.texi: Likewise.
3307         * manual/time.texi: Likewise.
3308         * manual/users.texi: Likewise.
3309         * INSTALL: Regenerated.
3310         * NOTES: Regenerated.
3311         * sysdeps/gnu/errlist.c: Regenerated.
3313 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3315         * include/dirent.h: Include <dirstream.h> before
3316         <dirent/dirent.h>.
3318 2012-02-28  David S. Miller  <davem@davemloft.net>
3320         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3321         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3322         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3323         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3325 2012-02-27  David S. Miller  <davem@davemloft.net>
3327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3329         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3330         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3333         frame pointer instead of stack pointer relative arg slot.
3334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3335         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3336         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3338 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3340         [BZ #3992]
3341         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3343 2012-02-27  David S. Miller  <davem@davemloft.net>
3345         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3346         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3347         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3349         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3350         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3351         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3352         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3354 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3356         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3357         later.  Allow versions 5-9.
3358         * configure: Regenerated.
3359         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3360         required minimum version and 4.6 as recommended version.  Do not
3361         mention bugs in GCC 2.7 and 2.8.
3362         * INSTALL: Regenerated.
3364 2012-02-27  David S. Miller  <davem@davemloft.net>
3366         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3367         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3368         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3369         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3370         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3371         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3372         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3373         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3375         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3376         manipulate bits before adding and subtracting TWO112[sx].
3377         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3379 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3381         [BZ #13775]
3382         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3383         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3384         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3385         being in POSIX, because they are in 1003.1-2008.
3387         * rt/tst-aio.c: Include <fcntl.h>.
3388         * rt/tst-aio7.c: Likewise.
3389         * rt/tst-aio64.c: Likewise.
3391         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3393 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3395         * manual/install.texi (--with-headers): Describe headers as
3396         interface headers, not private headers.
3397         (Specific advice for GNU/Linux systems): Describe use of headers
3398         from "make headers_install", not private headers from older
3399         kernels.
3400         * INSTALL: Regenerated.
3401         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3402         Change to 2.6.19.
3403         * sysdeps/unix/sysv/linux/configure: Regenerated.
3405         * manual/llio.texi (fclean): Remove documentation.
3407         * manual/Makefile (libc-texi-generated): New variable.  Include
3408         version.texi.
3409         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3410         $(libc-texi-generated), not duplicated list of files.
3411         (version.texi, stamp-version): New rules.
3412         (realclean): Remove $(libc-texi-generated), not individual files
3413         from that list.  Do not remove dir-add.texinfo.
3414         * manual/libc.texinfo: Comment out uses of edition numbers and
3415         references to printed manual.  Remove last-updated dates.
3416         (EDITION): Comment out.
3417         (ISBN): Likewise.
3418         (VERSION, UPDATED): Remove.
3419         (version.texi): Include.
3421 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3423         * sysdeps/posix/spawni.c: Include <signal.h>.
3424         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3425         * sysdeps/pthread/aio_fsync.c: Likewise.
3427 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3429         * conform/Makefile (tests): Run only when not cross-compiling and
3430         when fast-check is not defined.
3432         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3433         * conform/data/limits.h-data: Fixes for POSIX2008.
3434         * conform/run-conformtest.sh: Run all tests.
3435         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3436         headers.
3437         * include/bits/dlfcn.h: Likewise.
3438         * include/langinfo.h: Likewise.
3439         * include/monetary.h: Likewise.
3440         * include/sys/poll.h: Likewise.
3442         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3443         for __USE_GNU.
3444         * posix/spawn.h: Define __need_sigset_t.
3445         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3446         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3447         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3448         to get sigevent_t only.
3449         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3450         only for __USE_GNU.
3451         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3452         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3453         process_vm_writev only for __USE_GNU.
3454         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3456         * conform/Makefile: For now ignore errors from run-conformtest.
3457         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3458         POSIX to avoid namespace pollution.  Don't prepend headers.
3459         * conform/data/aio.h-data: Fixes for POSIX testing.
3460         * conform/data/fcntl.h-data: Likewise.
3461         * conform/data/glob.h-data: Likewise.
3462         * conform/data/grp.h-data: Likewise.
3463         * conform/data/pthread.h-data: Likewise.
3464         * conform/data/pwd.h-data: Likewise.
3465         * conform/data/signal.h-data: Likewise.
3466         * conform/data/spawn.h-data: Likewise.
3467         * conform/data/stdio.h-data: Likewise.
3468         * conform/data/stdlib.h-data: Likewise.
3469         * conform/data/stropts.h-data: Likewise.
3470         * conform/data/sys/mman.h-data: Likewise.
3471         * conform/data/sys/stat.h-data: Likewise.
3472         * conform/data/sys/types.h-data: Likewise.
3473         * conform/data/sys/wait.h-data: Likewise.
3474         * conform/data/time.h-data: Likewise.
3475         * conform/data/unistd.h-data: Likewise.
3476         * conform/data/utime.h-data: Likewise.
3478         * io/sys/stat.h: fchmod was always in POSIX.
3479         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3480         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3481         * rt/aio.h: Define __need_timespec before including <time.h>.
3482         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3483         struct.  Add forward declaration of pthread_attr_t and use it in
3484         sigevent.
3485         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3486         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3487         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3488         always remove CLK_TCK definition.
3490 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3492         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3494 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3496         * conform/run-conformtest.sh: New file.
3497         * conform/Makefile: Run run-conformtest for tests.
3498         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3499         support.
3501         * conform/data/uchar.h-data: New file.
3502         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3503         * conform/data/arpa/inet.h-data: Likewise.
3504         * conform/data/assert.h-data: Likewise.
3505         * conform/data/complex.h-data: Likewise.
3506         * conform/data/cpio.h-data: Likewise.
3507         * conform/data/ctype.h-data: Likewise.
3508         * conform/data/dirent.h-data: Likewise.
3509         * conform/data/dlfcn.h-data: Likewise.
3510         * conform/data/errno.h-data: Likewise.
3511         * conform/data/fcntl.h-data: Likewise.
3512         * conform/data/float.h-data: Likewise.
3513         * conform/data/fmtmsg.h-data: Likewise.
3514         * conform/data/fnmatch.h-data: Likewise.
3515         * conform/data/ftw.h-data: Likewise.
3516         * conform/data/glob.h-data: Likewise.
3517         * conform/data/grp.h-data: Likewise.
3518         * conform/data/iconv.h-data: Likewise.
3519         * conform/data/inttypes.h-data: Likewise.
3520         * conform/data/langinfo.h-data: Likewise.
3521         * conform/data/libgen.h-data: Likewise.
3522         * conform/data/limits.h-data: Likewise.
3523         * conform/data/locale.h-data: Likewise.
3524         * conform/data/math.h-data: Likewise.
3525         * conform/data/monetary.h-data: Likewise.
3526         * conform/data/mqueue.h-data: Likewise.
3527         * conform/data/ndbm.h-data: Likewise.
3528         * conform/data/net/if.h-data: Likewise.
3529         * conform/data/netdb.h-data: Likewise.
3530         * conform/data/netinet/in.h-data: Likewise.
3531         * conform/data/nl_types.h-data: Likewise.
3532         * conform/data/poll.h-data: Likewise.
3533         * conform/data/pthread.h-data: Likewise.
3534         * conform/data/pwd.h-data: Likewise.
3535         * conform/data/regex.h-data: Likewise.
3536         * conform/data/sched.h-data: Likewise.
3537         * conform/data/search.h-data: Likewise.
3538         * conform/data/semaphore.h-data: Likewise.
3539         * conform/data/setjmp.h-data: Likewise.
3540         * conform/data/signal.h-data: Likewise.
3541         * conform/data/spawn.h-data: Likewise.
3542         * conform/data/stdarg.h-data: Likewise.
3543         * conform/data/stdio.h-data: Likewise.
3544         * conform/data/stdlib.h-data: Likewise.
3545         * conform/data/string.h-data: Likewise.
3546         * conform/data/strings.h-data: Likewise.
3547         * conform/data/stropts.h-data: Likewise.
3548         * conform/data/sys/ipc.h-data: Likewise.
3549         * conform/data/sys/mman.h-data: Likewise.
3550         * conform/data/sys/msg.h-data: Likewise.
3551         * conform/data/sys/resource.h-data: Likewise.
3552         * conform/data/sys/select.h-data: Likewise.
3553         * conform/data/sys/sem.h-data: Likewise.
3554         * conform/data/sys/shm.h-data: Likewise.
3555         * conform/data/sys/socket.h-data: Likewise.
3556         * conform/data/sys/stat.h-data: Likewise.
3557         * conform/data/sys/statvfs.h-data: Likewise.
3558         * conform/data/sys/time.h-data: Likewise.
3559         * conform/data/sys/timeb.h-data: Likewise.
3560         * conform/data/sys/times.h-data: Likewise.
3561         * conform/data/sys/types.h-data: Likewise.
3562         * conform/data/sys/uio.h-data: Likewise.
3563         * conform/data/sys/un.h-data: Likewise.
3564         * conform/data/sys/utsname.h-data: Likewise.
3565         * conform/data/sys/wait.h-data: Likewise.
3566         * conform/data/syslog.h-data: Likewise.
3567         * conform/data/tar.h-data: Likewise.
3568         * conform/data/termios.h-data: Likewise.
3569         * conform/data/utime.h-data: Likewise.
3570         * conform/data/utmpx.h-data: Likewise.
3571         * conform/data/varargs.h-data: Likewise.
3572         * conform/data/wchar.h-data: Likewise.
3573         * conform/data/wctype.h-data: Likewise.
3574         * conform/data/wordexp.h-data: Likewise.
3576         * include/stropts.h: New file.
3577         * include/uchar.h: New file.
3578         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3579         * include/assert.h: Likewise.
3580         * include/ctype.h: Likewise.
3581         * include/dirent.h: Likewise.
3582         * include/dlfcn.h: Likewise.
3583         * include/fcntl.h: Likewise.
3584         * include/fnmatch.h: Likewise.
3585         * include/glob.h: Likewise.
3586         * include/grp.h: Likewise.
3587         * include/libio.h: Likewise.
3588         * include/locale.h: Likewise.
3589         * include/math.h: Likewise.
3590         * include/net/if.h: Likewise.
3591         * include/netdb.h: Likewise.
3592         * include/netinet/in.h: Likewise.
3593         * include/pthread.h: Likewise.
3594         * include/pwd.h: Likewise.
3595         * include/regex.h: Likewise.
3596         * include/sched.h: Likewise.
3597         * include/search.h: Likewise.
3598         * include/setjmp.h: Likewise.
3599         * include/signal.h: Likewise.
3600         * include/stdio.h: Likewise.
3601         * include/stdlib.h: Likewise.
3602         * include/string.h: Likewise.
3603         * include/sys/cdefs.h: Likewise.
3604         * include/sys/mman.h: Likewise.
3605         * include/sys/msg.h: Likewise.
3606         * include/sys/resource.h: Likewise.
3607         * include/sys/select.h: Likewise.
3608         * include/sys/socket.h: Likewise.
3609         * include/sys/stat.h: Likewise.
3610         * include/sys/statvfs.h: Likewise.
3611         * include/sys/time.h: Likewise.
3612         * include/sys/times.h: Likewise.
3613         * include/sys/uio.h: Likewise.
3614         * include/sys/utsname.h: Likewise.
3615         * include/sys/wait.h: Likewise.
3616         * include/termios.h: Likewise.
3617         * include/time.h: Likewise.
3618         * include/ulimit.h: Likewise.
3619         * include/unistd.h: Likewise.
3620         * include/utime.h: Likewise.
3621         * include/wchar.h: Likewise.
3622         * include/wctype.h: Likewise.
3623         * include/wordexp.h: Likewise.
3625         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3627         * time/time.h: TIME_UTC must be a macro.
3628         Make timespec_get available for ISO C11 only as well.
3630 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3632         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3633         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3635 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3637         * configure.in: Use -o not -a in test for unsupported multi-arch.
3639 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3641         * manual/texinfo.tex: Update to version 2012-01-19.16.
3643 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3645         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3647 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3649         [BZ #13738]
3650         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3651         * manual/fdl-1.3.texi: New file.
3652         * manual/fdl-1.1.texi: File removed.
3654         [BZ #13738]
3655         * manual/libc.texinfo (FDL_VERSION): New @set.
3656         Use it for mention of FDL in cover text.
3657         (Documentation License): Use it in @include file name.
3659 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3660             Roland McGrath  <roland@hack.frob.com>
3662         [BZ #5461]
3663         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3664         not LONG_LONG_MAX and LONG_LONG_MIN.
3665         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3666         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3667         name.
3668         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3670 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3672         [BZ #2547]
3673         [BZ #11365]
3674         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3675         manipulate bits before adding and subtracting TWO23[sx].
3676         * math/libm-test.inc (nearbyint_test): Add more tests.
3678 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3680         [BZ #2548]
3681         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3682         bits before adding and subtracting TWO23[sx].
3683         * math/libm-test.inc (rint_test): Add more tests.
3684         (rint_test_tonearest): Likewise.
3685         (rint_test_towardzero): Likewise.
3686         (rint_test_downward): Likewise.
3687         (rint_test_upward: Likewise.
3689 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3691         [BZ #10110]
3692         * include/stdc-predef.h: New file.  Extracted from features.h.
3693         * include/features.h: Include stdc-predef.h.
3694         * Makefile (headers): Add stdc-predef.h.
3695         * CONFORMANCE (Compiler limitations): Update.
3697 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3699         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3701 2012-02-21  David S. Miller  <davem@davemloft.net>
3703         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3704         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3706 2012-02-20  David S. Miller  <davem@davemloft.net>
3708         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3709         using a normal save/restore sequence, rather than allocating a
3710         dummy stack frame just to store a frame pointer and restore.
3711         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3713 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3715         * manual/install.texi: Fix stray word in line-wrapped comment.
3717 2012-02-20  David S. Miller  <davem@davemloft.net>
3719         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3720         both binutils and gcc support GOTDATA.
3722         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3723         "rd %pc" in the PIC register setup sequences.
3725         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3726         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3727         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3728         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3729         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3730         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3731         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3732         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3733         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3734         (SYSCALL_ERROR_HANDLER): Likewise.
3735         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3736         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3737         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3738         (SYSCALL_ERROR_HANDLER): Likewise.
3740         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3741         (HAVE_GCC_GOTDATA): New.
3742         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3743         relocation support in both binutils and gcc.
3744         * sysdeps/sparc/elf/configure: Regenerate.
3746         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3747         * sysdeps/sparc/sparc32/elf/configure: Delete.
3748         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3749         * sysdeps/sparc/sparc64/elf/configure: Delete.
3750         * sysdeps/sparc/elf/configure.in: New file.
3751         * sysdeps/sparc/elf/configure: Generate.
3753         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3754         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3755         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3756         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3757         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3759 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3761         * manual/install.texi: Do not mention specific glibc version
3762         numbers.
3763         * manual/libc.texinfo (VERSION, UPDATED): Update.
3764         (@copying): Use @copyright{} and range of years.
3766 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3768         [BZ #13695]
3769         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3770         [crti.S not in sysdirs] (generated): Do not append.
3771         [crti.S not in sysdirs] (omit-deps): Likewise.
3772         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3773         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3774         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3775         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3776         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3777         Likewise.
3778         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3779         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3780         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3781         * csu/defs.awk: Remove file.
3782         * sysdeps/generic/initfini.c: Likewise.
3783         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3784         variable.
3785         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3786         Likewise.
3788 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3790         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3791         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3792         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3793         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3794         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3795         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3796         <bits/epoll.h>.
3797         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3798         (__EPOLL_PACKED): Define to empty if not defined by
3799         <bits/epoll.h>.
3800         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3801         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3802         bits/epoll.h.
3804 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3806         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3807         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3808         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3809         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3810         <bits/timerfd.h>.
3811         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3812         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3813         bits/timerfd.h.
3815 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3817         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3818         in C locale.
3819         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3820         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3821         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3824 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3826         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3827         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3829 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3831         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3832         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3833         defined.
3834         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3835         Likewise.
3836         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3837         entry for 2.16.
3839 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3841         * math/w_acos.c: Use non-signaling floating-point comparisons.
3842         * math/w_acosf.c: Likewise.
3843         * math/w_acosh.c: Likewise.
3844         * math/w_acoshf.c: Likewise.
3845         * math/w_acoshl.c: Likewise.
3846         * math/w_acosl.c: Likewise.
3847         * math/w_asin.c: Likewise.
3848         * math/w_asinf.c: Likewise.
3849         * math/w_asinl.c: Likewise.
3850         * math/w_atanh.c: Likewise.
3851         * math/w_atanhf.c: Likewise.
3852         * math/w_atanhl.c: Likewise.
3853         * math/w_exp2.c: Likewise.
3854         * math/w_exp2f.c: Likewise.
3855         * math/w_exp2l.c: Likewise.
3856         * math/w_j0.c: Likewise.
3857         * math/w_j0f.c: Likewise.
3858         * math/w_j0l.c: Likewise.
3859         * math/w_j1.c: Likewise.
3860         * math/w_j1f.c: Likewise.
3861         * math/w_j1l.c: Likewise.
3862         * math/w_jn.c: Likewise.
3863         * math/w_jnf.c: Likewise.
3864         * math/w_log.c: Likewise.
3865         * math/w_log10.c: Likewise.
3866         * math/w_log10f.c: Likewise.
3867         * math/w_log10l.c: Likewise.
3868         * math/w_log2.c: Likewise.
3869         * math/w_log2f.c: Likewise.
3870         * math/w_log2l.c: Likewise.
3871         * math/w_logf.c: Likewise.
3872         * math/w_logl.c: Likewise.
3873         * math/w_sqrt.c: Likewise.
3874         * math/w_sqrtf.c: Likewise.
3875         * math/w_sqrtl.c: Likewise.
3876         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3877         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3878         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3879         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3880         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3882 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3884         [BZ #9739]
3885         * manual/string.texi (strnlen): Use correct parameter name in
3886         equivalent expression.
3888 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3890         [BZ #11174]
3891         * manual/users.texi (seteuid): Consistently use neweuid for
3892         argument name.
3894 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3896         [BZ #13704]
3897         * manual/nss.texi (Services in the NSS configuration): Correct
3898         list of services in example configuration file.
3900 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3902         [BZ #11322]
3903         * manual/arith.texi: Remove statements about negative zero
3904         behaving identically to zero.
3906 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3908         [BZ #5993]
3909         * manual/install.texi: Do not document upgrading from libc5.
3911 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3913         [BZ #4596]
3914         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3916 2012-02-18  David S. Miller  <davem@davemloft.net>
3918         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3919         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3920         %o7 across the call.
3921         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3922         instead.
3923         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3924         SETUP_PIC_REG_LEAF.
3925         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3926         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3927         * sysdeps/sparc/crtn.S: Likewise.
3929 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3931         * aout/Makefile: Remove.
3933 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3935         [BZ #13058]
3936         * manual/examples/argp-ex1.c (main): Format definition in GNU
3937         style.
3938         * manual/examples/argp-ex2.c (main): Likewise.
3939         * manual/examples/argp-ex3.c (main): Likewise.
3940         * manual/examples/argp-ex4.c (main): Likewise.
3941         * manual/examples/longopt.c (main): Use new-style prototype
3942         definition.
3943         * manual/examples/strncat.c (main): Specify return type and use
3944         (void) for arguments.
3945         * manual/examples/subopt.c (main): Use char **argv argument.
3947 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3949         [BZ #5077]
3950         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3951         rounding modes.
3953 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3955         [BZ #6907]
3956         * manual/string.texi (strchr): Change when strchrnul is
3957         recommended.
3959 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3961         [BZ #174]
3962         * manual/locale.texi (setlocale): Document LOCPATH.
3964 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3966         [BZ #10210]
3967         * manual/process.texi (execle): Move @dots{} before last argument.
3969 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3971         [BZ #12047]
3972         * manual/charset.texi (Generic Charset Conversion): Fix typo
3973         (LC_TYPE -> LC_CTYPE).
3975 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3977         [BZ #5805]
3978         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3979         (scalbnf): Likewise.
3980         (scalbnl): Likewise.
3981         (scalbln): Likewise.
3982         (scalblnf): Likewise.
3983         (scalblnl): Likewise.
3984         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3985         (vwarnx): Likewise.
3986         (verr): Likewise.
3987         (verrx): Likewise.
3988         * manual/filesys.texi (telldir): Use braces around return type.
3989         * manual/llio.texi (mmap): Add space after comma.
3990         (mmap64): Likewise.
3991         * manual/math.texi (jn): Use @var{} on parameter names.
3992         (jnf): Likewise.
3993         (jnl): Likewise.
3994         (yn): Likewise.
3995         (ynf): Likewise.
3996         (ynl): Likewise.
3997         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3998         line.
3999         * manual/resource.texi (ulimit): Use @dots{} instead of literal
4000         "...".
4001         (sched_get_priority_min): Remove semicolon on @deftypefun line.
4002         (sched_get_priority_max): Likewise.
4003         * manual/signal.texi (sigvec): Add space after comma.
4004         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
4005         names.
4006         (if_indextoname): Likewise.
4007         (if_freenameindex): Likewise.
4008         (sendto): Use ',' instead of '.' in prototype.
4009         * manual/startup.texi (syscall): Use @dots{} instead of literal
4010         "...".
4011         * manual/stdio.texi (__fpending): Separate initial words of
4012         paragraph from @deftypefun line.
4013         * manual/syslog.texi (syslog): Use @dots{} instead of literal
4014         "...".
4015         (vsyslog): Use @var{} on parameter names.
4016         * manual/terminal.texi (stty): Use @var{} on parameter names.
4017         * manual/users.texi (getutmp): Use @var{} on parameter names.
4018         (getutmpx): Likewise.
4020 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4022         [BZ #6884]
4023         * manual/stdio.texi (fopen): Fix typos in description of
4024         ",ccs=STRING".
4026 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
4028         [BZ #4026]
4029         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
4030         get clock_id definition.
4032 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
4034         [BZ #4822]
4035         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
4036         (madvise): Cast every argument to void on its own.
4038 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4040         [BZ #9902]
4041         * manual/startup.texi (Exit Status): Fix typo.
4043 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4045         [BZ #10140]
4046         * manual/examples/argp-ex1.c: Include <stdlib.h>.
4047         * manual/examples/argp-ex2.c: Likewise.
4048         * manual/examples/argp-ex3.c: Likewise.
4050 2012-02-16  Richard Henderson  <rth@redhat.com>
4052         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
4053         * sysdeps/s390/s390-32/initfini.c: Remove.
4054         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
4055         * sysdeps/s390/s390-64/initfini.c: Remove.
4057 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4059         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
4060         compiler output for sysdeps/generic/initfini.c.
4061         * sysdeps/sh/elf/initfini.c: Remove file.
4063 2012-02-16  David S. Miller  <davem@davemloft.net>
4065         [BZ #11494]
4066         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
4068         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
4069         * sysdeps/sparc/crti.S: New file.
4070         * sysdeps/sparc/crtn.S: New file.
4071         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
4072         * sysdeps/sparc/sparc64/Makefile: Likewise.
4074 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
4076         [BZ #3335]
4077         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
4079 2012-02-15  Roland McGrath  <roland@hack.frob.com>
4081         [BZ #4822]
4082         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
4084         * mach/devstream.c (cookie_io_functions_t): Macro removed.
4085         (write, read, close): Likewise.
4086         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4088 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
4090         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
4091         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
4092         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
4093         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
4094         <bits/signalfd.h>.
4095         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
4096         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4097         bits/signalfd.h.
4099 2012-02-14  Marek Polacek  <polacek@redhat.com>
4101         * sysdeps/x86_64/crti.S: New file.
4102         * sysdeps/x86_64/crtn.S: New file.
4103         * sysdeps/x86_64/elf/initfini.c: Remove file.
4105 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4107         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
4108         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
4109         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
4110         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
4111         <bits/inotify.h>.
4112         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
4113         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4114         bits/inotify.h.
4116 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4118         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
4119         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
4120         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
4121         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
4122         <bits/eventfd.h>.
4123         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
4124         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4125         bits/eventfd.h.
4127 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
4129         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
4130         __feraiseexcept instead of feraiseexcept.
4132         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
4133         nanosleep invocations.
4134         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
4135         strings, and add error checking for a nanosleep invocations.
4137 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4139         Replace FSF snail mail address with URLs, as per GNU coding standards.
4140         Most of the snail mail addresses were wrong anyway, and omitting
4141         them makes the source code easier to maintain.  Almost all of the
4142         changes are to license notices and to locale LC_IDENTIFICATION
4143         addresses, except for this one:
4144         * manual/libc.texinfo: In "Published by", give the FSF's URL,
4145         not its snail mail address.
4147 2012-02-09  Richard Henderson  <rth@twiddle.net>
4149         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
4150         of kernel-features.h.
4152         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
4154 2012-02-08  Marek Polacek  <polacek@redhat.com>
4156         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
4157         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
4158         * sysdeps/gnu/_G_config.h: Likewise.
4159         * sysdeps/generic/_G_config.h: Likewise.
4161 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
4163         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
4164         tests.
4165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4167         * sysdeps/powerpc/powerpc32/crti.S: New file.
4168         * sysdeps/powerpc/powerpc32/crtn.S: New file.
4169         * sysdeps/powerpc/powerpc64/crti.S: New file.
4170         * sysdeps/powerpc/powerpc64/crtn.S: New file.
4172         * Makeconfig (have-initfini): Don't set.
4173         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
4174         * configure.in (nopic_initfini): Don't substitute.
4175         * config.h.in (HAVE_INITFINI): Don't #undef.
4176         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
4177         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
4179 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
4181         Support crti.S and crtn.S provided directly by architectures.
4182         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
4183         [crti.S in sysdirs] (omit-deps): Likewise.
4184         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
4185         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
4186         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
4187         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
4188         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
4189         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
4190         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
4191         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
4192         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
4193         compiler output for sysdeps/generic/initfini.c.
4194         * sysdeps/i386/elf/Makefile: Remove file.
4195         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
4197 2012-02-07  Marek Polacek  <polacek@redhat.com>
4199         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
4200         * sysdeps/gnu/_G_config.h: Likewise.
4201         * sysdeps/mach/hurd/_G_config.h: Likewise.
4203 2012-02-07  Marek Polacek  <polacek@redhat.com>
4205         * math/Makefile (tests): Add tst-CMPLX2.
4206         * math/tst-CMPLX2.c: New file.
4208 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
4210         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4212         * math/libm-test.inc (jn_test): Add missing L suffix.
4214 2012-02-06  Marek Polacek  <polacek@redhat.com>
4216         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
4217         * sysdeps/i386/fpu/e_powf.S: Likewise.
4218         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4219         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4220         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4221         * sysdeps/i386/fpu/e_pow.S: Likewise.
4222         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4223         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4224         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4225         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4226         * sysdeps/i386/fpu/e_log2.S: Likewise.
4227         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4228         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4229         * sysdeps/i386/fpu/e_powl.S: Likewise.
4230         * sysdeps/i386/fpu/s_log1p.S: Likewise.
4231         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4232         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4233         * sysdeps/i386/fpu/e_logl.S: Likewise.
4234         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4235         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
4236         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4237         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4238         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4239         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4240         * sysdeps/i386/fpu/e_log.S: Likewise.
4241         * sysdeps/i386/fpu/s_cexp.S: Likewise.
4242         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4243         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
4244         * sysdeps/i386/fpu/e_logf.S: Likewise.
4245         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4246         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4247         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
4248         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4249         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4250         * sysdeps/i386/fpu/e_log10.S: Likewise.
4251         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4252         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4253         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4254         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4255         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4256         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4257         * sysdeps/i386/asm-syntax.h: Likewise.
4258         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4259         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4260         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4261         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4262         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
4263         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4264         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4265         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4266         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4267         * sysdeps/powerpc/sysdep.h: Likewise.
4268         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4269         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4271 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4273         [BZ #411]
4274         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
4276 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4278         * sysdeps/i386/sysdep.h: Include <features.h>.
4279         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4280         version.
4282 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4284         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4285         Define.
4286         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4287         LOAD_PIC_REG_STR.
4289 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4291         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4292         (SETUP_PIC_REG): Use GET_PC_THUNK.
4293         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4294         macro.
4296 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4298         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4299         for non-PIC compilation.
4300         (SETUP_PIC_REG): Add .p2align directive.
4301         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4302         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4303         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4304         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4305         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4306         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4307         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4308         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4309         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4310         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4311         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4312         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4313         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4314         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4315         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4316         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4317         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4318         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4319         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4320         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4321         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4322         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4323         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4324         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4325         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4326         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4327         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4328         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4329         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4330         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4331         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4332         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4333         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4334         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4335         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4336         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4337         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4338         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4339         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4340         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4341         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4343 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4345         * math/tst-CMPLX.c: Include <stdio.h>.
4347 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4349         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4350         float.
4351         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4352         * sysdeps/sparc/bits/mathdef.h: Likewise.
4354 2012-01-31  Marek Polacek  <polacek@redhat.com>
4356         * libio/libio.h: Don't define _PARAMS.
4357         * locale/programs/config.h: Don't define PARAMS.
4358         * stdlib/strtol_l.c: Likewise.
4359         (__strtol_l): Remove PARAMS from the prototype.
4361 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4363         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4364         names.  Just use the correct names.  Remove unnecessary wrapper
4365         functions.
4366         * malloc/arena.c: Likewise.
4367         * malloc/hooks.c: Likewise.
4369         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4370         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4371         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4373 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4375         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4376         into tail calls.
4377         (update_get_addr): New function.
4378         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4379         GET_ADDR_MODULE parameter.
4381 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4383         * crypt/cert.c: Remove __STDC__ conditionals.
4384         * crypt/crypt-entry.c: Likewise.
4385         * crypt/crypt_util.c: Likewise.
4386         * libio/filedoalloc.c: Likewise.
4387         * libio/fileops.c: Likewise.
4388         * libio/genops.c: Likewise.
4389         * libio/iofclose.c: Likewise.
4390         * libio/iofdopen.c: Likewise.
4391         * libio/iofopen.c: Likewise.
4392         * libio/iofopen64.c: Likewise.
4393         * libio/iogetdelim.c: Likewise.
4394         * libio/iopopen.c: Likewise.
4395         * libio/obprintf.c: Likewise.
4396         * libio/oldfileops.c: Likewise.
4397         * libio/oldiofclose.c: Likewise.
4398         * libio/oldiofdopen.c: Likewise.
4399         * libio/oldiofopen.c: Likewise.
4400         * libio/oldiopopen.c: Likewise.
4401         * libio/wfiledoalloc.c: Likewise.
4402         * libio/wgenops.c: Likewise.
4403         * locale/programs/xmalloc.c: Likewise.
4404         * misc/syslog.c: Likewise.
4405         * stdio-common/xbug.c: Likewise.
4406         * string/memchr.c: Likewise.
4407         * string/memcmp.c: Likewise.
4408         * string/memrchr.c: Likewise.
4409         * string/rawmemchr.c: Likewise.
4410         * sysdeps/posix/getcwd.c: Likewise.
4411         * time/strftime_l.c: Likewise.
4413 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4415         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4416         * config.make.in (config-cflags-sse2avx): Define.
4417         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4418         Fix typo.
4420 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4422         * scripts/config.guess: Update from upstream config git repository.
4423         * scripts/config.sub: Likewise.
4425 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4427         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4428         (EM_NUM): Update.
4429         (R_TILEPRO_*, R_TILEGX_*): New macros.
4431         * scripts/firstversions.awk: Fix bug in version range handling.
4433         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4435         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4437         * include/sys/epoll.h: New file.
4438         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4439         libc_hidden_def.
4441 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4443         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4444         Avoid unnecessary __WORDSIZE == 64 test.
4445         (fmaxf): Use VEX format if possible.
4446         (fmax): Likewise.
4447         (fminf): Likewise.
4448         (fmin): Likewise.
4450         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4451         * math/math_private.h: Remove libc_fegetround* and
4452         libc_fesetround*.
4453         * sysdeps/i386/configure.in: Check for -msse2avx.
4454         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4455         also if SSE2AVX is defined.
4456         Remove libc_fegetround* and libc_fesetround*.
4457         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4458         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4459         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4460         of HAS_YMM_USABLE.
4461         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4462         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4463         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4464         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4465         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4467         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4469 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4471         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4472         size is not set.
4473         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4475 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4477         [BZ #13618]
4478         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4479         relocation.
4480         * Makeconfig (libm): Define.
4481         * elf/Makefile: Add rules to build and run tst-relsort1.
4482         * elf/tst-relsort1.c: New file.
4483         * elf/tst-relsort1mod1.c: New file.
4484         * elf/tst-relsort1mod2.c: New file.
4486 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4488         * math/s_ldexp.c: Remove __STDC__ conditionals.
4489         * math/s_ldexpf.c: Likewise.
4490         * math/s_ldexpl.c: Likewise.
4491         * math/s_nextafter.c: Likewise.
4492         * math/s_nexttowardf.c: Likewise.
4493         * math/s_significand.c: Likewise.
4494         * math/s_significandf.c: Likewise.
4495         * math/s_significandl.c: Likewise.
4496         * math/w_jnl.c: Likewise.
4497         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4498         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4499         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4500         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4501         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4502         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4503         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4504         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4505         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4506         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4507         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4508         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4509         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4510         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4511         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4512         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4513         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4514         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4515         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4516         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4517         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4518         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4519         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4520         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4521         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4522         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4523         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4524         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4525         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4526         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4527         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4528         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4529         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4530         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4531         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4532         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4533         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4534         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4535         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4536         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4537         * sysdeps/ieee754/k_standard.c: Likewise.
4538         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4539         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4540         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4541         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4542         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4543         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4544         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4545         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4546         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4547         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4548         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4549         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4550         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4551         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4552         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4553         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4554         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4555         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4556         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4557         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4558         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4559         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4560         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4561         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4562         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4563         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4564         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4565         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4566         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4567         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4568         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4569         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4570         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4571         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4572         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4573         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4574         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4575         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4576         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4577         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4578         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4579         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4580         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4581         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4582         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4583         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4584         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4585         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4586         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4587         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4588         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4589         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4590         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4591         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4592         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4593         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4594         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4595         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4596         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4597         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4598         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4599         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4600         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4601         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4602         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4603         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4604         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4605         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4606         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4607         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4608         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4609         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4610         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4611         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4612         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4613         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4614         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4615         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4616         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4617         * sysdeps/ieee754/s_matherr.c: Likewise.
4618         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4619         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4620         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4621         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4623 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4625         * crypt/md5.h: Remove __STDC__ conditionals.
4626         * libio/libioP.h: Likewise.
4627         * locale/programs/config.h: Likewise.
4628         * sysdeps/generic/sysdep.h: Likewise.
4629         * sysdeps/i386/asm-syntax.h: Likewise.
4630         * sysdeps/s390/asm-syntax.h: Likewise.
4631         * sysdeps/unix/sysdep.h: Likewise.
4632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4635 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4637         * libio/libio.h: Remove __STDC__ conditionals.
4638         * malloc/obstack.h: Likewise.
4639         * math/complex.h: Likewise.
4640         * math/math.h: Likewise.
4641         * sysdeps/generic/_G_config.h: Likewise.
4642         * sysdeps/gnu/_G_config.h: Likewise.
4643         * sysdeps/mach/hurd/_G_config.h: Likewise.
4644         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4645         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4646         * sysdeps/sparc/bits/mathdef.h: Likewise.
4648 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4650         [BZ #13583]
4651         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4652         Clean up HAS_* macros.
4653         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4654         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4655         possible.
4656         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4657         HAS_AVX.
4658         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4659         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4660         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4661         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4662         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4664 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4666         * elf/tst-unique3.cc (gets): Remove declaration.
4667         * elf/tst-unique3lib.cc (gets): Likewise.
4668         * elf/tst-unique3lib2.cc (gets): Likewise.
4669         * elf/tst-unique4.cc (gets): Likewise.
4671 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4673         * include/stdio.h: Add C++ protection.  Add gets declarations and
4674         definitions.
4675         * debug/tst-chk1.c: Don't declare gets here.
4676         * stdio-common/tst-gets.c: Likewise.
4678 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4680         * posix/glob: Remove directory.
4682 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4684         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4686 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4688         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4689         of the non-standard EPFNOSUPPORT.
4691 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4693         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4694         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4695         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4697 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4699         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4701 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4703         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4704         transient errors.
4705         * nscd/grpcache.c (cache_addgr): Likewise.
4706         * nscd/hstcache.c (cache_addhst): Likewise.
4707         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4708         * nscd/pwdcache.c (cache_addpw): Likewise.
4709         * nscd/servicescache.c (cache_addserv): Likewise.
4711 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4713         * malloc/malloc.c: Various cleanups.
4714         * malloc/hooks.c: Likewise.
4716         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4717         * stdlib/bug-fmtmsg1.c: New file.
4719         * stdlib/fmtmsg.c (init): Add missing unlock.
4720         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4722 2012-01-12  Marek Polacek  <polacek@redhat.com>
4724         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4725         and _GNU_SOURCE.
4727 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4729         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4730         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4731         macro to ensure uniqueness of label name.
4732         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4733         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4735 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4737         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4739         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4740         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4741         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4742         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4744 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4746         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4748         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4749         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4750         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4752         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4754         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4755         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4756         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4757         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4759         * math/bits/math-finite.h: Add ldexp support.
4761 2012-01-10  Marek Polacek  <polacek@redhat.com>
4763         * locale/programs/localedef.h (show_archive_content): Add noreturn
4764         attribute.
4766 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4768         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4770 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4772         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4774         * io/Makefile (headers): Add bits/poll2.h.
4776 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4779         typo #include statement.
4781 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4783         * include/sys/cdefs.h: Define __attribute_alloc_size.
4784         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4785         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4786         * elf/pldd.c: Likewise.
4787         * iconv/iconv_charmap.c: Likewise.
4788         * iconv/iconvconfig.c: Likewise.
4789         * iconv/strtab.c: Likewise.
4790         * locale/programs/locale.c: Likewise.
4791         * locale/programs/localedef.h: Likewise.
4792         * locale/programs/simple-hash.c: Likewise.
4793         * nscd/nscd.h: Likewise.
4794         * nss/makedb.c: Likewise.
4795         * sysdeps/generic/ldconfig.h: Likewise.
4796         * locale/programs/localedef.c: Remove xmalloc prototype.
4797         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4799 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4801         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4802         appropriate.
4804 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4806         * math/Makefile (tests): Add tst-CMPLX.
4807         * math/tst-CMPLX.c: New file.
4809         * math/complex.h (CMPLXL): Fix typo.
4811         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4812         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4813         GLIBC_2.16.
4814         * debug/tst-chk1.c: Add poll and ppoll tests.
4815         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4816         * include/sys/poll.h: Add hidden proto for ppoll.
4817         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4818         * sysdeps/mach/hurd/ppoll.c: Likewise.
4819         * io/ppoll.c: Likewise.
4820         * debug/poll_chk.c: New file.
4821         * debug/ppoll_chk.c: New file.
4822         * include/bits/poll2.h: New file.
4823         * io/bits/poll2.h: New file.
4825         [BZ #1350]
4826         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4828         * configure.in: static is always set to yes.  Remove.
4829         * config.make.in: Don't set build-static.
4830         * Makeconfig: Remove use of build-static.
4831         * dlfcn/Makefile: Likewise.
4832         * elf/Makefile: Likewise.
4833         * math/Makefile: Likewise.
4834         * misc/Makefile: Likewise.
4835         * nptl/Makefile: Likewise.
4836         * sysdeps/mach/hurd/Makefile: Likewise.
4838         * configure.in: PWD_P is not used anymore.
4839         * config.make.in: Remove PWD_P entry.
4841         * configure.in: Remove last remnants of RANLIB.
4842         No need to check for signed size_t anymore.
4843         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4844         and IA-64.
4845         Remove __builtin_expect test because we require at least gcc 3.4.
4846         * aclocal.m4: Likewise.
4848         * wcsmbs/mbrtoc16.c: Implement using towc function.
4849         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4850         * wcsmbs/wcsmbsload.c: Likewise.
4851         * iconv/gconv_simple.c: Likewise.
4852         * iconv/gconv_int.h: Likewise.
4853         * iconv/gconv_builtin.h: Likewise.
4854         * iconv/iconv_prog.c: Remove CHAR16 handling.
4856         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4858         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4860         * configure.in: Remove --with-elf and --enable-bounded options.
4861         Dont set base_machine for ia64.  More non-ELF conditions removed.
4862         Remove testing and setting of leading underscore information.
4863         * config.make.in (build-bounded): Set to no.
4864         * config.h.in: Remove NO_UNDERSCORES entry.
4865         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4866         them.
4867         * csu/start.c: Remove !NO_UNDERSCORE code.
4868         * locale/localeinfo.h: Likewise.
4869         * sysdeps/generic/machine-gmon.h: Likewise.
4870         * sysdeps/generic/sysdep.h: Likewise.
4871         * sysdeps/i386/sysdep.h: Likewise.
4872         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4873         * sysdeps/mach/sysdep.h: Likewise.
4874         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4875         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4876         * sysdeps/sh/sysdep.h: Likewise.
4877         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4878         * sysdeps/unix/i386/sysdep.S: Likewise.
4879         * sysdeps/unix/sparc/start.c: Likewise.
4880         * sysdeps/unix/sparc/sysdep.S: Likewise.
4881         * sysdeps/unix/sparc/sysdep.h: Likewise.
4882         * sysdeps/unix/start.c: Likewise.
4883         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4884         * sysdeps/x86_64/sysdep.h: Likewise.
4886 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4888         [BZ #13553]
4889         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4890         for non-gcc.
4891         * argp/argp-fmtstream.h: Use const instead __const.
4892         * argp/argp.h: Likewise.
4893         * assert/assert.h: Likewise.
4894         * bits/fenv.h: Likewise.
4895         * bits/sched.h: Likewise.
4896         * bits/sigset.h: Likewise.
4897         * bits/sigthread.h: Likewise.
4898         * catgets/nl_types.h: Likewise.
4899         * conform/data/pthread.h-data: Likewise.
4900         * crypt/crypt-private.h: Likewise.
4901         * crypt/crypt.h: Likewise.
4902         * crypt/crypt_util.c: Likewise.
4903         * ctype/ctype.h: Likewise.
4904         * debug/execinfo.h: Likewise.
4905         * debug/mbsnrtowcs_chk.c: Likewise.
4906         * debug/mbsrtowcs_chk.c: Likewise.
4907         * debug/wcsnrtombs_chk.c: Likewise.
4908         * debug/wcsrtombs_chk.c: Likewise.
4909         * debug/wcstombs_chk.c: Likewise.
4910         * dirent/dirent.h: Likewise.
4911         * dlfcn/dlfcn.h: Likewise.
4912         * elf/neededtest4.c: Likewise.
4913         * grp/grp.h: Likewise.
4914         * gshadow/gshadow.h: Likewise.
4915         * iconv/gconv.h: Likewise.
4916         * iconv/gconv_int.h: Likewise.
4917         * iconv/gconv_simple.c: Likewise.
4918         * iconv/iconv.h: Likewise.
4919         * iconv/loop.c: Likewise.
4920         * iconv/skeleton.c: Likewise.
4921         * include/aio.h: Likewise.
4922         * include/aliases.h: Likewise.
4923         * include/argz.h: Likewise.
4924         * include/arpa/inet.h: Likewise.
4925         * include/assert.h: Likewise.
4926         * include/dirent.h: Likewise.
4927         * include/dlfcn.h: Likewise.
4928         * include/execinfo.h: Likewise.
4929         * include/fcntl.h: Likewise.
4930         * include/fenv.h: Likewise.
4931         * include/glob.h: Likewise.
4932         * include/grp.h: Likewise.
4933         * include/libintl.h: Likewise.
4934         * include/mntent.h: Likewise.
4935         * include/netdb.h: Likewise.
4936         * include/pwd.h: Likewise.
4937         * include/rpc/netdb.h: Likewise.
4938         * include/sched.h: Likewise.
4939         * include/search.h: Likewise.
4940         * include/shadow.h: Likewise.
4941         * include/signal.h: Likewise.
4942         * include/stdio.h: Likewise.
4943         * include/stdlib.h: Likewise.
4944         * include/string.h: Likewise.
4945         * include/sys/socket.h: Likewise.
4946         * include/sys/stat.h: Likewise.
4947         * include/sys/statfs.h: Likewise.
4948         * include/sys/statvfs.h: Likewise.
4949         * include/sys/syslog.h: Likewise.
4950         * include/sys/time.h: Likewise.
4951         * include/sys/uio.h: Likewise.
4952         * include/time.h: Likewise.
4953         * include/unistd.h: Likewise.
4954         * include/utmp.h: Likewise.
4955         * include/wchar.h: Likewise.
4956         * include/wctype.h: Likewise.
4957         * inet/aliases.h: Likewise.
4958         * inet/arpa/inet.h: Likewise.
4959         * inet/netinet/ether.h: Likewise.
4960         * inet/netinet/in.h: Likewise.
4961         * intl/libintl.h: Likewise.
4962         * io/bits/fcntl2.h: Likewise.
4963         * io/fcntl.h: Likewise.
4964         * io/ftw.h: Likewise.
4965         * io/sys/poll.h: Likewise.
4966         * io/sys/stat.h: Likewise.
4967         * io/sys/statfs.h: Likewise.
4968         * io/sys/statvfs.h: Likewise.
4969         * io/utime.h: Likewise.
4970         * libio/bits/stdio.h: Likewise.
4971         * libio/bits/stdio2.h: Likewise.
4972         * libio/libio.h: Likewise.
4973         * libio/libioP.h: Likewise.
4974         * libio/stdio.h: Likewise.
4975         * locale/lc-ctype.c: Likewise.
4976         * locale/locale.h: Likewise.
4977         * login/utmp.h: Likewise.
4978         * malloc/arena.c: Likewise.
4979         * malloc/malloc.c: Likewise.
4980         * malloc/malloc.h: Likewise.
4981         * malloc/mcheck.c: Likewise.
4982         * malloc/mtrace.c: Likewise.
4983         * math/bits/mathcalls.h: Likewise.
4984         * math/fenv.h: Likewise.
4985         * math/math_private.h: Likewise.
4986         * misc/bits/error.h: Likewise.
4987         * misc/bits/syslog.h: Likewise.
4988         * misc/err.h: Likewise.
4989         * misc/error.h: Likewise.
4990         * misc/fstab.h: Likewise.
4991         * misc/mntent.h: Likewise.
4992         * misc/regexp.h: Likewise.
4993         * misc/search.h: Likewise.
4994         * misc/sgtty.h: Likewise.
4995         * misc/sys/mman.h: Likewise.
4996         * misc/sys/syslog.h: Likewise.
4997         * misc/sys/uio.h: Likewise.
4998         * misc/sys/xattr.h: Likewise.
4999         * misc/ttyent.h: Likewise.
5000         * nis/rpcsvc/ypclnt.h: Likewise.
5001         * nss/nss.h: Likewise.
5002         * posix/bits/unistd.h: Likewise.
5003         * posix/fnmatch.h: Likewise.
5004         * posix/glob.h: Likewise.
5005         * posix/sched.h: Likewise.
5006         * posix/spawn.h: Likewise.
5007         * posix/sys/wait.h: Likewise.
5008         * posix/unistd.h: Likewise.
5009         * posix/wordexp.h: Likewise.
5010         * pwd/pwd.h: Likewise.
5011         * resolv/netdb.h: Likewise.
5012         * resource/sys/resource.h: Likewise.
5013         * rt/aio.h: Likewise.
5014         * rt/bits/mqueue2.h: Likewise.
5015         * rt/mqueue.h: Likewise.
5016         * shadow/shadow.h: Likewise.
5017         * signal/signal.h: Likewise.
5018         * socket/send.c: Likewise.
5019         * socket/sendto.c: Likewise.
5020         * socket/sys/socket.h: Likewise.
5021         * stdio-common/printf.h: Likewise.
5022         * stdlib/bits/stdlib.h: Likewise.
5023         * stdlib/fmtmsg.h: Likewise.
5024         * stdlib/monetary.h: Likewise.
5025         * stdlib/stdlib.h: Likewise.
5026         * stdlib/ucontext.h: Likewise.
5027         * streams/stropts.h: Likewise.
5028         * string/argz.h: Likewise.
5029         * string/bits/string2.h: Likewise.
5030         * string/string.h: Likewise.
5031         * string/strings.h: Likewise.
5032         * sunrpc/rpc/auth.h: Likewise.
5033         * sunrpc/rpc/auth_des.h: Likewise.
5034         * sunrpc/rpc/clnt.h: Likewise.
5035         * sunrpc/rpc/netdb.h: Likewise.
5036         * sunrpc/rpc/pmap_clnt.h: Likewise.
5037         * sunrpc/rpc/xdr.h: Likewise.
5038         * sysdeps/generic/inttypes.h: Likewise.
5039         * sysdeps/generic/net/if.h: Likewise.
5040         * sysdeps/generic/sys/swap.h: Likewise.
5041         * sysdeps/gnu/net/if.h: Likewise.
5042         * sysdeps/gnu/utmpx.h: Likewise.
5043         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
5044         * sysdeps/i386/i486/bits/string.h: Likewise.
5045         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
5046         * sysdeps/s390/bits/string.h: Likewise.
5047         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
5048         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
5049         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5050         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
5051         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5052         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5053         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5054         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
5055         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
5056         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5057         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
5058         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5059         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
5060         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5061         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5062         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
5063         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
5064         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5065         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5066         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5067         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5068         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
5069         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
5070         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5071         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
5072         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
5073         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
5074         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5075         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
5076         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
5077         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
5078         * sysvipc/sys/ipc.h: Likewise.
5079         * sysvipc/sys/msg.h: Likewise.
5080         * sysvipc/sys/sem.h: Likewise.
5081         * sysvipc/sys/shm.h: Likewise.
5082         * termios/termios.h: Likewise.
5083         * time/sys/time.h: Likewise.
5084         * time/time.h: Likewise.
5085         * wcsmbs/bits/wchar2.h: Likewise.
5086         * wcsmbs/uchar.h: Likewise.
5087         * wcsmbs/wchar.h: Likewise.
5088         * wctype/wctype.h: Likewise.
5090         [BZ #13551]
5091         * Makeconfig: Remove all but ELF support including AIX support.
5092         * Makerules: Likewise.
5093         * config.h.in: Likewise.
5094         * config.make.in: Likewise.
5095         * configure: Likewise.
5096         * configure.in: Likewise.
5097         * csu/Makefile: Likewise.
5098         * csu/version.c: Likewise.
5099         * debug/Makefile: Likewise.
5100         * dlfcn/Makefile: Likewise.
5101         * elf/Makefile: Likewise.
5102         * extra-lib.mk: Likewise.
5103         * iconv/Makefile: Likewise.
5104         * include/libc-symbols.h: Likewise.
5105         * include/shlib-compat.h: Likewise.
5106         * resolv/Makefile: Likewise.
5107         * resolv/res_libc.c: Likewise.
5108         * rt/Makefile: Likewise.
5109         * sysdeps/i386/asm-syntax.h: Likewise.
5110         * sysdeps/i386/sysdep.h: Likewise.
5111         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5112         * sysdeps/mach/sysdep.h: Likewise.
5113         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
5114         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
5115         * sysdeps/s390/asm-syntax.h: Likewise.
5116         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5117         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5118         * sysdeps/sh/sysdep.h: Likewise.
5119         * sysdeps/unix/sparc/sysdep.h: Likewise.
5120         * sysdeps/wordsize-32/divdi3.c: Likewise.
5121         * sysdeps/x86_64/sysdep.h: Likewise.
5123         * argp/Versions: Remove _argp_unlock_xxx.
5125         [BZ #13559]
5126         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
5127         * abilist/libBrokenLocale.abilist: Likewise.
5128         * abilist/libanl.abilist: Likewise.
5129         * abilist/libc.abilist: Likewise.
5130         * abilist/libcrypt.abilist: Likewise.
5131         * abilist/libdl.abilist: Likewise.
5132         * abilist/libm.abilist: Likewise.
5133         * abilist/libnsl.abilist: Likewise.
5134         * abilist/libpthread.abilist: Likewise.
5135         * abilist/libresolv.abilist: Likewise.
5136         * abilist/librt.abilist: Likewise.
5137         * abilist/libthread_db.abilist: Likewise.
5138         * abilist/libutil.abilist: Likewise.
5139         * abilist/libnss_db.abilist: New file.
5141         * scripts/abilist.awk: Add support for indirect functions.
5143         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
5145         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
5147         * shlib-versions: Remove entries for ports architectures.
5149         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
5150         files in ports.
5151         * elf/stackguard-macros.h: Remove support for IA-64.
5152         * elf/tst-auditmod1.c: Likewise.
5153         * sysdeps/generic/ldsodefs.h: Likewise.
5155         * sysdeps/unix/sysv/linux/configure.in: Ports should define
5156         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
5157         configure files.
5159         [BZ #13552]
5160         * configure.in: Remove --enable-omitfp support.
5161         * FAQ.in: Adjust.
5162         * config.make.in: Likewise.
5163         * Makeconfig: Likewise.
5164         * manual/install.texi: Likewise.
5166         In case anyone cares, the IA-64 architecture could move to ports.
5167         * sysdeps/ia64/*: Removed.
5168         * sysdeps/unix/sysv/linux/ia64/*: Removed.
5169         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
5171         [BZ #13555]
5172         * configure.in: Remove entries for unsupported architectures.
5174         [BZ #13533]
5175         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
5176         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
5177         routines.
5178         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
5179         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
5180         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
5181         fall back to using wcrtomb.
5182         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
5183         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
5184         renaming.
5185         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
5186         * wcsmbs/tst-c16c32-1.c: New file.
5188         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
5189         local variable.
5191         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
5193         * elf/tst-unique3.cc: Add explicit declaration of gets.
5194         * elf/tst-unique3lib.cc: Likewise.
5195         * elf/tst-unique3lib2.cc: Likewise.
5196         * elf/tst-unique4.cc: Likewise.
5198         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
5200 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
5202         [BZ #13566]
5203         * assert/assert.h (static_assert): Don't define for C++.
5204         * libio/stdio.h (gets): Do declare for C++ <= C++11.
5205         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
5207 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
5209         * iconv/loop.c (single loop): Fix assertion in storing of
5210         remaining bytes.
5212         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
5214 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
5216         * posix/getconf.c: Update copyright year.
5217         * nss/getent.c: Likewise.
5218         * nss/makedb.c: Likewise.
5219         * iconv/iconvconfig.c: Likewise.
5220         * iconv/iconv_prog.c: Likewise.
5221         * elf/ldconfig.c: Likewise.
5222         * elf/pldd.c: Likewise.
5223         * elf/sotruss.ksh: Likewise.
5224         * catgets/gencat.c: Likewise.
5225         * csu/version.c: Likewise.
5226         * elf/ldd.bash.in: Likewise.
5227         * elf/sprof.c (print_version): Likewise.
5228         * locale/programs/locale.c: Likewise.
5229         * locale/programs/localedef.c: Likewise.
5230         * login/programs/pt_chown.c: Likewise.
5231         * nscd/nscd.c (print_version): Likewise.
5232         * debug/xtrace.sh: Likewise.
5233         * malloc/memusage.sh: Likewise.
5234         * malloc/mtrace.pl: Likewise.
5235         * debug/catchsegv.sh: Likewise.
5237 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
5239         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
5240         pure attribute.
5242 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
5244         [BZ #13533]
5245         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
5246         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
5247         transformations.
5248         * iconv/gconv_int.h: Likewise.
5249         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
5250         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
5251         from libc for GLIBC_2.16.
5252         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
5253         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
5254         * wcsmbs/uchar.h: Really define mbstate_t.
5255         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
5256         * wcsmbs/c16rtomb.c: New file.
5257         * wcsmbs/mbrtoc16.c: New file.
5258         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
5259         for C/POSIX locale.
5260         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
5261         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
5263         * wcsmbs/wchar.h: Add missing __restrict.
5265 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5267         [BZ #13532]
5268         * time/Makefile (routines): Add timespec_get.
5269         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
5270         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
5271         timespec for ISO C11.
5272         * time/timespec_get.c: New file.
5273         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
5274         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
5276         [BZ #13531]
5277         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5278         * stdlib/stdlib.h: Declare aligned_alloc.
5279         * Versions.def: Add GLIBC_2.16 for libc.
5280         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5282         [BZ 13527]
5283         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5284         ISO C11.
5286         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5287         code.
5289         [BZ #13528]
5290         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5292         [BZ #13529]
5293         * assert/assert.h (static_assert): Define.
5295         * version.h: Update for 2.16 development version.
5297         [BZ #13526]
5298         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5299         _ISOC11_SOURCE.
5301         * version.h (RELEASE): Bump for 2.15 release.
5302         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5304         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5305         Patch by Marek Polacek <mpolacek@redhat.com>.
5307         * bits/byteswap.h: Protect long long constants with __extension__.
5308         * sysdeps/i386/bits/byteswap.h: Likewise.
5309         * sysdeps/ia64/bits/byteswap.h: Likewise.
5310         * sysdeps/s390/bits/byteswap.h: Likewise.
5311         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5313 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5315         [BZ #13540]
5316         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5317         destination buffer.
5318         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5320 2011-12-23  Marek Polacek  <polacek@redhat.com>
5322         * elf/dl-addr.c (determine_info): Add inline keyword.
5323         * elf/tst-auditmod4b.c (check_avx): Likewise.
5324         * elf/tst-auditmod6b.c (check_avx): Likewise.
5325         * elf/tst-auditmod6c.c (check_avx): Likewise.
5326         * elf/tst-auditmod7b.c (check_avx): Likewise.
5328 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5330         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5331         !__SSE_MATH__.
5333 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5335         [BZ #13540]
5336         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5337         processing for last bytes.
5339 2011-08-06  Bruno Haible  <bruno@clisp.org>
5341         [BZ #13061]
5342         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5343         U+0385, not to U+1FEE.
5345         [BZ #13062]
5346         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5347         entry for U+00A5 U+0301.
5349 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5351         [BZ #13166]
5352         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5353         buffer for the output is too small.
5355         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5356         optimization.
5358         [BZ #13185]
5359         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5360         SSE flags if possible.
5362 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5364         [BZ #13540]
5365         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5366         processing for last bytes.
5368 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5370         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5371         (syscall-list-default-options, syscall-list-default-condition)
5372         (syscall-list-includes): Define.
5373         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5374         list of ABIs and options and #if conditions for each ABI.  Do not
5375         handle common syscalls between ABIs specially.
5376         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5377         Remove.
5378         (syscall-list-variants, syscall-list-32bit-options)
5379         (syscall-list-32bit-condition, syscall-list-64bit-options)
5380         (syscall-list-64bit-condition): Define.
5381         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5382         (syscall-list-variants, syscall-list-32bit-options)
5383         (syscall-list-32bit-condition, syscall-list-64bit-options)
5384         (syscall-list-64bit-condition): Define.
5385         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5386         Remove.
5387         (syscall-list-variants, syscall-list-32bit-options)
5388         (syscall-list-32bit-condition, syscall-list-64bit-options)
5389         (syscall-list-64bit-condition): Define.
5390         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5391         Remove.
5392         (syscall-list-variants, syscall-list-32bit-options)
5393         (syscall-list-32bit-condition, syscall-list-64bit-options)
5394         (syscall-list-64bit-condition): Define.
5396 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5398         * locale/iso-639.def: Add brx entry.
5400         [BZ #13328]
5401         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5402         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5404         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5405         __feraiseexcept_renamed.
5407 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5409         [BZ #13538]
5410         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5411         EPOLLET with unsigned values.
5412         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5413         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5415         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5416         to large cancellation.
5417         * math/s_cacoshf.c: Likewise.
5418         * math/s_cacoshl.c: Likewise.
5420 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5422         [BZ #13305]
5423         [BZ #12786]
5424         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5425         * math/s_cacoshf.c: Likewise.
5426         * math/s_cacoshl.c: Likewise.
5428 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5430         [BZ #13439]
5431         * iconv/gconv.h: Define __GCONV_SWAP.
5432         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5433         * iconvdata/utf-16.c: Likewise.
5434         * iconvdata/utf-32.c: Likewise.
5436 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5438         [BZ #13524]
5439         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5440         numerator after shifting it by one limb.
5442 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5444         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5445         under [__USE_EXTERN_INLINES].
5447 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5449         [BZ #13446]
5450         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5452 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5454         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5455         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5456         optimized code.
5457         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5458         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5459         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5460         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5461         for strncasecmp/strncasecmp_l compilation.
5462         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5463         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5465 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5467         [BZ #13484]
5468         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5469         of __asm__.
5471 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5473         [BZ #13506]
5474         * time/tzfile.c (__tzfile_read): Check values from file header.
5476 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5478         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5479         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5480         * powerpc/powerpc32/dl-start.S: Likewise.
5481         * powerpc/powerpc32/elf/start.S: Likewise.
5482         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5483         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5484         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5485         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5486         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5487         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5488         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5489         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5490         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5491         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5492         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5493         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5494         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5495         * powerpc/powerpc32/memset.S: Likewise.
5496         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5497         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5498         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5499         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5500         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5501         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5502         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5503         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5504         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5505         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5506         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5507         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5508         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5510 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5512         * math/libm-test.inc: Added more nearbyint tests.
5513         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5514         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5515         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5516         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5518 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5520         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5521         FD_CLOEXEC.
5523 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5525         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5526         Add wcscpy-ssse3 wcscpy-c.
5527         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5528         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5529         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5530         * sysdeps/x86_64/wcschr.S: New file.
5531         * sysdeps/x86_64/wcsrchr.S: New file.
5532         * string/test-strcmp.c: Remove checking of wcscmp function for
5533         wrong alignments.
5534         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5535         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5536         wcsrchr-sse2 wcsrchr-c.
5537         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5538         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5539         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5540         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5541         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5542         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5543         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5544         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5545         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5546         * wcsmbc/wcschr.c (WCSCHR): New macro.
5548 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5550         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5551         * wcsmbs/test-wcsrchr.c: New file.
5552         * string/test-strrchr.c: Add wcsrchr support.
5553         (WIDE): New macro.
5554         * wcsmbs/test-wcscpy.c: New file.
5555         * string/test-strcpy.c: Add wcscpy support.
5556         (WIDE): New macro.
5558 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5560         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5561         the inner loop.
5563 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5565         [BZ #13472]
5566         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5568 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5570         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5571         Minor optimizations.
5573         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5574         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5575         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5577 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5579         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5580         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5581         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5582         for gcc to avoid warnings.
5583         * inet/Makefile (tests): Add tst-checks.
5584         * inet/tst-checks.c: New file.
5586         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5587         warning.
5589         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5590         __wmemcmp_sse2.
5592         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5593         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5595         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5597 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5599         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5600         problem.
5602         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5604 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5606         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5607         conditional on GCC version.
5608         (__arch_compare_and_exchange_val_8_acq)
5609         (__arch_compare_and_exchange_val_16_acq)
5610         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5611         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5612         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5614 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5616         * sysdeps/sh/backtrace.c: New file.
5618 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5620         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5621         parenthesis.
5623 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5625         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5626         falling back to utime.
5628 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5630         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5631         expectations for float.
5633 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5635         * locale/weight.h (findidx): Add parameter len.
5636         * locale/weightwc.h (findidx): Likewise.
5637         * posix/fnmatch_loop.c (FCT): Adjust caller.
5638         * posix/regcomp.c (build_equiv_class): Likewise.
5639         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5640         * posix/regexec.c (check_node_accept_bytes): Likewise.
5641         * string/strcoll_l.c (STRCOLL): Likewise.
5642         * string/strxfrm_l.c (STRXFRM): Likewise.
5644 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5646         * Makefile.in: Remove CVSOPT handling.
5647         * configure.in: Remove use of AC_REVISION.
5648         * iconvdata/Makefile (distribute): No need to filter out CVS.
5649         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5650         handling.
5652 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5654         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5655         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5656         [USE_AS_STRNCASECMP_L]: Likewise.
5657         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5658         NO_TLS_DIRECT_SEG_REFS.
5659         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5660         Fix argument offsets for non-PIC.
5661         [USE_AS_STRNCASECMP_L]: Likewise.
5662         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5663         NO_TLS_DIRECT_SEG_REFS.
5665 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5667         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5668         O_CLOEXEC.
5669         * locale/loadlocale.c (_nl_load_locale): Likewise.
5671 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5673         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5674         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5675         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5676         (SYSCALL_GETTIME): Set errno on error.
5678         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5679         count references to noai6ai_cached.
5681 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5683         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5685         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5686         FD_CLOEXEC for /proc/self/maps.
5688         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5689         FD_CLOEXEC for /proc/meminfo.
5691         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5692         gai.conf.
5694         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5695         FD_CLOEXEC for given file.
5697         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5699         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5700         FD_CLOEXEC for /etc/hosts.
5701         (_gethtent): Likewise.
5703         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5705         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5706         cancellation and set FD_CLOEXEC for /etc/netgroup.
5708         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5709         reading /etc/publickey.
5711         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5712         allow cancellation when reading /etc/group.
5714         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5715         cancellation.
5716         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5718         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5719         when using data file.
5721         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5723         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5724         (write_nis_obj): Use "c" and "e" in fopen.
5726         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5728         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5730         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5732         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5734         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5735         locale.alias.
5737         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5739         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5741         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5743         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5744         file parsing and set FD_CLOEXEC.
5746 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5748         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5750 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5752         * malloc/arena.c (arena_get2): Don't call reused_arena when
5753         _int_new_arena failed.
5755 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5757         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5758         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5759         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5760         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5761         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5762         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5763         to compile strcasecmp and strncasecmp.
5764         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5765         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5767         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5769 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5771         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5772         locale-defines.sym to gen-as-const-headers.
5773         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5774         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5775         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5776         to compile strcasecmp and strncasecmp.
5777         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5778         strcasecmp_l and strncasecmp_l.
5779         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5780         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5781         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5782         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5783         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5784         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5785         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5786         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5787         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5788         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5789         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5791 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5793         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5794         result of SYSDEP_GETTIME_CPU to retval.
5795         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5796         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5798         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5799         variable.
5801         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5802         mantissa words.
5803         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5805         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5806         from unused variable.
5808         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5809         DWARF definitions.
5810         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5811         for assembling.
5813         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5814         over namespaces.
5816         * sunrpc/rpc_prot.c (rejected): Fix case value.
5818         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5819         unsigned long long int to avoid warnings in shift.
5821         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5822         of use of trans.
5823         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5824         variable tmp.
5826         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5827         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5828         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5830         * nis/nis_table.c (nis_list): Use variable of correct type for
5831         result of __follow_path call.
5833 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5835         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5836         of math functions ceil, trunc, floor, round, and sqrt, when
5837         avaliable on the platform.
5838         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5839         name clash.
5840         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5841         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5842         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5844 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5846         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5847         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5849 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5851         * include/unistd.h: Fix __readlink return type.
5852         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5854 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5856         * stdlib/ucontext.h: Undo last change for makecontext.
5858 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5860         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5862         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5863         * setjmp/setjmp.h: Mark functions as non-leaf.
5864         * setjmp/bits/setjmp2.h: Likewise.
5865         * stdlib/ucontext.h: Likewise.
5867 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5869         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5870         (reused_arena): Don't check arena limit.
5871         (arena_get2): Atomically check arena limit.
5873 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5875         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5876         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5878         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5879         instructions.
5881 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5883         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5884         handler when locking.
5886         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5887         Fix size of allocated buffer.
5889 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5891         [BZ #10103]
5892         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5893         declarations for long double functions.
5894         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5896         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5898 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5900         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5901         installed.
5903         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5904         is disabled.
5906 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5908         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5910 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5912         * include/alloca.h (stackinfo_alloca_round): Define.
5913         (extend_alloca): Use it.
5914         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5915         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5916         here.
5918         * scripts/check-local-headers.sh: Ignore libaudit.h.
5920         * nscd/Makefile (extra-objs): Make recursively expanded.
5922 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5924         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5925         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5927         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5928         * posix/tst-rfc3484-2.c: Likewise.
5929         * posix/tst-rfc3484-3.c: Likewise.
5931         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5932         process_vm_writev.
5933         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5934         process_vm_writev.
5935         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5936         process_vm_writev from libc using GLIBC_2.15 version.
5938         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5940 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5942         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5943         stack usage.
5945 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5947         [BZ #13367]
5948         * nss/getent.c (initgroups_keys): Show error message in case no group
5949         names are given.
5951         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5952         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5953         __bump_nl_timestamp.
5954         * nscd/connections (nscd_init): When host database is served open
5955         netlink socket and request notification about configuration changes.
5956         (main_loop_poll): Track netlink file descriptor and bump timestamp
5957         in case data becomes available.
5958         (main_loop_epoll): Likewise.
5959         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5960         (database_pers_head): Add extra_data fileds.
5961         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5962         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5963         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5964         Adjust caller.
5965         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5966         in6ai data, call __free_in6ai.
5967         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5968         Add -DHAVE_NETLINK.
5969         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5970         interface information.  Reuse previous data if netlink timestamp
5971         is not changed.
5972         (__bump_nl_timestamp): New function.
5973         (__free_in6ai): New function.
5975 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5977         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5978         close_not_cancel_no_status here.
5979         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5981 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5983         [BZ #13276]
5984         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5985         return value.
5987         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5988         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5989         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5991 2011-07-03  Andreas Jaeger  <aj@suse.de>
5993         [BZ #10709]
5994         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5995         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5996         * math/libm-test.inc (sin_test): Add test case.
5998 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
6000         [BZ #13337]
6001         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
6002         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6004         * elf/chroot_canon.c (chroot_canon): Cleanups.
6006         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
6008         [BZ #13335]
6009         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
6010         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6012         * string/test-strchr.c: Make usable for strchrnul testing.
6013         * string/test-strchrnul.c: New file.
6014         * string/Makefile (strop-tests): Add strchrnul.
6016         * po/it.po: Update from translation team.
6017         * po/es.po: Likewise.
6019 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
6021         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
6022         the three constants needed as parameters.  Drop the others.
6023         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
6024         __m128i_strloadu_tolower.
6025         Create and initialize variable zero and use it in all the places
6026         where _mm_setzero_si128 was used.
6028         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
6029         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
6030         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
6031         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
6032         anymore.
6033         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
6034         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
6035         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
6036         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
6037         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
6038         __mpranred, __mptan.
6039         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
6040         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
6041         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
6042         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
6043         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
6044         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
6045         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
6046         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
6047         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
6049 2011-10-28  Andreas Schwab  <schwab@redhat.com>
6051         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
6052         redefine if SHARED.
6053         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
6055         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
6056         wide char related routines to wcsmbs subdir.
6058 2011-10-27  Andreas Schwab  <schwab@redhat.com>
6060         [BZ #13344]
6061         * misc/sys/cdefs.h (__THROWNL): Define.
6062         * posix/unistd.h: Use __THREADNL instead of __THREAD
6063         for memory synchronization functions.
6065 2011-10-26  Roland McGrath  <roland@hack.frob.com>
6067         [BZ #13349]
6068         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
6069         doesn't exist.
6070         * manual/stdio.texi (Obstack Streams): Node removed.
6072 2011-10-26  Andreas Schwab  <schwab@redhat.com>
6074         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
6075         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6076         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6078         * math/math_private.h (math_force_eval): Allow non-addressable
6079         arguments.
6080         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
6082 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6084         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
6085         file is not needed.
6087         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
6088         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6089         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6090         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6091         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6092         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6093         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6094         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
6095         Add AVX variants.
6096         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
6097         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
6098         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
6099         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
6100         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
6101         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
6102         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
6103         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
6104         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
6105         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
6106         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
6107         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
6108         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
6109         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
6110         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
6111         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
6112         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
6113         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
6114         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
6116         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
6117         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
6119         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
6120         place.  Use VEX encoding when compiling for AVX.
6122 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6124         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
6125         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6127         * string/test-strchr.c (do_test): Don't generate NUL bytes.
6129 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6131         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
6132         useless if() expression.
6133         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6134         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6135         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6136         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6137         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6138         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6139         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6140         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6141         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6142         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6143         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6144         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6145         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6146         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6147         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6148         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6149         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6150         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6151         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6153         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
6155 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6157         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
6158         condition.
6159         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6161 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6163         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
6164         .text section.  Avoid duplicate constants.
6165         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6166         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6167         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6168         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6169         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6170         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6171         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6172         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6173         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6174         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
6175         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6176         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6177         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6178         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6179         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6180         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6181         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6182         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6183         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6184         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6185         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6186         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6187         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6188         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
6189         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
6190         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
6191         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
6192         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
6193         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
6194         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
6195         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
6196         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
6197         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6198         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
6199         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
6200         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
6201         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
6202         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
6203         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
6204         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
6205         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
6206         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
6207         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
6208         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
6209         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
6211 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
6213         * sysdeps/x86_64/dla.h: Move to ...
6214         * sysdeps/x86_64/fpu/dla.h: ...here.
6215         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
6216         situations.  Use __builtin_fma only for gcc 4.6 and up.
6218         * config.make.in: Add have-mfma4 entry.
6219         * configure.in: Substitute libc_cv_cc_fma4.
6220         * math/Makefile (dbl-only-routines): Add sincostab.
6221         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
6222         Use __sincostab not sincos.
6223         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
6224         name is a macro.
6225         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6226         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6227         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6228         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
6229         using __copysign.
6230         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
6231         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
6232         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
6233         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
6234         and __inv.
6235         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
6236         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
6237         __copysign.
6238         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
6239         define aliases when function name is a macro.
6240         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
6241         sysdeps/ieee754/dbl-64/sincos.tbl.
6242         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
6243         fma4-enabled routines.
6244         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
6245         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
6246         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
6247         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
6248         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
6249         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
6250         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
6251         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
6252         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
6253         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
6254         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
6255         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
6256         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
6257         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
6258         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
6259         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
6260         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
6261         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
6262         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
6263         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
6264         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
6265         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
6266         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
6267         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
6268         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
6269         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
6270         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
6271         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
6272         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
6273         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
6275         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
6276         rename.
6277         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6278         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6279         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6280         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6281         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6282         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6283         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6284         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6286 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6288         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6290 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6292         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6294         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6295         prediction.
6296         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6298         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6299         Remove unused variable magic_bits.
6300         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6302         * string/strnlen.c: Define and use STRNLEN macro.
6303         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6304         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6305         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6306         * wcsmbs/wcslen.c: Define and use WCSLEN.
6307         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6308         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6309         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6310         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6311         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6312         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6313         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6315 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6317         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6318         strnlen-sse2-no-bsf.
6319         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6320         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6321         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6322         Add strnlen support.
6323         (USE_AS_STRNLEN): New macro.
6324         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6325         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6326         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6327         * sysdeps/x86_64/wcslen.S: New file.
6329 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6331         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6332         XMM-moves are used for copying on small sizes.
6334 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6336         * wcsmbs/Makefile (strop-tests): Add wcschr.
6337         * wcsmbs/test-wcschr.c: New file.
6338         * string/test-strchr.c: Update.
6339         Add wcschr support.
6340         (WIDE): New macro.
6342 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6344         * wcsmbs/Makefile (strop-tests): Add wcslen.
6345         * wcsmbs/test-wcslen.c: New file.
6346         * string/test-strlen.c: Update.
6347         Add wcslen support.
6348         (WIDE): New macro.
6350 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6352         * po/it.po: Update from translation team.
6354 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6356         * sysdeps/x86_64/wcscmp.S: Update.
6357         Fix wrong comparison semantics.
6358         wcscmp shall use signed comparison not unsigned.
6359         Don't use substraction to avoid overflow bug.
6360         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6361         * wcsmbc/wcscmp.c: Likewise.
6362         * string/test-strcmp.c: Likewise.
6363         Add new tests to check cases with negative values.
6365 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6367         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6368         * sysdeps/x86_64/dla.h: ...here.  New file.
6369         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6370         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6371         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6372         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6373         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6374         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6375         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6376         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6377         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6379 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6381         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6382         __ynl_finite aliases.
6384 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6386         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6388         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6389         define DLA_FMA.
6390         [DLA_FMA] (EMULV): Use DLA_FMA.
6391         [DLA_FMA] (MUL12): Use EMULV.
6392         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6393         that are not needed.
6394         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6395         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6396         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6397         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6398         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6399         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6400         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6402 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6404         * math/s_nan.c: Undef __nan.
6405         * math/s_nanf.c: Undef __nanf.
6406         * math/s_nanl.c: Undef __nanl.
6407         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6408         "math_private.h".
6410 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6412         * math/s_catan.c: Add branch predictions.
6413         * math/s_catanf.c: Likewise.
6414         * math/s_catanh.c: Likewise.
6415         * math/s_catanhf.c: Likewise.
6416         * math/s_catanhl.c: Likewise.
6417         * math/s_catanl.c: Likewise.
6418         * math/s_cexp.c: Likewise.
6419         * math/s_cexpf.c: Likewise.
6420         * math/s_cexpl.c: Likewise.
6421         * math/s_clog.c: Likewise.
6422         * math/s_clog10.c: Likewise.
6423         * math/s_clog10f.c: Likewise.
6424         * math/s_clog10l.c: Likewise.
6425         * math/s_clogf.c: Likewise.
6426         * math/s_clogl.c: Likewise.
6427         * math/s_csqrt.c: Likewise.
6428         * math/s_csqrtf.c: Likewise.
6429         * math/s_csqrtl.c: Likewise.
6430         * math/s_ctanf.c: Likewise.
6431         * math/s_ctanh.c: Likewise.
6432         * math/s_ctanhf.c: Likewise.
6433         * math/s_ctanhl.c: Likewise.
6434         * math/s_ctanl.c: Likewise.
6436         * math/math_private.h: Define __nan, __nanf, __nanl.
6437         * math/s_cacosh.c: Include <math_private.h>.
6438         * math/s_cacoshl.c: Likewise.
6439         * math/s_casinh.c: Likewise.
6440         * math/s_casinhf.c: Likewise.
6441         * math/s_casinhl.c: Likewise.
6442         * math/s_ccos.c: Rely entire on ccosh.
6443         * math/s_ccosf.c: Rely entire on ccoshf.
6444         * math/s_ccosl.c: Rely entirely on ccoshl.
6445         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6446         Remove tests for FE_INVALID.
6447         * math/s_ccoshf.c: Likewise.
6448         * math/s_ccoshl.c: Likewise.
6449         * math/s_csin.c: Likewise.
6450         * math/s_csinf.c: Likewise.
6451         * math/s_csinh.c Likewise.
6452         * math/s_csinhf.c: Likewise.
6453         * math/s_csinhl.c: Likewise.
6454         * math/s_csinl.c: Likewise.
6455         * math/s_ctan.c: Likewise.
6456         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6457         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6458         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6460 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6462         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6463         compilation problems.
6465         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6466         __builtin_expect.
6468 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6470         * sysdeps/i386/configure.in: Test for -mfma4 option.
6471         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6472         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6473         COMMON_CPUID_INDEX_80000001.
6474         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6475         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6476         use it if FMA3 is not supported.
6477         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6479         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6480         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6482 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6484         [BZ #12892]
6485         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6486         it would create a cycle with a link time dependency.
6488 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6490         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6491         instruction.
6492         * string/Makefile (strop-tests): Add rawmemchr.
6493         * string/test-rawmemchr.c: New file.
6495         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6496         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6497         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6498         when compiling str{,n}casecmp and when AVX is available.  Hook up
6499         new optimized code in initializers.
6501 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6503         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6504         __feraiseexcept instead of feraiseexcept.
6506 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6508         * math/math_private.h: Define defaults for libc_fetestexcept and
6509         libc_feupdateenv.
6510         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6511         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6512         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6513         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6514         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6515         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6516         libc_fetestexcept and libc_feupdateenv.
6518         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6519         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6520         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6521         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6522         libc_feholdexcept_setround.
6524         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6525         Add s_nearbyint-c and s_nearbyintf-c.
6526         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6527         nearbyintf inlines.
6528         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6529         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6530         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6531         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6533         * math/math_private.h: Define defaults for libc_fegetround,
6534         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6535         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6536         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6537         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6538         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6539         standard functions.
6540         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6541         Remove comments and hacks for old compiler versions.
6542         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6543         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6544         libc_feholdexceptl.
6546 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6548         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6549         (__feraiseexcept_renamed): Add __NTH.
6550         (feraiseexcept): Add __NTH.  Rename local variables to fix
6551         namespace violations.
6553 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6555         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6557         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6559         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6560         recently added interfaces.
6561         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6563         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6564         about macro parameter expansion.
6566         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6567         __NO_MATH_INLINES is defined.  Cleanups.
6569         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6570         and __floorf is target has SSE4.1.
6571         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6572         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6573         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6574         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6576         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6577         name.
6578         (floorf): Likewise.
6580         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6582 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6584         * misc/sys/cdefs.h: Fix last change.
6586         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6587         database lookup.
6589 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6591         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6593         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6594         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6595         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6596         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6597         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6598         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6599         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6600         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6601         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6602         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6603         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6604         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6605         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6606         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6607         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6608         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6609         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6610         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6611         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6612         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6613         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6614         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6616         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6617         ceil, ceilf, floor, floorf.
6619         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6620         Perform IRELATIVE relocations last.
6622         * elf/do-rel.h: Add another parameter nrelative, replacing the
6623         local variable with the same name.  Change name of the function
6624         to end in Rel or Rela (uppercase).
6625         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6626         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6627         elf_dynamic_do_##reloc function.
6629 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6631         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6632         is sufficient, at least on modern CPUs.
6634         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6636         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6637         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6639         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6640         __expl_finite.
6641         * math/bits/math-finite.h: Add entries for exp.
6642         * math/e_expl.c: Add __*_finite alias.
6643         * sysdeps/i386/fpu/e_exp.S: Likewise.
6644         * sysdeps/i386/fpu/e_expf.S: Likewise.
6645         * sysdeps/i386/fpu/e_expl.c: Likewise.
6646         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6647         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6648         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6649         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6650         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6651         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6652         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6654         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6655         is sufficient, at least on modern CPUs.
6657         * ctype/ctype-info.c (__ctype_init): Define.
6658         * include/ctype.h (__ctype_init): Declare.
6659         (__ctype_b_loc): The variable is always initialized.
6660         (__ctype_toupper_loc): Likewise.
6661         (__ctype_tolower_loc): Likewise.
6662         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6663         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6665 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6667         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6669         * configure.in: Also look in $cxxmachine/include for C++ system
6670         headers.
6672 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6674         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6675         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6676         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6677         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6678         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6679         (USE_AS_WMEMCMP): New macro.
6680         Fixing indents.
6681         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6682         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6683         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6684         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6685         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6686         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6687         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6688         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6689         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6690         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6691         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6692         (USE_AS_WMEMCMP): New macro.
6693         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6694         * sysdeps/string/test-memcmp.c: Update.
6695         Fix simple_wmemcmp.
6696         Add new tests.
6697         * wcsmbs/wmemcmp.c: Update.
6698         (WMEMCMP): New macro.
6699         Fix overflow bug.
6701 2011-10-12  Andreas Jaeger  <aj@suse.de>
6703         [BZ #13268]
6704         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6706 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6708         * libio/iofwide.c (do_length): Avoid warning.
6710         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6712 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6714         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6716         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6717         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6718         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6719         * sysdeps/i386/i686/fpu/e_log.S: New file.
6720         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6721         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6723         * ctype/ctype.h: Add support for inlined isXXX functions when
6724         compiling C++ code.
6726 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6728         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6730         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6732 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6734         [BZ #13291]
6735         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6737 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6739         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6740         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6741         feraiseexcept.
6743         * sysdeps/x86_64/memrchr.S: Check for zero size.
6745         * string/stratcliff.c: Add memrchr tests.
6747 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6749         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6750         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6751         rawmemchr-sse2 rawmemchr-sse2-bsf.
6752         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6753         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6754         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6755         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6756         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6757         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6758         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6759         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6760         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6761         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6762         * string/memrchr.c (MEMRCHR): New macro.
6764 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6766         Add integration with gcc's -ffinite-math-only and optimize wrapper
6767         functions in libm.
6768         * Versions.def: Define GLIBC_2.15 version for libm.
6769         * math/Makefile (headers): Add bits/math-finite.h.
6770         * math/bits/math-finite.h: New file.
6771         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6772         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6773         * math/e_acoshl.c: Add __*_finite alias.
6774         * math/e_acosl.c: Likewise.
6775         * math/e_asinl.c: Likewise.
6776         * math/e_atan2l.c: Likewise.
6777         * math/e_atanhl.c: Likewise.
6778         * math/e_coshl.c: Likewise.
6779         * math/e_exp10.c: Likewise.
6780         * math/e_exp10f.c: Likewise.
6781         * math/e_exp10l.c: Likewise.
6782         * math/e_exp2l.c: Likewise.
6783         * math/e_fmodl.c: Likewise.
6784         * math/e_gammal_r.c: Likewise.
6785         * math/e_hypotl.c: Likewise.
6786         * math/e_j0l.c: Likewise.
6787         * math/e_j1l.c: Likewise.
6788         * math/e_jnl.c: Likewise.
6789         * math/e_lgammal_r.c: Likewise.
6790         * math/e_log10l.c: Likewise.
6791         * math/e_log2l.c: Likewise.
6792         * math/e_logl.c: Likewise.
6793         * math/e_powl.c: Likewise.
6794         * math/e_sinhl.c: Likewise.
6795         * math/e_sqrtl.c: Likewise.
6796         * math/e_scalb.c: Completely rewritten and optimized.
6797         * math/e_scalbf.c: Likewise.
6798         * math/e_scalbl.c: Likewise.
6799         * math/w_acos.c: Likewise.
6800         * math/w_acosf.c: Likewise.
6801         * math/w_acosl.c: Likewise.
6802         * math/w_acosh.c: Likewise.
6803         * math/w_acoshf.c: Likewise.
6804         * math/w_acoshl.c: Likewise.
6805         * math/w_asin.c: Likewise.
6806         * math/w_asinf.c: Likewise.
6807         * math/w_asinl.c: Likewise.
6808         * math/w_atan2.c: Likewise.
6809         * math/w_atan2f.c: Likewise.
6810         * math/w_atan2l.c: Likewise.
6811         * math/w_atanh.c: Likewise.
6812         * math/w_atanhf.c: Likewise.
6813         * math/w_atanhl.c: Likewise.
6814         * math/w_exp10.c: Likewise.
6815         * math/w_exp10f.c: Likewise.
6816         * math/w_exp10l.c: Likewise.
6817         * math/w_fmod.c: Likewise.
6818         * math/w_fmodf.c: Likewise.
6819         * math/w_fmodl.c: Likewise.
6820         * math/w_j0.c: Likewise.
6821         * math/w_j0f.c: Likewise.
6822         * math/w_j0l.c: Likewise.
6823         * math/w_j1.c: Likewise.
6824         * math/w_j1f.c: Likewise.
6825         * math/w_j1l.c: Likewise.
6826         * math/w_jn.c: Likewise.
6827         * math/w_jnf.c: Likewise.
6828         * math/w_log.c: Likewise.
6829         * math/w_logf.c: Likewise.
6830         * math/w_logl.c: Likewise.
6831         * math/w_log10.c: Likewise.
6832         * math/w_log10f.c: Likewise.
6833         * math/w_log10l.c: Likewise.
6834         * math/w_log2.c: Likewise.
6835         * math/w_log2f.c: Likewise.
6836         * math/w_log2l.c: Likewise.
6837         * math/w_pow.c: Likewise.
6838         * math/w_powf.c: Likewise.
6839         * math/w_powl.c: Likewise.
6840         * math/w_remainder.c: Likewise.
6841         * math/w_remainderf.c: Likewise.
6842         * math/w_remainderl.c: Likewise.
6843         * math/w_scalb.c: Likewise.
6844         * math/w_scalbf.c: Likewise.
6845         * math/w_scalbl.c: Likewise.
6846         * math/w_sqrt.c: Likewise.
6847         * math/w_sqrtf.c: Likewise.
6848         * math/w_sqrtl.c: Likewise.
6849         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6850         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6851         used.
6852         * math/math_private.h: Declare __kernel_standard_f.
6853         * math/w_cosh.c: Remove cruft and optimize a bit.
6854         * math/w_coshf.c: Likewise.
6855         * math/w_coshl.c: Likewise.
6856         * math/w_exp2.c: Likewise.
6857         * math/w_exp2f.c: Likewise.
6858         * math/w_exp2l.c: Likewise.
6859         * math/w_hypot.c: Likewise.
6860         * math/w_hypotf.c: Likewise.
6861         * math/w_hypotl.c: Likewise.
6862         * math/w_lgamma.c: Likewise.
6863         * math/w_lgamma_r.c: Likewise.
6864         * math/w_lgammaf.c: Likewise.
6865         * math/w_lgammaf_r.c: Likewise.
6866         * math/w_lgammal.c: Likewise.
6867         * math/w_lgammal_r.c: Likewise.
6868         * math/w_sinh.c: Likewise.
6869         * math/w_sinhf.c: Likewise.
6870         * math/w_sinhl.c: Likewise.
6871         * math/w_tgamma.c: Likewise.
6872         * math/w_tgammaf.c: Likewise.
6873         * math/w_tgammal.c: Likewise.
6874         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6875         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6876         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6877         Minor optimizations.  Pretty printing.  Remove cruft.
6878         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6879         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6880         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6881         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6882         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6883         * sysdeps/i386/fpu/e_asin.S: Likewise.
6884         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6885         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6886         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6887         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6888         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6889         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6890         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6891         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6892         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6893         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6894         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6895         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6896         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6897         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6898         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6899         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6900         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6901         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6902         * sysdeps/i386/fpu/e_log.S: Likewise.
6903         * sysdeps/i386/fpu/e_log10.S: Likewise.
6904         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6905         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6906         * sysdeps/i386/fpu/e_log2.S: Likewise.
6907         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6908         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6909         * sysdeps/i386/fpu/e_logf.S: Likewise.
6910         * sysdeps/i386/fpu/e_logl.S: Likewise.
6911         * sysdeps/i386/fpu/e_pow.S: Likewise.
6912         * sysdeps/i386/fpu/e_powf.S: Likewise.
6913         * sysdeps/i386/fpu/e_powl.S: Likewise.
6914         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6915         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6916         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6917         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6918         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6919         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6920         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6921         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6922         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6923         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6924         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6925         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6926         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6927         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6928         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6929         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6930         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6931         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6932         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6933         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6934         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6935         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6936         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6937         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6938         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6939         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6940         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6941         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6942         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6943         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6944         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6945         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6946         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6947         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6948         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6949         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6950         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6951         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6952         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6953         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6954         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6955         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6956         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6957         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6958         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6959         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6960         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6961         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6962         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6963         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6964         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6965         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6966         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6967         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6968         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6969         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6970         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6971         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6972         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6973         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6974         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6975         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6976         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6977         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6978         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6979         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6980         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6981         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6982         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6983         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6984         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6985         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6986         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6987         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6988         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6989         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6990         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6991         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6992         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6993         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6994         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6995         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6996         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6997         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6998         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6999         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
7000         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7001         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7002         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7003         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7004         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7005         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7006         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7007         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7008         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7009         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7010         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7011         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7012         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7013         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7014         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7015         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7016         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7017         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7018         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7019         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7020         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7021         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7022         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7023         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
7024         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
7025         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
7026         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
7027         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7028         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7029         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7030         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7031         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
7032         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7033         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
7034         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
7035         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
7036         (__isnanf): Likewise.
7037         (__isinf_ns): Likewise.
7038         (__isinf_nsf): Likewise.
7039         (__finite): Likewise.
7040         (__finitef): Likewise.
7041         (__ieee754_sqrt): Define as macro.
7042         (__ieee754_sqrtf): Define as macro.
7043         (__ieee754_sqrtl): Define as macro.
7044         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
7045         inlined copy.
7046         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
7047         __FINITE_MATH_ONLY__ consistent.
7048         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
7050 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
7052         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
7053         of rawmemchr.
7055         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
7057 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
7059         * po/ja.po: Update from translation team.
7061 2011-10-08  Roland McGrath  <roland@hack.frob.com>
7063         * locale/programs/locarchive.c (prepare_address_space): New function.
7064         (create_archive, enlarge_archive, open_archive): Use it.
7066         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
7067         inside [SHARED], where it is used.
7069         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
7071         * nss/getent.c (netgroup_keys): Remove unused variable.
7072         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7074 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
7076         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
7077         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
7078         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
7079         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
7080         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
7081         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
7082         * math/Makefile (libm-calls): Add s_isinf_ns.
7083         * math/divtc3.c: Use __isinf_nsl instead of isinf.
7084         * math/multc3.c: Likewise.
7085         * math/s_casin.c: Likewise.
7086         * math/s_casinf.c: Likewise.
7087         * math/s_casinl.c: Likewise.
7088         * math/s_ccos.c: Likewise.
7089         * math/s_ccosf.c: Likewise.
7090         * math/s_ccosl.c: Likewise.
7091         * math/s_ctan.c: Likewise.
7092         * math/s_ctanf.c: Likewise.
7093         * math/s_ctanh.c: Likewise.
7094         * math/s_ctanhf.c: Likewise.
7095         * math/s_ctanhl.c: Likewise.
7096         * math/s_ctanl.c: Likewise.
7097         * math/w_fmod.c: Likewise.
7098         * math/w_fmodf.c: Likewise.
7099         * math/w_fmodl.c: Likewise.
7100         * math/w_remainder.c: Likewise.
7101         * math/w_remainderf.c: Likewise.
7102         * math/w_remainderl.c: Likewise.
7103         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
7104         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
7105         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
7106         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
7107         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
7108         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
7109         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
7110         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
7112         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
7113         of the number.
7114         * stdio-common/printf_fphex.c: Likewise.
7115         * stdio-common/printf_size.c: Likewise.
7117         * math/e_exp10.c: Include math_private.h using <...> not "...".
7118         * math/e_exp10f.c: Likewise.
7119         * math/e_exp10l.c: Likewise.
7120         * math/e_exp2l.c: Likewise.
7121         * math/e_j0l.c: Likewise.
7122         * math/e_j1l.c: Likewise.
7123         * math/e_jnl.c: Likewise.
7124         * math/e_lgammal_r.c: Likewise.
7125         * math/e_rem_pio2l.c: Likewise.
7126         * math/e_scalb.c: Likewise.
7127         * math/e_scalbf.c: Likewise.
7128         * math/e_scalbl.c: Likewise.
7129         * math/k_cosl.c: Likewise.
7130         * math/k_sinl.c: Likewise.
7131         * math/k_tanl.c: Likewise.
7132         * math/s_cacoshf.c: Likewise.
7133         * math/s_catan.c: Likewise.
7134         * math/s_catanf.c: Likewise.
7135         * math/s_catanh.c: Likewise.
7136         * math/s_catanhf.c: Likewise.
7137         * math/s_catanhl.c: Likewise.
7138         * math/s_catanl.c: Likewise.
7139         * math/s_ccosh.c: Likewise.
7140         * math/s_ccoshf.c: Likewise.
7141         * math/s_ccoshl.c: Likewise.
7142         * math/s_cexp.c: Likewise.
7143         * math/s_cexpf.c: Likewise.
7144         * math/s_cexpl.c: Likewise.
7145         * math/s_clog.c: Likewise.
7146         * math/s_clog10.c: Likewise.
7147         * math/s_clog10f.c: Likewise.
7148         * math/s_clog10l.c: Likewise.
7149         * math/s_clogf.c: Likewise.
7150         * math/s_clogl.c: Likewise.
7151         * math/s_csin.c: Likewise.
7152         * math/s_csinf.c: Likewise.
7153         * math/s_csinh.c: Likewise.
7154         * math/s_csinhf.c: Likewise.
7155         * math/s_csinhl.c: Likewise.
7156         * math/s_csinl.c: Likewise.
7157         * math/s_csqrt.c: Likewise.
7158         * math/s_csqrtf.c: Likewise.
7159         * math/s_csqrtl.c: Likewise.
7160         * math/s_ctan.c: Likewise.
7161         * math/s_ctanf.c: Likewise.
7162         * math/s_ctanh.c: Likewise.
7163         * math/s_ctanhf.c: Likewise.
7164         * math/s_ctanhl.c: Likewise.
7165         * math/s_ctanl.c: Likewise.
7166         * math/s_ldexp.c: Likewise.
7167         * math/s_ldexpf.c: Likewise.
7168         * math/s_ldexpl.c: Likewise.
7169         * math/s_significand.c: Likewise.
7170         * math/s_significandf.c: Likewise.
7171         * math/s_significandl.c: Likewise.
7172         * math/w_acos.c: Likewise.
7173         * math/w_acosf.c: Likewise.
7174         * math/w_acosh.c: Likewise.
7175         * math/w_acoshf.c: Likewise.
7176         * math/w_acoshl.c: Likewise.
7177         * math/w_acosl.c: Likewise.
7178         * math/w_asin.c: Likewise.
7179         * math/w_asinf.c: Likewise.
7180         * math/w_asinl.c: Likewise.
7181         * math/w_atan2.c: Likewise.
7182         * math/w_atan2f.c: Likewise.
7183         * math/w_atan2l.c: Likewise.
7184         * math/w_atanh.c: Likewise.
7185         * math/w_atanhf.c: Likewise.
7186         * math/w_atanhl.c: Likewise.
7187         * math/w_cosh.c: Likewise.
7188         * math/w_coshf.c: Likewise.
7189         * math/w_coshl.c: Likewise.
7190         * math/w_dremf.c: Likewise.
7191         * math/w_exp10.c: Likewise.
7192         * math/w_exp10f.c: Likewise.
7193         * math/w_exp10l.c: Likewise.
7194         * math/w_exp2.c: Likewise.
7195         * math/w_exp2f.c: Likewise.
7196         * math/w_fmod.c: Likewise.
7197         * math/w_fmodf.c: Likewise.
7198         * math/w_fmodl.c: Likewise.
7199         * math/w_hypot.c: Likewise.
7200         * math/w_hypotf.c: Likewise.
7201         * math/w_hypotl.c: Likewise.
7202         * math/w_j0.c: Likewise.
7203         * math/w_j0f.c: Likewise.
7204         * math/w_j0l.c: Likewise.
7205         * math/w_j1.c: Likewise.
7206         * math/w_j1f.c: Likewise.
7207         * math/w_j1l.c: Likewise.
7208         * math/w_jn.c: Likewise.
7209         * math/w_jnf.c: Likewise.
7210         * math/w_jnl.c: Likewise.
7211         * math/w_lgamma.c: Likewise.
7212         * math/w_lgamma_r.c: Likewise.
7213         * math/w_lgammaf.c: Likewise.
7214         * math/w_lgammaf_r.c: Likewise.
7215         * math/w_lgammal.c: Likewise.
7216         * math/w_lgammal_r.c: Likewise.
7217         * math/w_log.c: Likewise.
7218         * math/w_log10.c: Likewise.
7219         * math/w_log10f.c: Likewise.
7220         * math/w_log10l.c: Likewise.
7221         * math/w_log2.c: Likewise.
7222         * math/w_log2f.c: Likewise.
7223         * math/w_log2l.c: Likewise.
7224         * math/w_logf.c: Likewise.
7225         * math/w_logl.c: Likewise.
7226         * math/w_pow.c: Likewise.
7227         * math/w_powf.c: Likewise.
7228         * math/w_powl.c: Likewise.
7229         * math/w_remainder.c: Likewise.
7230         * math/w_remainderf.c: Likewise.
7231         * math/w_remainderl.c: Likewise.
7232         * math/w_scalb.c: Likewise.
7233         * math/w_scalbf.c: Likewise.
7234         * math/w_scalbl.c: Likewise.
7235         * math/w_sinh.c: Likewise.
7236         * math/w_sinhf.c: Likewise.
7237         * math/w_sinhl.c: Likewise.
7238         * math/w_sqrt.c: Likewise.
7239         * math/w_sqrtf.c: Likewise.
7240         * math/w_sqrtl.c: Likewise.
7241         * math/w_tgamma.c: Likewise.
7242         * math/w_tgammaf.c: Likewise.
7243         * math/w_tgammal.c: Likewise.
7245         * po/ja.po: Update from translation team.
7247 2011-09-29  Andreas Jaeger  <aj@suse.de>
7249         [BZ #13179]
7250         * sunrpc/netname.c (netname2host): Fix logic.
7252         [BZ #6779]
7253         [BZ #6783]
7254         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
7255         correctly.
7256         * math/w_remainder.c (__remainder): Likewise.
7257         * math/w_remainderf.c (__remainderf): Likewise.
7258         * math/libm-test.inc (remainder_test): Add test cases.
7260 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7262         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
7263         sdiv_qrnnd.
7265 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7267         * string/test-memcmp.c: Avoid unncessary #defines.
7268         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7270 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7272         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
7273         Use new sse2 version for core i3 - i7 as it's faster
7274         than sse42 version.
7275         (bit_Prefer_PMINUB_for_stringop): New.
7276         * sysdeps/x86_64/rawmemchr.S: Update.
7277         Replace with faster SSE2 version.
7278         * sysdeps/x86_64/memrchr.S: New file.
7279         * sysdeps/x86_64/memchr.S: Update.
7280         Replace with faster SSE2 version.
7282 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7284         * elf/dl-load.c (lose): Add cast to avoid warning.
7286 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7288         * po/ca.po: Update from translation team.
7290         * inet/getnetgrent_r.c: Hook up nscd.
7291         * nscd/Makefile (routines): Add nscd_netgroup.
7292         (nscd-modules): Add netgroupcache.
7293         (CFLAGS-netgroupcache.c): Define.
7294         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7295         (cache_search): Add const to second parameter.
7296         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7297         INNETGR.
7298         (dbs): Add netgrdb entry.
7299         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7300         (verify_persistent_db): Handle netgrdb.
7301         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7302         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7303         GETFDNETGR.
7304         (netgroup_response_header): Define.
7305         (innetgroup_response_header): Define.
7306         (datahead): Add netgroup_response_header and innetgroup_response_header
7307         elements.
7308         * nscd/nscd.conf: Add entries for netgroup cache.
7309         * nscd/nscd.h (dbtype): Add netgrdb.
7310         (_PATH_NSCD_NETGROUP_DB): Define.
7311         (netgroup_iov_disabled): Declare.
7312         (xmalloc, xcalloc, xrealloc): Move declarations here.
7313         (cache_search): Adjust prototype.
7314         Add netgroup-related prototypes.
7315         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7316         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7317         (__nscd_innetgr): Declare.
7318         * nscd/selinux.c (perms): Use access_vector_t as element type and
7319         add netgroup-related initializers.
7320         * nscd/netgroupcache.c: New file.
7321         * nscd/nscd_netgroup.c: New file.
7322         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7323         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7324         For four parameters use innetgr.
7325         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7326         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7327         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7328         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7330         * nscd/connections.c (register_traced_file): Don't register file
7331         for disabled databases.
7333 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7335         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7337         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7338         from tree and freeing node.
7340 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7342         * nss/nsswitch.c (__nss_database_lookup): Handle
7343         nss_parse_service_list out of memory case.
7345 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7347         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7348         out of memory case.
7350 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7352         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7353         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7354         pass it down.
7355         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7356         elf_machine_rela, elf_machine_lazy_rel.
7357         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7358         (ELF_DYNAMIC_DO_REL): Likewise.
7359         (ELF_DYNAMIC_DO_RELA): Likewise.
7360         (ELF_DYNAMIC_RELOCATE): Likewise.
7361         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7362         to ELF_DYNAMIC_DO_REL.
7363         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7364         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7365         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7366         elf_machine_rela.
7367         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7368         skip_ifunc, don't call ifunc function if non-zero.
7369         (elf_machine_rela): Likewise.
7370         (elf_machine_lazy_rel): Likewise.
7371         (elf_machine_lazy_rela): Likewise.
7372         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7373         (elf_machine_lazy_rel): Likewise.
7374         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7375         Likewise.
7376         (elf_machine_lazy_rel): Likewise.
7377         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7378         Likewise.
7379         (elf_machine_lazy_rel): Likewise.
7380         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7381         (elf_machine_lazy_rel): Likewise.
7382         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7383         (elf_machine_lazy_rel): Likewise.
7384         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7385         (elf_machine_lazy_rel): Likewise.
7386         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7387         (elf_machine_lazy_rel): Likewise.
7388         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7389         (elf_machine_lazy_rel): Likewise.
7390         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7391         (elf_machine_lazy_rel): Likewise.
7393 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7395         * nss/nss_files/files-init.c (_nss_files_init): Use static
7396         initialization for all the *_traced_file variables.
7398 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7400         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7402 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7404         [BZ #13226]
7405         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7407 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7409         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7410         Reread the line before reparsing it.
7412 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7414         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7416 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7417             Maxim Kuvyrkov  <maxim@codesourcery.com>
7418             Joseph Myers  <joseph@codesourcery.com>
7420         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7421         if needed for __stack_chk_guard.
7423 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7425         * sysdeps/posix/spawni.c (script_execute): Always define it.
7426         It will be optimized away if unused.
7427         (maybe_script_execute): New function.
7428         (__spawni): Call it.
7430         * Makerules: Don't include tls.make.
7431         (config-tls): Always set to thread.
7432         * tls.make.c: File removed.
7434 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7436         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7437         * config.make.in (CPPFLAGS-config): New substituted variable.
7439 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7441         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7443         [BZ #13192]
7444         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7445         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7447 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7449         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7450         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7451         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7452         (CALL_FAIL): Likewise.
7453         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7454         (CALL_FAIL): Macro removed.
7455         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7457 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7459         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7460         for __FINITE_MATH_ONLY__ == 1.
7462 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7464         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7465         __ieee754_sqrt instead of sqrt.
7466         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7467         __ieee754_sqrtf instead of sqrtf.
7468         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7469         __floorf instead of floorf.
7470         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7471         __floorf, __truncf instead of floorf, truncf.
7473 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7475         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7477         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7478         __extern_always_inline.
7479         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7480         32-bit.
7482 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7484         * elf/rtld.c (dl_main): Also relocate in dependency order when
7485         doing symbol dependency testing.
7487 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7489         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7490         Always define `refsym'.
7492 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7494         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7495         (__FD_ELT): Renamed from __FDELT.
7496         * misc/bits/select2.h (__FD_ELT): Likewise.
7497         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7498         __FD_MASK instead of __FDELT, __FDMASK.
7499         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7500         Likewise.
7501         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7502         Likewise.
7504         * elf/Makefile (gen-ldd): Fix pattern.
7506         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7507         (init_tls): Likewise.
7509 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7511         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7513 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7515         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7516         `struct cmsghdr *' instead of `void *'.
7517         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7518         Likewise.
7520 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7522         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7523         if non-absolute.
7524         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7525         ldd_rewrite_script.
7527 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7529         * configure.in: Remove --with-tls option.
7530         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7531         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7532         out in case it is missing.
7533         * sysdeps/ia64/elf/configure.in: Likewise.
7534         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7535         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7536         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7537         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7538         * sysdeps/sh/elf/configure.in: Likewise.
7539         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7540         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7541         * sysdeps/x86_64/elf/configure.in: Likewise.
7542         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7543         * sysdeps/mach/hurd/tls.h: Likewise.
7545         [BZ #13067]
7546         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7548         [BZ #13090]
7549         * configure.in: Fix use of AC_INIT.
7551         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7553 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7555         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7556         __set_errno.
7557         * malloc/hooks.c: Likewise.
7559         [BZ #11929]
7560         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7561         variables statically.
7562         (narenas): Initialize.
7563         (list_lock): Initialize.
7564         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7565         initializtion of main_arena and list_lock.  Small cleanups.
7566         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7567         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7568         Add initializers to main_arena and mp_.
7569         (malloc_state): Remove pagesize member.  Change all users to use
7570         GLRO(dl_pagesize).
7572         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7573         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7574         is always initialized.
7576         * malloc/malloc.c: Removed unused configurations and dead code.
7577         * malloc/arena.c: Likewise.
7578         * malloc/hooks.c: Likewise.
7579         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7581         * include/tls.h: Removed.  USE___THREAD must always be defined.
7582         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7583         * elf/dl-libc.c: Likewise.
7584         * elf/dl-tsd.c: Likewise.
7585         * include/errno.h: Likewise.
7586         * include/netdb.h: Likewise.
7587         * include/resolv.h: Likewise.
7588         * inet/herrno-loc.c: Likewise.
7589         * inet/herrno.c: Likewise.
7590         * malloc/arena.c: Likewise.
7591         * malloc/hooks.c: Likewise.
7592         * malloc/malloc.c: Likewise.
7593         * resolv/res-state.c: Likewise.
7594         * resolv/res_libc.c: Likewise.
7595         * sysdeps/i386/dl-machine.h: Likewise.
7596         * sysdeps/ia64/dl-machine.h: Likewise.
7597         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7598         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7599         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7600         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7601         * sysdeps/sh/dl-machine.h: Likewise.
7602         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7603         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7604         * sysdeps/unix/i386/sysdep.S: Likewise.
7605         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7606         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7607         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7608         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7609         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7610         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7611         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7612         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7613         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7614         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7615         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7616         * sysdeps/x86_64/dl-machine.h: Likewise.
7617         * tls.make.c: Likewise.
7619         * configure.in: Remove --with-__thread option.  Make tests for
7620         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7621         tls_model attribute fail if no support is available.  Remove
7622         USE_IN_LIBIO.
7623         * Makeconfig: Adjust for dropped configure option.  All features are
7624         now mandatory.
7625         * Makerules: Likewise.
7626         * Versions.def: Likewise.
7627         * argp/argp-fmtstream.c: Likewise.
7628         * argp/argp-fmtstream.h: Likewise.
7629         * argp/argp-help.c: Likewise.
7630         * assert/assert.c: Likewise.
7631         * config.h.in: Likewise.
7632         * config.make.in: Likewise.
7633         * configure: Likewise.
7634         * configure.in: Likewise.
7635         * csu/Versions: Likewise.
7636         * csu/init.c: Likewise.
7637         * elf/tst-audit2.c: Likewise.
7638         * elf/tst-tls10.c: Likewise.
7639         * elf/tst-tls10.h: Likewise.
7640         * elf/tst-tls11.c: Likewise.
7641         * elf/tst-tls12.c: Likewise.
7642         * elf/tst-tls14.c: Likewise.
7643         * elf/tst-tlsmod11.c: Likewise.
7644         * elf/tst-tlsmod12.c: Likewise.
7645         * elf/tst-tlsmod13.c: Likewise.
7646         * elf/tst-tlsmod13a.c: Likewise.
7647         * elf/tst-tlsmod14a.c: Likewise.
7648         * elf/tst-tlsmod15b.c: Likewise.
7649         * elf/tst-tlsmod16a.c: Likewise.
7650         * elf/tst-tlsmod16b.c: Likewise.
7651         * elf/tst-tlsmod7.c: Likewise.
7652         * elf/tst-tlsmod8.c: Likewise.
7653         * elf/tst-tlsmod9.c: Likewise.
7654         * gmon/gmon.c: Likewise.
7655         * grp/fgetgrent_r.c: Likewise.
7656         * grp/putgrent.c: Likewise.
7657         * hurd/fopenport.c: Likewise.
7658         * include/libc-symbols.h: Likewise.
7659         * include/tls.h: Likewise.
7660         * intl/gettextP.h: Likewise.
7661         * intl/loadinfo.h: Likewise.
7662         * locale/global-locale.c: Likewise.
7663         * locale/localeinfo.h: Likewise.
7664         * mach/devstream.c: Likewise.
7665         * malloc/arena.c: Likewise.
7666         * malloc/set-freeres.c: Likewise.
7667         * misc/err.c: Likewise.
7668         * misc/getttyent.c: Likewise.
7669         * misc/mntent_r.c: Likewise.
7670         * posix/getopt.c: Likewise.
7671         * posix/wordexp.c: Likewise.
7672         * pwd/fgetpwent_r.c: Likewise.
7673         * resolv/Versions: Likewise.
7674         * resolv/res_hconf.c: Likewise.
7675         * shadow/fgetspent_r.c: Likewise.
7676         * shadow/putspent.c: Likewise.
7677         * stdio-common/printf_fphex.c: Likewise.
7678         * stdio-common/tmpfile.c: Likewise.
7679         * stdlib/abort.c: Likewise.
7680         * stdlib/fmtmsg.c: Likewise.
7681         * sunrpc/auth_unix.c: Likewise.
7682         * sunrpc/clnt_perr.c: Likewise.
7683         * sunrpc/clnt_tcp.c: Likewise.
7684         * sunrpc/clnt_udp.c: Likewise.
7685         * sunrpc/clnt_unix.c: Likewise.
7686         * sunrpc/openchild.c: Likewise.
7687         * sunrpc/svc_simple.c: Likewise.
7688         * sunrpc/svc_tcp.c: Likewise.
7689         * sunrpc/svc_udp.c: Likewise.
7690         * sunrpc/svc_unix.c: Likewise.
7691         * sunrpc/xdr.c: Likewise.
7692         * sunrpc/xdr_array.c: Likewise.
7693         * sunrpc/xdr_rec.c: Likewise.
7694         * sunrpc/xdr_ref.c: Likewise.
7695         * sunrpc/xdr_stdio.c: Likewise.
7697 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7699         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7701 2011-07-03  Andreas Jaeger  <aj@suse.de>
7703         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7704         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7705         regenerate with gen-libm-tests.pl.
7707 2010-05-12  Petr Baudis  <pasky@suse.cz>
7709         [BZ #11589]
7710         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7711         around j0() zero points by switching to j1().
7712         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7713         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7714         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7715         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7717 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7719         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7720         instead of 0.
7721         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7722         instead of 0.                              .
7723         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7724         Patch in part by Pavel Roskin <proski@gnu.org>.
7726         [BZ #13138]
7727         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7728         realloc.
7729         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7730         Free memory block if necessary.
7732         [BZ #12847]
7733         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7734         be NULL.  Don't lock in this case.
7736 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7738         * elf/elf.h (ELFOSABI_GNU): New macro.
7739         (ELFOSABI_LINUX): Define to that.
7741 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7743         * string/strncat.c (strncat): Undef the symbol in case it has been
7744         defined in bits/string.h.
7746 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7748         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7750         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7751         link map.
7753 2011-08-17  Andreas Jaeger  <aj@suse.de>
7755         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7757 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7758             Ian Lance Taylor  <iant@google.com>
7760         * math/libm-test.inc (lround_test): New testcase.
7761         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7763 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7765         * Makefile: Remove support for automatic cvs check-ins.
7766         * Makerules: Likewise.
7767         * config.make.in: Likewise.
7768         * configure.in: Likewise.
7769         * intl/Makefile: Likewise.
7770         * locale/Makefile: Likewise.
7771         * po/Makefile: Likewise.
7772         * posix/Makefile: Likewise.
7773         * sysdeps/gnu/Makefile: Likewise.
7774         * sysdeps/mach/hurd/Makefile: Likewise.
7775         * sysdeps/sparc/sparc32/Makefile: Likewise.
7777         [BZ #13118]
7778         * posix/Makefile (bug-regex32-ENV): Define.
7779         Patch by John Stanley <jpsinthemix@verizon.net>.
7781         * misc/Makefile (headers): Add bits/select2.h.
7782         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7783         * misc/bits/select2.h: New file.
7784         * include/bits/select2.h: New file.
7785         * debug/Makefile (routines): Add fdelt_chk.
7786         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7787         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7788         FD_ISSET.
7789         * debug/fdelt_chk.c: New file.
7791         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7792         * wcsmbs/test-wmemcmp.c: Likewise.
7793         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7794         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7796 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7798         * string/Makefile (strop-tests): Add memcmp.
7799         * string/test-wmemcmp.c: New file.
7800         * string/test-memcmp.c: Add wmemcmp support.
7802 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7804         [BZ #13153]
7805         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7806         2011-07-19 change.
7808         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7809         garbage value in a __mach_port_mod_refs call in the cases of the
7810         task-self and thread-self ports.
7812 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7814         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7816 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7818         * elf/dl-load.c (lose): Check for non-null L.
7820 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7822         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7824         * elf/dl-libc.c (dlerror_run): Pass back error code from
7825         dl_catch_error.
7827         [BZ #13123]
7828         * elf/dl-load.c (lose): Free l_origin if it is valid.
7830         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7831         names.
7832         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7833         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7834         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7835         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7836         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7837         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7839 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7841         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7842         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7843         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7844         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7845         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7846         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7847         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7848         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7849         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7850         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7852 2011-08-15  Alan Modra  <amodra@gmail.com>
7854         [BZ #13092]
7855         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7856         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7857         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7858         ppc_mcount to static-only-routines.
7859         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7860         __mcount_internal.
7861         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7862         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7864 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7866         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7867         for finite and infinity parameters.
7869 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7871         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7872         and add nop instructions for throughput optimization.
7873         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7875 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7877         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7878         aligned copy for power7 with vector-scalar instructions.
7879         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7881 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7883         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7884         AVX check.
7886 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7888         [BZ #13144]
7889         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7890         last change.
7892 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7894         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7895         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7896         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7897         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7898         clock_gettime.
7900 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7902         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7903         Forgot to demangle the pointer.
7905         * sysdeps/i386/sysdep.h: Define atom_text_section.
7906         * sysdeps/x86_64/sysdep.h: Likewise.
7907         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7908         section with atom_text_section.
7909         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7910         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7911         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7912         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7913         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7915         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7916         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7917         already be defined.  Change to take two parameters and don't assign
7918         result to variable.  Adjust all users.
7919         Define INTERNAL_GETTIME if not already defined.
7920         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7921         call.
7922         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7923         HAVE_CLOCK_GETTIME_VSYSCALL.
7924         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7926         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7927         gettimeofday vsyscall, just use time.
7929 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7931         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7932         <errno.h>.
7934 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7936         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7937         syscall on x86-64.
7938         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7939         syscall.
7940         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7941         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7942         syscall if possible.
7944 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7946         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7947         e_ident.  Don't pass to find_mapsXX.
7948         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7950 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7952         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7953         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7954         * sysdeps/x86_64/multiarch/strchr.S: Update.
7955         Check bit_slow_BSF bit.
7956         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7957         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7958         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7960 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7962         [BZ #13134]
7963         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7964         before glibc 2.15.
7965         (tryshell): Define.
7966         (__spawni): Change last parameter to be flag.  Test
7967         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7968         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7969         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7970         * posix/spawni.c: Likewise.
7971         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7972         * posix/spawnp.c: Likewise.  Change normal version to use
7973         SPAWN_XFLAGS_USE_PATH.
7974         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7975         SPAWN_XFLAGS_TRY_SHELL.
7977         [BZ #13150]
7978         * posix/glob.h: Remove gcc 1.x support.
7980         [BZ #13068]
7981         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7983 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7985         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7986         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7987         strrchr-sse2-bsf
7988         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7989         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7990         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7991         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7992         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7993         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7995 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7997         * sysdeps/x86_64/wcscmp.S: New file.
7999         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
8000         wcscmp-c wcscmp-sse2
8001         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
8002         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
8003         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
8004         * wcsmbs/wcscmp.c: Allow renaming.
8006 2011-09-05  David S. Miller  <davem@davemloft.net>
8008         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
8009         stack slot, rather than the struct return pointer slot.
8010         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
8011         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
8012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
8013         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
8015 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8017         * po/ja.po: Update from translation team.
8019         [BZ #13144]
8020         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
8021         kernel in 64-bit binaries.
8023 2011-09-01  David S. Miller  <davem@davemloft.net>
8025         * elf/elf.h (HWCAP_SPARC_*): Move to..
8026         * sysdeps/sparc/sysdep.h: this new file and add new values.
8027         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
8028         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
8029         _DL_HWCAP_COUNT to 24.
8030         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8031         entries.
8032         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
8033         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
8034         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
8035         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
8036         instead of magic constants.
8037         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8039 2011-08-31  David S. Miller  <davem@davemloft.net>
8041         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
8042         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
8043         Reimplement to do errno handling inline.
8044         (SYSCALL_ERROR_HANDLER): New macro.
8045         (__SYSCALL_STRING): Do not do errno handling in asm.
8046         (__CLONE_SYSCALL_STRING): Delete.
8047         (__INTERNAL_SYSCALL_STRING): Delete.
8048         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8049         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
8050         (PSEUDO): Reimplement to do errno handling inline.
8051         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
8052         (SYSCALL_ERROR_HANDLER): New macro.
8053         (__SYSCALL_STRING): Do not do errno handling in asm.
8054         (__CLONE_SYSCALL_STRING): Delete.
8055         (__INTERNAL_SYSCALL_STRING): Delete.
8056         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
8057         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
8058         i386.
8059         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
8060         (inline_syscall*): Add 'err' argument.
8061         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
8062         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
8063         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
8064         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
8066         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
8067         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8069 2011-08-30  Andreas Schwab  <schwab@redhat.com>
8071         * elf/rtld.c (dl_main): Relocate objects in dependency order.
8073 2011-08-29  Jiri Olsa <jolsa@redhat.com>
8075         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
8076         directive.
8078 2011-08-24  David S. Miller  <davem@davemloft.net>
8080         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
8082 2011-08-24  Andreas Schwab  <schwab@redhat.com>
8084         * elf/Makefile: Add rules to build and run unload8 test.
8085         * elf/unload8.c: New file.
8086         * elf/unload8mod1.c: New file.
8087         * elf/unload8mod1x.c: New file.
8088         * elf/unload8mod2.c: New file.
8089         * elf/unload8mod3.c: New file.
8091         * elf/dl-close.c (_dl_close_worker): Reset private search list if
8092         it wasn't used.
8094 2011-08-23  David S. Miller  <davem@davemloft.net>
8096         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
8097         subtract stack bias.
8098         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
8099         %sp not %fp in calculations.
8100         (_JMPBUF_UNWINDS_ADJ): Likewise.
8102         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
8103         (aio_suspend): Call it to force an exception region around the
8104         AIO_MISC_WAIT() invocation.
8106 2011-08-23  Andreas Schwab  <schwab@redhat.com>
8108         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
8109         backslash.
8111 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
8113         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
8114         protection macro.
8115         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
8116         and <dl-machine.h>.
8117         (Elf64_FuncDesc): Remove.
8119 2011-08-22  David S. Miller  <davem@davemloft.net>
8121         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
8122         sigaltstack check, add missing cfi directives.
8123         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
8124         missing cfi directives, and sigaltstack handling.
8126 2011-08-16  Andreas Schwab  <schwab@redhat.com>
8128         [BZ #11724]
8129         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
8130         object is seen twice.
8131         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8133         * elf/Makefile (distribute): Add tst-initorder2.c.
8134         (tests): Add tst-initorder2.
8135         (modules-names): Add tst-initorder2a tst-initorder2b
8136         tst-initorder2c tst-initorder2d.  Add rules to build them.
8137         ($(objpfx)tst-initorder2.out): New rule.
8138         * elf/tst-initorder2.c: New file.
8139         * elf/tst-initorder2.exp: New file.
8141 2011-08-22  Andreas Schwab  <schwab@redhat.com>
8143         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
8145         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
8146         dependencies back to end of function.
8148         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8149         $(elfobjdir)/ld.so.
8151 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
8153         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
8154         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
8155         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8156         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8157         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
8158         of __vdso_gettimeofday.
8159         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
8160         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
8161         attribute_hidden.
8162         (_libc_vdso_platform_setup): Remove initialization of
8163         __vdso_gettimeofday and __vdso_time.
8165 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8167         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
8168         and fgetc_unlocked.
8169         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
8170         getc_unlocked.
8172         * elf/dl-open.c (add_to_global): Report additions to the global scope
8173         for LD_DEBUG=scopes.
8174         (dl_open_worker): Also print scope of newly loaded dependencies.
8175         (_dl_show_scope): Indicate if there is no scope.
8177         [BZ #13114]
8178         * stdio-common/Makefile (tests): Add bug24.
8179         * stdio-common/bug24.c: New file.
8181 2011-08-19  Andreas Jaeger  <aj@suse.de>
8183         [BZ #13114]
8184         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
8185         non-existant file when using close-on-exec mode.
8187 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8189         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
8190         the very first instruction.
8192         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
8193         the CFI state in the end.
8194         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
8195         inclusion of dl-trampoline.h.
8196         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
8198 2011-08-19  Andreas Schwab  <schwab@redhat.com>
8200         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
8201         expectations for long double.
8203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
8204         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
8206 2011-08-14  David S. Miller  <davem@davemloft.net>
8208         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
8209         artificual limit depends upon the system page size.
8211 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8213         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
8214         * resolv/Makefile: Define CFLAGS-libresolv.
8216 2011-08-17  Andreas Schwab  <schwab@redhat.com>
8218         * nss/makedb.c (compute_tables): Make variables used in nested
8219         function static.
8221 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8223         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
8224         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
8225         if buffer was too small.
8227         * elf/pldd.c (main): Attach to all threads in the process.
8228         Rewrite /proc handling to use *at functions.
8230 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
8232         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
8233         specifies first scope to show.
8234         (dl_open_worker): Update callers.  Move printing scope of new
8235         object to before the relocation.
8236         * elf/rtld.c (dl_main): Update _dl_show_scope call.
8237         * sysdeps/generic/ldsodefs.h: Update declaration.
8239         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
8240         string for the scope number.
8242 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
8244         * nscd/servicescache.c (cache_addserv): Make sure written is always
8245         initialized.
8247 2011-08-14  Roland McGrath  <roland@hack.frob.com>
8249         * sysdeps/i386/i486/bits/atomic.h
8250         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
8251         statement expression, so as to suppress "set but not used" warning.
8252         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
8254         * string/strncat.c (STRNCAT): Use prototype definition.
8256         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
8257         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
8258         -Iprograms here.
8259         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
8260         (localedef-modules): Add localedef.
8261         (locale-modules): Add locale.
8263         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
8264         * elf/rtld.c (dl_main): Invert order of assignment in last change,
8265         to avoid a warning.
8267 2011-08-14  David S. Miller  <davem@davemloft.net>
8269         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
8270         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
8272 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
8274         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
8275         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
8276         * elf/rtld.c (dl_main): Set l_name of vDSO.
8277         Call _dl_show_scope when DL_DEBUG_SCOPES.
8278         (process_dl_debug): Recognize scopes flag and also set it for all.
8279         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8280         Declare _dl_show_scope.
8282         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8283         (do_dlopen): Pass caller_dlopen to dl_open.
8284         (__libc_dlopen_mode): Initialize caller_dlopen.
8286         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8287         of libc.  Make tolower call locale-independent.  Optimize a bit by
8288         using isdigit instead of isalnum.
8289         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8291 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8293         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8294         was a dependency or dynamically loaded.
8296 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8298         * intl/l10nflist.c: Allow architecture-specific pop function.
8299         * sysdeps/x86_64/l10nflist.c: New file.
8301         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8302         classification.
8304 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8306         * include/dirent.h: Add libc_hidden_proto for scandirat and
8307         scandirat64.  Don't declare __scandirat64.
8308         * dirent/scandirat.c: Add libc_hidden_def.
8309         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8310         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8312 2011-08-10  David S. Miller  <davem@davemloft.net>
8314         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8315         enum.
8316         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8317         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8318         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8320 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8322         * Versions.def [libc]: Add GLIBC_2.15.
8323         * dirent/Makefile (routines): Add scandirat and scandirat64.
8324         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8325         GLIBC_2.15.
8326         * dirent/dirent.h: Declare scandirat and scandirat64.
8327         * dirent/scandirat.c: New file.
8328         * dirent/scandirat64.c: New file.
8329         * sysdeps/wordsize-64/scandirat.c: New file.
8330         * sysdeps/wordsize-64/scandirat64.c: New file.
8331         * dirent/opendir.c: Define opendirat.
8332         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8333         using scandirat.
8334         * dirent/scandir64.c: Adjust for scandir.c change.
8335         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8336         __scandirat64, and __scandir_cancel_handler.
8337         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8338         additional parameter and use openat instead of open (outside of ld.so).
8339         Add new __opendir as wrapper around __opendirat.
8340         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8341         here without requiring old scandirat implementation.
8343 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8345         * dirent/scandir.c (cancel_handler): Renamed to
8346         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8347         defined.  Adjust users.
8348         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8349         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8351 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8353         * string/test-string.h (IMPL): Use __STRING to expand name and then
8354         stringify it.
8356         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8357         of cleanups.
8359 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8361         * string/Makefile: Update.
8362         (strop-tests): Append strncat.
8363         * string/test-wcscmp.c: New file.
8364         New comprehensive test for wcscmp.
8365         * string/test-strcmp.c: Update.
8366         (WIDE): New define.
8368 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8370         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8371         line.
8373 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8375         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8376         encoding to ACE if AI_IDN.
8378 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8380         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8381         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8383 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8385         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8386         Fix overflow bug in strncat.
8387         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8389         * string/test-strncat.c: Update.
8390         Add new tests for checking overflow bugs.
8392 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8394         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8395         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8396         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8397         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8398         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8399         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8400         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8401         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8402         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8404         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8405         (USE_AS_STRCAT): Define.
8406         Add strcat and strncat support.
8407         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8409 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8411         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8412         __n bigger than INT_MAX+1.
8413         (__strncmp_g): Likewise.
8415 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8417         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8418         * libio/stido.h: Likewise.
8420         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8421         (AF_NFC): Define.
8422         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8423         (AF_NFC): Define.
8425         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8426         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8427         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8428         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8429         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8431         [BZ #13021]
8432         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8433         installed.
8435         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8436         typo.
8437         (_dl_x86_64_save_sse): Likewise.
8439 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8441         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8442         OSXSAVE.
8443         (_dl_x86_64_save_sse): Likewise.
8445         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8447         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8449 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8451         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8452         change.
8453         (_dl_x86_64_save_sse): Use correct AVX check.
8455 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8457         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8458         bug in strncpy/strncat.
8459         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8461 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8463         * string/tester.c (test_strcat): Add tests for different alignments
8464         of source and destination.
8465         (test_strncat): Likewise.
8467 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8469         [BZ #12852]
8470         * posix/glob.c (glob): Check passed in values before using them in
8471         expressions to avoid some overflows.
8472         (glob_in_dir): Likewise.
8474         [BZ #13007]
8475         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8476         check for AVX enablement so that we don't crash with old kernels and
8477         new hardware.
8478         * elf/tst-audit4.c: Add same checks here.
8479         * elf/tst-audit6.c: Likewise.
8481         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8483 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8485         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8487 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8489         * po/cs.po: Update from translation team.
8490         * po/bg.po: Likewise.
8492 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8494         * misc/sys/cdefs.h: Add support for const attribute.
8495         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8496         to gnu_dev_{major,minor,makedev} functions.
8498 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8500         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8502 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8504         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8505         strlen results.
8507 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8509         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8510         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8511         register in order to avoid conflicts with the soft frame pointer
8512         being held in r11 when necessary.
8513         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8514         (INTERNAL_VSYSCALL_NCS): Likewise.
8516 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8518         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8519         * elf/dl-fini.c (_dl_fini): Adjust caller.
8520         * elf/dl-close.c (_dl_close_worker): Likewise.
8521         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8523 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8525         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8526         "aux_cache->nlibs < 0".
8528         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8529         in the reload-count case.
8531 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8533         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8534         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8535         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8536         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8537         * sysdeps/x86_64/multiarch/strcat.S: New file.
8538         * sysdeps/x86_64/multiarch/strncat.S: New file.
8539         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8540         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8541         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8542         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8543         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8544         (USE_AS_STRCAT): Define.
8545         Add strcat and strncat support.
8546         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8547         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8548         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8549         * string/strncat.c: Update.
8550         (USE_AS_STRNCAT): Define.
8551         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8552         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8553         and i7.
8554         * sysdeps/x86_64/multiarch/init-arch.h
8555         (bit_Prefer_PMINUB_for_stringop): New.
8556         (index_Prefer_PMINUB_for_stringop): Likewise.
8557         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8558         bit_Prefer_PMINUB_for_stringop.
8560 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8562         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8563         buffer64.
8564         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8565         of casting of buffer.
8566         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8567         buffer32 and buffer64.
8568         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8569         writes instead of casting of buffer.
8570         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8571         buffer32.
8572         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8573         casting of buffer.
8575 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8577         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8579 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8581         * nscd/nscd.c (termination_handler): Don't do anything for a database
8582         if it has not yet been initialized.
8584 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8586         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8588 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8590         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8592 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8594         * po/nl.po: Update from translation team.
8595         * po/sv.po: Likewise.
8597 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8599         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8600         now disallowed by GCC.
8602         * configure.in (use-default-link): Default to yes if a test -shared
8603         link meets our qualifications.
8604         * configure: Regenerated.
8606         * config.make.in (output-format): New variable.
8607         * configure.in: Check for ld --print-output-format support.
8608         * configure: Regenerated.
8609         * Makerules ($(common-objpfx)format.lds)
8610         [$(output-format) != unknown]: Just use $(output-format),
8611         instead of the linker-script munging.
8613 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8615         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8616         of $(common-objpfx)shlib.lds.
8617         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8619         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8620         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8622         * configure.in (-z relro check): Adjust test code to add a large
8623         writable data section after it.
8624         * configure: Regenerated.
8626 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8628         * configure.in (-z relro check): Fix test code to make the variable
8629         truly const.
8630         * configure: Regenerated.
8632 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8634         * nscd/nscd.h (struct traced_file): Define.
8635         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8636         elements.  Add traced_files.
8637         (inotify_fd): Declare.
8638         (register_traced_file): Declare.
8639         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8640         (inotify_fd): Export.
8641         (resolv_conf_descr): Remove.
8642         (nscd_init): Move inotify descriptor creation to main.
8643         Don't register files for notification here.
8644         (register_traced_file): New function.
8645         (invalidate_cache): Don't use reset_res to determine whether to call
8646         res_init, go through the list of registered files.
8647         (main_loop_poll): The inotify descriptors are now stored in the
8648         structures for the traced files.
8649         (main_loop_epoll): Likewise
8650         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8651         to __nss_disable_nscd.
8652         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8653         for a database anymore.  Check the records for all the registered
8654         files instead.
8655         * nss/Makefile (libnss_files-routines): Add files-init.
8656         (libnss_db-routines): Add db-init.
8657         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8658         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8659         * nss/nss_db/db-init.c: New file.
8660         * nss/nss_files/files-init.c: New file.
8661         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8662         __nss_lookup_function.
8663         (__nss_lookup_function): Call nss_load_library.
8664         (nss_load_all_libraries): New function.
8665         (__nss_disable_nscd): Take parameter with callback function for files
8666         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8667         used for the cached services.
8668         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8669         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8670         options for features to all the files in nscd.
8672         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8674 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8676         * csu/elf-init.c (__libc_csu_init): Comment typo.
8678 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8680         * po/pl.po: Update from translation team.
8681         * po/ja.po: Likewise.
8682         * po/ru.po: Likewise.
8683         * po/ko.po: Likewise.
8684         * po/fr.po: Likewise.
8686 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8688         * configure.in (.ctors/.dtors header and trailer check):
8689         Use an empirical test on a built program.
8690         * configure: Regenerated.
8692         * configure.in (-z relro check): Use an empirical test on a built DSO.
8693         Detect, but do not require, on ia64.
8694         * configure: Regenerated.
8696         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8697         Update tests that use readelf to use $READELF instead.
8698         * configure: Regenerated.
8700 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8702         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8703         if the result is not used.
8705 2011-07-05  Andreas Jaeger  <aj@suse.de>
8707         [BZ#9696]
8708         * stdlib/tst-strtod.c: Add testcase.
8710 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8712         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8713         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8714         The latter has a higher limit.  Take additional parameter to pass to
8715         the new function.
8716         (__pathconf): Pass file to __statfs_link_max.
8717         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8718         __statfs_link_max.
8719         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8720         __statfs_link_max.
8722         [BZ #12868]
8723         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8724         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8725         Handle Lustre.
8726         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8727         (__statfs_filesize_max): Likewise.
8728         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8730 2011-07-05  Andreas Jaeger  <aj@suse.de>
8732         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8734 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8736         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8737         `status' variable.
8738         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8739         Likewise.
8741 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8743         * Makefile (strop-tests): Add strncat.
8744         * string/test-strncat.c: New file.
8746 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8748         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8750 2011-06-21  Andreas Jaeger  <aj@suse.de>
8752         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8753         Copy rule from iconvdata/Makefile.
8755 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8757         [BZ #12922]
8758         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8759         but no long options are defined, just return 'W'.
8761 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8763         [BZ #9696]
8764         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8766 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8768         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8769         netgroups to read.
8770         (innetgr): Likewise.
8772 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8774         * config.make.in (install_root): Default to $(DESTDIR).
8776 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8778         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8780 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8782         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8784         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8785         containing directory rather than embedding absolute directory names.
8787         * scripts/check-local-headers.sh: Rewritten using awk.
8788         Match by word, not by line.  Print error messages for matches.
8789         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8791         * Makerules [shlib-lds-flags empty]:
8792         ($(common-objpfx)libc_pic.opts): New target.
8793         ($(common-objpfx)libc_pic.os.clean): New target.
8794         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8796         * config.make.in (OBJCOPY): New variable.
8797         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8798         * configure: Regenerated.
8800         * config.make.in (use-default-link): New variable.
8801         * configure.in (use_default_link): Grok --with-default-link to set it.
8802         * configure: Regenerated.
8803         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8804         (shlib-lds, shlib-lds-flags): Define to empty.
8806         * Makerules (shlib-lds): New variable.
8807         (shlib-lds-flags): New variable.
8808         (build-shlib, build-moduile, build-module-asneeded): Use it.
8809         ($(common-objpfx)libc.so): Use $(shlib-lds).
8810         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8811         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8813         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8814         DT_FLAGS/DT_FLAGS_1 with zero flags.
8816         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8817         linker script munging.
8819 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8821         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8822         as 128-bit value.
8823         * crypt/sha512.c (sha512_process_block): Perform total addition using
8824         128-bit if possible.
8825         (__sha512_finish_ctx): Likewise.
8826         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8827         as 64-bit value.
8828         * crypt/sha256.c (SWAP64): Define.
8829         (sha256_process_block): Perform total addition using 64-bit if
8830         possible.
8831         (__sha256_finish_ctx): Likewise.
8833 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8835         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8836         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8837         * nscd/hstcache.c (cache_addhst): Likewise.
8838         * nscd/grpcache.c (cache_addgr): Likewise.
8839         * nscd/aicache.c (addhstaiX): Likewise
8840         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8842 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8844         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8845         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8846         * nscd/hstcache.c (cache_addhst): Likewise.
8847         * nscd/grpcache.c (cache_addgr): Likewise.
8848         * nscd/aicache.c (addhstaiX): Likewise
8850 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8852         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8853         domain only when needed.
8855 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8857         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8858         is always restored.
8860 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8862         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8863         are re-adding the entry.
8864         * nscd/servicescache.c (cache_addserv): Likewise.
8866 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8868         * sysdeps/generic/dl-irel.h: fix protection against multiple
8869         inclusions.
8870         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8872 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8874         [BZ #12935]
8875         * malloc/memusage.sh: Fix quoting in message.
8876         * debug/xtrace.sh: Likewise.
8878         * configure.in: Remove support for --experimental-malloc option, make
8879         it the default.
8880         * config.make.in: Likewise.
8881         * malloc/Makefile: Likewise.
8883 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8885         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8886         two-byte characters.
8888 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8890         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8891         AC_CACHE_CHECK invocation.
8892         * configure: Regenerated.
8894         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8896 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8898         [BZ #12350]
8899         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8900         bit from old_res_options.
8902         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8904         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8905         value type for setfct.
8907 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8909         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8910         __gettimeofday instead of gettimeofday.
8912 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8914         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8916 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8918         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8920         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8921         info.
8923 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8925         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8926         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8927         strcpy-sse2-unaligned strncpy-sse2-unaligned
8928         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8929         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8930         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8931         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8932         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8933         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8934         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8935         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8936         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8937         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8938         (STRCPY): Support SSE2 and SSSE3 versions.
8940 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8942         [BZ #12874]
8943         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8944         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8945         kernels which artificially limit size of requests.
8947 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8949         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8950         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8951         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8952         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8953         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8954         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8955         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8956         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8957         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8958         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8959         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8960         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8961         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8962         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8963         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8964         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8965         Enable unaligned load optimization for Intel Core i3, i5 and i7
8966         processors.
8967         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8968         Define.
8969         (index_Fast_Unaligned_Load): Define.
8970         (HAS_FAST_UNALIGNED_LOAD): Define.
8972 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8974         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8976 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8978         [BZ #12907]
8979         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8980         until it is clear that the information is realy needed.
8981         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8983 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8985         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8987 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8989         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8990         /sys/devices/system/cpu/online if it is usable.
8992         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8993         reading the information from the /proc filesystem to once a second.
8995 2011-06-21  Andreas Jaeger  <aj@suse.de>
8997         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8998         NULL after inclusion of kernel headers.
9000 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
9002         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
9003         calls to internal_setent.
9005         [BZ #12885]
9006         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
9007         addresses using gethostbyname4_r ignore IPv4 addresses.
9009         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
9010         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
9012         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
9014 2011-06-20  David S. Miller  <davem@davemloft.net>
9016         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
9017         inclusions.
9018         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
9020         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
9021         (elf_irel): Use it.
9022         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
9023         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
9024         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
9025         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
9026         * sysdeps/x86_64/dl-irel.h: Likewise.
9028         * elf/dl-runtime.c: Use elf_ifunc_invoke.
9029         * elf/dl-sym.c: Likewise.
9031 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9033         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
9034         need to dereference resplen2.
9036 2011-06-14  Andreas Schwab  <schwab@redhat.com>
9038         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
9040 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9042         * Makeconfig: Define vardbdir and inst_vardbdir.
9043         * nss/Makefile: Add rules to install db-Makefile.
9045         * nss/nss_db/db-XXX.c: Cleanup.
9047         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
9048         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
9049         GLIBC_PRIVATE.
9050         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
9051         * nss/makedb.c: Implement -g option to specify that value strings
9052         are generated and should not be added to table iterated over for
9053         get*ent calls.
9054         * nss/nss_db/db-initgroups.c: New file.
9056         * nss/getent.c: Add support for initgroups lookups through getgrouplist
9057         interface.
9059         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
9060         (internal_getgrouplist): Adjust to name change.
9061         Update use_initgroups_entry if this is not the first call.
9062         * nss/databases.def: Add initgroups entry.
9064         * nss/makedb.c (compute_tables): Check result of multiple hash table
9065         sizes to minimize maximum chain length.
9067 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
9069         * Versions.def: Add entry for libnss_db.
9070         * shlib-versions: Likewise.
9071         * nss/Makefile: Add rules to build libnss_db.
9072         * nss/Versions: Add libnss_db information.  Organize libnss_files
9073         entries better.
9074         * nss/db-Makefile: Add gshadow support.  Change rules for the new
9075         makedb progra.  Some minor improvements to generate smaller files.
9076         * nss/nss_db/nss_db.h: Move NSS database header data structures to
9077         here from...
9078         * nss/makedb.c: ...here.
9079         Improve database format to be smaller and require less memory at
9080         runtime.
9081         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
9082         db anymore.
9083         * nss/nss_db/db-netgrp.c: Likewise.
9084         * nss/nss_db/db-open.c: Likewise.
9085         * nss/nss_files/flies-XXX.x: Adjust comments.
9086         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
9087         * nss/nss_files/files-grp.c: Likewise.
9088         * nss/nss_files/files-hosts.c: Likewise.
9089         * nss/nss_files/files-network.c: Likewise.
9090         * nss/nss_files/files-proto.c: Likewise.
9091         * nss/nss_files/files-pwd.c: Likewise.
9092         * nss/nss_files/files-rpc.c: Likewise.
9093         * nss/nss_files/files-service.c: Likewise.
9094         * nss/nss_files/files-sgrp.c: Likewise.
9095         * nss/nss_files/files-spwd.c: Likewise.
9096         * nss/nss_db/db-alias.c: Removed.
9097         * nss/nss_db/dummy-db.h: Removed.
9099 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
9101         * nss/makedb.c: Rewritten to not use database library.
9102         * nss/Makefile: Update to build new makedb program.
9104 2011-06-14  Andreas Jaeger  <aj@suse.de>
9106         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
9107         memset declaration.
9109 2011-06-10  Andreas Schwab  <schwab@redhat.com>
9111         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
9112         tmpbuf.
9114 2011-06-10  Roland McGrath  <roland@hack.frob.com>
9116         * Makerules (shlib.lds): Fail if the linker script comes out empty.
9117         * elf/Makefile ($(objpfx)ld.so): Likewise.
9119         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
9120         Don't list ld.so twice in dependencies.
9122         * posix/bug-regex31.c: Include <stdlib.h>.
9124         * nscd/hstcache.c (cache_addhst): Remove unused variable.
9126         * nis/nss_compat/compat-spwd.c
9127         (getspent_next_nss_netgr): Remove unused variable.
9128         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
9130         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
9131         nonmembers" output to use the right array.
9133         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
9135         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
9137         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
9138         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
9139         * catgets/gencat.c (read_input_file): Likewise.
9140         * locale/programs/locarchive.c (enlarge_archive): Likewise.
9142         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
9143         variable definition inside #if's controlling its use.
9145         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
9147         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
9149         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
9151         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
9152         unreachable code.
9154         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
9156         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
9157         * configure: Regenerated.
9159         * Makerules: Revert last change.
9160         * elf/Makefile: Likewise.
9162 2011-06-09  Roland McGrath  <roland@hack.frob.com>
9164         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
9165         * elf/Makefile ($(objpfx)librtld.os): Likewise.
9166         (reloc-link): Likewise.
9168 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
9170         * elf/Makefile: Add rules to build pldd.
9171         * elf/pldd.c: New file.
9172         * elf/pldd-xx.c: New file.
9174 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
9176         * version.h: Update for 2.15 development version.
9178 2011-06-07  David S. Miller  <davem@davemloft.net>
9180         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
9181         ifuncs.
9182         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
9183         elf_machine_lazy_rel): Likewise.
9184         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9185         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
9186         elf_machine_lazy_rel): Likewise.
9187         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
9188         dl_hwcap via passed in argument.
9189         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
9190         Likewise.
9192 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9194         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
9196 2011-06-06  Roland McGrath  <roland@hack.frob.com>
9198         [BZ #12849]
9199         * manual/fdl-1.1.texi: New file, verbatim from:
9200         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
9201         * manual/lgpl-2.1.texi: New file, verbatim from:
9202         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
9203         * manual/Makefile (licenses): New variable, list those new file names.
9204         (texis): Use it.
9205         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
9207         * manual/fdl.texi: File removed.
9208         * manual/lesser.texi: File removed.
9209         * manual/libc.texinfo (Copying, Documentation License):
9210         Use new @include file names, put @appendix directive before @include.
9212 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9214         [BZ #12841]
9215         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
9216         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
9217         (mq_open): Add __NTH.
9219 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
9221         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9222         Assume Intel Core i3/i5/i7 processor if AVX is available.
9224 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9226         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9227         typo.
9229 2011-05-31  Andreas Schwab  <schwab@redhat.com>
9231         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
9232         memory.  Use alloca_account.  Fix memory leak when retrying.
9234 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9236         * version.h (RELEASE): Bump for 2.14 release.
9237         * include/features.h (__GLIBC_MINOR__): Bump to 14.
9239         * config.make.in (RANLIB): Remove entry.
9241 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
9243         * po/Makefile (po-sed-cmd): Add ksh to extensions.
9244         (libc.pot): Work around missing support for .ksh extension in xgettext.
9246         [BZ #12684]
9247         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
9248         if both request failed.
9249         (send_dg): In case of server errors clear resplen or *resplen2.
9251         [BZ #12454]
9252         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
9253         when there are multiple maps.
9254         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
9255         (_dl_fini): Remove test here.
9257         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
9259 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
9261         [BZ #12350]
9262         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9263         bit from old_res_options.
9264         (gaih_inet): Likewise.
9266         [BZ #11099]
9267         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
9268         as signed.
9270         * resolv/res_init.c (res_setoptions): Make the code more compact.
9272         [BZ #11558]
9273         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
9274         set RES_USEVC.
9276         [BZ #11634]
9277         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9279         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9281         [BZ #11781]
9282         * malloc/malloc.h: Declare malloc hook variables as volatile.
9284         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9285         in last patch.
9287         [BZ #11799]
9288         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9289         raise in the comment.
9290         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9291         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9292         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9294 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9296         [BZ #12811]
9297         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9298         grow the buffers more if it already has to be sufficient.
9299         (build_wcs_upper_buffer): Likewise.
9300         * posix/regexec.c (check_matching): Likewise.
9301         (clean_state_log_if_needed): Likewise.
9302         (extend_buffers): Don't enlarge buffers beyond size of the input
9303         buffer.
9304         Patches mostly by Emil Wojak <emil@wojak.eu>.
9305         * posix/bug-regex32.c: New file.
9306         * posix/Makefile (tests): Add bug-regex32.
9308         * locale/findlocale.c (_nl_find_locale): Return right away if
9309         _nl_explode_name failed.
9310         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9312         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9314         * debug/xtrace.sh: Unify messages.
9315         * malloc/memusage.sh: Likewise.
9317         [BZ #12813]
9318         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9319         time symbol from vDSO.  Substitute with vsyscall if not available.
9320         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9321         __vdso_time.
9323         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9324         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9325         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9326         Add sendmmsg and internal_sendmmsg.
9327         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9328         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9329         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9331         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9332         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9333         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9335 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9337         [BZ #12813]
9338         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9339         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9340         available.
9341         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9342         __vdso_getcpu.
9344         [BZ #12814]
9345         * iconvdata/Makefile (tests): Add bug-iconv9.
9346         * iconvdata/bug-iconv9.c: New file.
9348 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9350         [BZ #12814]
9351         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9353 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9355         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9356         (struct user_regs_struct): Change intcs field back to cs.
9358 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9360         * po/ja.po: Update from translation team.
9362 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9364         [BZ #12795]
9365         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9366         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9368 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9370         * stdlib/longlong.h: Update from GCC.
9372 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9374         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9375         parameter name.
9376         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9377         Add parameter name.
9378         (__sysconf): Pass it down.
9380 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9382         [BZ #12671]
9383         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9384         some situations.
9385         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9386         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9387         add in in __libc_use_alloca calls.  Adjust callers.
9388         (glob): Use malloc in some situations.
9390         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9391         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9392         pltexit.
9394 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9396         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9397         and CLOCK_BOOTTIME_ALARM.
9399         [BZ #12782]
9400         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9401         is returned.
9403         * string/_strerror.c (__strerror_r): Print negative errors as signed
9404         numbers.
9406         [BZ #12777]
9407         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9408         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9409         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9411         * configure.in: Fix typo in redirection and correct removal of test
9412         files in two cases.
9414         [BZ #12788]
9415         * locale/setlocale.c (new_composite_name): Fix test to check for
9416         identical name of all categories.
9418         [BZ #12792]
9419         * libio/filedoalloc.c (local_isatty): New function.
9420         (_IO_file_doallocate): Use local_isatty.
9421         * stdio-common/perror.c (perror): In case a new stream is used
9422         forward the stream error.
9423         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9424         error flag.
9426 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9428         [BZ #11869]
9429         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9430         alloca.
9431         * include/alloca.h (extend_alloca_account): Define.
9433         [BZ #11857]
9434         * posix/regex.h: Fix comments with documentation of user-accessible
9435         fields after compilation and describe correct free'ing of pattern
9436         after re_compile_pattern.
9437         Patch by Reuben Thomas <rrt@sc3d.org>.
9439 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9441         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9442         and -mno-altivec to prevent the compiler from using Altivec and/or
9443         VSX instructions when the corresponding registers are not available.
9445 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9447         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9449 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9451         * libio/freopen.c (freopen): Use __dup2, not dup2.
9452         * libio/freopen64.c (freopen64): Likewise.
9454 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9456         [BZ #12775]
9457         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9458         * math/Makefile (tests): Add test-powl.
9459         (CFLAGS-test-powl.c): Define.
9460         * math/test-powl.c: New file.
9462 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9464         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9466 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9468         [BZ #11837]
9469         * iconvdata/gb18030.c: Update to GB18020-2005.
9471 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9473         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9474         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9475         Patch by Aharon Robbins <arnold@skeeve.com>.
9477         [BZ #11892]
9478         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9479         on the stack.
9481         [BZ #11895]
9482         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9483         through underflows.
9485         [BZ #12766]
9486         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9487         point to strings before performing equality test for error_one_per_line
9488         mode.
9490         [BZ #11697]
9491         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9493         [BZ #11820]
9494         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9495         (struct user_fpregs_struct): Avoid __uint*_t types.
9497         [BZ #6420]
9498         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9499         symbol info.  Use it instead of calling _dl_addr locally.
9500         (lock_and_info): New function.
9501         (tr_freehook): Call lock_and_info and pass symbol info as additional
9502         parameter to tr_where.
9503         (tr_mallochook): Likewise.
9504         (tr_reallochook): Likewise.
9505         (tr_memalignhook): Likewise.
9507         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9508         used and couldn't be at all thread-safe.
9510 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9512         * libio/freopen.c (freopen): Don't close old file descriptor
9513         before the new one is opened.  Instead dup the new file descriptor
9514         to the old one after the new stream is created.
9515         * libio/freopen64.c (freopen64): Likewise.
9516         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9517         * libio/fileops.c (_IO_new_file_close_it): Handle new
9518         _IO_FLAGS2_NOCLOSE flag.
9519         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9520         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9521         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9522         _IO_FLAGS2_NOCLOSE flag.
9523         * include/unistd.h: Add hidden_proto for dup3.
9524         Define __have_dup3.
9525         * io/dup3.c: Define hidden symbol.
9526         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9528         [BZ #7101]
9529         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9530         when an incomplete long option is used.
9531         * posix/tst-getopt_long1.c: New file.
9532         * posix/Makefile (tests): Add tst-getopt_long1.
9534         [BZ #10138]
9535         * scripts/config.guess: Update from autoconf-2.68.
9536         * scripts/config.sub: Likewise.
9538         [BZ #10157]
9539         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9540         tests into ...
9541         (has_cpuclock): ...this.  New function.
9542         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9543         macro here based on has_cpuclock code.
9545         [BZ #10149]
9546         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9547         First byte (not low byte) is now always NUL.
9548         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9550         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9551         Use non-cancelable interfaces.
9553         [BZ #9809]
9554         * locale/iso-639.def: Add entry for Sorani.
9556         [BZ #11901]
9557         * include/stdlib.h: Move include protection to the right place.
9558         Define abort_msg_s.  Declare __abort_msg with it.
9559         * stdlib/abort.c (__abort_msg): Adjust type.
9560         * assert/assert.c (__assert_fail_base): New function.  Majority
9561         of code from __assert_fail.  Allocate memory for __abort_msg with
9562         mmap.
9563         (__assert_fail): Now call __assert_fail_base.
9564         * assert/assert-perr.c: Remove bulk of implementation.  Use
9565         __assert_fail_base.
9566         * include/assert.hL Declare __assert_fail_base.
9567         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9568         mmap.
9569         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9571 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9573         [BZ #11952]
9574         [BZ #12453]
9575         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9576         until all modules are registered in the DTV.
9577         * elf/Makefile: Add rules to build and run tst-tls19.
9578         * elf/tst-tls19.c: New file.
9579         * elf/tst-tls19mod1.c: New file.
9580         * elf/tst-tls19mod2.c: New file.
9581         * elf/tst-tls19mod3.c: New file.
9582         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9584         [BZ #12083]
9585         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9586         correctly.
9588         [BZ #12601]
9589         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9590         two-byte sequence errors.
9591         * iconvdata/Makefile (tests): Add bug-iconv8.
9592         * iconvdata/bug-iconv8.c: New file.
9594         [BZ #12626]
9595         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9596         buf2 definition.
9598         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9600         [BZ #12432]
9601         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9602         (dummy_getcfa): New function.
9603         (init): Get _Unwind_GetCFA address, use dummy if not found.
9604         (backtrace_helper): In recursion check, also check whether CFA changes.
9605         (__backtrace): Completely initialize arg.
9607         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9608         storing incomplete byte sequence in state object.  Avoid testing for
9609         guaranteed too small input if we know there is enough data available.
9611 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9613         * Makeconfig (+link-pie): Indent.
9614         * Rules (binaries-pie): Define if $(have-fpie) and
9615         $(build-shared).
9616         (binaries-shared): Also filter out $(binaries-pie).
9617         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9618         * nscd/Makefile (others-pie): Add nscd.
9619         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9620         ($(objpfx)nscd): Remove command override.
9621         * login/Makefile (others-pie): Add pt_chown.
9622         ($(objpfx)pt_chown): Remove command override.
9623         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9624         remove command overrides.
9626 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9628         * libio/tst_putwc.c: Fix error messages.
9630         [BZ #12724]
9631         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9632         currently writing and seek to current position when not.
9633         * libio/Makefile (tests): Add bug-fclose1.
9634         * libio/bug-fclose1.c: New file.
9636 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9638         [BZ #12511]
9639         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9640         don't set DF_1_NODELETE here.
9641         (do_lookup_x): When entering new entry test for copy relocation
9642         and if necessary set DF_1_NODELETE flag.
9643         * elf/tst-unique4.cc: New file.
9644         * elf/tst-unique4.h: New file.
9645         * elf/tst-unique4lib.cc: New file.
9646         * elf/Makefile: Add rules to build and run tst-unique4.
9647         Patch by Piotr Bury <pbury@goahead.com>.
9649 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9651         [BZ #12052]
9652         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9654         [BZ #12625]
9655         * misc/mntent_r.c (addmntent): Flush the stream after the output
9657         [BZ #12393]
9658         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9659         (is_trusted_path_normalize): Skip initial colon.  Append slash
9660         to empty buffer.  Duplicate is_trusted_path code but allow
9661         constructed patch to be prefix.
9662         (is_dst): Allow $ORIGIN followed by /.
9663         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9664         Correct testing of result of is_trusted_path_normalize
9665         (decompose_rpath): Fix warning.
9667 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9669         [BZ #11257]
9670         * grp/initgroups.c (internal_getgrouplist): When we found the service
9671         list through the initgroups entry in nsswitch.conf do not always
9672         continue on a successful lookup.  Don't always use the
9673         __nss_group_database value if it is set.
9674         * nss/nsswitch.conf (initgroups): Change action for successful db
9675         lookup to continue for compatibility.
9677 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9679         [BZ #11532]
9680         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9681         and CP774 modules.
9682         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9683         and CP774 modules.
9684         * iconvdata/tst-tables.sh: Likewise.
9685         * iconvdata/cp770.c: New file.
9686         * iconvdata/cp771.c: New file.
9687         * iconvdata/cp772.c: New file.
9688         * iconvdata/cp773.c: New file.
9689         * iconvdata/cp774.c: New file.
9690         * iconvdata/testdata/CP770: New file.
9691         * iconvdata/testdata/CP770..UTF8: New file.
9692         * iconvdata/testdata/CP771: New file.
9693         * iconvdata/testdata/CP771..UTF8: New file.
9694         * iconvdata/testdata/CP772: New file.
9695         * iconvdata/testdata/CP772..UTF8: New file.
9696         * iconvdata/testdata/CP773: New file.
9697         * iconvdata/testdata/CP773..UTF8: New file.
9698         * iconvdata/testdata/CP774: New file.
9699         * iconvdata/testdata/CP774..UTF8: New file.
9701         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9702         END CHARMAP line.
9703         * iconvdata/gen-8bit-gap.sh: Likewise.
9704         * iconvdata/gen-8bit.sh: Likewise.
9706         * locale/iso-639.def: Add ary entry.
9708         [BZ #11258]
9709         * locale/C-translit.h.in: Add U20A1 transliteration.
9711         [BZ #12178]
9712         * locale/iso-639.def: Add wae entry.
9713         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9715         [BZ #12545]
9716         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9717         for n.
9719         [BZ #12711]
9720         * locale/C-translit.h.in: Add entry for U20B9.
9721         Patch by pravin.d.s@gmail.com.
9723 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9725         [BZ #12713]
9726         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9727         ENAMETOOLONG use generic getcwd.
9728         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9729         in rtld.  Use *stat64.
9730         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9731         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9732         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9733         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9734         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9735         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9736         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9737         __fstatat64 macros.
9738         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9739         * dirent/rewinddir.c: Add libc_hidden_def.
9740         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9741         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9743         * include/dirent.h (__alloc_dir): Add flags parameter.
9744         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9745         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9746         __alloc_dir.
9747         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9748         from fdopendir if O_CLOEXEC is already set.
9750 2011-03-15  Alan Modra  <amodra@gmail.com>
9752         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9753         l_tls_firstbyte_offset non-zero.  Save padding offset in
9754         l_tls_firstbyte_offset for later use.
9755         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9756         freeing static tls block.
9758 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9760         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9761         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9762         being defined by the kernel headers.
9764 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9766         [BZ #12734]
9767         * resolv/resolv.h: Define RES_NOTLDQUERY.
9768         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9769         no-tld-query and set RES_NOTLDQUERY.
9770         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9771         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9772         modern BIND to search name as TLD unless forbidden.
9774 2011-05-07  Petr Baudis  <pasky@suse.cz>
9775             Ulrich Drepper  <drepper@gmail.com>
9777         [BZ #12393]
9778         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9779         (is_trusted_path): ...to here.
9780         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9781         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9782         using is_trusted_path_normalize() in setuid scripts.
9784 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9786         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9787         __BEGIN/__END_DECLS.
9789 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9791         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9792         NSS_STATUS_NOTFOUND if no record was found.
9794 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9796         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9797         (headers-not-in-tirpc): Remove rpc/netdb.h
9798         * resolv/netdb.h: Revert last change.
9800 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9802         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9803         circular dependency between libgcc.a and libc.a.
9805 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9807         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9808         * nis/Makefile: Don't install rpcsvc/*.
9809         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9810         instead of <rpc/types.h>.
9811         (MAXHOSTNAMELEN): Define.
9813 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9815         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9817 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9819         [BZ #12714]
9820         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9821         gethostbyname4_r when IPv6 results are possible.
9823 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9825         [BZ #12723]
9826         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9827         _PC_PIPE_BUF handling.
9829 2011-04-30  Bruno Haible  <bruno@clisp.org>
9831         [BZ #12717]
9832         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9833         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9834         to 'int'.
9835         * inet/getnameinfo.c (getnameinfo): Likewise.
9837 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9839         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9840         to groups setting in database lookup.
9841         * nss/nsswitch.conf: Add initgroups entry.
9843 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9845         [BZ #12685]
9846         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9847         mode string.
9848         Patch by Eric Blake <eblake@redhat.com>.
9850 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9852         * sunrpc/Makefile (need-export-routines): Add svc_run.
9853         (routines): Remove svc_run.
9854         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9855         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9856         * sunrpc/svc_run.c (svc_run): Likewise.
9857         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9859 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9861         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9862         problem in reallocation in last patch.
9864 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9866         * sunrpc/Makefile: Move inclusion of Rules.
9868 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9870         * nss/nss_files/files-initgroups.c: New file.
9871         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9872         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9873         _nss_files_initgroups_dyn.
9875 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9877         * elf/elf.h (R_ARM_IRELATIVE): Define.
9879 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9881         * po/ru.po: Update from translation team.
9883 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9885         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9886         dependencies.
9888 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9890         [BZ #12653]
9891         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9892         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9893         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9894         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9895         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9897 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9899         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9900         differing bytes.
9901         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9902         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9903         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9905 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9907         [BZ #12420]
9908         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9909         storing it.
9910         * stdlib/bug-getcontext.c: New file.
9911         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9913 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9915         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9916         instructions into .machine "z9-109".
9917         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9918         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9920 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9922         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9923         between environment variables and auxiliary vector.
9925 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9927         * Makefile: Add rules to build linkobj/libc.so.
9928         * include/libc-symbols.h: Define libc_hidden_nolink.
9929         * include/rpc/auth.h: Mark functions which are to be hidden.
9930         * include/rpc/auth_des.h: Likewise.
9931         * include/rpc/auth_unix.h: Likewise.
9932         * include/rpc/clnt.h: Likewise.
9933         * include/rpc/des_crypt.h: Likewise.
9934         * include/rpc/key_prot.h: Likewise.
9935         * include/rpc/pmap_clnt.h: Likewise.
9936         * include/rpc/pmap_prot.h: Likewise.
9937         * include/rpc/pmap_rmt.h: Likewise.
9938         * include/rpc/rpc_msg.h: Likewise.
9939         * include/rpc/svc.h: Likewise.
9940         * include/rpc/svc_auth.h: Likewise.
9941         * include/rpc/xdr.h: Likewise.
9942         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9943         * nss/Makefile: Likewise.
9944         * sunrpc/Makefile: Don't install headers.  Build library with normal
9945         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9946         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9947         for the compat linking library.  Remove use of INTDEF/INTUSE.
9948         * sunrpc/auth_none.c: Likewise.
9949         * sunrpc/auth_unix.c: Likewise.
9950         * sunrpc/authdes_prot.c: Likewise.
9951         * sunrpc/authuxprot.c: Likewise.
9952         * sunrpc/clnt_gen.c: Likewise.
9953         * sunrpc/clnt_perr.c: Likewise.
9954         * sunrpc/clnt_raw.c: Likewise.
9955         * sunrpc/clnt_simp.c: Likewise.
9956         * sunrpc/clnt_tcp.c: Likewise.
9957         * sunrpc/clnt_udp.c: Likewise.
9958         * sunrpc/clnt_unix.c: Likewise.
9959         * sunrpc/des_crypt.c: Likewise.
9960         * sunrpc/des_soft.c: Likewise.
9961         * sunrpc/get_myaddr.c: Likewise.
9962         * sunrpc/key_call.c: Likewise.
9963         * sunrpc/key_prot.c: Likewise.
9964         * sunrpc/netname.c: Likewise.
9965         * sunrpc/pm_getmaps.c: Likewise.
9966         * sunrpc/pm_getport.c: Likewise.
9967         * sunrpc/pmap_clnt.c: Likewise.
9968         * sunrpc/pmap_prot.c: Likewise.
9969         * sunrpc/pmap_prot2.c: Likewise.
9970         * sunrpc/pmap_rmt.c: Likewise.
9971         * sunrpc/publickey.c: Likewise.
9972         * sunrpc/rpc_cmsg.c: Likewise.
9973         * sunrpc/rpc_common.c: Likewise.
9974         * sunrpc/rpc_dtable.c: Likewise.
9975         * sunrpc/rpc_prot.c: Likewise.
9976         * sunrpc/rpc_thread.c: Likewise.
9977         * sunrpc/rtime.c: Likewise.
9978         * sunrpc/svc.c: Likewise.
9979         * sunrpc/svc_auth.c: Likewise.
9980         * sunrpc/svc_authux.c: Likewise.
9981         * sunrpc/svc_raw.c: Likewise.
9982         * sunrpc/svc_run.c: Likewise.
9983         * sunrpc/svc_simple.c: Likewise.
9984         * sunrpc/svc_tcp.c: Likewise.
9985         * sunrpc/svc_udp.c: Likewise.
9986         * sunrpc/svc_unix.c: Likewise.
9987         * sunrpc/svcauth_des.c: Likewise.
9988         * sunrpc/xcrypt.c: Likewise.
9989         * sunrpc/xdr.c: Likewise.
9990         * sunrpc/xdr_array.c: Likewise.
9991         * sunrpc/xdr_float.c: Likewise.
9992         * sunrpc/xdr_intXX_t.c: Likewise.
9993         * sunrpc/xdr_mem.c: Likewise.
9994         * sunrpc/xdr_rec.c: Likewise.
9995         * sunrpc/xdr_ref.c: Likewise.
9996         * sunrpc/xdr_sizeof.c: Likewise.
9997         * sunrpc/xdr_stdio.c: Likewise.
9999 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
10001         [BZ #12650]
10002         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
10003         * sysdeps/ia64/dl-tls.h: Likewise.
10004         * sysdeps/powerpc/dl-tls.h: Likewise.
10005         * sysdeps/s390/dl-tls.h: Likewise.
10006         * sysdeps/sh/dl-tls.h: Likewise.
10007         * sysdeps/sparc/dl-tls.h: Likewise.
10008         * sysdeps/x86_64/dl-tls.h: Likewise.
10009         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
10011 2011-03-14  Andreas Schwab  <schwab@redhat.com>
10013         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
10014         rpath element also skip the following colon.
10015         (expand_dynamic_string_token): Add is_path parameter and pass
10016         down to DL_DST_REQUIRED and _dl_dst_substitute.
10017         (decompose_rpath): Call expand_dynamic_string_token with
10018         non-zero is_path.  Ignore empty rpaths.
10019         (_dl_map_object_from_fd): Call expand_dynamic_string_token
10020         with zero is_path.
10022 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
10024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
10025         Make cancelable.
10027 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
10029         [BZ #12655]
10030         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
10031         Patch by Filipe David Manana <fdmanana@apache.org>.
10033 2011-04-07  Andreas Schwab  <schwab@redhat.com>
10035         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
10036         Maintain aligned stack.
10037         (CHECK_RSP): Remove unused macro.
10039 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
10041         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
10042         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10044 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
10046         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
10048         * include/features.h: Mention __USE_XOPEN2K8 in comment.
10050 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10052         [BZ #12518]
10053         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
10054         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
10055         * sysdeps/x86_64/memmove.c: New file.
10056         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
10057         (memcpy): Renamed to ...
10058         (__new_memcpy): This.
10059         (memcpy): Provide GLIBC_2_14 memcpy.
10060         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
10061         (memcpy): Provide GLIBC_2_2_5 memcpy.
10063 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10065         [BZ #12631]
10066         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
10068 2011-03-30  Andreas Schwab  <schwab@redhat.com>
10070         * misc/syncfs.c: New file.
10071         * misc/Makefile (routines): Add syncfs.
10072         * posix/unistd.h: Declare syncfs.
10073         * sysdeps/unix/syscalls.list: Add syncfs.
10075 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10077         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
10078         open_by_handle_at.
10079         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10080         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10081         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10082         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10083         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10084         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10085         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10087 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10089         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
10090         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10091         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10092         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10093         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10094         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10095         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10097         * io/Makefile: Compile fallocate.c, fallocate64.c, and
10098         sync_file_range.c with -fexceptions.
10099         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
10100         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
10101         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
10102         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
10103         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10104         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10105         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
10106         sync_file_range as cancellation point
10107         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
10108         now a wrapper around __call_sync_file_range with cancellation handling.
10109         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
10110         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
10111         function name to __call_sync_file_range.
10112         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
10113         Add call_sync_file_range.
10115 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10117         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10118         bits/timex.h.
10120 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10122         * iconv/iconv.h: Fix typo in comment.
10123         * io/fcntl.h: Likewise.
10124         * libio/stdio.h: Likewise.
10125         * posix/spawn.h: Likewise.
10126         * posix/unistd.h: Likewise.
10127         * stdlib/stdlib.h: Likewise.
10128         * time/time.h: Likewise.
10129         * wcsmbs/wchar.h: Likewise.
10131         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
10132         open_by_handle): Add.
10133         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
10134         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
10135         Augment a few comments.
10136         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10137         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10138         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10139         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10140         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10141         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
10142         open_by_handle.
10144         * io/fcntl.h (AT_EMPTY_PATH): Define.
10146 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
10148         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
10149         * sysdeps/unix/sysv/linux/bits/time.h: New file.
10150         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
10151         to...
10152         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
10153         * Versions.def: Add GLIBC_2.14.
10154         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
10155         Export.
10157 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
10159         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
10160         round counter.
10161         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10163 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10165         [BZ #12597]
10166         * string/test-strncmp.c (do_page_test): New function.
10167         (check2): Likewise.
10168         (test_main): Call check2.
10169         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
10171 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
10173         [BZ #12587]
10174         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10175         Handle cache information in CPU leaf 4.
10176         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10178 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
10180         [BZ #12583]
10181         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
10182         character representation.
10183         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
10185 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
10187         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
10188         END(__isnan) to END(__isnanf) to match function entry point/label
10189         EALIGN(__isnanf,...).
10191 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10193         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
10195 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
10197         [BZ #12510]
10198         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
10199         copy from the symbol referenced in the relocation to initialize the
10200         used variable.
10201         Patch by Piotr Bury <pbury@goahead.com>.
10202         * elf/Makefile: Add rules to build and tst-unique3.
10203         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
10204         * elf/tst-unique3.cc: New file.
10205         * elf/tst-unique3.h: New file.
10206         * elf/tst-unique3lib.cc: New file.
10207         * elf/tst-unique3lib2.cc: New file.
10209         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
10211 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
10213         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
10214         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
10215         to _start.
10217 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
10219         * elf/dl-load.c (_dl_map_object): If we are looking for the first
10220         to-be-loaded object along a path to loader is ld.so.
10222 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10223             Ulrich Drepper  <drepper@gmail.com>
10225         * sysdeps/x86_64/memset.S: After aligning destination, code
10226         branches to different locations depending on the value of
10227         misalignment, when multiarch is enabled. Fix this.
10229 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10231         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
10232         Set _x86_64_preferred_memory_instruction for AMD processsors.
10233         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10234         Set bit_Prefer_SSE_for_memop for AMD processors.
10236 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
10238         * libio/fmemopen.c (fmemopen): Optimize a bit.
10240 2011-03-03  Andreas Schwab  <schwab@redhat.com>
10242         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
10244 2011-03-03  Roland McGrath  <roland@redhat.com>
10246         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
10248 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
10250         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
10251         __bzero_ultra1 instead of __memset_ultra1.
10253 2011-02-23  Andreas Schwab  <schwab@redhat.com>
10254             Ulrich Drepper  <drepper@gmail.com>
10256         [BZ #12509]
10257         * include/link.h (struct link_map): Add l_orig_initfini.
10258         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
10259         returning unsuccessfully.
10260         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
10261         close of a file loaded at startup, restore the original l_initfini
10262         list.
10263         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
10264         list, store the pointer.
10265         * elf/Makefile ($(objpfx)noload-mem): New rule.
10266         (noload-ENV): Define.
10267         (tests): Add $(objpfx)noload-mem.
10268         * elf/noload.c: Include <memcheck.h>.
10269         (main): Call mtrace.  Close all opened handles.
10271 2011-02-17  Andreas Schwab  <schwab@redhat.com>
10273         [BZ #12454]
10274         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
10275         dependencies are missing.
10277 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10279         Fix __if_freereq crash: Unlike the generic version which uses free,
10280         Hurd needs munmap.
10281         * sysdeps/mach/hurd/ifreq.h: New file.
10283 2011-01-27  Petr Baudis  <pasky@suse.cz>
10284             Ulrich Drepper  <drepper@gmail.com>
10286         [BZ 12445]#
10287         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10288         to extend_alloca().
10289         * stdio-common/bug23.c: New file.
10290         * stdio-common/Makefile (tests): Add bug23.
10292 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10293             Ulrich Drepper  <drepper@gmail.com>
10295         [BZ #12489]
10296         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10297         before performing relro protection.  At old place add assertion
10298         to make sure nothing changed.
10300 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10301             Glauber de Oliveira Costa  <glommer@gmail.com>
10303         * elf/elf.h: Add new ARM TLS relocs.
10305 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10308         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10309         cast from r3.
10310         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10311         'tests' variable.
10312         * sysdeps/wordsize-64/tst-writev.c: New file.
10314 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10316         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10317         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10318         insns in _dl_start to prevent a TOC reference before relocs are
10319         resolved.
10321 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10323         [BZ #12469]
10324         * Makeconfig: Remove RANLIB definition.
10325         * Makerules: Don't use RANLIB.
10326         * aclocal.m4: Remove ranlib test.
10327         * configure.in: No need to check for ranlib.
10328         * elf/rtld-Rules: Don't use RANLIB.
10330 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10332         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10333         protection macro.
10334         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10335         inclusion protection macro.
10337         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10338         SIGRTMIN and SIGRTMAX and print information in that case only when
10339         SIGRTMIN is defined.
10341 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10343         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10344         arginfo fn returning -1.
10346         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10347         and thousands string is zero terminated.
10349 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10351         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10352         sysdeps/unix/sysv/linux/bits/socket.h.
10354 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10356         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10357         (__CPU_COUNT): Remove old macros.
10358         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10359         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10360         (__CPU_ALLOC, __CPU_FREE): Add macros.
10361         (__sched_cpualloc, __sched_cpufree): Add declarations.
10363 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10365         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10366         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10367         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10368         (readdhstai): Return value of addhstaiX call.
10369         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10370         (addgrbyX): Return value returned by cache_addgr.
10371         (readdgrbyname): Return value returned by addgrbyX.
10372         (readdgrbygid): Likewise.
10373         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10374         (addpwbyX): Return value returned by cache_addpw.
10375         (readdpwbyname): Return value returned by addhstbyX.
10376         (readdpwbyuid): Likewise.
10377         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10378         (addservbyX): Return value returned by cache_addserv.
10379         (readdservbyname): Return value returned by addservbyX:
10380         (readdservbyport): Likewise.
10381         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10382         (addhstbyX): Return value returned by cache_addhst.
10383         (readdhstbyname): Return value returned by addhstbyX.
10384         (readdhstbyaddr): Likewise.
10385         (readdhstbynamev6): Likewise.
10386         (readdhstbyaddrv6): Likewise.
10387         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10388         (readdinitgroups): Return value returned by addinitgroupsX.
10389         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10390         (prune_cache): Keep track of timeout value of re-added entries.
10391         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10392         * nscd/nscd.h: Adjust prototypes of readd* functions.
10394 2011-02-04  Roland McGrath  <roland@redhat.com>
10396         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10397         (nis_stats): Likewise.
10398         * nis/nis_modify.c (nis_modify): Likewise.
10399         * nis/nis_remove.c (nis_remove): Likewise.
10400         * nis/nis_add.c (nis_add): Likewise.
10402         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10404         * posix/fnmatch_loop.c: Add some consts.
10406         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10408 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10410         [BZ #12460]
10411         * config.make.in (config-cflags-novzeroupper): Define.
10412         * configure.in: Substitute libc_cv_cc_novzeroupper.
10413         * elf/Makefile (AVX-CFLAGS): Define.
10414         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10415         (CFLAGS-tst-auditmod4a.c): Likewise.
10416         (CFLAGS-tst-auditmod4b.c): Likewise.
10417         (CFLAGS-tst-auditmod6b.c): Likewise.
10418         (CFLAGS-tst-auditmod6c.c): Likewise.
10419         (CFLAGS-tst-auditmod7b.c): Likewise.
10420         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10422 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10424         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10425         function to the callback.
10426         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10428 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10430         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10431         of errno.
10433 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10435         [BZ #11724]
10436         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10437         of constructors.
10438         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10439         of destructors.
10440         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10442         [BZ #11724]
10443         * elf/Makefile: Add rules to build and run new test.
10444         * elf/tst-initorder.c: New file.
10445         * elf/tst-initorder.exp: New file.
10446         * elf/tst-initordera1.c: New file.
10447         * elf/tst-initordera2.c: New file.
10448         * elf/tst-initordera3.c: New file.
10449         * elf/tst-initordera4.c: New file.
10450         * elf/tst-initorderb1.c: New file.
10451         * elf/tst-initorderb2.c: New file.
10452         * elf/tst-order-a1.c: New file.
10453         * elf/tst-order-a2.c: New file.
10454         * elf/tst-order-a3.c: New file.
10455         * elf/tst-order-a4.c: New file.
10456         * elf/tst-order-b1.c: New file.
10457         * elf/tst-order-b2.c: New file.
10458         * elf/tst-order-main.c: New file.
10459         New test case by George Gensure <werkt0@gmail.com>.
10461 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10463         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10464         decoding ACE if AI_CANONIDN.
10466 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10468         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10470 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10472         * version.h (RELEASE): Bump for 2.13 release.
10473         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10475         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10477         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10478         MADV_NOHUGEPAGE.
10479         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10480         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10481         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10482         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10483         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10484         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10486         * posix/getconf.c: Update copyright year.
10487         * catgets/gencat.c: Likewise.
10488         * csu/version.c: Likewise.
10489         * debug/catchsegv.sh: Likewise.
10490         * debug/xtrace.sh: Likewise.
10491         * elf/ldconfig.c: Likewise.
10492         * elf/ldd.bash.in: Likewise.
10493         * elf/sprof.c (print_version): Likewise.
10494         * iconv/iconv_prog.c: Likewise.
10495         * iconv/iconvconfig.c: Likewise.
10496         * locale/programs/locale.c: Likewise.
10497         * locale/programs/localedef.c: Likewise.
10498         * malloc/memusage.sh: Likewise.
10499         * malloc/mtrace.pl: Likewise.
10500         * nscd/nscd.c (print_version): Likewise.
10501         * nss/getent.c: Likewise.
10503         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10504         PF_CAIF, and PF_ALG.
10505         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10507 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10509         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10510         (modules-names): Use them.
10511         (ifunc-test-modules, ifunc-pie-tests): Define.
10512         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10513         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10514         (test-extras): Likewise.
10515         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10516         $(compile-command.c).
10517         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10518         (all-built-dso): Define.
10519         (check-textrel.out, check-execstack.out): Depend on it.
10521         * configure.in: Don't override --enable-multi-arch.
10523 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10525         [BZ #6812]
10526         * nscd/hstcache.c (tryagain): Define.
10527         (cache_addhst): Return tryagain not notfound for temporary errors.
10528         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10529         failed.
10531 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10533         [BZ #10563]
10534         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10535         to make the syscall.
10536         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10538         [BZ #12378]
10539         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10540         and fall back to matching as normal character if the string ends before
10541         the matching ']' is found.  This is what POSIX requires.
10542         * posix/testfnm.c: Adjust test result.
10543         * posix/globtest.sh: Adjust test result.  Add new test.
10544         * posix/tst-fnmatch.input: Likewise.
10545         * posix/tst-fnmatch2.c: Add new test.
10547 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10549         * elf/Makefile (check-execstack): Revert last change.  Depend on
10550         check-execstack.h.
10551         (check-execstack.h): New target.
10552         (generated): Add check-execstack.h.
10553         * elf/check-execstack.c: Include "check-execstack.h".
10554         (main): Revert last change.
10555         (handle_file): Return zero if GNU_STACK is absent and
10556         DEFAULT_STACK_PERMS doesn't include PF_X.
10558 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10560         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10561         in child fails because the descriptor is already closed.
10562         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10563         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10564         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10566         [BZ #12397]
10567         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10568         syscall.
10570         [BZ #10484]
10571         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10572         temporary buffer used to handle multi lookups locally.
10573         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10575 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10577         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10578         loader is ld.so.
10580 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10582         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10583         alignment for SSE2.
10585 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10587         [BZ #12394]
10588         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10589         characters.  When rounding increased number of integer digits recompute
10590         number of groups.
10591         * stdio-common/tst-grouping.c: New file.
10592         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10594 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10596         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10597         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10599         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10600         void.
10601         * bits/select.h: Likewise.
10603 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10605         * po/ja.po: Update from translation team.
10607 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10609         [BZ #11155]
10610         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10611         implementation just like for lxstat, fxstatat, et al.
10613 2010-12-27  Jim Meyering  <meyering@redhat.com>
10615         [BZ #12348]
10616         * posix/regexec.c (build_trtable): Return failure indication upon
10617         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10619 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10621         [BZ #12201]
10622         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10623         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10624         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10625         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10627         [BZ #12207]
10628         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10630         [BZ #12204]
10631         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10632         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10634 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10636         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10637         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10638         script has SORT_BY_INIT_PRIORITY.
10639         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10640         NO_CTORS_DTORS_SECTIONS is defined.
10641         * elf/soinit.c: Likewise.
10642         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10643         NO_CTORS_DTORS_SECTIONS is defined.
10644         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10645         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10646         * sysdeps/sh/init-first.c: Likewise.
10647         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10649 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10651         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10652         always use the slow path.
10654 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10656         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10657         similar rule which adds the sysdep directories to the header search in
10658         order to pick up the correct platform stackinfo.h.
10659         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10660         perform test if it is, otherwise return successfully without testing.
10661         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10662         DEFAULT_STACK_PERMS define in stackinfo.h.
10663         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10664         defined in stackinfo.h.
10665         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10666         DEFAULT_STACK_PERMS defined in stackinfo.h.
10667         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10668         * sysdeps/ia64/stackinfo.h: Likewise.
10669         * sysdeps/s390/stackinfo.h: Likewise.
10670         * sysdeps/sh/stackinfo.h: Likewise.
10671         * sysdeps/sparc/stackinfo.h: Likewise.
10672         * sysdeps/x86_64/stackinfo.h: Likewise.
10673         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10674         PF_X for powerpc64.  Retain PF_X for powerpc32.
10676 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10678         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10679         accurately.
10680         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10681         GETDENTS_64BIT_ALIGNED.
10683 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10685         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10687 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10689         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10690         _GNU_SOURCE.
10692         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10693         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10694         Remove __restrict.
10695         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10696         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10698 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10700         [BZ #11655]
10701         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10702         are initialized.
10704 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10706         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10708 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10710         * po/it.po: Update from translation team.
10712 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10714         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10715         unused codes.
10717 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10719         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10721 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10723         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10724         specially.
10725         (gaih_getanswer_slice): Likewise.
10727 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10729         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10731 2010-05-31  Petr Baudis  <pasky@suse.cz>
10733         [BZ #11149]
10734         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10735         silently even in the chroot mode.
10737 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10739         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10740         last patch a bit.  Pretty printing
10742 2010-05-31  Petr Baudis <pasky@suse.cz>
10744         [BZ #10085]
10745         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10746         initialization of skip_initgroups_dyn.
10748 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10750         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10751         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10753 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10755         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10757 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10759         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10760         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10761         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10762         ($(objpfx)tst-fnmatch-mem): New rule.
10763         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10764         * posix/tst-fnmatch.c (main): Call mtrace.
10766 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10768         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10769         Support Intel processor model 6 and model 0x2c.
10771 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10773         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10774           signed comparison.
10776 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10778         [BZ #12205]
10779         * string/test-strncasecmp.c (check_result): New function.
10780         (do_one_test): Use it.
10781         (check1): New function.
10782         (test_main): Use it.
10783         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10784         Support strcasecmp and strncasecmp.
10786 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10788         [BZ #12194]
10789         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10790         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10792 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10794         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10795         IFUNC support.
10796         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10797         memset-x86-64.
10798         * sysdeps/x86_64/multiarch/bzero.S: New file.
10799         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10800         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10801         * sysdeps/x86_64/multiarch/memset.S: New file.
10802         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10803         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10804         Set bit_Prefer_SSE_for_memop for Intel processors.
10805         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10806         Define.
10807         (index_Prefer_SSE_for_memop): Define.
10808         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10810 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10812         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10813         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10815 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10817         [BZ #12191]
10818         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10819         (__x86_64_raw_data_cache_size_half): Likewise.
10820         (__x86_64_raw_shared_cache_size): Likewise.
10821         (__x86_64_raw_shared_cache_size_half): Likewise.
10823         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10824         (__x86_64_raw_data_cache_size_half): Likewise.
10825         (__x86_64_raw_shared_cache_size): Likewise.
10826         (__x86_64_raw_shared_cache_size_half): Likewise.
10827         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10828         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10829         and __x86_64_raw_shared_cache_size_half.  Round
10830         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10831         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10832         to multiple of 256 bytes.
10834 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10836         [BZ #12167]
10837         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10838         of inacessible symlinks.  Verify result of symlink before returning it.
10839         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10840         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10842 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10844         * math/math.h (isinf): Fix typo in comment.
10846 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10848         * po/da.po: Update from translation team.
10850 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10852         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10853         is added to the list.
10855 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10856             Ulrich Drepper  <drepper@gmail.com>
10858         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10859         the global list here.  Move code to...
10860         (_dl_add_to_namespace_list): ...here.  New function.
10861         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10862         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10863         * elf/dl-load.c (lose): Don't remove the element from the list.
10864         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10865         (_dl_map_object): Likewise.
10867 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10869         [BZ #12159]
10870         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10871         into all bytes of SSE register.
10872         Patch by Richard Li <richardpku@gmail.com>.
10874 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10876         [BZ #12140]
10877         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10878         perturbing.
10880 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10882         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10883         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10884         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10885         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10887         submachine.
10888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10890 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10892         * include/dlfcn.h (__RTLD_SECURE): Define.
10893         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10894         mode & __RTLD_SECURE instead.
10895         (open_path): Rename preloaded parameter to secure.
10896         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10897         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10898         * elf/dl-deps.c (openaux): Likewise.
10899         * elf/rtld.c (struct map_args): Remove is_preloaded.
10900         (map_doit): Don't use it.
10901         (dl_main): Likewise.
10902         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10903         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10905 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10907         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10908         (sysd-rules-targets): Remove duplicates.
10909         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10910         rtld-%.$o dependency.
10912 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10914         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10915         _dl_map_object do it.
10917 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10919         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10920         fast fma builtins, define the macros in the C99 standard.
10921         (FP_FAST_FMAF): Likewise.
10922         (FP_FAST_FMAL): Likewise.
10923         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10925         * bits/mathdef.h: Update copyright year.
10926         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10928 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10930         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10931         builtins, define the macros in the C99 standard.
10932         (FP_FAST_FMAF): Likewise.
10933         (FP_FAST_FMAL): Likewise.
10934         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10935         multiply/add.
10936         (FP_FAST_FMAF): Likewise.
10938 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10940         [BZ #3268]
10941         * math/libm-test.inc (fma_test): Some new testcases.
10942         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10943         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10944         y and infinite z.  Do multiplication by C already in long double.
10945         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10946         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10947         y and infinite z.  Do bitwise or of inexact bit into u.d.
10948         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10949         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10950         * sysdeps/i386/fpu/s_fma.S: Removed.
10951         * sysdeps/i386/fpu/s_fmal.S: Removed.
10953 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10955         [BZ #3268]
10956         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10957         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10958         computation is not scheduled after fetestexcept.  Fix value
10959         of minimum denormal long double.
10961 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10963         [BZ #3268]
10964         * math/libm-test.inc (fma_test): Add some more tests.
10965         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10966         correctly.
10968 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10970         * scripts/data/localplt-s390-linux-gnu.data: New file.
10971         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10973 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10975         [BZ #3268]
10976         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10977         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10978         instead of dbl-64.
10979         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10980         inlines.
10981         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10982         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10983         if one of x and y is very large and the other is subnormal.
10984         * sysdeps/s390/fpu/s_fmaf.c: New file.
10985         * sysdeps/s390/fpu/s_fma.c: New file.
10986         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10987         * sysdeps/powerpc/fpu/s_fma.S: New file.
10988         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10989         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10990         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10992 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10994         [BZ #3268]
10995         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10996         fma tests.
10997         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10998         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10999         * sysdeps/i386/i686/multiarch/s_fma.c: Include
11000         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
11001         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
11002         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
11005 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
11007         [BZ #12078]
11008         * posix/regcomp.c (parse_branch): One more memory leak plugged.
11009         * posix/bug-regex31.input: Add test case.
11011 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11013         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
11014         * posix/bug-regex31.input: New file.
11016         [BZ #12078]
11017         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
11018         (parse_sub_exp): Fix last change, use postorder.
11020         * posix/bug-regex31.c: New file.
11021         * posix/Makefile: Add rules to build and run bug-regex31.
11023         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
11025         [BZ #12078]
11026         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
11028         [BZ #12108]
11029         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
11030         to have entries in sys_siglist.
11032         [BZ #12093]
11033         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
11034         be NULL.
11036 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
11038         [BZ #3268]
11039         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
11040         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
11041         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
11042         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
11043         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11044         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
11045         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
11046         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
11047         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
11048         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
11049         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
11050         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
11051         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
11052         * math/ftestexcept.c (fetestexcept): Likewise.
11053         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
11054         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
11055         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
11056         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
11057         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
11058         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
11059         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11061 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11063         [BZ #12107]
11064         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
11065         newline.
11067 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
11069         * string/bug-strstr1.c: New file.
11070         * string/Makefile: Add rules to build and run bug-strstr1.
11072 2010-10-05  Eric Blake  <eblake@redhat.com>
11074         [BZ #12092]
11075         * string/str-two-way.h (two_way_long_needle): Always clear memory
11076         when skipping input due to the shift table.
11078 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
11080         [BZ #12005]
11081         * malloc/mcheck.c: Handle large requests.
11083         [BZ #12077]
11084         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
11085         for strncmp and strncasecmp.
11086         * string/stratcliff.c: Add tests for strcmp and strncmp.
11087         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
11089 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11091         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
11092         __set_fpscr.
11094 2010-09-30  Andreas Jaeger  <aj@suse.de>
11096         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
11097         (CGROUP_SUPER_MAGIC): Define.
11098         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11099         Handle btrfs and cgroup file systems.
11100         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11101         Likewise.
11103 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
11105         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
11106         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
11108 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11110         [BZ #12067]
11111         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
11112         trying to locate the ELF header.
11114 2010-09-27  Andreas Schwab  <schwab@redhat.com>
11116         [BZ #11611]
11117         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
11118         Mask out sign-bit copies when constructing f_fsid.
11120 2010-09-24  Petr Baudis <pasky@suse.cz>
11122         * debug/stack_chk_fail_local.c: Add missing licence exception.
11123         * debug/warning-nop.c: Likewise.
11125 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11127         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
11128         implementing getdents64 using getdents syscall, set d_type if
11129         __ASSUME_GETDENTS32_D_TYPE.
11131 2010-09-16  Andreas Schwab  <schwab@redhat.com>
11133         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
11134         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
11136 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
11138         [BZ #12037]
11139         * posix/unistd.h: Undo change of feature selection for ftruncate from
11140         2010-01-11.
11142 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
11144         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
11145         detection.
11147 2010-09-20  Andreas Schwab  <schwab@redhat.com>
11149         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
11150         fanotify_mark.
11151         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11153 2010-09-14  Andreas Schwab  <schwab@redhat.com>
11155         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
11156         variables after CHECK_SP call.
11157         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
11159 2010-09-13  Andreas Schwab  <schwab@redhat.com>
11160             Ulrich Drepper  <drepper@redhat.com>
11162         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
11163         re-relocationg ld.so.
11164         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
11165         _dl_init_paths call.
11166         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
11167         here anymore.
11169 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
11171         * resolv/res_init.c (__res_vinit): Count the default server we added.
11173 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
11174             Ulrich Drepper  <drepper@redhat.com>
11176         [BZ #11968]
11177         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11178         (____longjmp_chk): Use %ebx for saving value across system call.
11179         Add unwind info.
11181 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11183         * manual/Makefile: Don't mix pattern rules with normal rules.
11185 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11187         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
11188         operation.
11189         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
11190         * libio/iofopncook.c (_IO_cookie_init): Likewise.
11191         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
11192         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
11193         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11194         Likewise.
11196 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
11198         [BZ #11979]
11199         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
11200         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
11202 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
11204         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
11205         * sysdeps/x86_64/addmul_1.S: Likewise.
11206         * sysdeps/x86_64/lshift.S: Likewise.
11207         * sysdeps/x86_64/mul_1.S: Likewise.
11208         * sysdeps/x86_64/rshift.S: Likewise.
11209         * sysdeps/x86_64/sub_n.S: Likewise.
11210         * sysdeps/x86_64/submul_1.S: Likewise.
11212 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11214         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
11215         Define __sched_param instead of SCHED_* and sched_param when
11216         <bits/sched.h> is included with __need_schedparam defined.
11217         * bits/sched.h [__need_schedparam]
11218         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
11219         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
11220         (__defined_schedparam): Define to 1.
11221         (__sched_param): New structure, identical to sched_param.
11222         (__need_schedparam): Undefine.
11224 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
11226         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
11227         (epoll_create1): Declare.
11229         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
11231 2010-08-31  Andreas Schwab  <schwab@redhat.com>
11233         [BZ #7066]
11234         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
11235         shifting retval into place.
11237 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
11239         * nis/rpcsvc/nis.h: Update copyright notice.
11240         * nis/rpcsvc/nis.x: Likewise.
11241         * nis/rpcsvc/nis_callback.h: Likewise.
11242         * nis/rpcsvc/nis_callback.x: Likewise.
11243         * nis/rpcsvc/nis_object.x: Likewise.
11244         * nis/rpcsvc/nis_tags.h: Likewise.
11245         * nis/rpcsvc/yp.h: Likewise.
11246         * nis/rpcsvc/yp.x: Likewise.
11247         * nis/rpcsvc/ypupd.h: Likewise.
11248         * nis/yp_xdr.c: Likewise.
11249         * nis/ypupdate_xdr.c: Likewise.
11251         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
11252         mainly the body of pmap_getport.  Add parameters to specify timeouts.
11253         (pmap_getport): Use __libc_rpc_getport.
11254         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
11255         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
11256         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
11258 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
11260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
11261         fanotify_mark.
11263 2010-08-27  Roland McGrath  <roland@redhat.com>
11265         * sysdeps/i386/i686/multiarch/Makefile
11266         (CFLAGS-varshift.c): New variable.
11268 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
11270         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
11271         * sysdeps/i386/i686/multiarch/varshift.c: New file.
11273         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
11275         * sysdeps/x86_64/strlen.S: Minimal code improvement.
11277 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11279         * sysdeps/x86_64/strlen.S: Unroll the loop.
11280         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11281         strlen-sse2 strlen-sse2-bsf.
11282         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11283         __strlen_no_bsf if bit_Slow_BSF is set.
11284         (__strlen_sse42): Removed.
11285         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11286         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11288 2010-08-25  Roland McGrath  <roland@redhat.com>
11290         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11291         * sysdeps/x86_64/multiarch/varshift.c: New file.
11292         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11293         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11294         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11295         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11297 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11299         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11300         strlen-sse2 strlen-sse2-bsf.
11301         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11302         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11303         (__strlen_sse2): Removed.
11304         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11305         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11306         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11307         bit_Slow_BSF for Atom.
11308         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11309         (index_Slow_BSF): Define.
11310         (HAS_SLOW_BSF): Define.
11312 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11314         [BZ #10851]
11315         * resolv/res_init.c (__res_vinit): When no server address at all
11316         is given default to loopback.
11318 2010-08-24  Roland McGrath  <roland@redhat.com>
11320         * configure.in: Remove config-name.h generation.
11321         * configure: Regenerated.
11322         * config-name.in: File removed.
11323         * scripts/config-uname.sh: New file.
11324         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11325         ($(objdir)config-name.h): New target.
11327         * sunrpc/rpc_parse.h: Avoid nested comment.
11329 2010-08-24  Richard Henderson  <rth@redhat.com>
11330             Ulrich Drepper  <drepper@redhat.com>
11331             H.J. Lu  <hongjiu.lu@intel.com>
11333         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11334         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11335         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11336         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11337         _mm_alignr_epi8 with _mm_loadu_si128.
11338         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11339         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11340         (__m128i_shift_right): Removed.
11341         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11342         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11343         * sysdeps/x86_64/multiarch/varshift.h: New file.
11344         * sysdeps/x86_64/multiarch/varshift.S: New file.
11346 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11348         * configure.in: Move assembler checks to before sysdep dir checking.
11350 2010-08-20  Petr Baudis  <pasky@suse.cz>
11352         * LICENSES: Sync the sunrpc license.
11354 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11356         * sunrpc/auth_des.c: Update copyright notice once again.
11357         * sunrpc/auth_none.c: Likewise.
11358         * sunrpc/auth_unix.c: Likewise.
11359         * sunrpc/authdes_prot.c: Likewise.
11360         * sunrpc/authuxprot.c: Likewise.
11361         * sunrpc/bindrsvprt.c: Likewise.
11362         * sunrpc/clnt_gen.c: Likewise.
11363         * sunrpc/clnt_perr.c: Likewise.
11364         * sunrpc/clnt_raw.c: Likewise.
11365         * sunrpc/clnt_simp.c: Likewise.
11366         * sunrpc/clnt_tcp.c: Likewise.
11367         * sunrpc/clnt_udp.c: Likewise.
11368         * sunrpc/clnt_unix.c: Likewise.
11369         * sunrpc/des_crypt.c: Likewise.
11370         * sunrpc/des_soft.c: Likewise.
11371         * sunrpc/get_myaddr.c: Likewise.
11372         * sunrpc/getrpcport.c: Likewise.
11373         * sunrpc/key_call.c: Likewise.
11374         * sunrpc/key_prot.c: Likewise.
11375         * sunrpc/openchild.c: Likewise.
11376         * sunrpc/pm_getmaps.c: Likewise.
11377         * sunrpc/pm_getport.c: Likewise.
11378         * sunrpc/pmap_clnt.c: Likewise.
11379         * sunrpc/pmap_prot.c: Likewise.
11380         * sunrpc/pmap_prot2.c: Likewise.
11381         * sunrpc/pmap_rmt.c: Likewise.
11382         * sunrpc/rpc/auth.h: Likewise.
11383         * sunrpc/rpc/auth_unix.h: Likewise.
11384         * sunrpc/rpc/clnt.h: Likewise.
11385         * sunrpc/rpc/des_crypt.h: Likewise.
11386         * sunrpc/rpc/key_prot.h: Likewise.
11387         * sunrpc/rpc/netdb.h: Likewise.
11388         * sunrpc/rpc/pmap_clnt.h: Likewise.
11389         * sunrpc/rpc/pmap_prot.h: Likewise.
11390         * sunrpc/rpc/pmap_rmt.h: Likewise.
11391         * sunrpc/rpc/rpc.h: Likewise.
11392         * sunrpc/rpc/rpc_des.h: Likewise.
11393         * sunrpc/rpc/rpc_msg.h: Likewise.
11394         * sunrpc/rpc/svc.h: Likewise.
11395         * sunrpc/rpc/svc_auth.h: Likewise.
11396         * sunrpc/rpc/types.h: Likewise.
11397         * sunrpc/rpc/xdr.h: Likewise.
11398         * sunrpc/rpc_clntout.c: Likewise.
11399         * sunrpc/rpc_cmsg.c: Likewise.
11400         * sunrpc/rpc_common.c: Likewise.
11401         * sunrpc/rpc_cout.c: Likewise.
11402         * sunrpc/rpc_dtable.c: Likewise.
11403         * sunrpc/rpc_hout.c: Likewise.
11404         * sunrpc/rpc_main.c: Likewise.
11405         * sunrpc/rpc_parse.c: Likewise.
11406         * sunrpc/rpc_parse.h: Likewise.
11407         * sunrpc/rpc_prot.c: Likewise.
11408         * sunrpc/rpc_sample.c: Likewise.
11409         * sunrpc/rpc_scan.c: Likewise.
11410         * sunrpc/rpc_scan.h: Likewise.
11411         * sunrpc/rpc_svcout.c: Likewise.
11412         * sunrpc/rpc_tblout.c: Likewise.
11413         * sunrpc/rpc_util.c: Likewise.
11414         * sunrpc/rpc_util.h: Likewise.
11415         * sunrpc/rpcinfo.c: Likewise.
11416         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11417         * sunrpc/rpcsvc/key_prot.x: Likewise.
11418         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11419         * sunrpc/rpcsvc/mount.x: Likewise.
11420         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11421         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11422         * sunrpc/rpcsvc/rex.x: Likewise.
11423         * sunrpc/rpcsvc/rstat.x: Likewise.
11424         * sunrpc/rpcsvc/rusers.x: Likewise.
11425         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11426         * sunrpc/rpcsvc/spray.x: Likewise.
11427         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11428         * sunrpc/rtime.c: Likewise.
11429         * sunrpc/svc.c: Likewise.
11430         * sunrpc/svc_auth.c: Likewise.
11431         * sunrpc/svc_authux.c: Likewise.
11432         * sunrpc/svc_raw.c: Likewise.
11433         * sunrpc/svc_run.c: Likewise.
11434         * sunrpc/svc_simple.c: Likewise.
11435         * sunrpc/svc_tcp.c: Likewise.
11436         * sunrpc/svc_udp.c: Likewise.
11437         * sunrpc/svc_unix.c: Likewise.
11438         * sunrpc/svcauth_des.c: Likewise.
11439         * sunrpc/xcrypt.c: Likewise.
11440         * sunrpc/xdr.c: Likewise.
11441         * sunrpc/xdr_array.c: Likewise.
11442         * sunrpc/xdr_float.c: Likewise.
11443         * sunrpc/xdr_mem.c: Likewise.
11444         * sunrpc/xdr_rec.c: Likewise.
11445         * sunrpc/xdr_ref.c: Likewise.
11446         * sunrpc/xdr_sizeof.c: Likewise.
11447         * sunrpc/xdr_stdio.c: Likewise.
11449         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11450         handling.
11452 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11454         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11456 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11458         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11459         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11460         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11461         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11462         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11463         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11464         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11465         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11466         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11467         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11468         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11469         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11470         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11471         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11473 2010-07-26  Anton Blanchard  <anton@samba.org>
11475         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11476         * malloc/arena.c (heap_trim): Likewise.
11478 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11480         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11481         here.  Not...
11482         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11483         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11485 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11487         * sysdeps/i386/elf/Makefile: New file.
11489 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11491         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11492         from fanotify_init.
11493         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11494         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11496 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11498         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11499         of strncasecmp_l.
11500         * sysdeps/multiarch/strcmp.S: Likewise.
11502 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11504         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11505         strncase_l-nonascii.
11506         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11507         Add strncase_l-ssse3.
11508         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11509         * sysdeps/x86_64/strcmp.S: Likewise.
11510         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11511         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11512         * sysdeps/x86_64/strncase.S: New file.
11513         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11514         * sysdeps/x86_64/strncase_l.S: New file.
11515         * string/Makefile (strop-tests): Add strncasecmp.
11516         * string/test-strncasecmp.c: New file.
11518         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11519         warning.
11521         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11522         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11524 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11526         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11528 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11530         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11531         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11532         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11534 2010-05-01  Alan Modra  <amodra@gmail.com>
11536         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11537         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11538         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11539         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11540         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11541         tidying.  Don't tail-call __sigjmp_save for static lib.
11542         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11543         save location.
11544         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11545         (CALL_MCOUNT): Add eh info, and nop after bl.
11546         (TAIL_CALL_SYSCALL_ERROR): New macro.
11547         (PSEUDO_RET): Use it.
11548         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11549         Correct save location of integer regs and cr.
11550         (_dl_profile_resolve): Correct cr save location.  Delete nops
11551         after bl when SHARED.  Reduce cfi size a little by better
11552         placement of cfi directives.
11553         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11554         make a stack frame.  Instead use parm save area as a temp.
11555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11556         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11558         Don't make a stack frame for parent, use parm save area.
11559         Increase child stack frame to 112 bytes.  Don't save unused reg,
11560         and adjust reg usage.  Set up cfi on error recovery and
11561         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11563         (__makecontext): Add dummy nop after jump to exit.
11564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11565         Use correct parm save area and cr save, reduce stack frame.
11566         Correct cfi for possible PSEUDO_RET frame setup.
11567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11568         Branch to local label emitted by PSEUDO_RET rather than
11569         __syscall_error.
11571 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11573         [BZ #11904]
11574         * locale/programs/locale.c (print_assignment): New function.
11575         (show_locale_vars): Use it.
11577 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11579         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11580         field.
11581         (struct statfs64): Likewise.
11582         (_STATFS_F_FLAGS): Define.
11583         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11584         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11585         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11586         (ST_VALID): Define locally.
11587         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11588         __statvfs_getflags, use the provided value.
11589         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11590         __ASSUME_STATFS_F_FLAGS.
11592         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11594         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11595         Add sys/fanotify.h.
11596         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11597         fanotify_mask for GLIBC_2.13.
11598         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11599         fanotify_init and fanotify_mark.
11600         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11601         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11603         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11604         Add prlimit.
11605         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11606         prlimit64 for GLIBC_2.13.
11607         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11608         prlimit64.
11609         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11610         syscall.
11611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11612         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11613         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11614         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11615         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11616         add prlimit alias.
11617         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11619         [BZ #11903]
11620         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11621         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11623         * nss/Makefile: Add rules to build and run tst-nss-test1.
11624         * shlib-versions: Add entry for libnss_test1.
11625         * nss/nss_test1.c: New file.
11626         * nss/tst-nss-test1.c: New file.
11628         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11629         (__nss_configure_lookup): Set appropriate entry in
11630         __nss_configure_lookup to true.
11631         * nss/nsswitch.h: Define enum with indeces of databases in
11632         databases and __nss_database_custom arrays.  Declare
11633         __nss_database_custom.
11634         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11635         to avoid using nscd when custom rules are installed.
11636         * nss/getXXbyYY_r.c: Likewise.
11637         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11639         * nss/nss_files/files-parse.c: Whitespace fixes.
11641 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11643         [BZ #11883]
11644         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11645         * posix/fnmatch_loop.c: Likewise.
11647 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11649         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11650         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11651         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11652         * Versions.def [GLIBC_2.13]: Add.
11654 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11656         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11657         Also fail if tpwd after pwuid call is NULL.
11659 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11661         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11662         when converting to ms.
11664 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11666         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11667         EOPNOTSUPP errors with ENOTTY.
11668         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11669         EOPNOTSUPP errors with ENOTTY.
11671 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11673         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11674         Add strcasecmp_l-ssse3.
11675         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11676         strcasecmp.
11677         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11678         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11679         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11681 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11683         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11685         * string/Makefile (strop-tests): Add strcasecmp.
11686         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11687         strcasecmp_l-nonascii.
11688         (gen-as-const-headers): Add locale-defines.sym.
11689         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11690         * sysdeps/x86_64/strcasecmp.S: New file.
11691         * sysdeps/x86_64/strcasecmp_l.S: New file.
11692         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11693         * sysdeps/x86_64/locale-defines.sym: New file.
11694         * string/test-strcasecmp.c: New file.
11696         * string/test-strcasestr.c: Test both ends of the range of characters.
11697         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11699 2010-07-29  Roland McGrath  <roland@redhat.com>
11701         [BZ #11856]
11702         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11704 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11706         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11707         for ld.so.
11709 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11711         * manual/memory.texi (Malloc Tunable Parameters): Document
11712         M_PERTURB.
11714 2010-07-26  Roland McGrath  <roland@redhat.com>
11716         [BZ #11840]
11717         * configure.in (-fgnu89-inline check): Set and substitute
11718         gnu89_inline, not libc_cv_gnu89_inline.
11719         * configure: Regenerated.
11720         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11722 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11724         * string/test-strnlen.c: New file.
11725         * string/Makefile (strop-tests): Add strnlen.
11726         * string/tester.c (test_strnlen): Add a few more test cases.
11727         * string/tst-strlen.c: Better error reporting.
11729         * sysdeps/x86_64/strnlen.S: New file.
11731 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11733         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11734         lower-latency instructions.
11736 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11738         * string/test-strcasestr.c: New file.
11739         * string/test-strstr.c: New file.
11740         * string/Makefile (strop-tests): Add strstr and strcasestr.
11741         * string/str-two-way.h: Don't undefine MAX.
11742         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11744 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11746         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11747         strcasestr-nonascii.
11748         (CFLAGS-strcasestr-nonascii.c): Define.
11749         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11750         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11751         Remove unused attribute.
11753 2010-07-20  Roland McGrath  <roland@redhat.com>
11755         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11756         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11757         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11758         like LD_HWCAP_MASK can disable hwcaps.
11760 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11762         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11764 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11766         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11767         call in strcasestr.
11768         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11769         __strcasestr_sse42_nonascii.
11770         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11771         strcasestr-nonascii.c.
11772         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11774 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11776         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11777         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11778         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11779         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11781 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11783         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11784         fcntl.
11786 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11788         [BZ #11577]
11789         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11790         dl_signal_cerror.
11792 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11794         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11795         _PC_PIPE_BUF using F_GETPIPE_SZ.
11797 2010-07-05  Roland McGrath  <roland@redhat.com>
11799         * manual/arith.texi (Rounding Functions): Fix rint description
11800         implicit in round description.
11802 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11804         * elf/Makefile: Fix linking for a few tests to make recent linker
11805         happy.
11807 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11809         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11810         $(common-objpfx)libc_nonshared.a.
11812 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11814         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11815         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11816         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11817         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11818         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11819         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11820         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11821         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11836         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11837         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11838         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11839         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11840         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11841         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11842         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11843         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11844         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11845         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11846         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11847         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11863 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11865         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11866         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11867         * string/memmove.c (memmove): Renamed to ...
11868         (MEMMOVE): ...this.  Default to memmove.
11869         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11870         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11871         (END_CHK): Define.
11872         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11873         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11874         mempcpy-ssse3-back memmove-ssse3-back.
11875         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11876         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11877         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11878         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11879         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11880         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11881         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11882         * sysdeps/x86_64/multiarch/memmove.c: New file.
11883         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11884         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11885         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11886         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11887         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11888         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11889         Define.
11890         (index_Fast_Copy_Backward): Define.
11891         (HAS_ARCH_FEATURE): Define.
11892         (HAS_FAST_REP_STRING): Define.
11893         (HAS_FAST_COPY_BACKWARD): Define.
11895 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11897         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11898         Restore proper fallback handling.
11900 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11902         [BZ #11701]
11903         * posix/group_member.c (__group_member): Correct checking loop.
11905         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11906         OOM in getpwuid_r correctly.  Return error number when the caller
11907         should return, otherwise -1.
11908         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11909         call returning > 0 value.
11910         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11912 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11914         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11915         libc_nonshared.a from targets in modules-names.
11917 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11919         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11920         requires it.
11922 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11924         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11925         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11926         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11927         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11929 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11931         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11933 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11935         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11936         and F_GETPIPE_SZ.
11937         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11938         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11939         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11940         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11941         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11942         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11944 2010-06-14  Roland McGrath  <roland@redhat.com>
11946         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11948 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11950         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11951         __REDIRECT followed by __THROW.
11952         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11953         * posix/getopt.h (getopt): Likewise.
11955 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11957         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11958         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11959         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11960         in AT_FLAGS.
11961         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11962         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11964 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11966         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11968 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11970         [BZ #11640]
11971         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11972         Properly check family and model.
11974 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11976         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11978 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11980         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11982 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11984         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11985         symbol reference.
11987 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11989         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11990         symbol reference.
11992 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11994         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11995         and internal_recvmmsg.
11996         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11997         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11998         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11999         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
12001         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
12002         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12003         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12005 2010-05-20  Andreas Schwab  <schwab@redhat.com>
12007         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
12009 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
12011         POWER7 optimizations.
12012         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
12013         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
12015 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
12017         * version.h: Update for 2.13 development version.
12019 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
12021         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
12022         exceptions.  Return 0.
12024 2010-05-07  Roland McGrath  <roland@redhat.com>
12026         * elf/ldconfig.c (main): Add a const.
12028 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
12030         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
12031         (args_options): Add no-idn option.
12032         (ahosts_keys_int): Add idn_flags to ai_flags.
12033         (parse_option): Handle 'i' option to clear idn_flags.
12035         * malloc/malloc.c (_int_free): Possible race in the most recently
12036         added check.  Only act on the data if no current modification
12037         happened.
12039 See ChangeLog.17 for earlier changes.