This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/22402] [powerpc64le] __MATH_TG does not support _Float128 for -mlong-double-64


https://sourceware.org/bugzilla/show_bug.cgi?id=22402

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  4e2dff67beeb063cb36fe100d9d2b3f2f88d80c6 (commit)
      from  a1c7cd3c72e5002739161ba35c90944b3ad05c9f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4e2dff67beeb063cb36fe100d9d2b3f2f88d80c6

commit 4e2dff67beeb063cb36fe100d9d2b3f2f88d80c6
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Nov 6 13:26:15 2017 +0000

    Do not declare _Float128 support for powerpc64le -mlong-double-64 (bug
22402).

    The powerpc bits/floatn.h declares _Float128 support to be present
    when the compiler supports it for powerpc64le.  However, in the case
    where -mlong-double-64 is used, __MATH_TG does not actually support
    _Float128; it only supports _Float128 in the distinct-long-double
    case.

    This shows up as a build failure when building glibc mainline with GCC
    mainline, given the recently added sanity check in math.h for
    configurations supported by __MATH_TG, as the compat code for
    -mlong-double-64 fails to build.  However, the bug was logically
    present before that change (including in 2.26), just less visible.

    This patch fixes the build failure by declaring _Float128 to be
    unsupported in that case.  (Of course this can't actually stop users
    calling the type-generic macros with _Float128 arguments with
    -mlong-double-64, just as they could be called with other unsupported
    types on other platforms, but perhaps makes it less likely by making
    all the type-specific _Float128 interfaces invisible in that case.)

    Tested compilation for powerpc64le with build-many-glibcs.py.

        [BZ #22402]
        * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
        [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                     |    6 ++++++
 sysdeps/powerpc/bits/floatn.h |    3 ++-
 2 files changed, 8 insertions(+), 1 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]