diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-01 18:05:23 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-16 22:38:41 -0400 |
commit | 6df01ab8ab8509b04f86d7da069ec2d25eb31bf9 (patch) | |
tree | 21a00924bc74b7d5ec239a133d223f9d52f1dd67 /sim/m68hc11 | |
parent | 681eb80f1217f66c83dec4a3db83577a2a09f74a (diff) | |
download | fsf-binutils-gdb-6df01ab8ab8509b04f86d7da069ec2d25eb31bf9.zip fsf-binutils-gdb-6df01ab8ab8509b04f86d7da069ec2d25eb31bf9.tar.gz fsf-binutils-gdb-6df01ab8ab8509b04f86d7da069ec2d25eb31bf9.tar.bz2 |
sim: switch config.h usage to defs.h
The defs.h header will take care of including the various config.h
headers. For now, it's just config.h, but we'll add more when we
integrate gnulib in.
This header should be used instead of config.h, and should be the
first include in every .c file. We won't rely on the old behavior
where we expected files to include the port's sim-main.h which then
includes the common sim-basics.h which then includes config.h. We
have a ton of code that includes things before sim-main.h, and it
sometimes needs to be that way. Creating a dedicated header avoids
the ordering mess and implicit inclusion that shows up otherwise.
Diffstat (limited to 'sim/m68hc11')
-rw-r--r-- | sim/m68hc11/ChangeLog | 6 | ||||
-rw-r--r-- | sim/m68hc11/dv-m68hc11.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/dv-m68hc11eepr.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/dv-m68hc11sio.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/dv-m68hc11spi.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/dv-m68hc11tim.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/dv-nvram.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/emulos.c | 3 | ||||
-rw-r--r-- | sim/m68hc11/gencode.c | 3 | ||||
-rw-r--r-- | sim/m68hc11/interp.c | 3 | ||||
-rw-r--r-- | sim/m68hc11/interrupts.c | 3 | ||||
-rw-r--r-- | sim/m68hc11/m68hc11_sim.c | 3 |
12 files changed, 33 insertions, 0 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index 410660c..a070cdd 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,5 +1,11 @@ 2021-05-16 Mike Frysinger <vapier@gentoo.org> + * dv-m68hc11.c, dv-m68hc11eepr.c, dv-m68hc11sio.c, dv-m68hc11spi.c, + dv-m68hc11tim.c, dv-nvram.c, emulos.c, gencode.c, interp.c, + interrupts.c, m68hc11_sim.c: Include defs.h. + +2021-05-16 Mike Frysinger <vapier@gentoo.org> + * config.in, configure: Regenerate. 2021-05-14 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/m68hc11/dv-m68hc11.c b/sim/m68hc11/dv-m68hc11.c index f481588..5b2d1ba 100644 --- a/sim/m68hc11/dv-m68hc11.c +++ b/sim/m68hc11/dv-m68hc11.c @@ -18,6 +18,8 @@ */ +/* This must come before any other includes. */ +#include "defs.h" #include "sim-main.h" #include "sim-hw.h" diff --git a/sim/m68hc11/dv-m68hc11eepr.c b/sim/m68hc11/dv-m68hc11eepr.c index 88bd121..1e4cb5e 100644 --- a/sim/m68hc11/dv-m68hc11eepr.c +++ b/sim/m68hc11/dv-m68hc11eepr.c @@ -18,6 +18,8 @@ */ +/* This must come before any other includes. */ +#include "defs.h" #include "sim-main.h" #include "hw-main.h" diff --git a/sim/m68hc11/dv-m68hc11sio.c b/sim/m68hc11/dv-m68hc11sio.c index b6eacb4..cf51d17 100644 --- a/sim/m68hc11/dv-m68hc11sio.c +++ b/sim/m68hc11/dv-m68hc11sio.c @@ -20,6 +20,8 @@ */ +/* This must come before any other includes. */ +#include "defs.h" #include "sim-main.h" #include "hw-main.h" diff --git a/sim/m68hc11/dv-m68hc11spi.c b/sim/m68hc11/dv-m68hc11spi.c index 1e9d56c..6fe759d 100644 --- a/sim/m68hc11/dv-m68hc11spi.c +++ b/sim/m68hc11/dv-m68hc11spi.c @@ -20,6 +20,8 @@ */ +/* This must come before any other includes. */ +#include "defs.h" #include "sim-main.h" #include "hw-main.h" diff --git a/sim/m68hc11/dv-m68hc11tim.c b/sim/m68hc11/dv-m68hc11tim.c index d7bcac3..2c2e523 100644 --- a/sim/m68hc11/dv-m68hc11tim.c +++ b/sim/m68hc11/dv-m68hc11tim.c @@ -20,6 +20,8 @@ */ +/* This must come before any other includes. */ +#include "defs.h" #include "sim-main.h" #include "hw-main.h" diff --git a/sim/m68hc11/dv-nvram.c b/sim/m68hc11/dv-nvram.c index 586ee2f..88fab2f 100644 --- a/sim/m68hc11/dv-nvram.c +++ b/sim/m68hc11/dv-nvram.c @@ -18,6 +18,8 @@ */ +/* This must come before any other includes. */ +#include "defs.h" #include "sim-main.h" #include "hw-main.h" diff --git a/sim/m68hc11/emulos.c b/sim/m68hc11/emulos.c index 247e668..d7436f7 100644 --- a/sim/m68hc11/emulos.c +++ b/sim/m68hc11/emulos.c @@ -17,6 +17,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" + #include "sim-main.h" #ifdef HAVE_UNISTD_H #include <unistd.h> diff --git a/sim/m68hc11/gencode.c b/sim/m68hc11/gencode.c index 2a2210d..4681760 100644 --- a/sim/m68hc11/gencode.c +++ b/sim/m68hc11/gencode.c @@ -17,6 +17,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c index 07e4a88..d4b2531 100644 --- a/sim/m68hc11/interp.c +++ b/sim/m68hc11/interp.c @@ -17,6 +17,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" + #include "sim-main.h" #include "sim-assert.h" #include "sim-hw.h" diff --git a/sim/m68hc11/interrupts.c b/sim/m68hc11/interrupts.c index 03c78ac..1adce50 100644 --- a/sim/m68hc11/interrupts.c +++ b/sim/m68hc11/interrupts.c @@ -17,6 +17,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" + #include "sim-main.h" #include "sim-options.h" diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c index 0d78601..3c619c1 100644 --- a/sim/m68hc11/m68hc11_sim.c +++ b/sim/m68hc11/m68hc11_sim.c @@ -17,6 +17,9 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" + #include "sim-main.h" #include "sim-assert.h" #include "sim-module.h" |