aboutsummaryrefslogtreecommitdiff
path: root/sim/m32c/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-07 00:31:05 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-07 00:36:26 -0400
commit44056b7ce43618094e61bf856d77c798628cac83 (patch)
tree9aa2e47efceff17e1f9381e1f608786aa65af106 /sim/m32c/configure
parent0ae995e2df001ab7c45c4bc596c4b0b734910c08 (diff)
downloadfsf-binutils-gdb-44056b7ce43618094e61bf856d77c798628cac83.zip
fsf-binutils-gdb-44056b7ce43618094e61bf856d77c798628cac83.tar.gz
fsf-binutils-gdb-44056b7ce43618094e61bf856d77c798628cac83.tar.bz2
sim: m32c: clean up various warnings
A random grab bag of minor fixes to enable -Werror for this port. Check the return values of read & write calls and issue warnings when they fail. Fixup funky pointer math as the compiler doesn't like ++ on void*. Handle short reads with fread().
Diffstat (limited to 'sim/m32c/configure')
-rwxr-xr-xsim/m32c/configure28
1 files changed, 15 insertions, 13 deletions
diff --git a/sim/m32c/configure b/sim/m32c/configure
index 4d5f524..7c283c2 100755
--- a/sim/m32c/configure
+++ b/sim/m32c/configure
@@ -11850,6 +11850,18 @@ _ACEOF
+
+
+
+
+
+
+
+
+
+
+
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
@@ -11866,6 +11878,9 @@ if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
fi
WERROR_CFLAGS=""
+ if test "${ERROR_ON_WARNING}" = yes ; then
+ WERROR_CFLAGS="-Werror"
+ fi
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wpointer-sign \
@@ -11947,19 +11962,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
fi
-
-
-
-
-
-
-
-
-
-
-
-
-
hardware="cfi core pal glue "
sim_hw_cflags="-DWITH_HW=1"
sim_hw="$hardware"