Skip to content

Commit e9aacfd

Browse files
committed
Disable probestack when GCOV profiling is being used
1 parent 5230979 commit e9aacfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_codegen_llvm/attributes.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ pub fn set_probestack(cx: &CodegenCx, llfn: ValueRef) {
9898
return;
9999
}
100100

101+
// probestack doesn't play nice either with gcov profiling.
102+
if cx.sess().opts.debugging_opts.profile {
103+
return;
104+
}
105+
101106
// Flag our internal `__rust_probestack` function as the stack probe symbol.
102107
// This is defined in the `compiler-builtins` crate for each architecture.
103108
llvm::AddFunctionAttrStringValue(

0 commit comments

Comments
 (0)