Skip to content

Commit e8494b2

Browse files
committed
Disable SIMD-swapping on macOS.
1 parent 9cc3d44 commit e8494b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/ptr.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,11 @@ unsafe fn swap_nonoverlapping_bytes(x: *mut u8, y: *mut u8, len: usize) {
194194
// Haswell E processors. LLVM is more able to optimize if we give a struct a
195195
// #[repr(simd)], even if we don't actually use this struct directly.
196196
//
197-
// FIXME repr(simd) broken on emscripten and redox
197+
// FIXME repr(simd) broken on emscripten and redox and macOS
198198
// It's also broken on big-endian powerpc64 and s390x. #42778
199+
// It's also broken on macOS 10.10. #51794/#51758/#48866/#44056
199200
#[cfg_attr(not(any(target_os = "emscripten", target_os = "redox",
201+
target_os = "macos",
200202
target_endian = "big")),
201203
repr(simd))]
202204
struct Block(u64, u64, u64, u64);

0 commit comments

Comments
 (0)