Skip to content

Commit ac14fb7

Browse files
committed
Switch rtems target to panic unwind
1 parent f5d1857 commit ac14fb7

File tree

6 files changed

+3
-12
lines changed

6 files changed

+3
-12
lines changed

compiler/rustc_target/src/spec/targets/armv7_rtems_eabihf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub(crate) fn target() -> Target {
2020
linker_flavor: LinkerFlavor::Gnu(Cc::Yes, Lld::No),
2121
linker: None,
2222
relocation_model: RelocModel::Static,
23-
panic_strategy: PanicStrategy::Abort,
23+
panic_strategy: PanicStrategy::Unwind,
2424
features: "+thumb2,+neon,+vfp3".into(),
2525
max_atomic_width: Some(64),
2626
emit_debug_gdb_scripts: false,

library/panic_unwind/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ libc = { version = "0.2", default-features = false }
2323

2424
[lints.rust.unexpected_cfgs]
2525
level = "warn"
26-
check-cfg = [
27-
# #[cfg(bootstrap)] rtems
28-
'cfg(target_os, values("rtems"))',
29-
]

library/panic_unwind/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cfg_if::cfg_if! {
4646
target_os = "psp",
4747
target_os = "xous",
4848
target_os = "solid_asp3",
49-
all(target_family = "unix", not(any(target_os = "espidf", target_os = "rtems", target_os = "nuttx"))),
49+
all(target_family = "unix", not(any(target_os = "espidf", target_os = "nuttx"))),
5050
all(target_vendor = "fortanix", target_env = "sgx"),
5151
target_family = "wasm",
5252
))] {

library/std/src/sys/personality/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cfg_if::cfg_if! {
3131
target_os = "psp",
3232
target_os = "xous",
3333
target_os = "solid_asp3",
34-
all(target_family = "unix", not(target_os = "espidf"), not(target_os = "l4re"), not(target_os = "rtems"), not(target_os = "nuttx")),
34+
all(target_family = "unix", not(target_os = "espidf"), not(target_os = "l4re"), not(target_os = "nuttx")),
3535
all(target_vendor = "fortanix", target_env = "sgx"),
3636
))] {
3737
mod gcc;

library/unwind/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,3 @@ system-llvm-libunwind = []
3737

3838
[lints.rust.unexpected_cfgs]
3939
level = "warn"
40-
check-cfg = [
41-
# #[cfg(bootstrap)] rtems
42-
'cfg(target_os, values("rtems"))',
43-
]

library/unwind/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ cfg_if::cfg_if! {
2020
target_os = "l4re",
2121
target_os = "none",
2222
target_os = "espidf",
23-
target_os = "rtems",
2423
target_os = "nuttx",
2524
))] {
2625
// These "unix" family members do not have unwinder.

0 commit comments

Comments
 (0)