From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id D35173858416 for ; Thu, 19 Jan 2023 00:34:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D35173858416 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 46C95340B9E; Thu, 19 Jan 2023 00:34:33 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH 2/2] sim: v850: reduce extra header inclusion to igen files Date: Wed, 18 Jan 2023 19:34:29 -0500 Message-Id: <20230119003429.13987-2-vapier@gentoo.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119003429.13987-1-vapier@gentoo.org> References: <20230119003429.13987-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Limit these extra header includes to only when specific igen files include us until we can move the includes to the igen fils directly. --- sim/v850/sim-main.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim/v850/sim-main.h b/sim/v850/sim-main.h index b17536019044..eefe72cf52f4 100644 --- a/sim/v850/sim-main.h +++ b/sim/v850/sim-main.h @@ -8,7 +8,11 @@ * TODO: Move these includes to the igen files that need them. * This requires extending the igen syntax to support header includes. */ +#if defined(SEMANTICS_C) || defined(SUPPORT_C) #include "sim-signal.h" +#endif +#if defined(ENGINE_C) || defined(IDECODE_C) || defined(SEMANTICS_C) #include "v850-sim.h" +#endif #endif -- 2.39.0