Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 6de2a66

Browse files
binarycrusaderTimNN
authored andcommitted
Another workaround for LLVM bug 11663
Apply the same workaround from pull request #30 for __sparcv9 (the definition used on Solaris for sparc 64-bit) for LLVM Bug 11663 to prevent inifnite recursion in __c?zdi2().
1 parent f41e45a commit 6de2a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/builtins/int_lib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
* Presumably it's any version of GCC, and targeting an arch that
8787
* does not have dedicated bit counting instructions.
8888
*/
89-
#if (defined(__sparc64__) || defined(__mips_n64) || defined(__mips_o64) || defined(__riscv__) \
89+
#if (defined(__sparc64__) || defined(__sparcv9) || defined(__mips_n64) || defined(__mips_o64) || defined(__riscv__) \
9090
|| (defined(_MIPS_SIM) && ((_MIPS_SIM == _ABI64) || (_MIPS_SIM == _ABIO64))))
9191
si_int __clzsi2(si_int);
9292
si_int __ctzsi2(si_int);

0 commit comments

Comments
 (0)