]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/common/sim-config.h
sim: add checks to core headers to prevent incorrect common building
authorMike Frysinger <vapier@gentoo.org>
Sun, 28 Nov 2021 19:25:36 +0000 (14:25 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 28 Nov 2021 19:28:35 +0000 (14:28 -0500)
commite9307449c314ac40a660e5774dd5175571cb2382
tree4aa831cd894eedcfc058b890a4f4859ae200bb43
parent6688220490d7d315b6489fb0de12062f7ecd3e33
sim: add checks to core headers to prevent incorrect common building

Some of the core sim headers rely on the SIM_AC_OPTION_BITSIZE macro
which can change the size of core types.  Since these haven't been
unified across ports, add checks to make sure they aren't accidentally
included when building for all ports.  This caught the sim-load file
using poisoned headers that it didn't actually need.
sim/common/sim-config.h
sim/common/sim-load.c
sim/common/sim-types.h