mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Disable probestack when GCOV profiling is being used
This commit is contained in:
parent
5230979794
commit
e9aacfd5c1
@ -98,6 +98,11 @@ pub fn set_probestack(cx: &CodegenCx, llfn: ValueRef) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// probestack doesn't play nice either with gcov profiling.
|
||||||
|
if cx.sess().opts.debugging_opts.profile {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Flag our internal `__rust_probestack` function as the stack probe symbol.
|
// Flag our internal `__rust_probestack` function as the stack probe symbol.
|
||||||
// This is defined in the `compiler-builtins` crate for each architecture.
|
// This is defined in the `compiler-builtins` crate for each architecture.
|
||||||
llvm::AddFunctionAttrStringValue(
|
llvm::AddFunctionAttrStringValue(
|
||||||
|
Loading…
Reference in New Issue
Block a user