summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-01-04tst-fanotify: switch to AC_DEFINEMike Frysinger5-2/+14
Reported-by: Joseph S. Myers <joseph@codesourcery.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-03Fix soft-float ldbl-128ibm atan2l signs of zero results (bug 16390).Joseph Myers3-1/+8
This patch fixes bug 16390, incorrect signs of zero results from ldbl-128ibm atan2l, soft-float only. The problem is a longstanding GCC bug with fabsl not being correct for signed zero for soft float, and the fix is using -fno-builtin-fabsl as a workaround, as already done for various other source files. Tested powerpc-nofpu. * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math] (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
2014-01-03Fix ChangeLog entry.Paul Pluzhnikov1-1/+1
2014-01-03PowerPC: Fix compiler warningsAdhemerval Zanella5-4/+12
This patch fixes some compile warnings related to extra tokens at end of #undef directive from multilib patchset.
2014-01-03Merge branch 'master' of ssh://sourceware.org/git/glibcPaul Pluzhnikov2-963/+7501
2014-01-03Async-signal safe TLS.Andrew Hunter9-46/+313
ChangeLog: 2014-01-03 Andrew Hunter <ahh@google.com> * elf/dl-open.c (): New comment. * elf/dl-reloc.c (_dl_try_allocate_static_tls): Use atomic_compare_and_exchange_bool_acq (_dl_allocate_static_tls): Block signals. * elf/dl-tls.c (allocate_and_init): Return void. (_dl_update_slotinfo): Block signals, use atomic update. nptl/ChangeLog: 2014-01-03 Andrew Hunter <ahh@google.com> * nptl/Makefile (tst-tls7): New test. * nptl/tst-tls7.c: New file. * nptl/tst-tls7mod.c: New file. * nptl/allocatestack.c (init_one_static_tls): Use atomic barrier.
2014-01-03Regenerate powerpc-nofpu ulps.Joseph Myers2-963/+7501
2014-01-03Mark various libm tests with xfail-rounding:ldbl-128ibm.Joseph Myers3-1744/+1759
This patch marks various libm tests with xfail-rounding:ldbl-128ibm, where the failures appear to relate to GCC bug 59666 (bad libgcc handling of directed rounding), so as to allow clean libm-test-ulps regeneration without needing to edit out large ulps for various functions manually. Note that this only deals with the cases problematic for ulps regeneration. There are plenty of test failures left that do not affect ulps regeneration - results that are infinities or NaNs but should be finite, or vice versa, and missing and spurious exceptions - which should also be resolved during the release testing period. Tested for powerpc32 (hard float). * math/auto-libm-test-in: Mark various tests with xfail-rounding:ldbl-128ibm. * math/auto-libm-test-out: Regenerated.
2014-01-02Fix ldbl-128ibm logl inaccuracy (bug 16386).Joseph Myers3-1/+14
This patch fixes bug 16386, ldbl-128ibm logl inaccuracy (with consequent inaccuracy for lgammal) for arguments where the high double is subnormal, which showed up while attempting to regenerate ulps for powerpc-nofpu for 2.19. The problem here is logic failing to allow for subnormals when calculating the exponent of the argument. Tested for powerpc-nofpu. * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust numbers with subnormal high part when calculating exponent.
2014-01-02Fix ldbl-128ibm asinhl inaccuracy (bug 16385).Joseph Myers3-2/+6
This patch fixes bug 16385, ldbl-128ibm asinhl inaccuracy, which showed up while attempting to regenerate ulps for powerpc-nofpu for 2.19. The problem here was use of fabs instead of fabsl meaning large arguments were reduced to the precision of double. Tested for powerpc-nofpu. * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not fabs.
2014-01-02Fix ldbl-128ibm acoshl inaccuracy (bug 16384).Joseph Myers3-3/+10
This patch fixes bug 16384, ldbl-128ibm acoshl inaccuracy, which showed up while attempting to regenerate ulps for powerpc-nofpu for 2.19. There were two separate problems, use of __log1p instead of __log1pl and an insufficiently accurate constant value for log 2 (which this patch replaces by use of M_LN2l), each of which could cause substantial inaccuracy in affected cases. Tested for powerpc-nofpu. * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with M_LN2l. (__ieee754_acoshl): Use __log1pl not __log1p.
2014-01-02Reformat malloc to gnu style.Ondřej Bílka18-3754/+4038
2014-01-02Fix return code from getent netgroup when the netgroup is not found (bz #16366)Siddhesh Poyarekar3-30/+67
nscd incorrectly returns a success even when the netgroup in question is not found and adds a positive result in the cache. this patch fixes this behaviour by adding a negative lookup entry to cache and returning an error when the netgroup is not found.
2014-01-02Fix infinite loop in nscd when netgroup is empty (bz #16365)Siddhesh Poyarekar3-4/+11
Currently, when a user looks up a netgroup that does not have any members, nscd goes into an infinite loop trying to find members in the group. This is because it does not handle cases when getnetgrent returns an NSS_STATUS_NOTFOUND (which is what it does on empty group). Fixed to handle this in the same way as NSS_STATUS_RETURN, similar to what getgrent does by itself.
2014-01-01[AArch64] Regenerate libm-test-ulps.Marcus Shawcroft2-498/+7248
2014-01-01[AArch64] Define ABORT_INSTRUCTION.Marcus Shawcroft2-0/+5
2014-01-01[AArch64] Pointer mangling support for AArch64.Venkataramanan Kumar7-17/+106
2014-01-01Regenerate ARM ulps.Joseph Myers2-629/+3695
2014-01-01Regenerate MIPS ulps.Joseph Myers3-1692/+11649
2014-01-01Regenerate x86 / x86_64 ulps.Joseph Myers3-5812/+38
2014-01-01scripts/update-copyrights: adjust configure input file suffixAllan McRae2-1/+3
2014-01-01Update remaining copyright datesAllan McRae26-25/+51
Update copyright years that are not handled by scripts/update-copyright.
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae8406-8405/+8413
2013-12-31NEWS: mention 16379 as fixedMike Frysinger1-1/+1
Reported-by: Joseph S. Myers <joseph@codesourcery.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-31tst-fanotify: check for linux/fanotify.h existenceMike Frysinger4-0/+69
We support older kernels that lack this header, so check for it before we try to use it. Reported-by: Adhemerval Zanella <azanella@linux.vnet.ibm.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-31Benchmark inputs for cos and sinSiddhesh Poyarekar3-12/+5303
Add a comprehensive number of inputs for all branches in sin and cos computation, excluding the fast paths. This also adds a number of inputs for the multiple precision slow paths.
2013-12-31benchmark inputs for atanSiddhesh Poyarekar2-5/+805
Add a more comprehensive set of inputs for the atan function. I have also fixed the name on the multiple precision fallback inputs (I couldn't find any new inputs there) to reflect the fact that the fallback is only 144bits and not 768bits as I had earlier mentioned.
2013-12-31benchmark inputs for tanh and atanhSiddhesh Poyarekar3-10/+403
2013-12-31benchmark inputs for asinh and acoshSiddhesh Poyarekar3-10/+603
Like sinh and cosh, this patch has benchmark inputs for asinh and acosh, generated using a random number generator and spread over significant branches, ignoring the fast return paths.
2013-12-31benchmark inputs for sinh and coshSiddhesh Poyarekar3-10/+703
Add a full set of inputs for sinh and cosh functions generated using a random number generator and spreading it over all branches in the function, ignoring the fast paths (i.e. immediate return for special values).
2013-12-31benchmark inputs for asin and acosSiddhesh Poyarekar3-14/+5245
Add a comprehensive set of inputs for asin and acos functions, including the multiple precision fallback path.
2013-12-30ia64: longjmp_chk: support signal stacks [BZ #16372]Mike Frysinger6-13/+83
The sp check has to be moved up to the start of the func since it now makes a system call and that'll clobber a lot of registers. URL: https://sourceware.org/bugzilla/show_bug.cgi?id=16372 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-30ia64: setjmp/longjmp: stop saving/restoring fpsr [BZ #16379]Mike Frysinger4-12/+21
The new tst-setjmp-fp test has been failing on IA64 because the setjmp and longjmp helpers take care of saving/restoring the fpsr register. Per the C standards, this is incorrect, so disable that logic. URL: https://sourceware.org/bugzilla/show_bug.cgi?id=16379 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-30Fix ChangeLogOndřej Bílka1-1/+2
2013-12-30Fix spelling in manual, as in bug 16376Ville Skytta17-25/+43
2013-12-30ia64: setjmp: use HIDDEN_JUMPTARGETMike Frysinger2-3/+12
Rather than opencode the __GI_xxx logic, use proper hidden helpers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-29ia64: syscall: add some helpful documentationMike Frysinger2-0/+8
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-27Add Solvenian translations for glibc messages.Carlos O'Donell3-1/+7260
2013-12-27ignore gdb related filesMike Frysinger2-0/+8
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-27Fix typo in csloww()Allan McRae3-2/+8
An incorrect variable name was used during the refactoring done in commit 4aafb73c.
2013-12-26Add lang_name to various locales.Chris Leonard12-2/+38
2013-12-25ia64: implement futex requeue pi supportMike Frysinger2-0/+34
Used the s390 code as a guideline until all tests pass. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-25ia64: add lll_futex_timed_wait_bitsetMike Frysinger2-0/+16
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-24ia64: ioperm: clean up long dead codeMike Frysinger2-19/+8
This file has a few #if 0 code paths which cause a build time warning: ports/sysdeps/unix/sysv/linux/ia64/ioperm.c:66:7: warning: variable 'prot' set but not used [-Wunused-but-set-variable] Rather than add more #if 0 around that variable, just delete the code altogether. Not like it's going to ever be implemented. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-24ia64: implement sotruss supportMike Frysinger2-0/+54
Tested with: $ cat test.c main(){close(0x1024, 2, 3);} $ gcc test.c $ sotruss -e ./a.out a.out -> libc.so.6.1 : __libc_start_main(0x4000000000000950, 0x1, 0x60000fffffb56bc8) a.out -> libc.so.6.1 : close(0x1024, 0x2, 0x3) a.out -> libc.so.6.1 : close - 0xffffffffffffffff Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-24ia64: link.h: adjust whitespaceMike Frysinger2-10/+14
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-23Define __CORRECT_ISO_CPP_STRING_H_PROTO correctly for Clang.Brooks Moses3-4/+19
In the string/string.h and string/strings.h headers, we have a couple of macros that "tell the caller that we provide correct C++ prototypes" according to the comment; they are used to determine whether to wrap some prototypes in "extern "C++"" (and provide multiple overloads of them, and some other magic) when __cplusplus is defined. The macros are set to check for sufficiently-recent GCC versions (4.4 and later), but this is not the right check for non-GCC compilers. In particular, these macros should also be set when using Clang -- if they are not set, then Clang will be unable to correctly diagnose a number of subtle bugs that will be errors in GCC compilations. As per discussion on earlier versions of this patch, rather than restrict the fix to Clang per se, we assume that all C++ compilers that claim to fully support C++98 are using a standard-conforming C++ standard library, which seems pretty reasonable. Clang has been providing an appropriate value of __cplusplus since May 2012.
2013-12-24Restore accidentally deleted bug-fix entries in NEWS.Maxim Kuvyrkov2-1/+6
* NEWS: Restore accidentally deleted bug-fix entries.
2013-12-24Fix race in free() of fastbin chunk: BZ #15073Maxim Kuvyrkov3-19/+30
Perform sanity check only if we have_lock. Due to lockless nature of fastbins we need to be careful derefencing pointers to fastbin entries (chunksize(old) in this case) in multithreaded environments. The fix is to add have_lock to the if-condition checks. The rest of the patch only makes code more readable. * malloc/malloc.c (_int_free): Perform sanity check only if we have_lock.
2013-12-23Add Changelog and news entry.Ondřej Bílka2-13/+19