summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-02-22 17:47:28 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2021-03-30 00:48:06 -0400
commit21790451f064e67c449657a7395397a82e9bcc47 (patch)
treea85a77a4c0f1447f1fc90b96072fe492fdb575e9
parent95a94dea3f1b09c643dc588e07175f3a47fb98c2 (diff)
downloadhaskell-21790451f064e67c449657a7395397a82e9bcc47.tar.gz
[aarch64-darwin] be very careful of warnings.
So we did *not* have the stgCallocBytes prototype, and subsequently the C compiler defaulted to `int` as a return value. Thus generating sxtw instructions for the return value of stgCalloBytes to produce the expected void *. (cherry picked from commit 273e1f6d6886eb226699071184bb25dd463e8f82)
-rw-r--r--rts/linker/macho/plt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/linker/macho/plt.c b/rts/linker/macho/plt.c
index 330bde071a..33563f62d5 100644
--- a/rts/linker/macho/plt.c
+++ b/rts/linker/macho/plt.c
@@ -1,5 +1,6 @@
#include "Rts.h"
#include "plt.h"
+#include "RtsUtils.h"
#if defined(aarch64_HOST_ARCH)