aboutsummaryrefslogtreecommitdiff
path: root/sim/arm
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/arm
parent9353bb9ed6ef1066850f31c6c8e1a40a7ca6763d (diff)
downloadbinutils-9416af6e7d5d421b0c737d7f80afd67ce9926f11.zip
binutils-9416af6e7d5d421b0c737d7f80afd67ce9926f11.tar.gz
binutils-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/arm')
-rw-r--r--sim/arm/ChangeLog4
-rw-r--r--sim/arm/iwmmxt.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog
index 9d98bcd..75fcec2 100644
--- a/sim/arm/ChangeLog
+++ b/sim/arm/ChangeLog
@@ -1,5 +1,9 @@
2021-01-04 Mike Frysinger <vapier@gentoo.org>
+ * iwmmxt.c: Include stdlib.h.
+
+2021-01-04 Mike Frysinger <vapier@gentoo.org>
+
* configure: Regenerate.
2020-12-15 Nick Clifton <nickc@redhat.com>
diff --git a/sim/arm/iwmmxt.c b/sim/arm/iwmmxt.c
index 0362cf0..8e81824 100644
--- a/sim/arm/iwmmxt.c
+++ b/sim/arm/iwmmxt.c
@@ -15,6 +15,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 <stdlib.h>
#include <string.h>
#include "armdefs.h"