Source: ghc
Version: 8.0.1-8
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: sparc64

Hi,
Please find attached a patch to ensure GHC does not perform unaligned
accesses on sparc64 (and sparc if native code gen is disabled, but
there's no sparc64 native code gen support). This is currently blocking
all of Haskell on sparc64.

Regards,
James
--- a/compiler/cmm/PprC.hs
+++ b/compiler/cmm/PprC.hs
@@ -1114,6 +1114,8 @@ cLoad expr rep
           bewareLoadStoreAlignment ArchMipsel   = True
           bewareLoadStoreAlignment (ArchARM {}) = True
           bewareLoadStoreAlignment ArchARM64    = True
+          bewareLoadStoreAlignment ArchSPARC    = True
+          bewareLoadStoreAlignment ArchSPARC64  = True
           -- Pessimistically assume that they will also cause problems
           -- on unknown arches
           bewareLoadStoreAlignment ArchUnknown  = True

Attachment: signature.asc
Description: PGP signature

Reply via email to