Skip to content

AArch64: get GHC Calling convention working

Building on AArch64 via the LLVM abckend has been working for some time. Its now time to get ("Unregisterised", "NO") working as well.

Enabling GHC calling convention can be done with this patch to configure.ac:

diff --git a/configure.ac b/configure.ac
index d5d9ab3..a11e5af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,7 +241,7 @@ AC_SUBST(SOLARIS_BROKEN_SHLD)
 dnl ** Do an unregisterised build?
 dnl --------------------------------------------------------------
 case "$HostArch" in
-    i386|x86_64|powerpc|arm)
+    i386|x86_64|powerpc|arm|aarch64)
         UnregisterisedDefault=NO
         ;;
     *)

but when building it this way, the stage2 compiler dies will Illegal instructon.

Trac metadata
Trac field Value
Version 7.11
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information