about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-10-08 13:39:06 +0800
committerGitHub <noreply@github.com>2017-10-08 13:39:06 +0800
commit7914e6fbc075f7f485fca4ab589563da4e95a9b7 (patch)
treecc33bb514a3212c9ff4bbd5c362b9190bc97882e /src/rustllvm/RustWrapper.cpp
parent048949724f71403aeab86871fb7f31428fa06af4 (diff)
parent2b8f190d63d07bb7dd352c050c2a1daaa5c6574e (diff)
downloadrust-7914e6fbc075f7f485fca4ab589563da4e95a9b7.tar.gz
rust-7914e6fbc075f7f485fca4ab589563da4e95a9b7.zip
Rollup merge of #45094 - japaric:strict-align, r=alexcrichton
enable strict alignment (+strict-align) on ARMv6

As discovered in #44538 ARMv6 devices may or may not support unaligned memory accesses. ARMv6
Linux *seems* to have no problem with unaligned accesses but this is because the kernel is stepping
in to fix each unaligned memory access -- this incurs in a performance penalty.

This commit enforces aligned memory accesses on all our in-tree ARM targets that may be used with
ARMv6 devices. This should improve performance of Rust programs on ARMv6 devices. For the record,
clang also applies this attribute when targeting ARMv6 devices that are not running Darwin or
NetBSD.

closes #44538
r? @alexcrichton
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions