From: Mike Frysinger <vapier@gentoo.org>
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 [thread overview]
Message-ID: <20230119003429.13987-2-vapier@gentoo.org> (raw)
In-Reply-To: <20230119003429.13987-1-vapier@gentoo.org>
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
prev parent reply other threads:[~2023-01-19 0:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 0:34 [PATCH 1/2] sim: v850: drop redundant define Mike Frysinger
2023-01-19 0:34 ` Mike Frysinger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230119003429.13987-2-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).