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(),

src/librustc_target/spec/armv6_unknown_freebsd.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: "freebsd".to_string(),
1313
target_env: "gnueabihf".to_string(),

src/librustc_target/spec/armv6_unknown_netbsd_eabihf.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: "netbsd".to_string(),
1414
target_env: "eabihf".to_string(),

src/librustc_target/spec/armv7_apple_ios.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:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".to_string(),
11+
data_layout: "e-m:o-p:32:32-Fi8-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".to_string(),
1212
arch: "arm".to_string(),
1313
target_os: "ios".to_string(),
1414
target_env: String::new(),

src/librustc_target/spec/armv7_linux_androideabi.rs

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

src/librustc_target/spec/armv7_unknown_cloudabi_eabihf.rs

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

src/librustc_target/spec/armv7_unknown_freebsd.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: "freebsd".to_string(),
1313
target_env: "gnueabihf".to_string(),

src/librustc_target/spec/armv7_unknown_linux_gnueabihf.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: "gnu".to_string(),

src/librustc_target/spec/armv7_unknown_linux_musleabihf.rs

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

src/librustc_target/spec/armv7_unknown_netbsd_eabihf.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: "netbsd".to_string(),
1313
target_env: "eabihf".to_string(),

src/librustc_target/spec/armv7r_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: "little".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/armv7r_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: "little".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/armv7s_apple_ios.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:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".to_string(),
11+
data_layout: "e-m:o-p:32:32-Fi8-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".to_string(),
1212
arch: "arm".to_string(),
1313
target_os: "ios".to_string(),
1414
target_env: String::new(),

src/librustc_target/spec/thumbv6m_none_eabi.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: "none".to_string(),
1414
target_env: String::new(),

src/librustc_target/spec/thumbv7a_pc_windows_msvc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn target() -> TargetResult {
2222
target_endian: "little".to_string(),
2323
target_pointer_width: "32".to_string(),
2424
target_c_int_width: "32".to_string(),
25-
data_layout: "e-m:w-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
25+
data_layout: "e-m:w-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2626
arch: "arm".to_string(),
2727
target_os: "windows".to_string(),
2828
target_env: "msvc".to_string(),

src/librustc_target/spec/thumbv7em_none_eabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn target() -> TargetResult {
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "32".to_string(),
1919
target_c_int_width: "32".to_string(),
20-
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
20+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2121
arch: "arm".to_string(),
2222
target_os: "none".to_string(),
2323
target_env: String::new(),

src/librustc_target/spec/thumbv7em_none_eabihf.rs

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

src/librustc_target/spec/thumbv7m_none_eabi.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: "none".to_string(),
1414
target_env: String::new(),

src/librustc_target/spec/thumbv7neon_linux_androideabi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
23+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2424
arch: "arm".to_string(),
2525
target_os: "android".to_string(),
2626
target_env: "".to_string(),

src/librustc_target/spec/thumbv7neon_unknown_linux_gnueabihf.rs

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

src/librustc_target/spec/thumbv8m_base_none_eabi.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: "none".to_string(),
1414
target_env: String::new(),

src/librustc_target/spec/thumbv8m_main_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: "little".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/thumbv8m_main_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: "little".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(),

0 commit comments

Comments
 (0)