From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35C81388A008; Thu, 2 Apr 2020 09:18:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35C81388A008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585819118; bh=95Df72mPwapm41rGKbh/UF5WxDIcWGP17ql/1cMRYE4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f1gI1JLgeGOlcZ+XoQjm1Yy8cM9zXpvo56WlFH4CcSMNPKrCOrHa+H+4Qq9+i6Iwe 130Ri0FeJhDQeNQM27vlTtwrEKEijN9WTSNasZQdbBtaIEM5aPQV00A2vK7/vsagtM /5NbM+kIHREC/jWnKWF4QHTDdL5txsVXr5vaMKx0= From: "chen3.liu at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94452] I386 ABI: How to determine the alignment arguments on the stack of struct or union for argument passing Date: Thu, 02 Apr 2020 09:18:38 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chen3.liu at intel dot com 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2020 09:18:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94452 --- Comment #5 from ChenLiu --- (In reply to Richard Biener from comment #4) > (In reply to ChenLiu from comment #2) > > (In reply to Richard Biener from comment #1) > > > I see gx aligned to 64 bytes (as I expected). Can you be more specif= ic as > > > to what target you tested? > >=20 > > I tested on i386 target. I think you may misunderstand what I mean. The= gx > > will align to 4 byte when passing it on stack. I think this should belo= ng to > > calling conventions. >=20 > Ah, OK. IIRC the psABI does not factor in over/under alignment but only > size and kind of (sub-)objects so eventually extra copy-in/out is required > to have the callee see arguments of the desired alignment. >=20 > HJ can probably clarify. >=20 > Note bugzilla isn't really for this kind of questions, there's a psABI > mailing list somewhere. Thanks for your help.=