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

--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>:

https://gcc.gnu.org/g:1d238c84025aaef1641e4000bd2a8f4328b474dd

commit r14-10119-g1d238c84025aaef1641e4000bd2a8f4328b474dd
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Thu Apr 25 12:44:14 2024 +0200

    Fix calling convention incompatibility with vendor compiler

    For the 20th anniversary of https://gcc.gnu.org/gcc-3.4/sparc-abi.html,
    a new calling convention incompatibility with the vendor compiler (and
    the ABI) has been discovered in 64-bit mode, affecting small structures
    containing arrays of floating-point components.  The decision has been
    made to fix it on Solaris only at this point.

    gcc/
            PR target/114416
            * config/sparc/sparc.h (SUN_V9_ABI_COMPATIBILITY): New macro.
            * config/sparc/sol2.h (SUN_V9_ABI_COMPATIBILITY): Redefine it.
            * config/sparc/sparc.cc (fp_type_for_abi): New predicate.
            (traverse_record_type): Use it to spot floating-point types.
            (compute_fp_layout): Also deal with array types.

    gcc/testsuite/
            * gcc.target/sparc/small-struct-1.c: New test.
            * gcc.target/sparc/pr105573.c: Rename to...
            * gcc.target/sparc/20230425-1.c: ...this.
            * gcc.target/sparc/pr109541.c: Rename to...
            * gcc.target/sparc/20230607-1.c: ...this

Reply via email to