about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-12-04 01:42:10 +0000
committerbors <bors@rust-lang.org>2015-12-04 01:42:10 +0000
commit5854fed4ae80715107bfd8828c4af3fb6369faa5 (patch)
tree221c0bec7be12f172d2da9bc4abe953b76107d3c /src/liballoc_system
parentc7d58321e1856396d4b5b047c1844d6494a5d5c4 (diff)
parent098f4fb9c753fb7eb4723fd157401facd85afaa4 (diff)
downloadrust-5854fed4ae80715107bfd8828c4af3fb6369faa5.tar.gz
rust-5854fed4ae80715107bfd8828c4af3fb6369faa5.zip
Auto merge of #30183 - retep998:min-align, r=alexcrichton
This fixes it so the Rust allocator on Windows 32-bit doesn't think the system allocator is aligned to 16 when it is really only aligned to 8.
Diffstat (limited to 'src/liballoc_system')
-rw-r--r--src/liballoc_system/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs
index a0c0d7d0e94..7f2d362e5d9 100644
--- a/src/liballoc_system/lib.rs
+++ b/src/liballoc_system/lib.rs
@@ -29,13 +29,13 @@ extern crate libc;
 // The minimum alignment guaranteed by the architecture. This value is used to
 // add fast paths for low alignment values. In practice, the alignment is a
 // constant at the call site and the branch will be optimized out.
-#[cfg(all(any(target_arch = "arm",
+#[cfg(all(any(target_arch = "x86",
+              target_arch = "arm",
               target_arch = "mips",
               target_arch = "mipsel",
               target_arch = "powerpc")))]
 const MIN_ALIGN: usize = 8;
-#[cfg(all(any(target_arch = "x86",
-              target_arch = "x86_64",
+#[cfg(all(any(target_arch = "x86_64",
               target_arch = "aarch64")))]
 const MIN_ALIGN: usize = 16;