about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/linux_kernel_base.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-03 02:09:05 +0000
committerbors <bors@rust-lang.org>2022-10-03 02:09:05 +0000
commit607b8296e07cc1bf5b95eeb60a21b5af684f7631 (patch)
treec4bab55cbfa38022f5abf76ff4d65cfb14c5fb45 /compiler/rustc_target/src/spec/linux_kernel_base.rs
parent573fd5a8c52d044e3fcb6bd9b7082046d60526da (diff)
parented9e6f2ad82a9ad783ed89b937d2951e44b6ce4b (diff)
downloadrust-607b8296e07cc1bf5b95eeb60a21b5af684f7631.tar.gz
rust-607b8296e07cc1bf5b95eeb60a21b5af684f7631.zip
Auto merge of #102503 - cuviper:x86-stack-probes, r=nagisa
Enable inline stack probes on X86 with LLVM 16

The known problems with x86 inline-asm stack probes have been solved on LLVM main (16), so this flips the switch. Anyone using bleeding-edge LLVM with rustc can start testing this, as I have done locally. We'll get more direct rust-ci when LLVM 16 branches and we start our upgrade, and we can always patch or disable it then if we find new problems.

The previous attempt was #77885, reverted in #84708.
Diffstat (limited to 'compiler/rustc_target/src/spec/linux_kernel_base.rs')
-rw-r--r--compiler/rustc_target/src/spec/linux_kernel_base.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/spec/linux_kernel_base.rs b/compiler/rustc_target/src/spec/linux_kernel_base.rs
index 0f5d85205f8..f41533a9548 100644
--- a/compiler/rustc_target/src/spec/linux_kernel_base.rs
+++ b/compiler/rustc_target/src/spec/linux_kernel_base.rs
@@ -6,8 +6,7 @@ pub fn opts() -> TargetOptions {
         env: "gnu".into(),
         disable_redzone: true,
         panic_strategy: PanicStrategy::Abort,
-        // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
-        stack_probes: StackProbeType::Call,
+        stack_probes: StackProbeType::X86,
         frame_pointer: FramePointer::Always,
         position_independent_executables: true,
         needs_plt: true,