From 01674fbe06aa2d05f8dafbb8a27ba6bd23fa09e1 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Sat, 8 Sep 2018 12:50:19 +0100 Subject: Correct alignment of atomic types and (re)add Atomic{I,U}128 LLVM requires that atomic loads and stores be aligned to at least the size of the type. --- src/libstd/panic.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libstd/panic.rs') diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index 5c87035d8e9..137ba7d449a 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -264,6 +264,9 @@ impl RefUnwindSafe for atomic::AtomicI32 {} #[cfg(target_has_atomic = "64")] #[unstable(feature = "integer_atomics", issue = "32976")] impl RefUnwindSafe for atomic::AtomicI64 {} +#[cfg(target_has_atomic = "128")] +#[unstable(feature = "integer_atomics", issue = "32976")] +impl RefUnwindSafe for atomic::AtomicI128 {} #[cfg(target_has_atomic = "ptr")] #[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")] @@ -280,6 +283,9 @@ impl RefUnwindSafe for atomic::AtomicU32 {} #[cfg(target_has_atomic = "64")] #[unstable(feature = "integer_atomics", issue = "32976")] impl RefUnwindSafe for atomic::AtomicU64 {} +#[cfg(target_has_atomic = "128")] +#[unstable(feature = "integer_atomics", issue = "32976")] +impl RefUnwindSafe for atomic::AtomicU128 {} #[cfg(target_has_atomic = "8")] #[stable(feature = "unwind_safe_atomic_refs", since = "1.14.0")] -- cgit 1.4.1-3-g733a5