Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2c997a6

Browse files
committedJan 19, 2024
Auto merge of rust-lang#116672 - maurer:128-align, r=nikic
LLVM 18 x86 data layout update With https://reviews.llvm.org/D86310 LLVM now has i128 aligned to 16-bytes on x86 based platforms. This will be in LLVM-18. This patch updates all our spec targets to be 16-byte aligned, and removes the alignment when speaking to older LLVM. This results in Rust overaligning things relative to LLVM on older LLVMs. See rust-lang#54341
2 parents 25f8d01 + 993baf5 commit 2c997a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+204
-85
lines changed
 

‎compiler/rustc_target/src/spec/targets/x86_64_unknown_haiku.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ pub fn target() -> Target {
1313
Target {
1414
llvm_target: "x86_64-unknown-haiku".into(),
1515
pointer_width: 64,
16-
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
17-
.into(),
16+
data_layout:
17+
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128".into(),
1818
arch: "x86_64".into(),
1919
options: base,
2020
}

‎compiler/rustc_target/src/spec/targets/x86_64_unknown_hermit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ pub fn target() -> Target {
55
llvm_target: "x86_64-unknown-hermit".into(),
66
pointer_width: 64,
77
arch: "x86_64".into(),
8-
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
9-
.into(),
8+
data_layout:
9+
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128".into(),
1010
options: TargetOptions {
1111
cpu: "x86-64".into(),
1212
features: "+rdrnd,+rdseed".into(),
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.