From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89D3B3858C5E; Thu, 23 Feb 2023 10:21:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89D3B3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677147696; bh=PTT3dXSSxIY3k8ZXs7ZshWx3xZoBpggF88jm2qCuyp4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yXm/A3ZzDXDoOwzl038jSjdN9682f3B2Ft1a4ecDjKin+3Xeq1NI57S6LefFwOULi kZKm140rGCRMpsIWsPs7bkVI/BL+3/3r8U7t3f937Qla2WklHlzCNNF89yxSc+vmNp WHpjdoRRJhQV67RUWy/JSR3b7YwRBaPqYjCmCMxY= 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: Thu, 23 Feb 2023 10:21:33 +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 #8 from Iain Sandoe --- (In reply to ibuclaw from comment #6) > There's r13-1113 with introduced the use of visible(). + /* Visibility attributes are used by the debugger. */ + set_visibility_for_decl (decl->csym, decl); + DECL_INSTANTIATED (decl->csym) =3D (decl->isInstantiated () !=3D NUL= L); set_linkage_for_decl (decl->csym); } @@ -2447,3 +2433,37 @@ set_linkage_for_decl (tree decl) if (DECL_ARTIFICIAL (decl)) return d_weak_linkage (decl); } + +/* NODE is a FUNCTION_DECL, VAR_DECL or RECORD_TYPE for the declaration SY= M. + Set flags to reflect visibility that NODE will get in the object file. = */ + +void +set_visibility_for_decl (tree node, Dsymbol *sym) hmmm.. should the call be "set_visibility_for_decl (decl, decl->csym); ? or should the signature of set_visibility_for_decl() be set_visibility_for_decl (Dsymbol *sym, tree node)? or maybe I misread the comment....=