aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-18 01:14:39 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-18 10:25:04 -0400
commit47ce766a8b922377425cfa88189acb1d43ca58af (patch)
tree55a8e203cc2c722f0fe6410ca0fec574f3ba791e /sim/ppc/configure
parent5a767724d7e4d8dfe70a82edceaeaa6d57ff2b84 (diff)
downloadgdb-47ce766a8b922377425cfa88189acb1d43ca58af.zip
gdb-47ce766a8b922377425cfa88189acb1d43ca58af.tar.gz
gdb-47ce766a8b922377425cfa88189acb1d43ca58af.tar.bz2
sim: unify -Werror build settings
Move these options up to the common dir so we only test & export them once across all ports. It also enables -Werror usage on the common files we've been pulling out of arch subdirs.
Diffstat (limited to 'sim/ppc/configure')
-rwxr-xr-xsim/ppc/configure25
1 files changed, 0 insertions, 25 deletions
diff --git a/sim/ppc/configure b/sim/ppc/configure
index 930b24a..afd6471 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -675,7 +675,6 @@ build_os
build_vendor
build_cpu
build
-WERROR_CFLAGS
CATOBJEXT
GENCAT
INSTOBJEXT
@@ -761,7 +760,6 @@ enable_sim_reserved_bits
enable_sim_smp
enable_sim_switch
enable_sim_timebase
-enable_werror
enable_sim_warnings
enable_sim_xor_endian
with_system_zlib
@@ -1415,7 +1413,6 @@ Optional Features:
--enable-sim-smp=n Specify number of processors to configure for.
--enable-sim-switch Use a switch instead of a table for instruction call.
--enable-sim-timebase Specify whether the PPC timebase is supported.
- --enable-werror treat compile warnings as errors
--enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
--enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
--enable-plugins Enable support for plugins
@@ -3715,28 +3712,6 @@ else
fi
-# Check whether --enable-werror was given.
-if test "${enable_werror+set}" = set; then :
- enableval=$enable_werror; case "${enableval}" in
- yes | y) ERROR_ON_WARNING="yes" ;;
- no | n) ERROR_ON_WARNING="no" ;;
- *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
- esac
-fi
-
-# Enable -Werror by default when using gcc
-if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
- ERROR_ON_WARNING=yes
-fi
-WERROR_CFLAGS=""
-if test "${ERROR_ON_WARNING}" = yes ; then
- WERROR_CFLAGS="-Werror"
-fi
-case "${host}" in
- *-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;;
-esac
-
-
# Check whether --enable-sim-warnings was given.
if test "${enable_sim_warnings+set}" = set; then :
enableval=$enable_sim_warnings; case "${enableval}" in