d-rustc-i686-baseline
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 14 Jul 2022 11:17:39 +0000 (13:17 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 13 Jun 2024 11:01:11 +0000 (11:01 +0000)
===================================================================

Gbp-Pq: Name d-rustc-i686-baseline.patch

compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs
tests/ui/abi/homogenous-floats-target-feature-mixup.rs
tests/ui/sse2.rs

index 73e536a7e4d934b0b8614535da510d2b79cdd524..52403f73c3db34d19eb62c4bed684310024062f6 100644 (file)
@@ -2,7 +2,7 @@ use crate::spec::{Cc, LinkerFlavor, Lld, SanitizerSet, StackProbeType, Target};
 
 pub fn target() -> Target {
     let mut base = super::linux_gnu_base::opts();
-    base.cpu = "pentium4".into();
+    base.cpu = "pentiumpro".into();
     base.max_atomic_width = Some(64);
     base.supported_sanitizers = SanitizerSet::ADDRESS;
     base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m32"]);
index 4600bd090cc644dda6a7f31b9a55fa76c95aa0fe..e178964c4aa3a0bd8b63d3a50cf5baa984a2eab3 100644 (file)
@@ -24,7 +24,8 @@ fn main() {
     match std::env::var("TARGET") {
         Ok(s) => {
             // Skip this tests on i586-unknown-linux-gnu where sse2 is disabled
-            if s.contains("i586") {
+            // Debian: our i686 doesn't have SSE 2..
+            if s.contains("i586") || s.contains("i686") {
                 return
             }
         }
index 172f4079821a72d28065ad4096521f89517efea1..bf39939934bfdab25a0a8caa317fa92288d68093 100644 (file)
@@ -15,7 +15,7 @@ fn main() {
         }
         Err(_) => return,
     }
-    if cfg!(any(target_arch = "x86", target_arch = "x86_64")) {
+    if cfg!(any(target_arch = "x86_64")) {
         assert!(cfg!(target_feature = "sse2"),
                 "SSE2 was not detected as available on an x86 platform");
     }