u-sparc64-detection
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Fri, 19 Jan 2018 10:49:31 +0000 (10:49 +0000)
committerXimin Luo <infinity0@debian.org>
Fri, 19 Jan 2018 10:49:31 +0000 (10:49 +0000)
Gbp-Pq: Name u-sparc64-detection.patch

src/libcompiler_builtins/compiler-rt/lib/builtins/int_lib.h

index c773c390ec4d5e52a222be548f3c64c6f45eeb95..5081f80986e64c4d68e039fb04e296e695cf0d38 100644 (file)
@@ -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);