aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
AgeCommit message (Collapse)AuthorFilesLines
2014-02-10Whitespace fixesAndreas Schwab2-2/+0
2014-02-10Move m68k from ports to libcAndreas Schwab399-0/+29748
2014-02-10Move tilegx, tilepro, and linux-generic from ports to libc.Chris Metcalf271-0/+28727
I've moved the TILE-Gx and TILEPro ports to the main sysdeps hierarchy, along with the linux-generic ports infrastructure. Beyond the README update, the move was just git mv ports/sysdeps/tile sysdeps/tile git mv ports/sysdeps/unix/sysv/linux/tile \ sysdeps/unix/sysv/linux/tile git mv ports/sysdeps/unix/sysv/linux/generic \ sysdeps/unix/sysv/linux/generic I updated the relevant ChangeLogs along the lines of the ARM move in commit c6bfe5c4d75 and tested the 64-bit tilegx build to confirm that there were no changes in "objdump -dr" output in the shared objects.
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka121-341/+341
2014-02-08shm_open: sync with logic in sem_openMike Frysinger1-3/+6
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-08linux: bits/in.h: sync with latest kernel headersMike Frysinger1-1/+25
This pulls in the latest defines for {g,s}etsockopt. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-08linux_fsinfo.h: sync with current linux/magic.hMike Frysinger1-4/+99
Import the current list of defines available in the kernel headers. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-02-08Fix whitespace in ARM files to allow move.Joseph Myers3-8/+6
2014-02-08Move arm from ports to libc.Joseph Myers266-0/+26716
I've moved the ARM port from ports to the main sysdeps hierarchy. Beyond the README update, the move of the files was simply git mv ports/sysdeps/arm sysdeps/arm git mv ports/sysdeps/unix/arm sysdeps/unix/arm git mv ports/sysdeps/unix/sysv/linux/arm sysdeps/unix/sysv/linux/arm and in addition to the ChangeLog entries here, I put a note at the top of ports/ChangeLog.arm similar to that at the top of ChangeLog.powerpc. There is deliberately no NEWS change, as I think it makes the most sense to put in a general note above all ports having moved if we can achieve that for 2.20. Tested that disassembly of installed shared libraries for arm is the same before and after this patch, except for data (not instructions) in ld.so (there are assertions in sysdeps/arm/dl-machine.h, and the path by which that file is found, and so by which it appears in the assertion message, changes as a result of the move). * sysdeps/arm: Move directory from ports/sysdeps/arm. * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm. * sysdeps/unix/sysv/linux/arm: Move directory from ports/sysdeps/unix/sysv/linux/arm. * README: Update listing for arm-*-linux-gnueabi. ports/ChangeLog.arm: * sysdeps/arm: Move directory to ../sysdeps/arm. * sysdeps/unix/arm: Move directory to ../sysdeps.arm. * sysdeps/unix/sysv/linux/arm: Move directory to ../sysdeps/unix/sysv/linux/arm.
2014-02-07Avoid comma operator warnings.Roland McGrath1-1/+1
2014-02-06Revert "Patch [1/4] async-signal safe TLS."Allan McRae4-62/+0
This reverts commit 69a17d9d245dc3551792e95e1823cc2d877592f3.
2014-02-06Revert "Patch 3/4 of the effort to make TLS access async-signal-safe."Allan McRae1-5/+0
This reverts commit 35e8f7ab94c910659de9d507aa0f3e1f8973d914.
2014-02-06Revert "Patch 2/4 of the effort to make TLS access async-signal-safe."Allan McRae1-6/+0
This reverts commit 1f33d36a8a9e78c81bed59b47f260723f56bb7e6. Conflicts: elf/dl-misc.c Also reverts the follow commits that were bug fixes to new code introduced in the above commit: 063b2acbce83549df82ab30f5af573f1b9c4bd19 b627fdd58554bc36bd344dc40a8787c4b7a9cc46 e81c64bba13d2d8b2a4e53254a82cc80f27c8497
2014-02-05Fix comment in kernel-features.h.Carlos O'Donell1-1/+1
Use "was" not "were."
2014-02-05Fix tst-setgetname for Linux kernels < 2.6.33.Carlos O'Donell1-0/+6
Support for /proc/self/task/$tid/comm as added in Linux 2.6.33, therefore since the test tst-setgetname relies on this functionality to operate we must skip the test in kernels < 2.6.33. We wrap the checks with __ASSUME_PROC_PID_TASK_COMM such that in the future when we move arch_minimum_kernel to 2.6.33 we can remove this code.
2014-02-04Adjust sparc ULPs.David S. Miller1-0/+5
* sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from 32-bit.
2014-02-04PowerPC: powerpc64le abilist for 2.17Adhemerval Zanella13-0/+3149
This patch is the abifiles for powerpc64le based on GLIBC 2.17.
2014-02-04abilist-pattern configurabilityAdhemerval Zanella1-0/+4
This patch creates implicit rules to match the abifiles if abilist-pattern is defined in the architecture Makefile. This allows machine specific Makefiles to define different abifiles names (for instance *-le.abilist for powerpc64le).
2014-02-04Update x86_64 ULPs (AMD family 21, model 2)Eric Wong1-3/+161
Tested on an AMD FX-8320 CPU
2014-02-04Update x86_64 ULPs (AMD Family 10h)Eric Wong1-2/+611
2014-01-29Disable x87 inline functions for SSE2 mathH.J. Lu1-2/+2
When i386 and x86-64 mathinline.h was merged into a single mathinline.h, "gcc -m32" enables x87 inline functions on x86-64 even when -mfpmath=sse and SSE2 is enabled. It is a regression on x86-64. We should check __SSE2_MATH__ instead of __x86_64__ when disabling x87 inline functions.
2014-01-28Add -mieee to SH sysdep-CFLAGS for older SH compilers.Kaz Kojima1-0/+3
2014-01-27Regenerate SH libm-test-ulps with proper compiler options.Kaz Kojima1-9/+716
2014-01-24Rebuild sparc ULPs.David S. Miller1-1203/+9817
* sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
2014-01-25Move SH libm-test-ulps to sysdeps/sh and regenerate it.Kaz Kojima2-1094/+5486
2014-01-24Restore ucontext ABI for soft-float sh4.Kaz Kojima2-99/+1
2014-01-23Adjust SH specific fpu_control.h and ucontext.h files.Kaz Kojima3-103/+31
2014-01-22S/390: Merge 32 and 64 bit ucontext.h.Andreas Krebbel2-98/+6
2014-01-20Include generic symbol-hacks.h for x32H.J. Lu1-1/+1
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 Zanella2-4/+10
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-16s390: implement sotruss supportMike Frysinger1-0/+62
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-16PowerPC: Fix ftime gettimeofday internal call returning bogus dataAdhemerval Zanella2-4/+36
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-15PowerPC: sotruss-lib implementationAdhemerval Zanella1-0/+69
This patch add the missing sotruss-lib interfaces for PowerPC.
2014-01-15Do not enable asynchronous cancellation in system. Fixes bug 14782.Ondřej Bílka1-10/+1
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 Krebbel1-13/+5
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 Krebbel1-1139/+9960
2014-01-10ARM: Disable compat mcount code when unneeded.Roland McGrath1-0/+42
2014-01-09Fix a thinko/typo in i686's memmove (aka __memmove_ia32).Yuriy Kaminskiy1-2/+2
* sysdeps/i386/i686/memmove.S (memmove): Compare distance between SRC and DEST against LEN.
2014-01-08PowerPC: remove wrong truncl implementation for PowerPC64Adhemerval Zanella2-123/+0
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 Zanella1-6/+91
2014-01-08Fix ldbl-128ibm expm1l on large arguments (bug 16408).Joseph Myers1-0/+2
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-07Regenerate powerpc-nofpu ulps (again).Joseph Myers1-52/+64
2014-01-07Fix ldbl-128ibm coshl spurious overflows (bug 16407).Joseph Myers1-1/+1
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-07S/390: Remove __tls_get_addr argument cast.Andreas Krebbel1-1/+1
2014-01-07S/390: Get rid of unused variable warning in dl-machine.hAndreas Krebbel1-1/+2
2014-01-07S/390: Make ucontext_t extendible.Andreas Krebbel16-17/+290
2014-01-07S/390: Make jmp_buf extendible.Andreas Krebbel26-24/+649
2014-01-06Fix ldbl-128 / ldbl-128ibm lgammal spurious underflow (bug 16400).Joseph Myers1-1/+3
This patch fixes bug 16400, spurious underflow exceptions for ldbl-128 / ldbl-128ibm lgammal with small positive arguments, by just using -__logl (x) as the result in the problem cases (similar to the previous fix for problems with small negative arguments). Tested powerpc32, and also tested on mips64 that this does not require ulps regeneration for the ldbl-128 case. * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Return -__logl (x) for small positive arguments without evaluating a polynomial.
2014-01-06ptrace.h: add __ prefix to ptrace_peeksiginfo_argsMike Frysinger4-4/+4
All the other ptrace structures in this file have a __ prefix except this new one. This in turn causes build problems for most packages that try to use ptrace such as strace: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../linux/x86_64 -I../../linux \ -I./linux -Wall -Wwrite-strings -g -O2 -MT process.o -MD -MP \ -MF .deps/process.Tpo -c -o process.o ../../process.c In file included from ../../process.c:63:0: /usr/include/linux/ptrace.h:58:8: error: redefinition of 'struct ptrace_peeksiginfo_args' struct ptrace_peeksiginfo_args { ^ In file included from ../../defs.h:159:0, from ../../process.c:37: /usr/include/sys/ptrace.h:191:8: note: originally defined here struct ptrace_peeksiginfo_args ^ Since this struct was introduced in glibc-2.18, there shouldn't be any real regressions with adding the __ prefix. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-05Update ULPs for i386Andreas Jaeger1-0/+84
Update based on testing with GCC 4.8.1 on Intel i7