From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B5233858284; Fri, 24 Feb 2023 02:03:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B5233858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677204201; bh=GjxU995NbMdJxzWEnNw+WG4QhhB3vr2el+Pac3T3txA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qxdl4cdJMEqWDRJDX644QjtPZVeXqGu0L7+9dv3Oowwpr60oTCAX+lrtr2SbVHH+E 7L6yKbmfYhcWxsyKZ93l7Fv+GB23HXhtVfJsNVRkmEx0Cl4qINPGWCr1/M4Zgmaok8 FxC/AQ11EU2Qd6gvpCTHTBxoIzr/MOSZgAtuoLpQ= From: "ibuclaw 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 02:03:19 +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: ibuclaw 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 #21 from ibuclaw at gcc dot gnu.org --- There is something about the Darwin ABI I'm just not getting from looking at the front-end alone though: C++ Darwin 32-bit calling a method that returns an 8 byte struct: ``` __Z4testP3Bar: subl $24, %esp movl 28(%esp), %eax movl (%eax), %edx pushl %eax // <-- call *(%edx) ``` C++ Linux 32-bit calling a method that returns an 8 byte struct: ``` _Z4testP3Bar: subl $44, %esp movl %gs:20, %edx movl %edx, 28(%esp) xorl %edx, %edx movl 48(%esp), %eax leal 8(%esp), %ecx subl $8, %esp movl (%eax), %edx pushl %eax // <-- pushl %ecx // <-- call *(%edx) ```=