From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C7593858C50; Sun, 1 Jan 2023 09:29:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C7593858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672565387; bh=Kf7pdY2UqUItMOYPih0ZU46ljQ7b6tZS4DE6UVl/F3k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mKTz+5ceTyXdlJHCJ7ft8JaRUg7XcSaFm67S9nsMtVQCXV1B2cc87xTS2FQ139GGr YFbYvJAmf9S2I9mmNXxh+hd1AJL9meqfKx6McyCMI+nTymVz/FMdZc/A0hprmNYnQd /+SiMZPThYOAkJ45uMEcfUgPypMbep124Y5G4zi0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108183] wrong code generated in the modula2 scaffold mechanism Date: Sun, 01 Jan 2023 09:29:36 +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: cvs-commit 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: 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 #18 from CVS Commits --- The master branch has been updated by Iain D Sandoe : https://gcc.gnu.org/g:d423e8dc59045d8f281dcb1a02559cb6f91456bf commit r13-4943-gd423e8dc59045d8f281dcb1a02559cb6f91456bf Author: Iain Sandoe Date: Wed Dec 21 09:05:32 2022 +0000 modula2: Ensure that module registration constructors are 'extern' [PR108183]. The symbols for module registration constructors need to be external or we get wrong code generated for targets that allow direct access to local symbol definitions. Signed-off-by: Iain Sandoe PR modula2/108183 gcc/m2/ChangeLog: * gm2-compiler/M2GCCDeclare.mod: Module registration constructo= rs are externs to the builder of m2_link. Co-Authored-By: Gaius Mulley =