diff options
| author | Josh Stone <jistone@redhat.com> | 2017-09-08 14:49:51 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2017-09-08 14:49:51 -0700 |
| commit | 95a5a0ed16171cfab039c3b59f45a6e4a93075fa (patch) | |
| tree | f860f3df7ee187b0d9ab738c7b0f3c128c1712dd /src/rustllvm/RustWrapper.cpp | |
| parent | dead08cb331343b84564628b139b657f93548320 (diff) | |
| download | rust-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
