From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 476FF38582B0; Fri, 24 Feb 2023 08:46:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 476FF38582B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677228405; bh=ydtBzKdOkr7xPLCfh2fX2W2atHyqjhKsRl86i+5C2Zk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cZDRpGUsqIla5iKJ76FS180Bj3Zc4alh0rN7zowciGtJrlfLwsWXuzZ2LoxeDNNIu YNWVGrVbCp+0bMGevBniEnyqER74reCmmMHQNfnU6+q0lgZUp90UWK8FfuQnk5TQYL 1+Nj69D6qRdnwAJ2CQMXajcQG6LizId4aZosW4lA= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug d/106977] [13 regression] d21 dies with SIGBUS on 32-bit Darwin Date: Fri, 24 Feb 2023 08:46:40 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: ibuclaw at gdcproject dot org X-Bugzilla-Target-Milestone: 13.0 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=3D106977 --- Comment #25 from Iain Sandoe --- (In reply to ibuclaw from comment #24) > (In reply to Iain Sandoe from comment #23) > > So the ABIs differ in this (as noted on IRC, the Darwin 32b ABIs are no= t the > > same as Linux). > I'm still yet to work out why D on 32-bit Darwin behaves the same as 32-b= it > Linux though. I would have assumed the decision to generate an sret would > occur long after the front-end has freed itself from the compilation proc= ess. there should be some target hook to query whether a struct returns in regs. > Regardless, the ABI issue can be raised in a separate PR. Because of it > though, that means for this bootstrap PR we just have to avoid calling any > extern(C++) method implemented in D that returns a struct by value. Note that this would affect any interface to libc or external C++ that retu= rns a small struct. AFAIR, X86 Darwin is not the only platform that returns sm= all structs in regs.=