From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B4989388A001; Thu, 2 Apr 2020 11:56:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4989388A001 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585828615; bh=yBAcvK4pnDg6e+sXRT8ZLjdsTgVvXAkXNnI+AZwnSQs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yehtZ9q/mztCDuqV6pbKyc8DbtumHAKZUtMXDJ2Z5vu6TrFDdIzTZX3eh6+mEq/pp WiHmhboQJw5SXgtJQ0nv2u4LEg5/O1+3neBAiDqQeLQ+HFYNWrhmeJiAJiy4xky2vc SmfidCwhLUz88gHz/BzjsnL8vWB/EfQQz+q4QyZY= From: "hjl.tools at gmail 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 11:56:55 +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: hjl.tools at gmail dot com X-Bugzilla-Status: NEW 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: bug_status everconfirmed 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 11:56:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94452 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #6 from H.J. Lu --- (In reply to ChenLiu from comment #5) > (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 spec= ific as > > > > to what target you tested? > > >=20 > > > I tested on i386 target. I think you may misunderstand what I mean. T= he gx > > > will align to 4 byte when passing it on stack. I think this should be= long 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 requi= red > > 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. >=20 > Thanks for your help. Please raise this question at https://groups.google.com/forum/#!forum/ia32-abi=