Skip to content

Commit e82febc

Browse files
committed
Auto merge of #67900 - nikic:prepare-llvm-10, r=nagisa
Prepare for LLVM 10 upgrade Split off from #67759, this just adds the necessary compatibility bits and updates codegen tests, without performing the actual LLVM upgrade. r? @alexcrichton
2 parents 3ebcfa1 + c9e996f commit e82febc

File tree

66 files changed

+218
-991
lines changed

Some content is hidden

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

66 files changed

+218
-991
lines changed

src/libprofiler_builtins/build.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ fn main() {
2121
"InstrProfilingPlatformLinux.c",
2222
"InstrProfilingPlatformOther.c",
2323
"InstrProfilingPlatformWindows.c",
24-
"InstrProfilingRuntime.cc",
2524
"InstrProfilingUtil.c",
2625
"InstrProfilingValue.c",
2726
"InstrProfilingWriter.c",
@@ -68,10 +67,17 @@ fn main() {
6867
let root = env::var_os("RUST_COMPILER_RT_ROOT").unwrap();
6968
let root = Path::new(&root);
7069

70+
let src_root = root.join("lib").join("profile");
7171
for src in profile_sources {
72-
cfg.file(root.join("lib").join("profile").join(src));
72+
cfg.file(src_root.join(src));
7373
}
7474

75+
// The file was renamed in LLVM 10.
76+
let old_runtime_path = src_root.join("InstrProfilingRuntime.cc");
77+
let new_runtime_path = src_root.join("InstrProfilingRuntime.cpp");
78+
cfg.file(if old_runtime_path.exists() { old_runtime_path } else { new_runtime_path });
79+
80+
cfg.include(root.join("include"));
7581
cfg.warnings(false);
7682
cfg.compile("profiler-rt");
7783
}

src/librustc_codegen_llvm/context.rs

+9
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ fn strip_function_ptr_alignment(data_layout: String) -> String {
143143
data_layout.replace("-Fi8-", "-")
144144
}
145145

146+
fn strip_x86_address_spaces(data_layout: String) -> String {
147+
data_layout.replace("-p270:32:32-p271:32:32-p272:64:64-", "-")
148+
}
149+
146150
pub unsafe fn create_module(
147151
tcx: TyCtxt<'_>,
148152
llcx: &'ll llvm::Context,
@@ -156,6 +160,11 @@ pub unsafe fn create_module(
156160
if llvm_util::get_major_version() < 9 {
157161
target_data_layout = strip_function_ptr_alignment(target_data_layout);
158162
}
163+
if llvm_util::get_major_version() < 10 {
164+
if sess.target.target.arch == "x86" || sess.target.target.arch == "x86_64" {
165+
target_data_layout = strip_x86_address_spaces(target_data_layout);
166+
}
167+
}
159168

160169
// Ensure the data-layout values hardcoded remain the defaults.
161170
if sess.target.target.options.is_builtin {

src/librustc_target/spec/i386_apple_ios.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ pub fn target() -> TargetResult {
88
target_endian: "little".to_string(),
99
target_pointer_width: "32".to_string(),
1010
target_c_int_width: "32".to_string(),
11-
data_layout: "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128".to_string(),
11+
data_layout: "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
12+
f64:32:64-f80:128-n8:16:32-S128"
13+
.to_string(),
1214
arch: "x86".to_string(),
1315
target_os: "ios".to_string(),
1416
target_env: String::new(),

src/librustc_target/spec/i686_apple_darwin.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ pub fn target() -> TargetResult {
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "32".to_string(),
2222
target_c_int_width: "32".to_string(),
23-
data_layout: "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128".to_string(),
23+
data_layout: "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
24+
f64:32:64-f80:128-n8:16:32-S128"
25+
.to_string(),
2426
arch: "x86".to_string(),
2527
target_os: "macos".to_string(),
2628
target_env: String::new(),

src/librustc_target/spec/i686_linux_android.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ pub fn target() -> TargetResult {
1818
target_endian: "little".to_string(),
1919
target_pointer_width: "32".to_string(),
2020
target_c_int_width: "32".to_string(),
21-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
21+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
22+
f64:32:64-f80:32-n8:16:32-S128"
23+
.to_string(),
2224
arch: "x86".to_string(),
2325
target_os: "android".to_string(),
2426
target_env: String::new(),

src/librustc_target/spec/i686_pc_windows_gnu.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ pub fn target() -> TargetResult {
1818
target_endian: "little".to_string(),
1919
target_pointer_width: "32".to_string(),
2020
target_c_int_width: "32".to_string(),
21-
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
21+
data_layout: "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
22+
i64:64-f80:32-n8:16:32-a:0:32-S32"
23+
.to_string(),
2224
arch: "x86".to_string(),
2325
target_os: "windows".to_string(),
2426
target_env: "gnu".to_string(),

src/librustc_target/spec/i686_pc_windows_msvc.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ pub fn target() -> TargetResult {
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "32".to_string(),
2121
target_c_int_width: "32".to_string(),
22-
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
22+
data_layout: "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
23+
i64:64-f80:32-n8:16:32-a:0:32-S32"
24+
.to_string(),
2325
arch: "x86".to_string(),
2426
target_os: "windows".to_string(),
2527
target_env: "msvc".to_string(),

src/librustc_target/spec/i686_unknown_cloudabi.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ pub fn target() -> TargetResult {
1313
target_endian: "little".to_string(),
1414
target_pointer_width: "32".to_string(),
1515
target_c_int_width: "32".to_string(),
16-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
16+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
17+
f64:32:64-f80:32-n8:16:32-S128"
18+
.to_string(),
1719
arch: "x86".to_string(),
1820
target_os: "cloudabi".to_string(),
1921
target_env: String::new(),

src/librustc_target/spec/i686_unknown_freebsd.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "32".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
15+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
16+
f64:32:64-f80:32-n8:16:32-S128"
17+
.to_string(),
1618
arch: "x86".to_string(),
1719
target_os: "freebsd".to_string(),
1820
target_env: String::new(),

src/librustc_target/spec/i686_unknown_haiku.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "32".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
15+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
16+
f64:32:64-f80:32-n8:16:32-S128"
17+
.to_string(),
1618
arch: "x86".to_string(),
1719
target_os: "haiku".to_string(),
1820
target_env: String::new(),

src/librustc_target/spec/i686_unknown_linux_gnu.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "32".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
15+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
16+
f64:32:64-f80:32-n8:16:32-S128"
17+
.to_string(),
1618
arch: "x86".to_string(),
1719
target_os: "linux".to_string(),
1820
target_env: "gnu".to_string(),

src/librustc_target/spec/i686_unknown_linux_musl.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ pub fn target() -> TargetResult {
2727
target_endian: "little".to_string(),
2828
target_pointer_width: "32".to_string(),
2929
target_c_int_width: "32".to_string(),
30-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
30+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
31+
f64:32:64-f80:32-n8:16:32-S128"
32+
.to_string(),
3133
arch: "x86".to_string(),
3234
target_os: "linux".to_string(),
3335
target_env: "musl".to_string(),

src/librustc_target/spec/i686_unknown_netbsd.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "32".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
15+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
16+
f64:32:64-f80:32-n8:16:32-S128"
17+
.to_string(),
1618
arch: "x86".to_string(),
1719
target_os: "netbsd".to_string(),
1820
target_env: String::new(),

src/librustc_target/spec/i686_unknown_openbsd.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ pub fn target() -> TargetResult {
1313
target_endian: "little".to_string(),
1414
target_pointer_width: "32".to_string(),
1515
target_c_int_width: "32".to_string(),
16-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
16+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
17+
f64:32:64-f80:32-n8:16:32-S128"
18+
.to_string(),
1719
arch: "x86".to_string(),
1820
target_os: "openbsd".to_string(),
1921
target_env: String::new(),

src/librustc_target/spec/i686_unknown_uefi.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ pub fn target() -> TargetResult {
8686
target_endian: "little".to_string(),
8787
target_pointer_width: "32".to_string(),
8888
target_c_int_width: "32".to_string(),
89-
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
89+
data_layout: "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
90+
i64:64-f80:32-n8:16:32-a:0:32-S32"
91+
.to_string(),
9092
target_os: "uefi".to_string(),
9193
target_env: "".to_string(),
9294
target_vendor: "unknown".to_string(),

src/librustc_target/spec/i686_uwp_windows_gnu.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ pub fn target() -> TargetResult {
1818
target_endian: "little".to_string(),
1919
target_pointer_width: "32".to_string(),
2020
target_c_int_width: "32".to_string(),
21-
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
21+
data_layout: "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
22+
i64:64-f80:32-n8:16:32-a:0:32-S32"
23+
.to_string(),
2224
arch: "x86".to_string(),
2325
target_os: "windows".to_string(),
2426
target_env: "gnu".to_string(),

src/librustc_target/spec/i686_uwp_windows_msvc.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ pub fn target() -> TargetResult {
1111
target_endian: "little".to_string(),
1212
target_pointer_width: "32".to_string(),
1313
target_c_int_width: "32".to_string(),
14-
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
14+
data_layout: "e-m:x-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
15+
i64:64-f80:32-n8:16:32-a:0:32-S32"
16+
.to_string(),
1517
arch: "x86".to_string(),
1618
target_os: "windows".to_string(),
1719
target_env: "msvc".to_string(),

src/librustc_target/spec/i686_wrs_vxworks.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "32".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
15+
data_layout: "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
16+
f64:32:64-f80:32-n8:16:32-S128"
17+
.to_string(),
1618
arch: "x86".to_string(),
1719
target_os: "vxworks".to_string(),
1820
target_env: "gnu".to_string(),

src/librustc_target/spec/x86_64_apple_darwin.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ pub fn target() -> TargetResult {
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
2222
target_c_int_width: "32".to_string(),
23-
data_layout: "e-m:o-i64:64-f80:128-n8:16:32:64-S128".to_string(),
23+
data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
24+
.to_string(),
2425
arch: arch.to_string(),
2526
target_os: "macos".to_string(),
2627
target_env: String::new(),

src/librustc_target/spec/x86_64_apple_ios.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ pub fn target() -> TargetResult {
88
target_endian: "little".to_string(),
99
target_pointer_width: "64".to_string(),
1010
target_c_int_width: "32".to_string(),
11-
data_layout: "e-m:o-i64:64-f80:128-n8:16:32:64-S128".to_string(),
11+
data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12+
.to_string(),
1213
arch: "x86_64".to_string(),
1314
target_os: "ios".to_string(),
1415
target_env: String::new(),

src/librustc_target/spec/x86_64_apple_ios_macabi.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ pub fn target() -> TargetResult {
88
target_endian: "little".to_string(),
99
target_pointer_width: "64".to_string(),
1010
target_c_int_width: "32".to_string(),
11-
data_layout: "e-m:o-i64:64-f80:128-n8:16:32:64-S128".to_string(),
11+
data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12+
.to_string(),
1213
arch: "x86_64".to_string(),
1314
target_os: "ios".to_string(),
1415
target_env: String::new(),

src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ pub fn target() -> Result<Target, String> {
8181
target_os: "unknown".into(),
8282
target_env: "sgx".into(),
8383
target_vendor: "fortanix".into(),
84-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".into(),
84+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
85+
.into(),
8586
arch: "x86_64".into(),
8687
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
8788
options: opts,

src/librustc_target/spec/x86_64_fuchsia.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ pub fn target() -> TargetResult {
1111
target_endian: "little".to_string(),
1212
target_pointer_width: "64".to_string(),
1313
target_c_int_width: "32".to_string(),
14-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
14+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15+
.to_string(),
1516
arch: "x86_64".to_string(),
1617
target_os: "fuchsia".to_string(),
1718
target_env: String::new(),

src/librustc_target/spec/x86_64_linux_android.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub fn target() -> TargetResult {
1414
target_endian: "little".to_string(),
1515
target_pointer_width: "64".to_string(),
1616
target_c_int_width: "32".to_string(),
17-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
17+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
18+
.to_string(),
1819
arch: "x86_64".to_string(),
1920
target_os: "android".to_string(),
2021
target_env: String::new(),

src/librustc_target/spec/x86_64_linux_kernel.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ pub fn target() -> TargetResult {
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "64".to_string(),
2121
target_c_int_width: "32".to_string(),
22-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
22+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
23+
.to_string(),
2324
target_os: "none".to_string(),
2425
target_env: "gnu".to_string(),
2526
target_vendor: "unknown".to_string(),

src/librustc_target/spec/x86_64_pc_windows_gnu.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ pub fn target() -> TargetResult {
1111
target_endian: "little".to_string(),
1212
target_pointer_width: "64".to_string(),
1313
target_c_int_width: "32".to_string(),
14-
data_layout: "e-m:w-i64:64-f80:128-n8:16:32:64-S128".to_string(),
14+
data_layout: "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15+
.to_string(),
1516
arch: "x86_64".to_string(),
1617
target_os: "windows".to_string(),
1718
target_env: "gnu".to_string(),

src/librustc_target/spec/x86_64_pc_windows_msvc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ pub fn target() -> TargetResult {
1111
target_endian: "little".to_string(),
1212
target_pointer_width: "64".to_string(),
1313
target_c_int_width: "32".to_string(),
14-
data_layout: "e-m:w-i64:64-f80:128-n8:16:32:64-S128".to_string(),
14+
data_layout: "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15+
.to_string(),
1516
arch: "x86_64".to_string(),
1617
target_os: "windows".to_string(),
1718
target_env: "msvc".to_string(),

src/librustc_target/spec/x86_64_rumprun_netbsd.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ pub fn target() -> TargetResult {
1818
target_endian: "little".to_string(),
1919
target_pointer_width: "64".to_string(),
2020
target_c_int_width: "32".to_string(),
21-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
21+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
22+
.to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "netbsd".to_string(),
2425
target_env: String::new(),

src/librustc_target/spec/x86_64_sun_solaris.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "64".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
15+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
16+
.to_string(),
1617
arch: "x86_64".to_string(),
1718
target_os: "solaris".to_string(),
1819
target_env: String::new(),

src/librustc_target/spec/x86_64_unknown_cloudabi.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ pub fn target() -> TargetResult {
1313
target_endian: "little".to_string(),
1414
target_pointer_width: "64".to_string(),
1515
target_c_int_width: "32".to_string(),
16-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
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+
.to_string(),
1718
arch: "x86_64".to_string(),
1819
target_os: "cloudabi".to_string(),
1920
target_env: String::new(),

src/librustc_target/spec/x86_64_unknown_dragonfly.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "64".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
15+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
16+
.to_string(),
1617
arch: "x86_64".to_string(),
1718
target_os: "dragonfly".to_string(),
1819
target_env: String::new(),

src/librustc_target/spec/x86_64_unknown_freebsd.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "64".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
15+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
16+
.to_string(),
1617
arch: "x86_64".to_string(),
1718
target_os: "freebsd".to_string(),
1819
target_env: String::new(),

src/librustc_target/spec/x86_64_unknown_haiku.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub fn target() -> TargetResult {
1414
target_endian: "little".to_string(),
1515
target_pointer_width: "64".to_string(),
1616
target_c_int_width: "32".to_string(),
17-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
17+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
18+
.to_string(),
1819
arch: "x86_64".to_string(),
1920
target_os: "haiku".to_string(),
2021
target_env: String::new(),

src/librustc_target/spec/x86_64_unknown_hermit.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub fn target() -> TargetResult {
1212
target_endian: "little".to_string(),
1313
target_pointer_width: "64".to_string(),
1414
target_c_int_width: "32".to_string(),
15-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
15+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
16+
.to_string(),
1617
arch: "x86_64".to_string(),
1718
target_os: "hermit".to_string(),
1819
target_env: String::new(),

src/librustc_target/spec/x86_64_unknown_hermit_kernel.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ pub fn target() -> TargetResult {
1414
target_endian: "little".to_string(),
1515
target_pointer_width: "64".to_string(),
1616
target_c_int_width: "32".to_string(),
17-
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
17+
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
18+
.to_string(),
1819
arch: "x86_64".to_string(),
1920
target_os: "hermit".to_string(),
2021
target_env: String::new(),

0 commit comments

Comments
 (0)