[2/7] sim: unify assert build settings

Message ID 20210607053355.9965-2-vapier@gentoo.org
State New
Headers show
Series
  • [1/7] sim: unify platform function & header tests
Related show

Commit Message

Lancelot SIX via Gdb-patches June 7, 2021, 5:33 a.m.
Move the --sim-enable-assert option up to the common dir so we only
test & export it once across all ports.
---
 sim/Makefile.in                |  1 +
 sim/aarch64/aclocal.m4         |  1 -
 sim/aarch64/config.in          |  3 ---
 sim/aarch64/configure          | 26 ++------------------------
 sim/aclocal.m4                 |  1 +
 sim/arm/aclocal.m4             |  1 -
 sim/arm/config.in              |  3 ---
 sim/arm/configure              | 26 ++------------------------
 sim/avr/aclocal.m4             |  1 -
 sim/avr/config.in              |  3 ---
 sim/avr/configure              | 26 ++------------------------
 sim/bfin/aclocal.m4            |  1 -
 sim/bfin/config.in             |  3 ---
 sim/bfin/configure             | 26 ++------------------------
 sim/bpf/aclocal.m4             |  1 -
 sim/bpf/config.in              |  3 ---
 sim/bpf/configure              | 26 ++------------------------
 sim/config.h.in                |  3 +++
 sim/configure                  | 23 +++++++++++++++++++++++
 sim/configure.ac               |  2 ++
 sim/cr16/aclocal.m4            |  1 -
 sim/cr16/config.in             |  3 ---
 sim/cr16/configure             | 26 ++------------------------
 sim/cris/aclocal.m4            |  1 -
 sim/cris/config.in             |  3 ---
 sim/cris/configure             | 26 ++------------------------
 sim/d10v/aclocal.m4            |  1 -
 sim/d10v/config.in             |  3 ---
 sim/d10v/configure             | 26 ++------------------------
 sim/erc32/aclocal.m4           |  1 -
 sim/erc32/config.in            |  3 ---
 sim/erc32/configure            | 26 ++------------------------
 sim/example-synacor/aclocal.m4 |  1 -
 sim/example-synacor/config.in  |  3 ---
 sim/example-synacor/configure  | 26 ++------------------------
 sim/frv/aclocal.m4             |  1 -
 sim/frv/config.in              |  3 ---
 sim/frv/configure              | 26 ++------------------------
 sim/ft32/aclocal.m4            |  1 -
 sim/ft32/config.in             |  3 ---
 sim/ft32/configure             | 26 ++------------------------
 sim/h8300/aclocal.m4           |  1 -
 sim/h8300/config.in            |  3 ---
 sim/h8300/configure            | 26 ++------------------------
 sim/iq2000/aclocal.m4          |  1 -
 sim/iq2000/config.in           |  3 ---
 sim/iq2000/configure           | 26 ++------------------------
 sim/lm32/aclocal.m4            |  1 -
 sim/lm32/config.in             |  3 ---
 sim/lm32/configure             | 26 ++------------------------
 sim/m32c/aclocal.m4            |  1 -
 sim/m32c/config.in             |  3 ---
 sim/m32c/configure             | 26 ++------------------------
 sim/m32r/aclocal.m4            |  1 -
 sim/m32r/config.in             |  3 ---
 sim/m32r/configure             | 26 ++------------------------
 sim/m4/sim_ac_common.m4        |  1 -
 sim/m68hc11/aclocal.m4         |  1 -
 sim/m68hc11/config.in          |  3 ---
 sim/m68hc11/configure          | 26 ++------------------------
 sim/mcore/aclocal.m4           |  1 -
 sim/mcore/config.in            |  3 ---
 sim/mcore/configure            | 26 ++------------------------
 sim/microblaze/aclocal.m4      |  1 -
 sim/microblaze/config.in       |  3 ---
 sim/microblaze/configure       | 26 ++------------------------
 sim/mips/aclocal.m4            |  1 -
 sim/mips/config.in             |  3 ---
 sim/mips/configure             | 26 ++------------------------
 sim/mn10300/aclocal.m4         |  1 -
 sim/mn10300/config.in          |  3 ---
 sim/mn10300/configure          | 26 ++------------------------
 sim/moxie/aclocal.m4           |  1 -
 sim/moxie/config.in            |  3 ---
 sim/moxie/configure            | 26 ++------------------------
 sim/msp430/aclocal.m4          |  1 -
 sim/msp430/config.in           |  3 ---
 sim/msp430/configure           | 26 ++------------------------
 sim/or1k/aclocal.m4            |  1 -
 sim/or1k/config.in             |  3 ---
 sim/or1k/configure             | 26 ++------------------------
 sim/pru/aclocal.m4             |  1 -
 sim/pru/config.in              |  3 ---
 sim/pru/configure              | 26 ++------------------------
 sim/riscv/aclocal.m4           |  1 -
 sim/riscv/config.in            |  3 ---
 sim/riscv/configure            | 26 ++------------------------
 sim/rl78/aclocal.m4            |  1 -
 sim/rl78/config.in             |  3 ---
 sim/rl78/configure             | 26 ++------------------------
 sim/rx/aclocal.m4              |  1 -
 sim/rx/config.in               |  3 ---
 sim/rx/configure               | 26 ++------------------------
 sim/sh/aclocal.m4              |  1 -
 sim/sh/config.in               |  3 ---
 sim/sh/configure               | 26 ++------------------------
 sim/v850/aclocal.m4            |  1 -
 sim/v850/config.in             |  3 ---
 sim/v850/configure             | 26 ++------------------------
 99 files changed, 92 insertions(+), 869 deletions(-)

-- 
2.31.1

Patch

diff --git a/sim/configure.ac b/sim/configure.ac
index 0ff49b0b678e..700e04d6a602 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -99,5 +99,7 @@  if test "${enable_sim}" != no; then
 fi
 AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
 
+SIM_AC_OPTION_ASSERT
+
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4
index 8ff2e2c7c5a5..1df56e4baed2 100644
--- a/sim/m4/sim_ac_common.m4
+++ b/sim/m4/sim_ac_common.m4
@@ -163,7 +163,6 @@  AC_DEFINE_UNQUOTED([WITH_PROFILE], [$sim_profile], [Sim profile settings])
 AC_MSG_RESULT($sim_profile)
 
 
-SIM_AC_OPTION_ASSERT
 SIM_AC_OPTION_ENVIRONMENT
 SIM_AC_OPTION_INLINE