Skip to content

Commit 9cf5b2d

Browse files
authored
Update thumbv4t_none_eabi.rs
1 parent 26e0787 commit 9cf5b2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/rustc_target/src/spec/thumbv4t_none_eabi.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! The default link script is very likely wrong, so you should use
1717
//! `-Clink-arg=-Tmy_script.ld` to override that with a correct linker script.
1818
19-
use crate::spec::{cvs, LinkerFlavor, PanicStrategy, RelocModel, Target, TargetOptions};
19+
use crate::spec::{cvs, LinkerFlavor, FramePointer, PanicStrategy, RelocModel, Target, TargetOptions};
2020

2121
pub fn target() -> Target {
2222
Target {
@@ -53,14 +53,15 @@ pub fn target() -> Target {
5353
emit_debug_gdb_scripts: false,
5454
// suggested from thumb_base, with no-os gcc/clang use 8-bit enums
5555
c_enum_min_bits: 8,
56+
frame_pointer: FramePointer::MayOmit,
5657

5758
main_needs_argc_argv: false,
5859

5960
// don't have atomic compare-and-swap
6061
atomic_cas: false,
6162
has_thumb_interworking: true,
6263

63-
..Default::default()
64+
..super::thumb_base::opts()
6465
},
6566
}
6667
}

0 commit comments

Comments
 (0)