diff options
| author | Oliver Middleton <olliemail27@gmail.com> | 2018-09-08 12:50:19 +0100 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2018-10-27 13:47:11 +0300 |
| commit | 01674fbe06aa2d05f8dafbb8a27ba6bd23fa09e1 (patch) | |
| tree | 625649f40505a0bb90e034efb257f129b7980ec6 /src/libstd | |
| parent | 10f42cbde015c44a019e8b6dceca472a1532f36a (diff) | |
| download | rust-01674fbe06aa2d05f8dafbb8a27ba6bd23fa09e1.tar.gz rust-01674fbe06aa2d05f8dafbb8a27ba6bd23fa09e1.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/panic.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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")] |
