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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain D Sandoe
<ia...@gcc.gnu.org>:

https://gcc.gnu.org/g:92293d71135f8a4ad4097e971122ce3153de73a8

commit r11-10851-g92293d71135f8a4ad4097e971122ce3153de73a8
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Thu Jun 1 13:43:35 2023 +0100

    Darwin, PPC: Fix struct layout with pragma pack [PR110044].

    This bug was essentially that darwin_rs6000_special_round_type_align()
    was ignoring externally-imposed capping of field alignment.

    Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>

            PR target/110044

    gcc/ChangeLog:

            * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
            Make sure that we do not have a cap on field alignment before
altering
            the struct layout based on the type alignment of the first entry.

    gcc/testsuite/ChangeLog:

            * gcc.target/powerpc/darwin-abi-13-0.c: New test.
            * gcc.target/powerpc/darwin-abi-13-1.c: New test.
            * gcc.target/powerpc/darwin-abi-13-2.c: New test.
            * gcc.target/powerpc/darwin-structs-0.h: New test.

    (cherry picked from commit 84d080a29a780973bef47171ba708ae2f7b4ee47)

Reply via email to