]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/ppc/configure
sim: unify -Werror build settings
[thirdparty/binutils-gdb.git] / sim / ppc / configure
index 930b24a1b5b831b3e739966ecf058178239ad878..afd6471eb593f8051c31617f7975e21bc192dd6d 100755 (executable)
@@ -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