diff options
| author | Lokathor <zefria@gmail.com> | 2022-07-28 10:43:05 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-28 10:43:05 -0600 |
| commit | 9cf5b2d81c9641ebf06cd9d0652cec92b5692916 (patch) | |
| tree | 13088ea9739b4ea8f195736fc3897e060e7b0666 | |
| parent | 26e07879be269ba2f1b5f05fd34e45e4fcaf16b5 (diff) | |
| download | rust-9cf5b2d81c9641ebf06cd9d0652cec92b5692916.tar.gz rust-9cf5b2d81c9641ebf06cd9d0652cec92b5692916.zip | |
Update thumbv4t_none_eabi.rs
| -rw-r--r-- | compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs b/compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs index 11e89a84b74..8fed1b58eba 100644 --- a/compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs +++ b/compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs @@ -16,7 +16,7 @@ //! The default link script is very likely wrong, so you should use //! `-Clink-arg=-Tmy_script.ld` to override that with a correct linker script. -use crate::spec::{cvs, LinkerFlavor, PanicStrategy, RelocModel, Target, TargetOptions}; +use crate::spec::{cvs, LinkerFlavor, FramePointer, PanicStrategy, RelocModel, Target, TargetOptions}; pub fn target() -> Target { Target { @@ -53,6 +53,7 @@ pub fn target() -> Target { emit_debug_gdb_scripts: false, // suggested from thumb_base, with no-os gcc/clang use 8-bit enums c_enum_min_bits: 8, + frame_pointer: FramePointer::MayOmit, main_needs_argc_argv: false, @@ -60,7 +61,7 @@ pub fn target() -> Target { atomic_cas: false, has_thumb_interworking: true, - ..Default::default() + ..super::thumb_base::opts() }, } } |
