2023-03-15 09:41:48 -05:00
|
|
|
From ad7ffe71baba46865f2e65266ab025920dfdc20b Mon Sep 17 00:00:00 2001
|
|
|
|
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
|
|
|
|
---
|
|
|
|
library/core/src/panic/unwind_safe.rs | 6 -----
|
|
|
|
library/core/src/sync/atomic.rs | 38 ---------------------------
|
|
|
|
library/core/tests/atomic.rs | 4 ---
|
|
|
|
4 files changed, 4 insertions(+), 50 deletions(-)
|
|
|
|
|
2023-07-22 08:32:34 -05:00
|
|
|
diff --git a/lib.rs b/lib.rs
|
2024-08-02 06:40:01 -05:00
|
|
|
index 1e336bf..35e6f54 100644
|
2023-07-22 08:32:34 -05:00
|
|
|
--- a/lib.rs
|
|
|
|
+++ b/lib.rs
|
2024-09-11 14:31:20 -05:00
|
|
|
@@ -1,6 +1,5 @@
|
2024-08-02 06:40:01 -05:00
|
|
|
#![cfg(test)]
|
|
|
|
// tidy-alphabetical-start
|
2024-09-22 12:35:29 -05:00
|
|
|
#![cfg_attr(bootstrap, feature(const_mut_refs))]
|
2023-07-22 08:32:34 -05:00
|
|
|
-#![cfg_attr(target_has_atomic = "128", feature(integer_atomics))]
|
2023-10-09 03:52:46 -05:00
|
|
|
#![cfg_attr(test, feature(cfg_match))]
|
2024-08-02 06:40:01 -05:00
|
|
|
#![feature(alloc_layout_extra)]
|
2023-03-15 09:41:48 -05:00
|
|
|
diff --git a/atomic.rs b/atomic.rs
|
|
|
|
index b735957..ea728b6 100644
|
|
|
|
--- a/atomic.rs
|
|
|
|
+++ b/atomic.rs
|
|
|
|
@@ -185,10 +185,6 @@ fn atomic_alignment() {
|
|
|
|
assert_eq!(align_of::<AtomicU64>(), size_of::<AtomicU64>());
|
|
|
|
#[cfg(target_has_atomic = "64")]
|
|
|
|
assert_eq!(align_of::<AtomicI64>(), size_of::<AtomicI64>());
|
|
|
|
- #[cfg(target_has_atomic = "128")]
|
|
|
|
- assert_eq!(align_of::<AtomicU128>(), size_of::<AtomicU128>());
|
|
|
|
- #[cfg(target_has_atomic = "128")]
|
|
|
|
- assert_eq!(align_of::<AtomicI128>(), size_of::<AtomicI128>());
|
|
|
|
#[cfg(target_has_atomic = "ptr")]
|
|
|
|
assert_eq!(align_of::<AtomicUsize>(), size_of::<AtomicUsize>());
|
|
|
|
#[cfg(target_has_atomic = "ptr")]
|
|
|
|
--
|
|
|
|
2.26.2.7.g19db9cfb68
|
|
|
|
|