Skip to content

Commit 5324b42

Browse files
committed
Add function pointer alignment to ARM/Thumb data layout
1 parent 3170b62 commit 5324b42

32 files changed

+32
-32
lines changed

src/librustc_target/spec/arm_linux_androideabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ 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:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
14+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1515
arch: "arm".to_string(),
1616
target_os: "android".to_string(),
1717
target_env: String::new(),

src/librustc_target/spec/arm_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
11+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1212
arch: "arm".to_string(),
1313
target_os: "linux".to_string(),
1414
target_env: "gnu".to_string(),

src/librustc_target/spec/arm_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
11+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1212
arch: "arm".to_string(),
1313
target_os: "linux".to_string(),
1414
target_env: "gnu".to_string(),

src/librustc_target/spec/arm_unknown_linux_musleabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn target() -> TargetResult {
1515
target_endian: "little".to_string(),
1616
target_pointer_width: "32".to_string(),
1717
target_c_int_width: "32".to_string(),
18-
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
18+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1919
arch: "arm".to_string(),
2020
target_os: "linux".to_string(),
2121
target_env: "musl".to_string(),

src/librustc_target/spec/arm_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn target() -> TargetResult {
1515
target_endian: "little".to_string(),
1616
target_pointer_width: "32".to_string(),
1717
target_c_int_width: "32".to_string(),
18-
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
18+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1919
arch: "arm".to_string(),
2020
target_os: "linux".to_string(),
2121
target_env: "musl".to_string(),

src/librustc_target/spec/armebv7r_none_eabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn target() -> TargetResult {
99
target_endian: "big".to_string(),
1010
target_pointer_width: "32".to_string(),
1111
target_c_int_width: "32".to_string(),
12-
data_layout: "E-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
12+
data_layout: "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1313
arch: "arm".to_string(),
1414
target_os: "none".to_string(),
1515
target_env: "".to_string(),

src/librustc_target/spec/armebv7r_none_eabihf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn target() -> TargetResult {
99
target_endian: "big".to_string(),
1010
target_pointer_width: "32".to_string(),
1111
target_c_int_width: "32".to_string(),
12-
data_layout: "E-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
12+
data_layout: "E-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1313
arch: "arm".to_string(),
1414
target_os: "none".to_string(),
1515
target_env: String::new(),

src/librustc_target/spec/armv4t_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn target() -> TargetResult {
77
target_endian: "little".to_string(),
88
target_pointer_width: "32".to_string(),
99
target_c_int_width: "32".to_string(),
10-
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
10+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1111
arch: "arm".to_string(),
1212
target_os: "linux".to_string(),
1313
target_env: "gnu".to_string(),

src/librustc_target/spec/armv5te_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn target() -> TargetResult {
77
target_endian: "little".to_string(),
88
target_pointer_width: "32".to_string(),
99
target_c_int_width: "32".to_string(),
10-
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
10+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1111
arch: "arm".to_string(),
1212
target_os: "linux".to_string(),
1313
target_env: "gnu".to_string(),

src/librustc_target/spec/armv5te_unknown_linux_musleabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn target() -> TargetResult {
1010
target_endian: "little".to_string(),
1111
target_pointer_width: "32".to_string(),
1212
target_c_int_width: "32".to_string(),
13-
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
13+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
1414
arch: "arm".to_string(),
1515
target_os: "linux".to_string(),
1616
target_env: "musl".to_string(),

0 commit comments

Comments
 (0)