Fix "fp" feature for AArch64
authorAmanieu d'Antras <amanieu@gmail.com>
Tue, 10 Apr 2018 21:34:15 +0000 (22:34 +0100)
committerXimin Luo <infinity0@debian.org>
Thu, 31 May 2018 16:25:17 +0000 (17:25 +0100)
Gbp-Pq: Name u-fix-fp-target-warning.patch

src/librustc_trans/llvm_util.rs

index 1c8f09ce7b3f1960bcfb5705e36f2143a18c4651..ad128516a3af3f69ad9fd2cc6f48109c541cc1c1 100644 (file)
@@ -134,6 +134,7 @@ pub fn to_llvm_feature<'a>(sess: &Session, s: &'a str) -> &'a str {
         ("x86", "pclmulqdq") => "pclmul",
         ("x86", "rdrand") => "rdrnd",
         ("x86", "bmi1") => "bmi",
+        ("aarch64", "fp") => "fp-armv8",
         ("aarch64", "fp16") => "fullfp16",
         (_, s) => s,
     }