* [PATCH/committed] sim: v850: cleanup build warnings
@ 2021-01-31 20:20 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-01-31 20:20 UTC (permalink / raw)
To: gdb-patches
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-31 20:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-31 20:20 [PATCH/committed] sim: v850: cleanup build warnings Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).