Change i686 to match Debian i386 baseline
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 14 Jul 2022 11:17:39 +0000 (13:17 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Tue, 29 Oct 2024 12:18:35 +0000 (13:18 +0100)
see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973414 , might need to be
adapted to reduce the baseline again

Forwarded: not-needed

===================================================================

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

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

index 5584435a0ad9da32b0b154b47125d09b478650ae..8528773dd0e8892b14c7e2bc0ebdae57d51c2c7e 100644 (file)
@@ -2,7 +2,7 @@ use crate::spec::{base, Cc, LinkerFlavor, Lld, SanitizerSet, StackProbeType, Tar
 
 pub fn target() -> Target {
     let mut base = base::linux_gnu::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 3a8540a825ca2c08f79ef2c64c6f9a9c9dd25f3f..bc4fea5f15e17e641578fae23d1bc0d074261ef4 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 a1894cc03dbc53f57e435aa22f4555e1d033fa41..92cdca6eec53ec73634034e7be38a29d086c6180 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");
     }