aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
AgeCommit message (Collapse)AuthorFilesLines
2013-04-06i386: Fail at configure time for i386 builds.Carlos O'Donell2-0/+58
This change does two things: * Treats a target i386-* as if it were i686. * Fails configure if the user is generating code for i386. We no longer support i386 code-generation because the i386 lacks the atomic operations we need in glibc. You can still configure for i386-*, but you get i686 code. You can't build with --march=i386, --mtune=i386 or a compiler that defaults to i386 code-generation. I've added two i386 entries in the master todo list to discuss merging and renaming: http://sourceware.org/glibc/wiki/Development_Todo/Master#i386 The failure modes are fail-safe here. You compile for i386, get i686, and try to run on i386 and it fails. The configure log has a warning saying we elided to i686. There is no situation that I can see where we run into any serious problems. The patch makes the current state better in that we get less confused users and we build successfully in more default configurations. The next enhancement would be to add --march=i?86 as suggested in #c20 of BZ#10062 for any i?86-* builds, which would solve the problem of a 32-bit compiler that defaults to i386 code-gen and glibc configured for i686-* target. Which previously failed at build time, and now will fail at configure time (requires adding --march=i686). Updated NEWS with BZ #10060 and #10062. No regressions. --- 2013-04-06 Carlos O'Donell <carlos@redhat.com> [BZ #10060, #10062] * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro. * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and fail configure if __sync_val_compare_and_swap is not inlined. * sysdeps/i386/configure: Regenerate. * configure.in: Build for i686 when configured for i386. * configure: Regenerate. * README: Remove i386 reference.
2013-04-06s390/s390x: Undef PSEUDO before redef.Carlos O'Donell2-0/+2
The s390 and s390x sysdep.h files include the more generic sysdep.h. The more generic sysdep.h defines PSEUDO. This causes an annoying CPP warning saying the PSEUDO was redefined. This patch removes the warning by undefining PSEUDO before the redefinition. This is in line with what all the other machines do. --- 2013-04-06 Carlos O'Donell <carlos@redhat.com> * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition. * sysdeps/s390/s390-64/sysdep.h: Likewise. Notes: Added ChangeLog with this commit: b7a329a5614d9001abcc3300a3da548a0865a3ac
2013-04-05[BZ #14686, #15336] Fix standard compliance. Don't use hard-coded qNaN values.Thomas Schwinge2-12/+10
2013-04-05[BZ #15335, #15342] Fix standard compliance. Don't use hard-coded qNaN values.Thomas Schwinge2-9/+9
2013-04-05Remove unreachable code.Thomas Schwinge1-2/+1
The case of y == 0 is handled at the beginning of the function.
2013-04-05Remove unused hard-coded qNaN definition.Thomas Schwinge1-2/+0
2013-04-03Fix stack overflow in getaddrinfo with many resultsAndreas Schwab1-2/+21
2013-04-03Refer to two GCC PRs.Thomas Schwinge2-2/+4
2013-04-03Remove TWOSiddhesh Poyarekar2-3/+1
Minor cleanup to remove the macro TWO and use the value directly instead.
2013-04-03Preserve errno across _PC_CHOWN_RESTRICTED call on XFSSiddhesh Poyarekar2-0/+13
Fix BZ #15305. On kernel versions earlier than 2.6.29, the Linux kernel exported a sysctl called restrict_chown for xfs, which could be used to allow chown to users other than the owner. 2.6.29 removed this support, causing the open_not_cancel_2 to fail and thus modify errno. The fix is to save and restore errno so that the caller sees it as unmodified. Additionally, since the code to check the sysctl is not useful on newer kernels, we add an ifdef so that in future the code block gets rmeoved completely.
2013-04-02Fix cacosh inaccuracy and spurious exceptions (bug 15327).Joseph Myers2-57/+1634
2013-04-02Use mantissa_t in mpexpSiddhesh Poyarekar2-3/+4
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge18-0/+345
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-04-01PowerPC: remove branch prediction from rint implementationAdhemerval Zanella4-12/+12
The branch prediction hints is actually hurts performance in this case. The assembly implementation make two assumptions: 1. 'fabs (x) < 2^52' is unlikely and 2. 'x > 0.0' is unlike (if 1. is true). Since it a general floating point function, expected input is not bounded and then it is better to let the hardware handle the branches.
2013-03-30Fix casinh inaccuracy for imaginary part < 1.0, real part small (bug 10357).Joseph Myers2-297/+2265
2013-03-29Remove usage of ONE macroSiddhesh Poyarekar1-1/+1
I missed this instance, which caused a build failure in powerpc.
2013-03-29Remove ONE and MONESiddhesh Poyarekar7-22/+20
2013-03-29Format s_tan.cSiddhesh Poyarekar1-405/+728
2013-03-29Remove ZERO and MZERO macrosSiddhesh Poyarekar7-63/+61
2013-03-29Format s_atan.cSiddhesh Poyarekar1-151/+246
2013-03-29Format e_log.cSiddhesh Poyarekar1-95/+133
2013-03-28Use __ehdr_start, if available, as fallback for AT_PHDR.Roland McGrath1-8/+14
2013-03-28Make _dl_phdr pointer to const.Roland McGrath2-2/+2
2013-03-28Consolidate declarations of _dl_phdr, _dl_phnum.Roland McGrath2-4/+6
2013-03-28Never call syslog in __libc_message.Roland McGrath1-9/+0
2013-03-28PowerPC: .eh_frame info in crt1.o isn't useful and triggers gold bug 14675.Alan Modra2-0/+14
The .eh_frame info in crt1.o isn't useful and this patch prevents it from being generated on PowerPC. It triggers the following gold bug: http://sourceware.org/bugzilla/show_bug.cgi?id=14675
2013-03-28Fix e_logl (128ibm) spurious underflowAdhemerval Zanella2-2/+17
2013-03-28Format and clean up s_atan2.cSiddhesh Poyarekar1-310/+494
2013-03-27Fix casinh inaccuracy near i, imaginary part > 1 (bug 15307).Joseph Myers2-0/+708
2013-03-26Use integral constantsSiddhesh Poyarekar1-76/+76
The compiler is smart enough to convert those into double for powerpc, but if we put them as doubles, it adds overhead by performing those operations in floating point mode.
2013-03-26Removed commented codeSiddhesh Poyarekar11-85/+0
2013-03-26Make mantissa type of mp_no configurableSiddhesh Poyarekar4-69/+157
The mantissa of mp_no is intended to take only integral values. This is a relatively good choice for powerpc due to its 4 fpus, but not for other architectures, which suffer due to this choice. This change makes the default mantissa a long integer and allows powerpc to override it. Additionally, some operations have been optimized for integer manipulation, resulting in a significant improvement in performance.
2013-03-26PowerPC: fix libm ABI issue for llroundlAdhemerval Zanella1-0/+4
2013-03-22Update sparc ULPs.David S. Miller1-4/+1002
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2013-03-22BZ#13889: expl (709.75) wrongly overflows for ldbl-128ibmAdhemerval Zanella2-6/+24
The patch increase the high value to check if expl overflows. Current high mark value is not really correct, the algorithm accepts high values. It also adds a correct wrapper function to check for overflow and underflow.
2013-03-22BZ#11120: fix x86_64/strcmp.S NOT_IN_libc safeguardsDmitry V. Levin1-3/+3
Due to a typo repeated several times, this bug hasn't been fixed yet, despite being marked as resolved in glibc 2.12. * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib with NOT_IN_libc.
2013-03-21PowerPC: fix sqrtl ABI issueAdhemerval Zanella1-0/+4
This patch fixes a sqrtl ABI issue when building for powerpc64.
2013-03-21On 32-bit x86, disable certain tests involving sNaN values.Thomas Schwinge2-0/+62
Follow-up to commit 495ded2c8c1eb8c0ac4b54add2dd397852e19cba.
2013-03-21Fix Bessel function spurious overflows for ldbl-128 / ldbl-128ibm (bug 15285).Joseph Myers3-20/+40
2013-03-21Fix casinh inaccuracy for argument with imaginary part 1 (bug 15287).Joseph Myers2-2/+1466
2013-03-21Replace 8388608.0 with HALFRAD in mp codeSiddhesh Poyarekar2-3/+3
Minor cleanup
2013-03-20Move system-specific settings out of toplevel configure.in and config.make.in.Joseph Myers8-0/+39
2013-03-19Consolidate Linux and POSIX libc_fatal code.Roland McGrath2-186/+67
2013-03-19s390x: Move rtld link to /libAndreas Schwab2-4/+14
2013-03-18Faster strlen on x64.Ondrej Bilka13-1308/+755
2013-03-17Update Sparc ULPs.David S. Miller1-2/+14
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2013-03-16Fix y1l spurious overflows for ldbl-96 (bug 15283).Joseph Myers3-1/+25
2013-03-16Fix spurious underflow exceptions for Bessel functions for ldbl-128 / ↵Joseph Myers2-58/+79
ldbl-128ibm (bug 14155).
2013-03-15Move _dl_non_dynamic_init, _dl_aux_init declarations.Roland McGrath2-6/+7
2013-03-15Promote a math test for sNaN handling to the top-level.Thomas Schwinge2-337/+0