From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 0D701385842A; Thu, 19 Jan 2023 00:36:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D701385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674088594; bh=0G7EB25pkgibX7/lS4eASAFMobBrY9Kk6PJZHJItkr4=; h=From:To:Subject:Date:From; b=Bf1ETwwotDSOXFNTTpFLaaDCOw7rA70VqZLmU2Qzl0ufJkZyy4DwZZ4SEKOO3kHw4 ceil7okb91nPCYpiEgvwuKTMRfytPk0IwCF1UNejQ14EZU4q7M/K+cFNoPUrCqsFyC hDUv6S57OrpKSfpgFYmxNmrhEdxb/lYA13WInTcs= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: v850: reduce extra header inclusion to igen files X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: e56038978366cfed41dcca152f70d2e6f8e1bc4e X-Git-Newrev: c743e42e2213abe73a63c847409fbf0ca3c8cd46 Message-Id: <20230119003634.0D701385842A@sourceware.org> Date: Thu, 19 Jan 2023 00:36:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc743e42e2213= abe73a63c847409fbf0ca3c8cd46 commit c743e42e2213abe73a63c847409fbf0ca3c8cd46 Author: Mike Frysinger Date: Wed Jan 18 19:11:38 2023 -0500 sim: v850: reduce extra header inclusion to igen files =20 Limit these extra header includes to only when specific igen files include us until we can move the includes to the igen fils directly. Diff: --- 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 b1753601904..eefe72cf52f 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 =20 #endif