aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2021-05-04 08:56:12 -0600
committerTom Tromey <tromey@adacore.com>2021-05-04 13:19:33 -0600
commitbe7547b07780effc5ad8a37f48ec4047053ef6ba (patch)
treef98749db322b849437806836cf6f57af83fa281f /sim/m32r
parenta0c4531a55c86a40b65cdc7af80473856d029a2e (diff)
downloadgdb-be7547b07780effc5ad8a37f48ec4047053ef6ba.zip
gdb-be7547b07780effc5ad8a37f48ec4047053ef6ba.tar.gz
gdb-be7547b07780effc5ad8a37f48ec4047053ef6ba.tar.bz2
Add missing stdlib.h includes to sim
This updates the various "mloop.in" files to emit an include of stdlib.h, to avoid warnings about 'abort' being undeclared. One such warning now remains, in mn10300.igen. I don't know offhand the best way to fix this one. 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/iq2000/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/lm32/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/m32r/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>. sim/or1k/ChangeLog 2021-05-04 Tom Tromey <tromey@adacore.com> * mloop.in: Include <stdlib.h>.
Diffstat (limited to 'sim/m32r')
-rw-r--r--sim/m32r/ChangeLog4
-rw-r--r--sim/m32r/mloop.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog
index e247deb..9737efb 100644
--- a/sim/m32r/ChangeLog
+++ b/sim/m32r/ChangeLog
@@ -1,3 +1,7 @@
+2021-05-04 Tom Tromey <tromey@adacore.com>
+
+ * mloop.in: Include <stdlib.h>.
+
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
diff --git a/sim/m32r/mloop.in b/sim/m32r/mloop.in
index 405a7e9..6b0d0de 100644
--- a/sim/m32r/mloop.in
+++ b/sim/m32r/mloop.in
@@ -42,6 +42,7 @@ case "x$1" in
xsupport)
cat <<EOF
+#include <stdlib.h>
static INLINE const IDESC *
extract16 (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn,