From 2c29882f833f634d776b19fa15a1f1bad70bf447 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 4 Dec 2021 21:04:41 -0500 Subject: sim: include stdarg.h when used Avoid implicit include deps with this to help untangle sim headers so we can get rid of arch-specific sim-main.h. --- sim/common/cgen-trace.c | 1 + sim/common/hw-device.c | 1 + sim/common/hw-device.h | 1 + sim/common/hw-events.c | 1 + sim/common/hw-events.h | 2 ++ sim/common/hw-tree.c | 1 + sim/common/hw-tree.h | 1 + sim/common/sim-abort.c | 1 + sim/common/sim-engine.c | 1 + sim/common/sim-engine.h | 1 + sim/common/sim-events.c | 1 + sim/common/sim-events.h | 1 + sim/common/sim-hw.c | 1 + sim/common/sim-hw.h | 1 + sim/common/sim-io.c | 1 + sim/common/sim-io.h | 1 + sim/common/sim-profile.c | 1 + sim/common/sim-trace.c | 1 + sim/common/sim-trace.h | 2 ++ sim/common/sim-utils.c | 1 + 20 files changed, 22 insertions(+) (limited to 'sim') diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index f372c47..f8f8727 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -21,6 +21,7 @@ along with this program. If not, see . */ #include "defs.h" #include +#include #include #include "bfd.h" diff --git a/sim/common/hw-device.c b/sim/common/hw-device.c index b30eede..28450fa 100644 --- a/sim/common/hw-device.c +++ b/sim/common/hw-device.c @@ -22,6 +22,7 @@ /* This must come before any other includes. */ #include "defs.h" +#include #include #include diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h index ffd627a..a7e598b 100644 --- a/sim/common/hw-device.h +++ b/sim/common/hw-device.h @@ -23,6 +23,7 @@ #ifndef HW_DEVICE_H #define HW_DEVICE_H +#include /* Introduction: diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c index 301f868..3337416 100644 --- a/sim/common/hw-events.c +++ b/sim/common/hw-events.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ /* This must come before any other includes. */ #include "defs.h" +#include #include #include "hw-main.h" diff --git a/sim/common/hw-events.h b/sim/common/hw-events.h index 51ca5bd..7d75000 100644 --- a/sim/common/hw-events.h +++ b/sim/common/hw-events.h @@ -20,6 +20,8 @@ along with this program. If not, see . */ #ifndef HW_EVENTS_H #define HW_EVENTS_H +#include + /* Event manager customized for hardware models. This interface is discussed further in sim-events.h. */ diff --git a/sim/common/hw-tree.c b/sim/common/hw-tree.c index 2e441ce..c5fa1bc 100644 --- a/sim/common/hw-tree.c +++ b/sim/common/hw-tree.c @@ -23,6 +23,7 @@ #include "defs.h" #include +#include #include #include diff --git a/sim/common/hw-tree.h b/sim/common/hw-tree.h index 85c91ad..2f717ec 100644 --- a/sim/common/hw-tree.h +++ b/sim/common/hw-tree.h @@ -23,6 +23,7 @@ #ifndef HW_TREE #define HW_TREE +#include struct hw *hw_tree_create (SIM_DESC sd, diff --git a/sim/common/sim-abort.c b/sim/common/sim-abort.c index 06df127..d30b9a4 100644 --- a/sim/common/sim-abort.c +++ b/sim/common/sim-abort.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ /* This must come before any other includes. */ #include "defs.h" +#include #include #include diff --git a/sim/common/sim-engine.c b/sim/common/sim-engine.c index 0e06b55..5eeef51 100644 --- a/sim/common/sim-engine.c +++ b/sim/common/sim-engine.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ /* This must come before any other includes. */ #include "defs.h" +#include #include #include diff --git a/sim/common/sim-engine.h b/sim/common/sim-engine.h index 1feb8a6..159d96b 100644 --- a/sim/common/sim-engine.h +++ b/sim/common/sim-engine.h @@ -20,6 +20,7 @@ along with this program. If not, see . */ #ifndef SIM_ENGINE_H #define SIM_ENGINE_H +#include typedef struct _sim_engine sim_engine; struct _sim_engine diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index a5ec32d..50c8cff 100644 --- a/sim/common/sim-events.c +++ b/sim/common/sim-events.c @@ -27,6 +27,7 @@ #include "defs.h" #include /* For SIGPROCMASK et al. */ +#include #include #include diff --git a/sim/common/sim-events.h b/sim/common/sim-events.h index 3f1501e..3c30d64 100644 --- a/sim/common/sim-events.h +++ b/sim/common/sim-events.h @@ -23,6 +23,7 @@ #ifndef SIM_EVENTS_H #define SIM_EVENTS_H +#include /* Notes: diff --git a/sim/common/sim-hw.c b/sim/common/sim-hw.c index 1b08643..0c2309c 100644 --- a/sim/common/sim-hw.c +++ b/sim/common/sim-hw.c @@ -22,6 +22,7 @@ along with this program. If not, see . */ #include #include +#include #include #include diff --git a/sim/common/sim-hw.h b/sim/common/sim-hw.h index 82c404a..71dc837 100644 --- a/sim/common/sim-hw.h +++ b/sim/common/sim-hw.h @@ -20,6 +20,7 @@ along with this program. If not, see . */ #ifndef SIM_HW_H #define SIM_HW_H +#include /* Parse a hardware definition */ diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c index 5a47f65..a278d6e 100644 --- a/sim/common/sim-io.c +++ b/sim/common/sim-io.c @@ -26,6 +26,7 @@ #if HAVE_FCNTL_H #include #endif +#include #include #if HAVE_UNISTD_H #include diff --git a/sim/common/sim-io.h b/sim/common/sim-io.h index f9fd197..c88adcd 100644 --- a/sim/common/sim-io.h +++ b/sim/common/sim-io.h @@ -23,6 +23,7 @@ #ifndef SIM_IO_H #define SIM_IO_H +#include #include #include diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index adde403..393a0b7 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -21,6 +21,7 @@ along with this program. If not, see . */ #include "defs.h" #include +#include #include #include diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c index f4712aa..fbfa27f 100644 --- a/sim/common/sim-trace.c +++ b/sim/common/sim-trace.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ /* This must come before any other includes. */ #include "defs.h" +#include #include #include diff --git a/sim/common/sim-trace.h b/sim/common/sim-trace.h index c73dc6d..f17bbc6 100644 --- a/sim/common/sim-trace.h +++ b/sim/common/sim-trace.h @@ -22,6 +22,8 @@ along with this program. If not, see . */ #ifndef SIM_TRACE_H #define SIM_TRACE_H +#include + #include "dis-asm.h" /* Standard traceable entities. */ diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index e30627b..2e4edb2 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -20,6 +20,7 @@ along with this program. If not, see . */ /* This must come before any other includes. */ #include "defs.h" +#include #include #include #include -- cgit v1.1