From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id A098F3858C31; Tue, 24 Jan 2023 17:33:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A098F3858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674581616; bh=hzQmpMFASYVpq11Ugnwze84iy3321QT1ZLabE07Dspg=; h=From:To:Subject:Date:From; b=tH9VFqwUSvEd0Kj1Rwnf1tKl4YZbBwQVQmIEhAq18EfH3PdCczgThhsMfiYZXonPp 4zHipURdFhukahV1oC4ddfBp4bZvzaiJouPsIkoIJfvXAsv4XAqirq88XTRhH1BS2u Dg8lQmxEg6+PxVAOlshwFClNxyhiKfnT7H1XSoNA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5328] Bugfix ensure RTentity is a dependent of RTco.cc X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/master X-Git-Oldrev: c1093923733a1072a237f112e3239b5ebd88eadd X-Git-Newrev: b061fc94d70dc82f554eeb94434cf03cd5af03f7 Message-Id: <20230124173336.A098F3858C31@sourceware.org> Date: Tue, 24 Jan 2023 17:33:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b061fc94d70dc82f554eeb94434cf03cd5af03f7 commit r13-5328-gb061fc94d70dc82f554eeb94434cf03cd5af03f7 Author: Gaius Mulley Date: Tue Jan 24 17:33:18 2023 +0000 Bugfix ensure RTentity is a dependent of RTco.cc RTco is a definition for C module and therefore there is no RTco.mod. The RTco.cc uses RTentity and the import in RTco.def ensures that cc1gm2 can build a graph of all dependencies should -fscaffold-static be used. gcc/m2/ChangeLog: * gm2-libs-iso/RTco.def: Import RTentity. Declare RTco as a definition for C module. Signed-off-by: Gaius Mulley Diff: --- gcc/m2/gm2-libs-iso/RTco.def | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/m2/gm2-libs-iso/RTco.def b/gcc/m2/gm2-libs-iso/RTco.def index 33452bac990..5285a7deb10 100644 --- a/gcc/m2/gm2-libs-iso/RTco.def +++ b/gcc/m2/gm2-libs-iso/RTco.def @@ -24,10 +24,12 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see . *) -DEFINITION MODULE RTco ; +DEFINITION MODULE FOR "C" RTco ; FROM SYSTEM IMPORT ADDRESS ; +IMPORT RTentity ; (* Imported so the initialization call graph + understands that RTco.cc depends upon RTentity. *) (* init initializes the module and allows the application to lazily invoke threads. *)