aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-09 14:43:02 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-11 09:18:27 -0500
commit9c70334deec0fb5262c3f2ce2ea9bcb530aee20e (patch)
tree294a938729e0054681ec2ece237aad0ca992e481 /sim
parent5c1008a41f1b97e8c7abb21eb2de0205e9a30521 (diff)
downloadgdb-9c70334deec0fb5262c3f2ce2ea9bcb530aee20e.zip
gdb-9c70334deec0fb5262c3f2ce2ea9bcb530aee20e.tar.gz
gdb-9c70334deec0fb5262c3f2ce2ea9bcb530aee20e.tar.bz2
sim: always call SIM_AC_OPTION_WARNINGS
Now that all ports have opted in to this, we can require it in the core. It guarantees that new ports have them turned on, and defaults to -Werror in the hopes that new ports keep their code clean from the start. We do this as a sep commit to make it clear that there are no changes to existing ports as they've all explicitly called it already.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/acinclude.m44
2 files changed, 7 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 8039a78..33afbfb 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
2021-01-11 Mike Frysinger <vapier@gentoo.org>
+ * acinclude.m4 (SIM_AC_OUTPUT): Require SIM_AC_OPTION_WARNINGS.
+
+2021-01-11 Mike Frysinger <vapier@gentoo.org>
+
* sim-core.c (sim_memory_map): Change %#x to PRIxTW.
2021-01-11 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4
index 45ec134..149ddc7 100644
--- a/sim/common/acinclude.m4
+++ b/sim/common/acinclude.m4
@@ -821,7 +821,9 @@ dnl one afterwards. The two pieces of the common fragment are inserted into
dnl the target's fragment at the appropriate points.
AC_DEFUN([SIM_AC_OUTPUT],
-[
+[dnl
+AC_REQUIRE([SIM_AC_OPTION_WARNINGS])dnl
+
dnl Make @cgen_breaks@ non-null only if the sim uses CGEN.
cgen_breaks=""
if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then