diff options
| author | bors <bors@rust-lang.org> | 2023-08-11 12:51:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-11 12:51:25 +0000 |
| commit | 6276e5ad143dab64c2175f09904e931d671c4a13 (patch) | |
| tree | bd907665fbdb85a84b07c7ccbec7474dbcaeaae2 /compiler/rustc_codegen_cranelift/src | |
| parent | d4fbaa6fded1e18a5a1b69642e13773719c1dedb (diff) | |
| parent | 9281ddc64423c967a5c12280a1a6b84773ca46a3 (diff) | |
| download | rust-6276e5ad143dab64c2175f09904e931d671c4a13.tar.gz rust-6276e5ad143dab64c2175f09904e931d671c4a13.zip | |
Auto merge of #3023 - RalfJung:gamma, r=RalfJung
add gamma function shims needs a rustup to fetch the new declarations in std
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/abi/mod.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/abi/mod.rs b/compiler/rustc_codegen_cranelift/src/abi/mod.rs index 2c038f22ca9..b7f56a2986c 100644 --- a/compiler/rustc_codegen_cranelift/src/abi/mod.rs +++ b/compiler/rustc_codegen_cranelift/src/abi/mod.rs @@ -48,7 +48,9 @@ pub(crate) fn conv_to_call_conv(sess: &Session, c: Conv, default_call_conv: Call default_call_conv } - Conv::X86Intr => sess.fatal("x86-interrupt call conv not yet implemented"), + Conv::X86Intr | Conv::RiscvInterrupt { .. } => { + sess.fatal(format!("interrupt call conv {c:?} not yet implemented")) + } Conv::ArmAapcs => sess.fatal("aapcs call conv not yet implemented"), Conv::CCmseNonSecureCall => { diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index ebd153cb71d..d01ded8abaa 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/src/lib.rs @@ -260,6 +260,13 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Arc<dyn isa::Tar flags_builder.set("enable_verifier", enable_verifier).unwrap(); flags_builder.set("regalloc_checker", enable_verifier).unwrap(); + let preserve_frame_pointer = sess.target.options.frame_pointer + != rustc_target::spec::FramePointer::MayOmit + || matches!(sess.opts.cg.force_frame_pointers, Some(true)); + if preserve_frame_pointer { + flags_builder.set("preserve_frame_pointers", "true").unwrap(); + } + let tls_model = match target_triple.binary_format { BinaryFormat::Elf => "elf_gd", BinaryFormat::Macho => "macho", |
