Skip to content

Commit 0776399

Browse files
committed
Make data-layout mandatory in target specs.
1 parent e8c0aeb commit 0776399

Some content is hidden

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

43 files changed

+73
-14
lines changed

src/librustc_back/target/aarch64_apple_ios.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "arm64-apple-ios".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "64".to_string(),
19+
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".to_string(),
1920
arch: "aarch64".to_string(),
2021
target_os: "ios".to_string(),
2122
target_env: "".to_string(),

src/librustc_back/target/aarch64_linux_android.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn target() -> Target {
1515
llvm_target: "aarch64-linux-android".to_string(),
1616
target_endian: "little".to_string(),
1717
target_pointer_width: "64".to_string(),
18+
data_layout: "e-m:e-i64:64-i128:128-n32:64-S128".to_string(),
1819
arch: "aarch64".to_string(),
1920
target_os: "android".to_string(),
2021
target_env: "".to_string(),

src/librustc_back/target/aarch64_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub fn target() -> Target {
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "64".to_string(),
1919
target_env: "gnu".to_string(),
20+
data_layout: "e-m:e-i64:64-i128:128-n32:64-S128".to_string(),
2021
arch: "aarch64".to_string(),
2122
target_os: "linux".to_string(),
2223
target_vendor: "unknown".to_string(),

src/librustc_back/target/arm_linux_androideabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> Target {
1818
llvm_target: "arm-linux-androideabi".to_string(),
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "32".to_string(),
21+
data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
2122
arch: "arm".to_string(),
2223
target_os: "android".to_string(),
2324
target_env: "gnu".to_string(),

src/librustc_back/target/arm_unknown_linux_gnueabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "arm-unknown-linux-gnueabi".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_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(),
1920
arch: "arm".to_string(),
2021
target_os: "linux".to_string(),
2122
target_env: "gnueabi".to_string(),

src/librustc_back/target/arm_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "arm-unknown-linux-gnueabihf".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_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(),
1920
arch: "arm".to_string(),
2021
target_os: "linux".to_string(),
2122
target_env: "gnueabihf".to_string(),

src/librustc_back/target/armv7_apple_ios.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "armv7-apple-ios".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "32".to_string(),
19+
data_layout: "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".to_string(),
1920
arch: "arm".to_string(),
2021
target_os: "ios".to_string(),
2122
target_env: "".to_string(),

src/librustc_back/target/armv7_unknown_linux_gnueabihf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "armv7-unknown-linux-gnueabihf".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_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(),
1920
arch: "arm".to_string(),
2021
target_os: "linux".to_string(),
2122
target_env: "gnueabihf".to_string(),

src/librustc_back/target/armv7s_apple_ios.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "armv7s-apple-ios".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "32".to_string(),
19+
data_layout: "e-m:o-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".to_string(),
1920
arch: "arm".to_string(),
2021
target_os: "ios".to_string(),
2122
target_env: "".to_string(),

src/librustc_back/target/asmjs_unknown_emscripten.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub fn target() -> Target {
3131
target_os: "emscripten".to_string(),
3232
target_env: "".to_string(),
3333
target_vendor: "unknown".to_string(),
34+
data_layout: "e-p:32:32-i64:64-v128:32:128-n32-S128".to_string(),
3435
arch: "asmjs".to_string(),
3536
options: opts,
3637
}

src/librustc_back/target/i386_apple_ios.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "i386-apple-ios".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "32".to_string(),
19+
data_layout: "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128".to_string(),
1920
arch: "x86".to_string(),
2021
target_os: "ios".to_string(),
2122
target_env: "".to_string(),

src/librustc_back/target/i686_apple_darwin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "i686-apple-darwin".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "32".to_string(),
22+
data_layout: "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128".to_string(),
2223
arch: "x86".to_string(),
2324
target_os: "macos".to_string(),
2425
target_env: "".to_string(),

src/librustc_back/target/i686_linux_android.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> Target {
1818
llvm_target: "i686-linux-android".to_string(),
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "32".to_string(),
21+
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
2122
arch: "x86".to_string(),
2223
target_os: "android".to_string(),
2324
target_env: "gnu".to_string(),

src/librustc_back/target/i686_pc_windows_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub fn target() -> Target {
2222
llvm_target: "i686-pc-windows-gnu".to_string(),
2323
target_endian: "little".to_string(),
2424
target_pointer_width: "32".to_string(),
25+
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
2526
arch: "x86".to_string(),
2627
target_os: "windows".to_string(),
2728
target_env: "gnu".to_string(),

src/librustc_back/target/i686_pc_windows_msvc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub fn target() -> Target {
2727
llvm_target: "i686-pc-windows-msvc".to_string(),
2828
target_endian: "little".to_string(),
2929
target_pointer_width: "32".to_string(),
30+
data_layout: "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32".to_string(),
3031
arch: "x86".to_string(),
3132
target_os: "windows".to_string(),
3233
target_env: "msvc".to_string(),

src/librustc_back/target/i686_unknown_dragonfly.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "i686-unknown-dragonfly".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "32".to_string(),
22+
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
2223
arch: "x86".to_string(),
2324
target_os: "dragonfly".to_string(),
2425
target_env: "".to_string(),

src/librustc_back/target/i686_unknown_freebsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "i686-unknown-freebsd".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "32".to_string(),
22+
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
2223
arch: "x86".to_string(),
2324
target_os: "freebsd".to_string(),
2425
target_env: "".to_string(),

src/librustc_back/target/i686_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "i686-unknown-linux-gnu".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "32".to_string(),
22+
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
2223
arch: "x86".to_string(),
2324
target_os: "linux".to_string(),
2425
target_env: "gnu".to_string(),

src/librustc_back/target/i686_unknown_linux_musl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub fn target() -> Target {
3737
llvm_target: "i686-unknown-linux-musl".to_string(),
3838
target_endian: "little".to_string(),
3939
target_pointer_width: "32".to_string(),
40+
data_layout: "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128".to_string(),
4041
arch: "x86".to_string(),
4142
target_os: "linux".to_string(),
4243
target_env: "musl".to_string(),

src/librustc_back/target/le32_unknown_nacl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub fn target() -> Target {
3434
target_os: "nacl".to_string(),
3535
target_env: "newlib".to_string(),
3636
target_vendor: "unknown".to_string(),
37+
data_layout: "e-i64:64:64-p:32:32:32-v128:32:32".to_string(),
3738
arch: "le32".to_string(),
3839
options: opts,
3940
}

src/librustc_back/target/mips_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn target() -> Target {
1515
llvm_target: "mips-unknown-linux-gnu".to_string(),
1616
target_endian: "big".to_string(),
1717
target_pointer_width: "32".to_string(),
18+
data_layout: "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".to_string(),
1819
arch: "mips".to_string(),
1920
target_os: "linux".to_string(),
2021
target_env: "gnu".to_string(),

src/librustc_back/target/mips_unknown_linux_musl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn target() -> Target {
1515
llvm_target: "mips-unknown-linux-musl".to_string(),
1616
target_endian: "big".to_string(),
1717
target_pointer_width: "32".to_string(),
18+
data_layout: "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".to_string(),
1819
arch: "mips".to_string(),
1920
target_os: "linux".to_string(),
2021
target_env: "musl".to_string(),

src/librustc_back/target/mipsel_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn target() -> Target {
1515
llvm_target: "mipsel-unknown-linux-gnu".to_string(),
1616
target_endian: "little".to_string(),
1717
target_pointer_width: "32".to_string(),
18+
data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".to_string(),
1819
arch: "mips".to_string(),
1920
target_os: "linux".to_string(),
2021
target_env: "gnu".to_string(),

src/librustc_back/target/mipsel_unknown_linux_musl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn target() -> Target {
1515
llvm_target: "mipsel-unknown-linux-musl".to_string(),
1616
target_endian: "little".to_string(),
1717
target_pointer_width: "32".to_string(),
18+
data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".to_string(),
1819
arch: "mips".to_string(),
1920
target_os: "linux".to_string(),
2021
target_env: "musl".to_string(),

src/librustc_back/target/mod.rs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
//! this module defines the format the JSON file should take, though each
4040
//! underscore in the field names should be replaced with a hyphen (`-`) in the
4141
//! JSON file. Some fields are required in every target specification, such as
42-
//! `llvm-target`, `target-endian`, `target-pointer-width`, `arch`, and
43-
//! `os`. In general, options passed to rustc with `-C` override the target's
44-
//! settings, though `target-feature` and `link-args` will *add* to the list
45-
//! specified by the target, rather than replace.
42+
//! `llvm-target`, `target-endian`, `target-pointer-width`, `data-layout`,
43+
//! `arch`, and `os`. In general, options passed to rustc with `-C` override
44+
//! the target's settings, though `target-feature` and `link-args` will *add*
45+
//! to the list specified by the target, rather than replace.
4646
4747
use serialize::json::Json;
4848
use std::default::Default;
@@ -75,7 +75,8 @@ macro_rules! supported_targets {
7575
if false { }
7676
$(
7777
else if target == stringify!($module) {
78-
let t = $module::target();
78+
let mut t = $module::target();
79+
t.options.is_builtin = true;
7980
debug!("Got builtin target: {:?}", t);
8081
return Some(t);
8182
}
@@ -161,6 +162,8 @@ pub struct Target {
161162
/// Architecture to use for ABI considerations. Valid options: "x86",
162163
/// "x86_64", "arm", "aarch64", "mips", "powerpc", and "powerpc64".
163164
pub arch: String,
165+
/// [Data layout](http://llvm.org/docs/LangRef.html#data-layout) to pass to LLVM.
166+
pub data_layout: String,
164167
/// Optional settings with defaults.
165168
pub options: TargetOptions,
166169
}
@@ -171,8 +174,9 @@ pub struct Target {
171174
/// these try to take "minimal defaults" that don't assume anything about the runtime they run in.
172175
#[derive(Clone, Debug)]
173176
pub struct TargetOptions {
174-
/// [Data layout](http://llvm.org/docs/LangRef.html#data-layout) to pass to LLVM.
175-
pub data_layout: Option<String>,
177+
/// Whether the target is built-in or loaded from a custom target specification.
178+
pub is_builtin: bool,
179+
176180
/// Linker to invoke. Defaults to "cc".
177181
pub linker: String,
178182
/// Archive utility to use when managing archives. Defaults to "ar".
@@ -293,7 +297,7 @@ impl Default for TargetOptions {
293297
/// incomplete, and if used for compilation, will certainly not work.
294298
fn default() -> TargetOptions {
295299
TargetOptions {
296-
data_layout: None,
300+
is_builtin: false,
297301
linker: option_env!("CFG_DEFAULT_LINKER").unwrap_or("cc").to_string(),
298302
ar: option_env!("CFG_DEFAULT_AR").unwrap_or("ar").to_string(),
299303
pre_link_args: Vec::new(),
@@ -378,6 +382,7 @@ impl Target {
378382
llvm_target: get_req_field("llvm-target"),
379383
target_endian: get_req_field("target-endian"),
380384
target_pointer_width: get_req_field("target-pointer-width"),
385+
data_layout: get_req_field("data-layout"),
381386
arch: get_req_field("arch"),
382387
target_os: get_req_field("os"),
383388
target_env: get_opt_field("env", ""),
@@ -426,7 +431,6 @@ impl Target {
426431
key!(staticlib_prefix);
427432
key!(staticlib_suffix);
428433
key!(features);
429-
key!(data_layout, optional);
430434
key!(dynamic_linking, bool);
431435
key!(executables, bool);
432436
key!(disable_redzone, bool);

src/librustc_back/target/powerpc64_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "powerpc64-unknown-linux-gnu".to_string(),
2020
target_endian: "big".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "E-m:e-i64:64-n32:64".to_string(),
2223
arch: "powerpc64".to_string(),
2324
target_os: "linux".to_string(),
2425
target_env: "gnu".to_string(),

src/librustc_back/target/powerpc64le_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "powerpc64le-unknown-linux-gnu".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:e-i64:64-n32:64".to_string(),
2223
arch: "powerpc64".to_string(),
2324
target_os: "linux".to_string(),
2425
target_env: "gnu".to_string(),

src/librustc_back/target/powerpc_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> Target {
1818
llvm_target: "powerpc-unknown-linux-gnu".to_string(),
1919
target_endian: "big".to_string(),
2020
target_pointer_width: "32".to_string(),
21+
data_layout: "E-m:e-p:32:32-i64:64-n32".to_string(),
2122
arch: "powerpc".to_string(),
2223
target_os: "linux".to_string(),
2324
target_env: "gnu".to_string(),

src/librustc_back/target/x86_64_apple_darwin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub fn target() -> Target {
2020
llvm_target: "x86_64-apple-darwin".to_string(),
2121
target_endian: "little".to_string(),
2222
target_pointer_width: "64".to_string(),
23+
data_layout: "e-m:o-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2324
arch: "x86_64".to_string(),
2425
target_os: "macos".to_string(),
2526
target_env: "".to_string(),

src/librustc_back/target/x86_64_apple_ios.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
llvm_target: "x86_64-apple-ios".to_string(),
1717
target_endian: "little".to_string(),
1818
target_pointer_width: "64".to_string(),
19+
data_layout: "e-m:o-i64:64-f80:128-n8:16:32:64-S128".to_string(),
1920
arch: "x86_64".to_string(),
2021
target_os: "ios".to_string(),
2122
target_env: "".to_string(),

src/librustc_back/target/x86_64_pc_windows_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "x86_64-pc-windows-gnu".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:w-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "windows".to_string(),
2425
target_env: "gnu".to_string(),

src/librustc_back/target/x86_64_pc_windows_msvc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> Target {
1818
llvm_target: "x86_64-pc-windows-msvc".to_string(),
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "64".to_string(),
21+
data_layout: "e-m:w-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2122
arch: "x86_64".to_string(),
2223
target_os: "windows".to_string(),
2324
target_env: "msvc".to_string(),

src/librustc_back/target/x86_64_rumprun_netbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub fn target() -> Target {
2727
llvm_target: "x86_64-rumprun-netbsd".to_string(),
2828
target_endian: "little".to_string(),
2929
target_pointer_width: "64".to_string(),
30+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
3031
arch: "x86_64".to_string(),
3132
target_os: "netbsd".to_string(),
3233
target_env: "".to_string(),

src/librustc_back/target/x86_64_sun_solaris.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "x86_64-pc-solaris".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "solaris".to_string(),
2425
target_env: "".to_string(),

src/librustc_back/target/x86_64_unknown_bitrig.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> Target {
1818
llvm_target: "x86_64-unknown-bitrig".to_string(),
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "64".to_string(),
21+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2122
arch: "x86_64".to_string(),
2223
target_os: "bitrig".to_string(),
2324
target_env: "".to_string(),

src/librustc_back/target/x86_64_unknown_dragonfly.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "x86_64-unknown-dragonfly".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "dragonfly".to_string(),
2425
target_env: "".to_string(),

src/librustc_back/target/x86_64_unknown_freebsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "x86_64-unknown-freebsd".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "freebsd".to_string(),
2425
target_env: "".to_string(),

src/librustc_back/target/x86_64_unknown_linux_gnu.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "x86_64-unknown-linux-gnu".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "linux".to_string(),
2425
target_env: "gnu".to_string(),

src/librustc_back/target/x86_64_unknown_linux_musl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ pub fn target() -> Target {
7373
llvm_target: "x86_64-unknown-linux-musl".to_string(),
7474
target_endian: "little".to_string(),
7575
target_pointer_width: "64".to_string(),
76+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
7677
arch: "x86_64".to_string(),
7778
target_os: "linux".to_string(),
7879
target_env: "musl".to_string(),

src/librustc_back/target/x86_64_unknown_netbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub fn target() -> Target {
1818
llvm_target: "x86_64-unknown-netbsd".to_string(),
1919
target_endian: "little".to_string(),
2020
target_pointer_width: "64".to_string(),
21+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2122
arch: "x86_64".to_string(),
2223
target_os: "netbsd".to_string(),
2324
target_env: "".to_string(),

src/librustc_back/target/x86_64_unknown_openbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub fn target() -> Target {
1919
llvm_target: "x86_64-unknown-openbsd".to_string(),
2020
target_endian: "little".to_string(),
2121
target_pointer_width: "64".to_string(),
22+
data_layout: "e-m:e-i64:64-f80:128-n8:16:32:64-S128".to_string(),
2223
arch: "x86_64".to_string(),
2324
target_os: "openbsd".to_string(),
2425
target_env: "".to_string(),

0 commit comments

Comments
 (0)