2021-09-19 06:56:58 -05:00
|
|
|
From ad7ffe71baba46865f2e65266ab025920dfdc20b Mon Sep 17 00:00:00 2001
|
2021-03-05 12:12:59 -06:00
|
|
|
From: bjorn3 <bjorn3@users.noreply.github.com>
|
|
|
|
Date: Thu, 18 Feb 2021 18:45:28 +0100
|
|
|
|
Subject: [PATCH] Disable 128bit atomic operations
|
|
|
|
|
|
|
|
Cranelift doesn't support them yet
|
|
|
|
---
|
2021-08-06 09:26:56 -05:00
|
|
|
library/core/src/panic/unwind_safe.rs | 6 -----
|
|
|
|
library/core/src/sync/atomic.rs | 38 ---------------------------
|
|
|
|
library/core/tests/atomic.rs | 4 ---
|
2021-09-19 06:56:58 -05:00
|
|
|
4 files changed, 4 insertions(+), 50 deletions(-)
|
2021-03-05 12:12:59 -06:00
|
|
|
|
2021-08-06 09:26:56 -05:00
|
|
|
diff --git a/library/core/src/panic/unwind_safe.rs b/library/core/src/panic/unwind_safe.rs
|
|
|
|
index 092b7cf..158cf71 100644
|
|
|
|
--- a/library/core/src/panic/unwind_safe.rs
|
|
|
|
+++ b/library/core/src/panic/unwind_safe.rs
|
|
|
|
@@ -216,9 +216,6 @@ impl RefUnwindSafe for crate::sync::atomic::AtomicI32 {}
|
|
|
|
#[cfg(target_has_atomic_load_store = "64")]
|
|
|
|
#[stable(feature = "integer_atomics_stable", since = "1.34.0")]
|
|
|
|
impl RefUnwindSafe for crate::sync::atomic::AtomicI64 {}
|
|
|
|
-#[cfg(target_has_atomic_load_store = "128")]
|
2022-07-08 16:52:04 -05:00
|
|
|
-#[unstable(feature = "integer_atomics", issue = "99069")]
|
2021-08-06 09:26:56 -05:00
|
|
|
-impl RefUnwindSafe for crate::sync::atomic::AtomicI128 {}
|
2022-05-15 05:32:19 -05:00
|
|
|
|
2021-08-06 09:26:56 -05:00
|
|
|
#[cfg(target_has_atomic_load_store = "ptr")]
|
|
|
|
#[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")]
|
|
|
|
@@ -235,9 +232,6 @@ impl RefUnwindSafe for crate::sync::atomic::AtomicU32 {}
|
|
|
|
#[cfg(target_has_atomic_load_store = "64")]
|
|
|
|
#[stable(feature = "integer_atomics_stable", since = "1.34.0")]
|
|
|
|
impl RefUnwindSafe for crate::sync::atomic::AtomicU64 {}
|
|
|
|
-#[cfg(target_has_atomic_load_store = "128")]
|
2022-07-08 16:52:04 -05:00
|
|
|
-#[unstable(feature = "integer_atomics", issue = "99069")]
|
2021-08-06 09:26:56 -05:00
|
|
|
-impl RefUnwindSafe for crate::sync::atomic::AtomicU128 {}
|
2022-05-15 05:32:19 -05:00
|
|
|
|
2021-08-06 09:26:56 -05:00
|
|
|
#[cfg(target_has_atomic_load_store = "8")]
|
|
|
|
#[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")]
|
2021-03-05 12:12:59 -06:00
|
|
|
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs
|
2021-09-19 06:56:58 -05:00
|
|
|
index d9de37e..8293fce 100644
|
2021-03-05 12:12:59 -06:00
|
|
|
--- a/library/core/src/sync/atomic.rs
|
|
|
|
+++ b/library/core/src/sync/atomic.rs
|
2023-07-22 06:11:45 -05:00
|
|
|
@@ -2996,42 +2996,6 @@ atomic_int! {
|
|
|
|
8,
|
|
|
|
u64 AtomicU64
|
2021-03-05 12:12:59 -06:00
|
|
|
}
|
|
|
|
-#[cfg(target_has_atomic_load_store = "128")]
|
|
|
|
-atomic_int! {
|
|
|
|
- cfg(target_has_atomic = "128"),
|
|
|
|
- cfg(target_has_atomic_equal_alignment = "128"),
|
2022-07-08 16:52:04 -05:00
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
2021-03-05 12:12:59 -06:00
|
|
|
- rustc_const_stable(feature = "const_integer_atomics", since = "1.34.0"),
|
2022-05-15 05:32:19 -05:00
|
|
|
- cfg_attr(not(test), rustc_diagnostic_item = "AtomicI128"),
|
2021-03-05 12:12:59 -06:00
|
|
|
- "i128",
|
|
|
|
- "#![feature(integer_atomics)]\n\n",
|
|
|
|
- atomic_min, atomic_max,
|
|
|
|
- 16,
|
2023-07-22 06:11:45 -05:00
|
|
|
- i128 AtomicI128
|
2021-03-05 12:12:59 -06:00
|
|
|
-}
|
|
|
|
-#[cfg(target_has_atomic_load_store = "128")]
|
|
|
|
-atomic_int! {
|
|
|
|
- cfg(target_has_atomic = "128"),
|
|
|
|
- cfg(target_has_atomic_equal_alignment = "128"),
|
2022-07-08 16:52:04 -05:00
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
|
|
|
- unstable(feature = "integer_atomics", issue = "99069"),
|
2021-03-05 12:12:59 -06:00
|
|
|
- rustc_const_stable(feature = "const_integer_atomics", since = "1.34.0"),
|
2022-05-15 05:32:19 -05:00
|
|
|
- cfg_attr(not(test), rustc_diagnostic_item = "AtomicU128"),
|
2021-03-05 12:12:59 -06:00
|
|
|
- "u128",
|
|
|
|
- "#![feature(integer_atomics)]\n\n",
|
|
|
|
- atomic_umin, atomic_umax,
|
|
|
|
- 16,
|
2023-07-22 06:11:45 -05:00
|
|
|
- u128 AtomicU128
|
2021-03-05 12:12:59 -06:00
|
|
|
-}
|
|
|
|
|
2023-07-22 06:11:45 -05:00
|
|
|
#[cfg(target_has_atomic_load_store = "ptr")]
|
2021-03-05 12:12:59 -06:00
|
|
|
macro_rules! atomic_int_ptr_sized {
|
|
|
|
( $($target_pointer_width:literal $align:literal)* ) => { $(
|
2022-05-15 05:32:19 -05:00
|
|
|
--
|
2021-03-05 12:12:59 -06:00
|
|
|
2.26.2.7.g19db9cfb68
|
|
|
|
|