diff options
author | Andreas Schwab <schwab@suse.de> | 2021-09-19 22:31:13 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-10-02 05:18:40 -0400 |
commit | cb862ecfc3d9d421ff64af35c0d87f6d6f835fa0 (patch) | |
tree | 9b59e29d36c4a47f79f58b442541ecb5590343c3 | |
parent | 42f49c4ee681492db38273586dcaaccbcde6cf27 (diff) | |
download | haskell-cb862ecfc3d9d421ff64af35c0d87f6d6f835fa0.tar.gz |
CmmToLlvm: Sign/Zero extend parameters for foreign calls on RISC-V
Like S390 and PPC64, RISC-V requires parameters for foreign calls to be
extended to full words.
-rw-r--r-- | compiler/GHC/Platform.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Platform.hs b/compiler/GHC/Platform.hs index 9bebcc5990..027a772759 100644 --- a/compiler/GHC/Platform.hs +++ b/compiler/GHC/Platform.hs @@ -223,6 +223,7 @@ platformCConvNeedsExtension :: Platform -> Bool platformCConvNeedsExtension platform = case platformArch platform of ArchPPC_64 _ -> True ArchS390X -> True + ArchRISCV64 -> True _ -> False |