[Git][ghc/ghc][wip/supersven/riscv64-ncg] Ensure __clzdi2 builtin is around

Sven Tennie (@supersven) gitlab at gitlab.haskell.org
Sat Mar 2 10:01:32 UTC 2024



Sven Tennie pushed to branch wip/supersven/riscv64-ncg at Glasgow Haskell Compiler / GHC


Commits:
a528db71 by Sven Tennie at 2024-03-02T11:00:57+01:00
Ensure __clzdi2 builtin is around

- - - - -


1 changed file:

- rts/RtsSymbols.c


Changes:

=====================================
rts/RtsSymbols.c
=====================================
@@ -971,6 +971,13 @@ extern char **environ;
 #define RTS_LIBGCC_SYMBOLS
 #endif
 
+#if defined(riscv64_HOST_ARCH)
+#define RTS_ARCH_LIBGCC_SYMBOLS \
+  SymI_NeedsProto(__clzdi2)
+#else
+#define RTS_ARCH_LIBGCC_SYMBOLS
+#endif
+
 // Symbols defined by libgcc/compiler-rt for AArch64's outline atomics.
 #if defined(HAVE_ARM_OUTLINE_ATOMICS)
 #include "ARMOutlineAtomicsSymbols.h"
@@ -1023,6 +1030,7 @@ RTS_DARWIN_ONLY_SYMBOLS
 RTS_OPENBSD_ONLY_SYMBOLS
 RTS_LIBC_SYMBOLS
 RTS_LIBGCC_SYMBOLS
+RTS_ARCH_LIBGCC_SYMBOLS
 RTS_FINI_ARRAY_SYMBOLS
 RTS_LIBFFI_SYMBOLS
 RTS_ARM_OUTLINE_ATOMIC_SYMBOLS
@@ -1065,6 +1073,7 @@ RtsSymbolVal rtsSyms[] = {
       RTS_DARWIN_ONLY_SYMBOLS
       RTS_OPENBSD_ONLY_SYMBOLS
       RTS_LIBGCC_SYMBOLS
+      RTS_ARCH_LIBGCC_SYMBOLS
       RTS_FINI_ARRAY_SYMBOLS
       RTS_LIBFFI_SYMBOLS
       RTS_ARM_OUTLINE_ATOMIC_SYMBOLS



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a528db715df4e8ecb7062ed05780da031e6c92ce

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a528db715df4e8ecb7062ed05780da031e6c92ce
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240302/835652e1/attachment-0001.html>


More information about the ghc-commits mailing list