Skip to content

Commit 53ed660

Browse files
committed
Auto merge of rust-lang#120411 - erikdesjardins:netbsdcall, r=Nilstrieb
i586_unknown_netbsd: use inline stack probes This is one of the last two targets still using "call" stack probes. I don't believe that this target uses call stack probes for any particular reason--inline stack probes are used on [`i686_unknown_netbsd`](https://github.com/rust-lang/rust/blob/b362939be16f9324dd9e6e36e22b606020068d75/compiler/rustc_target/src/spec/targets/i686_unknown_netbsd.rs#L8), suggesting they work on netbsd; and on [`i586_unknown_linux_gnu`](https://github.com/rust-lang/rust/blob/b362939be16f9324dd9e6e36e22b606020068d75/compiler/rustc_target/src/spec/targets/i586_unknown_linux_gnu.rs#L4) (via the base [`i686_unknown_linux_gnu`](https://github.com/rust-lang/rust/blob/b362939be16f9324dd9e6e36e22b606020068d75/compiler/rustc_target/src/spec/targets/i686_unknown_linux_gnu.rs#L9)), suggesting they work with `cpu = "pentium"`. ...although I don't have a netbsd system to test this on. (cc `@he32)`
2 parents 1c28a2c + 3b73e89 commit 53ed660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub fn target() -> Target {
44
let mut base = base::netbsd::opts();
55
base.cpu = "pentium".into();
66
base.max_atomic_width = Some(64);
7-
base.stack_probes = StackProbeType::Call;
7+
base.stack_probes = StackProbeType::Inline;
88

99
Target {
1010
llvm_target: "i586-unknown-netbsdelf".into(),

0 commit comments

Comments
 (0)