[binutils-gdb] sim/rx: enable build with warnings

Andrew Burgess aburgess@sourceware.org
Mon Feb 8 11:02:25 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6bf99988c68154f435c57309769f8fc1d7c5c449

commit 6bf99988c68154f435c57309769f8fc1d7c5c449
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Mon Feb 1 11:39:39 2021 +0000

    sim/rx: enable build with warnings
    
    The rx simulator now has no build warnings.  Delete the call to
    SIM_AC_OPTION_WARNINGS in configure.ac, the default yes will be
    provided by SIM_AC_OUTPUT.
    
    sim/rx/ChangeLog:
    
            * configure: Regenerate.
            * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.

Diff:
---
 sim/rx/ChangeLog    | 5 +++++
 sim/rx/configure    | 3 +++
 sim/rx/configure.ac | 1 -
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index b3d76be02db..c92e41cd94b 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,8 @@
+2021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+	* configure: Regenerate.
+	* configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
+
 2021-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
 
 	* mem.c (mem_put_blk): Rename parameter, add cast from parameter
diff --git a/sim/rx/configure b/sim/rx/configure
index 7e2ac7b948d..1781df8a021 100755
--- a/sim/rx/configure
+++ b/sim/rx/configure
@@ -13603,6 +13603,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 \
diff --git a/sim/rx/configure.ac b/sim/rx/configure.ac
index 6c14434f4af..1bdb5abc277 100644
--- a/sim/rx/configure.ac
+++ b/sim/rx/configure.ac
@@ -22,7 +22,6 @@ AC_INIT(Makefile.in)
 sinclude(../common/acinclude.m4)
 
 SIM_AC_COMMON
-SIM_AC_OPTION_WARNINGS(no)
 
 AC_CHECK_HEADERS(getopt.h)


More information about the Gdb-cvs mailing list