]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_target/src/spec/thumb_base.rs
Rollup merge of #86685 - RalfJung:alloc-mut, r=oli-obk
[rust.git] / compiler / rustc_target / src / spec / thumb_base.rs
index ec24807fec4ea407e6ef5aed01f7d6fd1d8046cf..fbe4dd5b501801250031909865b2d6dd86b36f96 100644 (file)
@@ -27,7 +27,8 @@
 // differentiate these targets from our other `arm(v7)-*-*-gnueabi(hf)` targets in the context of
 // build scripts / gcc flags.
 
-use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel, TargetOptions};
+use crate::spec::TargetOptions;
+use crate::spec::{FramePointer, LinkerFlavor, LldFlavor, PanicStrategy, RelocModel};
 
 pub fn opts() -> TargetOptions {
     // See rust-lang/rfcs#1645 for a discussion about these defaults
@@ -52,7 +53,7 @@ pub fn opts() -> TargetOptions {
         emit_debug_gdb_scripts: false,
         // LLVM is eager to trash the link register when calling `noreturn` functions, which
         // breaks debugging. Preserve LR by default to prevent that from happening.
-        eliminate_frame_pointer: false,
+        frame_pointer: FramePointer::Always,
         ..Default::default()
     }
 }