aboutsummaryrefslogtreecommitdiff
path: root/sim/iq2000
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/iq2000
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/iq2000')
-rw-r--r--sim/iq2000/ChangeLog4
-rw-r--r--sim/iq2000/mloop.in1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/iq2000/ChangeLog b/sim/iq2000/ChangeLog
index 550be28..5dbfb7a 100644
--- a/sim/iq2000/ChangeLog
+++ b/sim/iq2000/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/iq2000/mloop.in b/sim/iq2000/mloop.in
index b973fa1..7d3a9b5 100644
--- a/sim/iq2000/mloop.in
+++ b/sim/iq2000/mloop.in
@@ -40,6 +40,7 @@ case "x$1" in
xsupport)
cat <<EOF
+#include <stdlib.h>
static INLINE const IDESC *
extract (SIM_CPU *current_cpu, PCADDR pc, CGEN_INSN_INT insn, ARGBUF *abuf,