From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CB03E3858D1E; Sat, 31 Dec 2022 12:54:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB03E3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672491263; bh=7UhVW76/ZYF6rGnbh96/3oqnOC1sa9ZgEs/L3RivZPw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dp+CtQwkaYd5f0tuvt41R1lbWp3gQHzGFfZC3jkJnNg++pwC8XFuTV3ZNPSJEe8zZ KAouOFkiV/lYQXpNaGFty8ZlGw48whmMHPMlcVknqUTIvNTpAEPS9mhaxhsdOw5vtc thyVJw8sBDjDlgWiD5dL22vfxQaLMVZWJ1o/OVZ8= From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108183] wrong code generated in the modula2 scaffold mechanism Date: Sat, 31 Dec 2022 12:54:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: assemble-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D108183 --- Comment #16 from Iain Sandoe --- Created attachment 54170 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54170&action=3Dedit Patch registration constructors This modifies the registration CTORs that are currently defined in C++ to be defined as 'extern "C"' and registered to be run at program load time. This is as described in comments #14 and 15.=