]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add missing stdlib.h includes to sim
authorTom Tromey <tromey@adacore.com>
Tue, 4 May 2021 14:56:12 +0000 (08:56 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 4 May 2021 19:19:33 +0000 (13:19 -0600)
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>.

sim/cris/ChangeLog
sim/cris/mloop.in
sim/iq2000/ChangeLog
sim/iq2000/mloop.in
sim/lm32/ChangeLog
sim/lm32/mloop.in
sim/m32r/ChangeLog
sim/m32r/mloop.in
sim/or1k/ChangeLog
sim/or1k/mloop.in

index 4cad5c8eb452bef91551dc051f1fc13708112f6b..81ae5e6f267d8615f91d57e4735adebc264a20fc 100644 (file)
@@ -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.
index 32f5fef95f3665f964651bc0d13461b087914d7b..645d821160695a303e9201bb67d4675a0050f9b2 100644 (file)
@@ -42,6 +42,8 @@ case "x$1" in
 xsupport)
 
 cat <<EOF
+#include <stdlib.h>
+
 /* It seems we don't have a templated header file corresponding to
    cris-tmpl.c, so we have to get out declarations the hackish way.  */
 extern void @cpu@_specific_init (SIM_CPU *current_cpu);
index 550be28f6549ad6731245b2ffdf9ba45cc8f503b..5dbfb7a69be640da59364449d9106fbb76b172a9 100644 (file)
@@ -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.
index b973fa106abd45650275c6b012438548a948e0f3..7d3a9b5e9a1aa283e696245dc391b7d7d7cea0db 100644 (file)
@@ -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,
index eac37deb417243709e629443e397af38c0649b5c..f169b1b24052eb04ff5a7889cb4122fdeff40f2c 100644 (file)
@@ -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.
index a8db7f517689a5f879eb95286f9ddd1c1b4e84d2..574f00a51193c2035fa376c818aefcdfcf077d15 100644 (file)
@@ -32,6 +32,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,
index e247deb034c78a2db117d23dcd6e99433e53cb05..9737efb2fb6da6cdb1dd1f522768ffa4d48a01fe 100644 (file)
@@ -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.
index 405a7e927366f7c15360bd42dd39492ca4f8f2dd..6b0d0dec61666ad599c4d4466f06bf498a448a49 100644 (file)
@@ -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,
index 33f41ff6bbaba83c9af660e10db9de69f19e46b4..55b923ddfdf5e6341f568fdb74eaf0a3e1291124 100644 (file)
@@ -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.
index 49c4227620903d078cd5d829cad74708640ca320..a94b534a9ae4de2ac75f5963ff28eeb38b1ada0d 100644 (file)
@@ -42,6 +42,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,