From: Rust Maintainers Date: Sun, 8 Jul 2018 19:39:35 +0000 (+0100) Subject: u-sparc64-detection X-Git-Tag: archive/raspbian/1.24.1+dfsg1-1_deb9u2+rpi1~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4fe508fdf55b3261aa99bbb260c7235f29edc767;p=rustc.git u-sparc64-detection Gbp-Pq: Name u-sparc64-detection.patch --- diff --git a/src/libcompiler_builtins/compiler-rt/lib/builtins/int_lib.h b/src/libcompiler_builtins/compiler-rt/lib/builtins/int_lib.h index c773c390ec..5081f80986 100644 --- a/src/libcompiler_builtins/compiler-rt/lib/builtins/int_lib.h +++ b/src/libcompiler_builtins/compiler-rt/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(__sparcv9) || defined(__mips_n64) || defined(__mips_o64) || defined(__riscv__) \ +#if ((defined(__sparc__) && defined(__arch64__)) || 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);