about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-10-07 20:48:25 +0200
committerJorge Aparicio <jorge@japaric.io>2017-10-07 20:48:25 +0200
commit2b8f190d63d07bb7dd352c050c2a1daaa5c6574e (patch)
tree9289d87ffb4bf07d75b0c822fe755b028f8dd206 /src/rustllvm/RustWrapper.cpp
parentbb4d1491466d8239a7a5fd68bd605e3276e97afb (diff)
downloadrust-2b8f190d63d07bb7dd352c050c2a1daaa5c6574e.tar.gz
rust-2b8f190d63d07bb7dd352c050c2a1daaa5c6574e.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions