From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C19733858412; Fri, 30 Jun 2023 03:21:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C19733858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688095276; bh=B8UOnQW984dTv5ubisJEkH1/lmk+cIwud8n3AawSGvs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pDsIXNzEEDIkyrvwxNdU4k4yy5+3Nbe/32RJQ9EBqRGD2RoO+0uRM+TAFpIxJiZzH ICtXjHLpAhLcMftuuXIwSpcAXPN5KLgs/qF8DZFXC0aaBUbobzMAeBHt08KwdqV5sK wPP9l2H2xV7hmJWHBAkOZkk8ALWSmAqEVQ2YQlWc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109435] overaligned structs are not passed correctly for mips64 Date: Fri, 30 Jun 2023 03:21:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.3.0 X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109435 --- Comment #4 from CVS Commits --- The master branch has been updated by YunQiang Su : https://gcc.gnu.org/g:e20abdb749d0c0c8552da998ff8ec139b830f5eb commit r14-2205-ge20abdb749d0c0c8552da998ff8ec139b830f5eb Author: Jovan Dmitrovic 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=C3=84 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.=