From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2DF46385DC1E; Wed, 15 Apr 2020 21:09:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DF46385DC1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586984988; bh=kdgtXTlbAgbgFEd0XIJwiXopfer+TtaV8S3FhcfDB2s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LMdA2F6CAPGLlGdmlT66hJmxVDm5sRVjMsT4A0Rz4XRKwqsEh5T8E1b1DV/ILC33+ rhJZrDkyjd1MTZ/IHcUHnhTss8bHMbP7MzMQ3PtCCvZPnIldQilASe2f5cHJdfWLPy MeVK2GCxmfuUmQj/+0v38RkYR71cB1GFxK8Xfvos= From: "ibuclaw at gdcproject dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/94609] FAIL: gdc.dg/runnable.d Date: Wed, 15 Apr 2020 21:09:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: d X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ibuclaw at gdcproject dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot 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: Wed, 15 Apr 2020 21:09:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94609 --- Comment #8 from Iain Buclaw --- (In reply to H.J. Lu from comment #6) > (In reply to Iain Buclaw from comment #5) > > The struct is built as a POD type. As the struct is nested, it should = be > > considered non-POD, otherwise it gets left up to aggregate_value_p to d= ecide > > how to pass it around. > >=20 > > i386 returns true from aggregate_value_p because flag_pcc_struct_return= =3D1. > >=20 > > x86_64 returns true from aggregate_value_p because > > targetm.calls.return_in_memory returns true. > >=20 > > x32 returns false from aggregate_value_p because the halved size makes = it > > small enough to pass around in registers. >=20 > Does x32 return it in a single 64-bit register? Two 64-bit registers. The size of struct Scoped is 32 bytes on x86_64, 16 bytes on x32.=