From 851d59815c5564781ec1741cc5cf8967f1e87abd Mon Sep 17 00:00:00 2001 From: Shawn Walker-Salas Date: Wed, 15 Feb 2017 12:43:47 -0800 Subject: [PATCH] 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(). --- lib/builtins/int_lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builtins/int_lib.h b/lib/builtins/int_lib.h index a02e85b741..a5b145ac17 100644 --- a/lib/builtins/int_lib.h +++ b/lib/builtins/int_lib.h @@ -86,7 +86,7 @@ * Presumably it's any version of GCC, and targeting an arch that * does not have dedicated bit counting instructions. */ -#if (defined(__sparc64__) || defined(__mips_n64) || defined(__mips_o64) || defined(__riscv__) \ +#if (defined(__sparc64__) || defined(__sparcv9) || defined(__mips_n64) || defined(__mips_o64) || defined(__riscv__) \ || (defined(_MIPS_SIM) && ((_MIPS_SIM == _ABI64) || (_MIPS_SIM == _ABIO64)))) si_int __clzsi2(si_int); si_int __ctzsi2(si_int);