public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] sim: cgen: move cgen-types.h include to cgen-defs.h
Date: Fri, 23 Dec 2022 00:51:46 -0500	[thread overview]
Message-ID: <20221223055146.29898-1-vapier@gentoo.org> (raw)

The cgen-types.h header sets up types that are needed by cgen-defs.h,
so move the include out of sim-main.h and to that header.  It might
be needed in other specific modules, but for now let's kick it out of
sim-main.h to make some progress.  Things still build with just this.
---
 sim/bpf/sim-main.h     | 1 -
 sim/common/cgen-defs.h | 2 ++
 sim/cris/sim-main.h    | 1 -
 sim/frv/sim-main.h     | 1 -
 sim/iq2000/sim-main.h  | 1 -
 sim/lm32/sim-main.h    | 1 -
 sim/m32r/sim-main.h    | 1 -
 sim/or1k/sim-main.h    | 1 -
 8 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/sim/bpf/sim-main.h b/sim/bpf/sim-main.h
index 0de4d4125ae4..6529b6eeda3b 100644
--- a/sim/bpf/sim-main.h
+++ b/sim/bpf/sim-main.h
@@ -20,7 +20,6 @@
 #define SIM_MAIN_H
 
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "bpf-desc.h"
 #include "bpf-opc.h"
 #include "arch.h"
diff --git a/sim/common/cgen-defs.h b/sim/common/cgen-defs.h
index b9e0c06f39d1..7bf1334296d2 100644
--- a/sim/common/cgen-defs.h
+++ b/sim/common/cgen-defs.h
@@ -20,6 +20,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #ifndef CGEN_DEFS_H
 #define CGEN_DEFS_H
 
+#include "cgen-types.h"
+
 /* Compute number of longs required to hold N bits.  */
 #define HOST_LONGS_FOR_BITS(n) \
   (((n) + sizeof (long) * 8 - 1) / sizeof (long) * 8)
diff --git a/sim/cris/sim-main.h b/sim/cris/sim-main.h
index e946489cfc20..e680c37230d8 100644
--- a/sim/cris/sim-main.h
+++ b/sim/cris/sim-main.h
@@ -31,7 +31,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "cris-desc.h"
 #include "cris-opc.h"
 #include "arch.h"
diff --git a/sim/frv/sim-main.h b/sim/frv/sim-main.h
index 2ad757180021..44ef931270da 100644
--- a/sim/frv/sim-main.h
+++ b/sim/frv/sim-main.h
@@ -29,7 +29,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "frv-desc.h"
 #include <stdbool.h>
 #include "frv-opc.h"
diff --git a/sim/iq2000/sim-main.h b/sim/iq2000/sim-main.h
index ccc3fc877b9d..d920c34f98c7 100644
--- a/sim/iq2000/sim-main.h
+++ b/sim/iq2000/sim-main.h
@@ -11,7 +11,6 @@
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "iq2000-desc.h"
 #include "iq2000-opc.h"
 #include "arch.h"
diff --git a/sim/lm32/sim-main.h b/sim/lm32/sim-main.h
index 6ae757f089b5..829b39dd36f3 100644
--- a/sim/lm32/sim-main.h
+++ b/sim/lm32/sim-main.h
@@ -27,7 +27,6 @@
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "lm32-desc.h"
 #include "lm32-opc.h"
 #include "arch.h"
diff --git a/sim/m32r/sim-main.h b/sim/m32r/sim-main.h
index 6d69ecf52a00..81a6c68c01f7 100644
--- a/sim/m32r/sim-main.h
+++ b/sim/m32r/sim-main.h
@@ -10,7 +10,6 @@
 
 #include "symcat.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "m32r-desc.h"
 #include "m32r-opc.h"
 #include "arch.h"
diff --git a/sim/or1k/sim-main.h b/sim/or1k/sim-main.h
index 1b6939dfbc98..24c8ddb0e31a 100644
--- a/sim/or1k/sim-main.h
+++ b/sim/or1k/sim-main.h
@@ -25,7 +25,6 @@
 #include "or1k-desc.h"
 #include "or1k-opc.h"
 #include "sim-basics.h"
-#include "cgen-types.h"
 #include "arch.h"
 #include "sim-base.h"
 #include "sim-fpu.h"
-- 
2.39.0


                 reply	other threads:[~2022-12-23  5:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20221223055146.29898-1-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).