Skip to content

Commit

Permalink
Disable probestack when GCOV profiling is being used
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c committed Jun 20, 2018
1 parent 5230979 commit e9aacfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustc_codegen_llvm/attributes.rs
Expand Up @@ -98,6 +98,11 @@ pub fn set_probestack(cx: &CodegenCx, llfn: ValueRef) {
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.
// This is defined in the `compiler-builtins` crate for each architecture.
llvm::AddFunctionAttrStringValue(
Expand Down

0 comments on commit e9aacfd

Please sign in to comment.