[PATCH/committed] sim: v850: cleanup build warnings
Mike Frysinger
vapier@gentoo.org
Sun Jan 31 20:20:51 GMT 2021
This port only had one minor warning left in it, so fix it and then
enable -Werror behavior by deleting the macro call. We'll use the
common default now (which is -Werror).
---
sim/v850/ChangeLog | 6 ++
sim/v850/configure | 223 ++++++++++++++++++++++--------------------
sim/v850/configure.ac | 1 -
sim/v850/simops.c | 1 +
4 files changed, 124 insertions(+), 107 deletions(-)
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog
index b7b2cfd5670d..6be68b3c2624 100644
--- a/sim/v850/ChangeLog
+++ b/sim/v850/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-31 Mike Frysinger <vapier@gentoo.org>
+
+ * simops.c: Include stdlib.h.
+ * configure.ac (SIM_AC_OPTION_WARNINGS): Delete call.
+ * configure: Regenerate.
+
2021-01-31 Mike Frysinger <vapier@gentoo.org>
* simops.c (OP_10007E0): Change reterr to RETERR.
diff --git a/sim/v850/configure.ac b/sim/v850/configure.ac
index 31bca400dc23..25350d9f7858 100644
--- a/sim/v850/configure.ac
+++ b/sim/v850/configure.ac
@@ -6,7 +6,6 @@ SIM_AC_COMMON
SIM_AC_OPTION_ENDIAN(LITTLE)
SIM_AC_OPTION_ALIGNMENT(,NONSTRICT_ALIGNMENT)
-SIM_AC_OPTION_WARNINGS(no)
SIM_AC_OPTION_RESERVED_BITS
SIM_AC_OPTION_BITSIZE(32,31)
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 421afeef6e40..bd23f92aba4d 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -11,6 +11,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include <stdlib.h>
#include <string.h>
#include "targ-vals.h"
--
2.30.0
More information about the Gdb-patches
mailing list