Browse Source

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>.
binutils-2_37-branch
Tom Tromey 5 years ago
parent
commit
be7547b077
  1. 4
      sim/cris/ChangeLog
  2. 2
      sim/cris/mloop.in
  3. 4
      sim/iq2000/ChangeLog
  4. 1
      sim/iq2000/mloop.in
  5. 4
      sim/lm32/ChangeLog
  6. 1
      sim/lm32/mloop.in
  7. 4
      sim/m32r/ChangeLog
  8. 1
      sim/m32r/mloop.in
  9. 4
      sim/or1k/ChangeLog
  10. 1
      sim/or1k/mloop.in

4
sim/cris/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.

2
sim/cris/mloop.in

@ -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);

4
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.

1
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,

4
sim/lm32/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.

1
sim/lm32/mloop.in

@ -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,

4
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.

1
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,

4
sim/or1k/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.

1
sim/or1k/mloop.in

@ -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,

Loading…
Cancel
Save