about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2017-09-08 14:49:51 -0700
committerJosh Stone <jistone@redhat.com>2017-09-08 14:49:51 -0700
commit95a5a0ed16171cfab039c3b59f45a6e4a93075fa (patch)
treef860f3df7ee187b0d9ab738c7b0f3c128c1712dd /src/rustllvm/RustWrapper.cpp
parentdead08cb331343b84564628b139b657f93548320 (diff)
downloadrust-95a5a0ed16171cfab039c3b59f45a6e4a93075fa.tar.gz
rust-95a5a0ed16171cfab039c3b59f45a6e4a93075fa.zip
Add `TargetOptions::min_global_align`, with s390x at 16-bit
The SystemZ `LALR` instruction provides PC-relative addressing for
globals, but only to *even* addresses, so other compilers make sure that
such globals are always 2-byte aligned.  In Clang, this is modeled with
`TargetInfo::MinGlobalAlign`, and `TargetOptions::min_global_align` now
serves the same purpose for rustc.

In Clang, the only targets that set this are SystemZ, Lanai, and NVPTX,
and the latter two don't have targets in rust master.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions