File: std_detect-remove-unstable-loongarch-features.patch

package info (click to toggle)
rustc 1.90.0%2Bdfsg1-1~bpo13%2B2
  • links: PTS, VCS
  • area: main
  • in suites: trixie-backports
  • size: 925,944 kB
  • sloc: xml: 158,148; javascript: 19,781; sh: 19,174; python: 15,732; ansic: 13,096; cpp: 7,181; asm: 4,376; makefile: 697; lisp: 176; sql: 15
file content (56 lines) | stat: -rw-r--r-- 2,872 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
Date: Wed, 15 Oct 2025 14:44:54 +0200
Subject: std_detect: remove unstable loongarch features
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

these require LLVM 20+

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
 library/std_detect/src/detect/arch/loongarch.rs     | 10 ----------
 library/std_detect/src/detect/os/linux/loongarch.rs |  5 -----
 2 files changed, 15 deletions(-)

diff --git a/library/std_detect/src/detect/arch/loongarch.rs b/library/std_detect/src/detect/arch/loongarch.rs
index 68fc600..2e857c6 100644
--- a/library/std_detect/src/detect/arch/loongarch.rs
+++ b/library/std_detect/src/detect/arch/loongarch.rs
@@ -28,20 +28,10 @@ features! {
     /// D
     @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] frecipe: "frecipe";
     /// Frecipe
-    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] div32: "div32";
-    /// Div32
     @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lsx: "lsx";
     /// LSX
     @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lasx: "lasx";
     /// LASX
-    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lam_bh: "lam-bh";
-    /// LAM-BH
-    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lamcas: "lamcas";
-    /// LAM-CAS
-    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ld_seq_sa: "ld-seq-sa";
-    /// LD-SEQ-SA
-    @FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] scq: "scq";
-    /// SCQ
     @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lbt: "lbt";
     /// LBT
     @FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lvz: "lvz";
diff --git a/library/std_detect/src/detect/os/linux/loongarch.rs b/library/std_detect/src/detect/os/linux/loongarch.rs
index e97fda1..82332e2 100644
--- a/library/std_detect/src/detect/os/linux/loongarch.rs
+++ b/library/std_detect/src/detect/os/linux/loongarch.rs
@@ -34,11 +34,6 @@ pub(crate) fn detect_features() -> cache::Initializer {
         );
     }
     enable_feature(&mut value, Feature::frecipe, bit::test(cpucfg2, 25));
-    enable_feature(&mut value, Feature::div32, bit::test(cpucfg2, 26));
-    enable_feature(&mut value, Feature::lam_bh, bit::test(cpucfg2, 27));
-    enable_feature(&mut value, Feature::lamcas, bit::test(cpucfg2, 28));
-    enable_feature(&mut value, Feature::scq, bit::test(cpucfg2, 30));
-    enable_feature(&mut value, Feature::ld_seq_sa, bit::test(cpucfg3, 23));
 
     // The values are part of the platform-specific [asm/hwcap.h][hwcap]
     //