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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by YunQiang Su <s...@gcc.gnu.org>:

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

commit r14-2205-ge20abdb749d0c0c8552da998ff8ec139b830f5eb
Author: Jovan Dmitrovic <jovan.dmitro...@syrmia.com>
Date:   Mon Jun 26 17:00:20 2023 +0200

    mips: Fix overaligned function arguments [PR109435]

    This patch changes alignment for typedef types when passed as
    arguments, making the alignment equal to the alignment of
    original (aliased) types.

    This change makes it impossible for a typedef type to have
    alignment that is less than its size.

    2023-06-27  Jovan DmitroviÄ  <jovan.dmitro...@syrmia.com>

    gcc/ChangeLog:

            PR target/109435
            * config/mips/mips.cc (mips_function_arg_alignment): Returns
            the alignment of function argument. In case of typedef type,
            it returns the aligment of the aliased type.
            (mips_function_arg_boundary): Relocated calculation of the
            aligment of function arguments.

    gcc/testsuite/ChangeLog:

            * gcc.target/mips/align-1-n64.c: New test.
            * gcc.target/mips/align-1-o32.c: New test.
  • [Bug target/109435] overaligned... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to