From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id BC29E3847825 for ; Tue, 29 Jun 2021 01:37:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC29E3847825 Received: from vapier.lan (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CD06D33BEC2 for ; Tue, 29 Jun 2021 01:37:57 +0000 (UTC) From: Mike Frysinger To: cgen@sourceware.org Subject: [PATCH] sim: add arch prefix to sim_machs Date: Mon, 28 Jun 2021 21:37:55 -0400 Message-Id: <20210629013755.5441-1-vapier@gentoo.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cgen@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cgen mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2021 01:38:00 -0000 We want to namespace the sim_machs structure to avoid conflicts when linking multiple architectures into a single build. --- sim.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sim.scm b/sim.scm index ae61a0939cf0..c7fe822767c3 100644 --- a/sim.scm +++ b/sim.scm @@ -1475,7 +1475,8 @@ (define (/gen-mach-data) (string-append - "const SIM_MACH * const sim_machs[] =\n{\n" + "const SIM_MACH * const " (symbol->string (current-arch-name)) + "_sim_machs[] =\n{\n" (string-map (lambda (mach) (gen-obj-sanitize mach -- 2.31.1