aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-01-22S/390: Merge 32 and 64 bit ucontext.h.Andreas Krebbel3-98/+13
2014-01-20Include generic symbol-hacks.h for x32H.J. Lu2-1/+6
In BZ #15605 fix with addding memset/memmove alias in symbol-hacks.h, x32 symbol-hacks.h change was missing. Fixed by including <sysdeps/generic/symbol-hacks.h> in x32 symbol-hacks.h.
2014-01-20PowerPC: Fix gettimeofday ifunc selectionAdhemerval Zanella4-5/+18
The IFUNC selector for gettimeofday runs before _libc_vdso_platform_setup where __vdso_gettimeofday is set. The selector then sets __gettimeofday (the internal version used within GLIBC) to use the system call version instead of the vDSO one. This patch changes the check if vDSO is available to get its value directly instead of rely on __vdso_gettimeofday. This patch changes it by getting the vDSO value directly. It fixes BZ#16431.
2014-01-20[AArch64] Fix type in abi-lp64_be-options.Marcus Shawcroft2-1/+6
2014-01-20[AArch64] BZ #16169 Add CFI directives to clone.STom Tromey3-5/+16
[BZ #16169] Add CFI directives to the AArch64 clone.S implementation and ensure that the FP in the child is zero'd in order to comply with AAPCS.
2014-01-20[AArch64] Define BE loader name.Marcus Shawcroft6-0/+229
2014-01-20Update Catalan translationsAllan McRae2-527/+573
2014-01-18Don't check asynchronous cancellation on systemH.J. Lu2-1/+5
Since asynchronous cancellation was removed from system by commit c4dd57c300aa05ab2f957d571c321237a58d0368 Author: Ondřej Bílka <neleai@seznam.cz> Date: Tue Jan 14 16:07:50 2014 +0100 Do not enable asynchronous cancellation in system. Fixes bug 14782. We needlessly enabled thread cancellation before it was necessary. As only call that needs to be guarded is waitpid which is cancellation point we could remove cancellation altogether. we shouldn't check asynchronous cancellation on system. [BZ #14782] * tst-cancel-wrappers.sh: Remove system.
2014-01-17Fix incorrect ChangeLog formattingAdam Conrad1-1/+1
2014-01-16s390: implement sotruss supportMike Frysinger2-0/+66
See commit 41b1792698a335d3a85381921a84a16e9635f36a for testcase. Note: while this works on s390x, the s390 code hangs when using -e. But it hangs regardless of this code (the hang seems to occur before the exit func is even called). I didn't look too closely at it as it seems to be an issue external to this file, so this code shouldn't make the situation any worse. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-16Add BZ#16430 to NEWS.Adhemerval Zanella1-1/+1
2014-01-16PowerPC: Fix ftime gettimeofday internal call returning bogus dataAdhemerval Zanella3-4/+44
This patches fixes BZ#16430 by setting a different symbol for internal GLIBC calls that points to ifunc resolvers. For PPC32, if the symbol is defined as hidden (which is the case for gettimeofday and time) the compiler will create local branches (symbol@local) and linker will not create PLT calls (required for IFUNC). This will leads to internal symbol calling the IFUNC resolver instead of the resolved symbol. For PPC64 this behavior does not occur because a call to a function in another translation unit might use a different toc pointer thus requiring a PLT call.
2014-01-16Fix math/test-fpucw-*.c for sysdeps test-fpucw.c overrides.Joseph Myers3-2/+7
ARM has an override of the test math/test-fpucw.c, to disable (for soft-float testing) definitions of hard-float macros in fpu_control.h that the header normally defines not only when building for hard-float, but also when building for soft-float with _LIBC defined so that libc code can dynamically test whether VFP hardware is present. (_LIBC is defined when building tests, although ideally it wouldn't be.) The override doesn't work for the derived tests test-fpucw-*.c because they use #include "" instead of <> to include test-fpucw.c, so always get the math/ version instead of the ARM sysdeps override. This patch changes them to use <> so the sysdeps override is effective. (test-fpucw-ieee-static.c doesn't need a change because it includes test-fpucw-ieee.c, which isn't itself being overridden, which in turn includes test-fpucw.c with a #include changed by this patch.) Tested for ARM (big-endian soft-float, non-VFP hardware). * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c. * math/test-fpucw-static.c: Likewise.
2014-01-16Mention addition of multiple precision fallback libm probes in NEWSSiddhesh Poyarekar1-0/+3
2014-01-16Don't use alloca in addgetnetgrentX (BZ #16453)Siddhesh Poyarekar3-32/+12
addgetnetgrentX has a buffer which is grown as per the needs of the requested size either by using alloca or by falling back to malloc if the size is larger than 1K. There are two problems with the alloca bits: firstly, it doesn't really extend the buffer since it does not use the return value of the extend_alloca macro, which is the location of the reallocated buffer. Due to this the buffer does not actually extend itself and hence a subsequent write may overwrite stuff on the stack. The second problem is more subtle - the buffer growth on the stack is discontinuous due to block scope local variables. Combine that with the fact that unlike realloc, extend_alloca does not copy over old content and you have a situation where the buffer just has garbage in the space where it should have had data. This could have been fixed by adding code to copy over old data whenever we call extend_alloca, but it seems unnecessarily complicated. This code is not exactly a performance hotspot (it's called when there is a cache miss, so factors like network lookup or file reads will dominate over memory allocation/reallocation), so this premature optimization is unnecessary. Thanks Brad Hubbard <bhubbard@redhat.com> for his help with debugging the problem.
2014-01-15PowerPC: sotruss-lib implementationAdhemerval Zanella2-0/+74
This patch add the missing sotruss-lib interfaces for PowerPC.
2014-01-15Add ChangeLog entryOndřej Bílka1-0/+6
2014-01-15Do not enable asynchronous cancellation in system. Fixes bug 14782.Ondřej Bílka2-24/+15
We needlessly enabled thread cancellation before it was necessary. As only call that needs to be guarded is waitpid which is cancellation point we could remove cancellation altogether.
2014-01-15[BZ #16427] Fix ldbl-128 exp overflows.Andreas Krebbel2-13/+11
Invoke the non-IEEE handling only for numbers special also in the IEEE case. This aligns the exp handling with the other ldbl variants.
2014-01-15S/390: Regenerate ULPs.Andreas Krebbel2-1139/+9964
2014-01-14ARM: Don't apply pointer encryption to the frame pointerWill Newton5-11/+20
The frame pointer register is rarely used for that purpose on ARM and applications that look at the contents of the jmp_buf may be relying on reading an unencrypted value. For example, Ruby uses the contents of jmp_buf to find the root set for garbage collection so relies on this pointer value being unencrypted. Without this patch the Ruby testsuite fails with a segmentation fault. ports/ChangeLog.arm: 2013-01-14 Will Newton <will.newton@linaro.org> * sysdeps/arm/__longjmp.S: Don't apply pointer encryption to fp register. * sysdeps/arm/setjmp.S: Likewise. * sysdeps/arm/include/bits/setjmp.h (JMP_BUF_REGLIST): Add fp to register list, remove a4. * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD): New macro.
2014-01-12Mention BZ 9721Paul Pluzhnikov1-16/+16
2014-01-12Add BZ #15850 to ChangeLog.Carlos O'Donell1-0/+1
2014-01-11BZ 16133 has been fixed (async signal safe TLS).Paul Pluzhnikov1-5/+5
2014-01-11Fix a race in tst-tls7, which caused crashes on ppc32.Paul Pluzhnikov3-5/+31
2014-01-11Add 15850 to NEWS.Ondřej Bílka1-8/+9
2014-01-11Update Bulgarian translationsAllan McRae2-464/+518
2014-01-11Update German translationsAllan McRae2-467/+513
2014-01-10ARM: Disable compat mcount code when unneeded.Roland McGrath5-6/+125
2014-01-10Correct inputs for sin and cosSiddhesh Poyarekar3-29/+11
The inputs for the slowest path in asin and acos were incorrect and had some fast path inputs there too.
2014-01-10Update Swedish translationsAllan McRae2-466/+511
2014-01-10Update Vietnamese translationsAllan McRae2-580/+636
2014-01-10Update Esperanto translationsAllan McRae2-515/+570
2014-01-10Update Czech translationsAllan McRae2-464/+519
2014-01-10Update Dutch translationsAllan McRae2-474/+527
2014-01-10Update Polish translationsAllan McRae2-467/+512
2014-01-10Update Russian translationsAllan McRae2-471/+524
2014-01-10Update Ukrainian translationsAllan McRae2-464/+520
2014-01-08Obvious comment typo fix ("openened") in elf/dl-load.c.Brooks Moses2-1/+5
2014-01-08Rename header.pot to pot.header.Carlos O'Donell3-4/+9
The Translation Project has asked us to rename the pot header file `header.pot' to something else. Their scripts automatically look for pot files and the file `header.pot' is not actually a pot file but a header that we use when regenerating `libc.pot.' This commit renames `header.pot' to `pot.header' to avoid causing errors or complicating the TP project scripts.
2014-01-09Fix a thinko/typo in i686's memmove (aka __memmove_ia32).Yuriy Kaminskiy3-3/+10
* sysdeps/i386/i686/memmove.S (memmove): Compare distance between SRC and DEST against LEN.
2014-01-08PowerPC: remove wrong truncl implementation for PowerPC64Adhemerval Zanella4-125/+9
The truncl assembly implementation (sysdeps/powerpc/powerpc64/fpu/s_truncl.S) returns wrong results for some inputs where first double is a exact integer and the precision is determined by second long double. Checking on implementation comments and history, I am very confident the assembly implementation was based on a version before commit 5c68d401698a58cf7da150d9cce769fa6679ba5f that fixes BZ#2423 (Errors in long double (ldbl-128ibm) rounding functions in glibc-2.4). By just removing the implementation and make the build select sysdeps/ieee754/ldbl-128ibm/s_truncl.c instead it fixes tgammal issues regarding wrong result sign.
2014-01-08Update powerpc-fpu ULPs.Adhemerval Zanella2-6/+95
2014-01-08Fix ldbl-128ibm expm1l on large arguments (bug 16408).Joseph Myers3-1/+9
This patch fixes bug 16408, ldbl-128ibm expm1l returning NaN for some large arguments. The basic problem is that the approach of converting the exponent to the form n * log(2) + y, where -0.5 <= y <= 0.5, then computing 2^n * expm1(y) + (2^n - 1) falls over when 2^n overflows (starting slightly before the point where expm1 overflows, when y is negative and n is the least integer for which 2^n overflows). The ldbl-128 code, and the x86/x86_64 code, make expm1l fall back to expl for large positive arguments to avoid this issue. This patch makes the ldbl-128ibm code do the same. (The problem appears for the particular argument in the testsuite because the ldbl-128ibm code also uses an overflow threshold that's for ldbl-128 and is too big for ldbl-128ibm, but the problem described applies for large non-overflowing cases as well, although during the freeze is not a suitable time for making the expm1 tests cover cases close to overflow more thoroughly.) This leaves some code for large positive arguments in expm1l that is now dead. To keep the code for ldbl-128 and ldbl-128ibm similar, and to avoid unnecessary changes during the freeze, the patch doesn't remove it; instead I propose to file a bug in Bugzilla as a reminder that this code (for overflow, including errno setting, and for arguments of +Inf) is no longer needed and should be removed from both those expm1l implementations. Tested powerpc32. * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl for large positive arguments.
2014-01-07Use separate libc.abilist for MIPS o32 soft float.Joseph Myers3-0/+2268
Examining MIPS test results showed an ABI test failure that I must have missed in 2.18 testing: hard-float and soft-float o32 no longer have the same set of symbols (because of the __mips_fpu_getcw and __mips_fpu_setcw functions, present for hard-float only, used by fpu_control.h for hard-float MIPS16) and so need separate ABI test baselines (they always were ABI-incompatible - the function-calling interface is different - but previously had the same set of symbols and versions so didn't need separate baselines). Tested for hard-float and soft-float o32. * sysdeps/unix/sysv/linux/mips/mips32/nptl/libc.abilist: Move to .... * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: ... here. * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist: New file.
2014-01-07Regenerate powerpc-nofpu ulps (again).Joseph Myers2-52/+66
2014-01-07Mark more libm tests with xfail-rounding:ldbl-128ibm.Joseph Myers3-433/+443
This patch marks more libm tests as expected to fail for ldbl-128ibm in non-default rounding modes. Given this, my expm1l fix <https://sourceware.org/ml/libc-alpha/2014-01/msg00135.html> and my libgcc fix <http://gcc.gnu.org/ml/gcc-patches/2014-01/msg00157.html> for spurious overflows, the remaining failures in test-ldouble.out (for powerpc32 hard float) are small ulps, spurious underflow and inexact exceptions (the former probably arising from libgcc bugs though I haven't checked each case; the latter are barely meaningful for this format anyway when basic arithmetic isn't correctly rounding, though most of them are probably GCC bug 59412 which doesn't actually involve long double), missing underflow exceptions from clog, ctan and ctanh (probably one of the known bugs for another function), and logb in round-downward mode (bug 887, though it's really a GCC bug that we're not currently working around). 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-07Fix ldbl-128ibm coshl spurious overflows (bug 16407).Joseph Myers3-2/+8
This patch fixes bug 16407, spurious overflows from ldbl-128ibm coshl. The implementation assumed that a high part (reinterpreted as an integer) of the absolute value of the argument of 0x408633ce8fb9f87dLL or more meant overflow, but the actual threshold has high part 0x408633ce8fb9f87eLL (and a negative low part). The patch adjusts the threshold accordingly. sinhl probably has the same issue, but I didn't get that far in adding tests of special cases (such as just below and above overflow) before the freeze and during the freeze is not a suitable time to add them (as they'd require ulps to be regenerated again), so I'm not changing that function for now; when I add more tests of special cases, we'll discover whether sinhl indeed has this problem. Tested powerpc32. * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Increase overflow threshold.
2014-01-07[AArch64] Fix FP_ROUNDMODE.Marcus Shawcroft4-2/+12
[BZ #16387] Fix FP_ROUNDMODE to extract the correct bits from FPCR.
2014-01-07[AArch64] Remove sqrt from libm-test-ulpsMarcus Shawcroft2-438/+4