aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-09 02:43:54 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-09 02:45:14 -0500
commitce0be4070f04ff8295a3cb58e352f759ce8ae70d (patch)
tree89d2cda550d5a192fe71ddbf5c4bd756836fcc11
parentld/x86-64: Also set LAM_U57 when setting LAM_U48 (diff)
downloadbinutils-gdb-ce0be4070f04ff8295a3cb58e352f759ce8ae70d.tar.gz
binutils-gdb-ce0be4070f04ff8295a3cb58e352f759ce8ae70d.tar.bz2
binutils-gdb-ce0be4070f04ff8295a3cb58e352f759ce8ae70d.zip
sim: common: add missing stdlib.h for abort()
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/cgen-par.c1
-rw-r--r--sim/common/cgen-trace.c1
-rw-r--r--sim/common/hw-events.c1
-rw-r--r--sim/common/sim-abort.c1
5 files changed, 9 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index df78108370d..52a2003e9c6 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2021-01-09 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-par.c: Include stdlib.h.
+ * cgen-trace.c, hw-events.c, sim-abort.c: Likewise.
+
2021-01-08 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (C_DIALECT): Define.
diff --git a/sim/common/cgen-par.c b/sim/common/cgen-par.c
index 8f2b0f94e57..4cf0388e16f 100644
--- a/sim/common/cgen-par.c
+++ b/sim/common/cgen-par.c
@@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-main.h"
+#include <stdlib.h>
#include "cgen-mem.h"
#include "cgen-par.h"
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 43bf0173944..82abad61b6c 100644
--- a/sim/common/cgen-trace.c
+++ b/sim/common/cgen-trace.c
@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "config.h"
#include <errno.h>
+#include <stdlib.h>
#include "dis-asm.h"
#include "bfd.h"
#include "sim-main.h"
diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c
index 1102420c910..917d7bde4e9 100644
--- a/sim/common/hw-events.c
+++ b/sim/common/hw-events.c
@@ -187,6 +187,7 @@ hw_event_remain_time (struct hw *me, struct hw_event *event)
#include "sim-main.h"
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
static void
test_handler (struct hw *me,
diff --git a/sim/common/sim-abort.c b/sim/common/sim-abort.c
index ef4fea14ca4..bf05504255f 100644
--- a/sim/common/sim-abort.c
+++ b/sim/common/sim-abort.c
@@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <stdio.h>
+#include <stdlib.h>
#include "sim-main.h"
#include "sim-assert.h"