aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-04 20:11:48 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-04 20:13:10 -0500
commit9416af6e7d5d421b0c737d7f80afd67ce9926f11 (patch)
treefa47ab398240d1e0ed77ca9c57b2e0b029883087 /sim/testsuite
parent9353bb9ed6ef1066850f31c6c8e1a40a7ca6763d (diff)
downloadgdb-9416af6e7d5d421b0c737d7f80afd67ce9926f11.zip
gdb-9416af6e7d5d421b0c737d7f80afd67ce9926f11.tar.gz
gdb-9416af6e7d5d421b0c737d7f80afd67ce9926f11.tar.bz2
sim: stdlib.h for abs()
Make sure the files using abs() include stdlib.h for its prototype. These files were relying on it being included implicitly by others which isn't guaranteed, and newer toolchains produce warnings.
Diffstat (limited to 'sim/testsuite')
-rw-r--r--sim/testsuite/sim/bfin/ChangeLog4
-rw-r--r--sim/testsuite/sim/bfin/mdma-skel.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/testsuite/sim/bfin/ChangeLog b/sim/testsuite/sim/bfin/ChangeLog
index 4fc604f..b8fdc04 100644
--- a/sim/testsuite/sim/bfin/ChangeLog
+++ b/sim/testsuite/sim/bfin/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-04 Mike Frysinger <vapier@gentoo.org>
+
+ * mdma-skel.h: Include stdlib.h.
+
2015-10-11 Mike Frysinger <vapier@gentoo.org>
PR sim/18407
diff --git a/sim/testsuite/sim/bfin/mdma-skel.h b/sim/testsuite/sim/bfin/mdma-skel.h
index 399cddc..920eff2 100644
--- a/sim/testsuite/sim/bfin/mdma-skel.h
+++ b/sim/testsuite/sim/bfin/mdma-skel.h
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include <string.h>
void _mdma_memcpy (bu32 dst, bu32 src, bu32 size, bs16 mod)