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-07 07:32:25 +0800
commitbe3c5bc34c4b3a6c02bb6820a3a4cfc6ecd68b7e (patch)
tree67d7aba60798e93aabafe888e19b06b9b6eb09f2
parentcb200e0657dbb710c40c550f08de6017803bc548 (diff)
downloadhaskell-be3c5bc34c4b3a6c02bb6820a3a4cfc6ecd68b7e.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 *.
-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)