aboutsummaryrefslogtreecommitdiff
path: root/sim/m68hc11
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-04-21 14:51:10 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-21 19:48:35 -0400
commit1f195bc327c5760d34fa571a758496900b48456c (patch)
tree8a000c68cc54838a3e959297dce971827735e08e /sim/m68hc11
parent7e7a35fbca94c5bfe45781067c75671ba508a0c8 (diff)
downloadgdb-1f195bc327c5760d34fa571a758496900b48456c.zip
gdb-1f195bc327c5760d34fa571a758496900b48456c.tar.gz
gdb-1f195bc327c5760d34fa571a758496900b48456c.tar.bz2
sim: use -Werror when probing for supported warning flags
When building with clang, we get: error: unknown warning option '-Wmissing-parameter-type' [-Werror,-Wunknown-warning-option] This is because clang only warns by default when encountering an unknown warning option, and the probe for supported warning flags is done without -Werror. All flags are therefore accepted by configure, but then it breaks when actually compiling a source file with -Werror. This is equivalent to this commit in gdb: 3e019bdc20eb81b91ab5bc774386201b874c0bac gdb: Use -Werror when checking for (un)supported warning flags We then see some other compilation errors when building with clang and -Werror, they can be dealt with later.
Diffstat (limited to 'sim/m68hc11')
-rw-r--r--sim/m68hc11/ChangeLog4
-rwxr-xr-xsim/m68hc11/configure2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog
index b344756..b5dab1e 100644
--- a/sim/m68hc11/ChangeLog
+++ b/sim/m68hc11/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-21 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * configure: Regenerate.
+
2021-04-18 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/m68hc11/configure b/sim/m68hc11/configure
index 1e465b3..0a274ca 100755
--- a/sim/m68hc11/configure
+++ b/sim/m68hc11/configure
@@ -12072,7 +12072,7 @@ $as_echo_n "checking compiler warning flags... " >&6; }
-Werr*) WERROR_CFLAGS=-Werror ;;
*) # Check that GCC accepts it
saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $w"
+ CFLAGS="$CFLAGS -Werror $w"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */