public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Add missing stdlib.h includes to sim
@ 2021-05-04 19:47 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2021-05-04 19:47 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=be7547b07780effc5ad8a37f48ec4047053ef6ba

commit be7547b07780effc5ad8a37f48ec4047053ef6ba
Author: Tom Tromey <tromey@adacore.com>
Date:   Tue May 4 08:56:12 2021 -0600

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

Diff:
---
 sim/cris/ChangeLog   | 4 ++++
 sim/cris/mloop.in    | 2 ++
 sim/iq2000/ChangeLog | 4 ++++
 sim/iq2000/mloop.in  | 1 +
 sim/lm32/ChangeLog   | 4 ++++
 sim/lm32/mloop.in    | 1 +
 sim/m32r/ChangeLog   | 4 ++++
 sim/m32r/mloop.in    | 1 +
 sim/or1k/ChangeLog   | 4 ++++
 sim/or1k/mloop.in    | 1 +
 10 files changed, 26 insertions(+)

diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog
index 4cad5c8eb45..81ae5e6f267 100644
--- a/sim/cris/ChangeLog
+++ b/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.
diff --git a/sim/cris/mloop.in b/sim/cris/mloop.in
index 32f5fef95f3..645d8211606 100644
--- a/sim/cris/mloop.in
+++ b/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);
diff --git a/sim/iq2000/ChangeLog b/sim/iq2000/ChangeLog
index 550be28f654..5dbfb7a69be 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 b973fa106ab..7d3a9b5e9a1 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,
diff --git a/sim/lm32/ChangeLog b/sim/lm32/ChangeLog
index eac37deb417..f169b1b2405 100644
--- a/sim/lm32/ChangeLog
+++ b/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.
diff --git a/sim/lm32/mloop.in b/sim/lm32/mloop.in
index a8db7f51768..574f00a5119 100644
--- a/sim/lm32/mloop.in
+++ b/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,
diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog
index e247deb034c..9737efb2fb6 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 405a7e92736..6b0d0dec616 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,
diff --git a/sim/or1k/ChangeLog b/sim/or1k/ChangeLog
index 33f41ff6bba..55b923ddfdf 100644
--- a/sim/or1k/ChangeLog
+++ b/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.
diff --git a/sim/or1k/mloop.in b/sim/or1k/mloop.in
index 49c42276209..a94b534a9ae 100644
--- a/sim/or1k/mloop.in
+++ b/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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-04 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 19:47 [binutils-gdb] Add missing stdlib.h includes to sim Tom Tromey

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