summaryrefslogtreecommitdiff
path: root/sim/moxie
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-09 01:16:11 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-09 09:19:37 -0500
commitbf470982f998b2b18545cc335f469a20e457acdd (patch)
tree9d11918cdd5c02cdcff059b29005e05c6b616dee /sim/moxie
parent0a94990bf64a82bdf73960fec1b47fef7c6a6ced (diff)
downloadbinutils-gdb-bf470982f998b2b18545cc335f469a20e457acdd.tar.gz
sim: enable -Werror by default for some arches
We've had this off for a long time because the sim code was way too full of warnings for it to be feasible. However, I've cleaned things up significantly from when this was first merged, and we can start to turn this around. Change the macro to enable -Werror by default, and allow ports to opt out. New ports will get it automatically (and we can push back on them if they try to turn it off). Also turn it off for the few ports that still hit warnings for me. All the rest will get the new default, and we'll wait for feedback if/when new issues come up.
Diffstat (limited to 'sim/moxie')
-rw-r--r--sim/moxie/ChangeLog5
-rwxr-xr-xsim/moxie/configure5
-rw-r--r--sim/moxie/configure.ac2
3 files changed, 6 insertions, 6 deletions
diff --git a/sim/moxie/ChangeLog b/sim/moxie/ChangeLog
index 8e1b1abe008..c084f39c14e 100644
--- a/sim/moxie/ChangeLog
+++ b/sim/moxie/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-09 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac (SIM_AC_OPTION_WARNINGS): Pass "no".
+ * configure: Regenerate.
+
2021-01-08 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/moxie/configure b/sim/moxie/configure
index 598d6547c6f..7def6671247 100755
--- a/sim/moxie/configure
+++ b/sim/moxie/configure
@@ -13778,11 +13778,6 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
fi
WERROR_CFLAGS=""
-if test "${ERROR_ON_WARNING}" = yes ; then
-# NOTE: Disabled in the sim dir due to most sims generating warnings.
-# WERROR_CFLAGS="-Werror"
- true
-fi
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wpointer-sign \
diff --git a/sim/moxie/configure.ac b/sim/moxie/configure.ac
index 3f2e55389e3..a02e13a3dcb 100644
--- a/sim/moxie/configure.ac
+++ b/sim/moxie/configure.ac
@@ -8,6 +8,6 @@ AC_CHECK_TOOL(DTC, dtc)
SIM_AC_OPTION_ENDIAN(BIG)
SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT)
-SIM_AC_OPTION_WARNINGS
+SIM_AC_OPTION_WARNINGS(no)
SIM_AC_OUTPUT