diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-22 17:47:28 +0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-29 17:25:49 -0400 |
commit | 09ea36cffad34ac5cc2548863cebcfcc8e405a20 (patch) | |
tree | 177ecc6c38ea7367d8ace5ecefc4b79ee4cc1c44 | |
parent | 095e1624df02f303d4c9d1d50cb5327bdafd3b25 (diff) | |
download | haskell-09ea36cffad34ac5cc2548863cebcfcc8e405a20.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.c | 1 |
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) |