[Bug target/104208] -mlong-double-64 should override a previous -mabi=ibmlongdouble

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 4 15:04:38 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104208

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Peter Bergner <bergner@gcc.gnu.org>:

https://gcc.gnu.org/g:cb16bc3b5f34733ef9bbf8d2e3acacdecb099a62

commit r12-7485-gcb16bc3b5f34733ef9bbf8d2e3acacdecb099a62
Author: Peter Bergner <bergner@linux.ibm.com>
Date:   Fri Mar 4 09:03:44 2022 -0600

    rs6000: Allow -mlong-double-64 after -mabi={ibm,ieee}longdouble [PR104208,
PR87496]

    The glibc build is showing a build error due to extra "error" checking from
my
    PR87496 fix.  That checking was overeager, disallowing setting the long
double
    size to 64-bits if the 128-bit long double ABI had already been specified.
    Now we only emit an error if we specify a 128-bit long double ABI if our
    long double size is not 128 bits.  This also fixes an erroneous error when
    -mabi=ieeelongdouble is used and ISA 2.06 is not enabled, but the long
double
    size has been changed to 64 bits.

    2022-03-04  Peter Bergner  <bergner@linux.ibm.com>

    gcc/
            PR target/87496
            PR target/104208
            * config/rs6000/rs6000.cc (rs6000_option_override_internal): Make
the
            ISA 2.06 requirement for -mabi=ieeelongdouble conditional on
            -mlong-double-128.
            Move the -mabi=ieeelongdouble and -mabi=ibmlongdouble error
checking
            from here...
            * common/config/rs6000/rs6000-common.cc (rs6000_handle_option):
            ... to here.

    gcc/testsuite/
            PR target/87496
            PR target/104208
            * gcc.target/powerpc/pr104208-1.c: New test.
            * gcc.target/powerpc/pr104208-2.c: Likewise.
            * gcc.target/powerpc/pr87496-2.c: Swap long double options to
trigger
            the expected error.
            * gcc.target/powerpc/pr87496-3.c: Likewise.


More information about the Gcc-bugs mailing list