1
- From ad7ffe71baba46865f2e65266ab025920dfdc20b Mon Sep 17 00:00:00 2001
1
+ From 5d7c709608b01301d4628d2159265936d4440b67 Mon Sep 17 00:00:00 2001
2
2
3
3
Date: Thu, 18 Feb 2021 18:45:28 +0100
4
4
Subject: [PATCH] Disable 128bit atomic operations
@@ -7,11 +7,10 @@ Cranelift doesn't support them yet
7
7
---
8
8
library/core/src/panic/unwind_safe.rs | 6 -----
9
9
library/core/src/sync/atomic.rs | 38 ---------------------------
10
- library/core/tests/atomic.rs | 4 ---
11
- 4 files changed, 4 insertions(+), 50 deletions(-)
10
+ 2 files changed, 44 deletions(-)
12
11
13
12
diff --git a/library/core/src/panic/unwind_safe.rs b/library/core/src/panic/unwind_safe.rs
14
- index 092b7cf..158cf71 100644
13
+ index a60f0799c0e..af056fbf41f 100644
15
14
--- a/library/core/src/panic/unwind_safe.rs
16
15
+++ b/library/core/src/panic/unwind_safe.rs
17
16
@@ -216,9 +216,6 @@ impl RefUnwindSafe for crate::sync::atomic::AtomicI32 {}
@@ -21,7 +20,7 @@ index 092b7cf..158cf71 100644
21
20
- #[cfg(target_has_atomic_load_store = "128")]
22
21
- #[unstable(feature = "integer_atomics", issue = "99069")]
23
22
- impl RefUnwindSafe for crate::sync::atomic::AtomicI128 {}
24
-
23
+
25
24
#[cfg(target_has_atomic_load_store = "ptr")]
26
25
#[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")]
27
26
@@ -235,9 +232,6 @@ impl RefUnwindSafe for crate::sync::atomic::AtomicU32 {}
@@ -31,14 +30,14 @@ index 092b7cf..158cf71 100644
31
30
- #[cfg(target_has_atomic_load_store = "128")]
32
31
- #[unstable(feature = "integer_atomics", issue = "99069")]
33
32
- impl RefUnwindSafe for crate::sync::atomic::AtomicU128 {}
34
-
33
+
35
34
#[cfg(target_has_atomic_load_store = "8")]
36
35
#[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")]
37
36
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
38
- index d9de37e..8293fce 100644
37
+ index bf2b6d59f88..d5ccce03bbf 100644
39
38
--- a/library/core/src/sync/atomic.rs
40
39
+++ b/library/core/src/sync/atomic.rs
41
- @@ -2996 ,44 +2996 ,6 @@ atomic_int! {
40
+ @@ -3585 ,44 +3585 ,6 @@ pub const fn as_ptr(&self) -> *mut $int_type {
42
41
8,
43
42
u64 AtomicU64
44
43
}
@@ -54,7 +53,7 @@ index d9de37e..8293fce 100644
54
53
- unstable(feature = "integer_atomics", issue = "99069"),
55
54
- rustc_const_unstable(feature = "integer_atomics", issue = "99069"),
56
55
- rustc_const_unstable(feature = "integer_atomics", issue = "99069"),
57
- - cfg_attr(not(test), rustc_diagnostic_item = "AtomicI128") ,
56
+ - rustc_diagnostic_item = "AtomicI128",
58
57
- "i128",
59
58
- "#![feature(integer_atomics)]\n\n",
60
59
- atomic_min, atomic_max,
@@ -73,7 +72,7 @@ index d9de37e..8293fce 100644
73
72
- unstable(feature = "integer_atomics", issue = "99069"),
74
73
- rustc_const_unstable(feature = "integer_atomics", issue = "99069"),
75
74
- rustc_const_unstable(feature = "integer_atomics", issue = "99069"),
76
- - cfg_attr(not(test), rustc_diagnostic_item = "AtomicU128") ,
75
+ - rustc_diagnostic_item = "AtomicU128",
77
76
- "u128",
78
77
- "#![feature(integer_atomics)]\n\n",
79
78
- atomic_umin, atomic_umax,
@@ -83,7 +82,6 @@ index d9de37e..8293fce 100644
83
82
84
83
#[cfg(target_has_atomic_load_store = "ptr")]
85
84
macro_rules! atomic_int_ptr_sized {
86
- ( $($target_pointer_width:literal $align:literal)* ) => { $(
87
- - -
88
- 2.26.2.7.g19db9cfb68
85
+ - -
86
+ 2.48.1
89
87
0 commit comments