about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-08-24 23:05:47 -0700
committerGitHub <noreply@github.com>2016-08-24 23:05:47 -0700
commitf5499a001d9cbde6a672f9d393d9c80c63745f00 (patch)
tree9109616feac798e2e8b7eea54a955255ad3bf9cd
parent0ccd5c802b94fc9206e4ce27a9fbd4bebc66a771 (diff)
parent1cf510d1decf5a1a450c9c60e6dd71f402b4c307 (diff)
downloadrust-f5499a001d9cbde6a672f9d393d9c80c63745f00.tar.gz
rust-f5499a001d9cbde6a672f9d393d9c80c63745f00.zip
Auto merge of #35814 - alexcrichton:armv7-no-neon, r=brson
rustc: Don't enable NEON by default on armv7 Linux

One of the primary platforms for the `armv7-unknown-linux-gnueabihf` target,
Linux distributions, do not enable NEON extensions by default. This PR disables
that feature by defualt but enables the `d16` feature which enables VFP3D16 that
distributions do enable.

Closes #35590
-rw-r--r--src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs b/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
index 52269f0cd4a..7e0306a03e2 100644
--- a/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
+++ b/src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs
@@ -23,8 +23,9 @@ pub fn target() -> TargetResult {
         target_vendor: "unknown".to_string(),
 
         options: TargetOptions {
-            features: "+v7,+vfp3,+neon".to_string(),
-            cpu: "cortex-a8".to_string(),
+            // Info about features at https://wiki.debian.org/ArmHardFloatPort
+            features: "+v7,+vfp3,+d16,+thumb2".to_string(),
+            cpu: "generic".to_string(),
             max_atomic_width: 64,
             .. base
         }