Skip to content

Commit 8b19922

Browse files
committed
Update data layouts to include new X86 address spaces
1 parent c6a7751 commit 8b19922

Some content is hidden

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

44 files changed

+105
-44
lines changed

src/librustc_target/spec/i386_apple_ios.rs

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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(),

0 commit comments

Comments
 (0)