From c83a22c44a22b8bc8c7c4db42f191da077602773 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 19 Jun 2017 21:00:30 -0600 Subject: [PATCH] Disable repr(simd) in mem::swap on Redox --- src/libcore/mem.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 3924034fea22d..509b396f211bb 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -504,8 +504,8 @@ pub fn swap(x: &mut T, y: &mut T) { // Haswell E processors. LLVM is more able to optimize if we give a struct a // #[repr(simd)], even if we don't actually use this struct directly. // - // FIXME repr(simd) broken on emscripten - #[cfg_attr(not(target_os = "emscripten"), repr(simd))] + // FIXME repr(simd) broken on emscripten and redox + #[cfg_attr(not(any(target_os = "emscripten", target_os = "redox")), repr(simd))] struct Block(u64, u64, u64, u64); struct UnalignedBlock(u64, u64, u64, u64);