Sanitizer coverage point should be the previous instruction PC of the
caller and the offset to the previous instruction might be different
on each CPU architecture.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp | ||
---|---|---|
13–20 | clang-format might make a mistake as following: clang-format suggested style edits found: 14 #include "sanitizer_allocator_internal.h" 15 #include "sanitizer_atomic.h" 16 #include "sanitizer_common.h" >>> - 17 #include "sanitizer_common/sanitizer_stacktrace.h" - 18 #include "sanitizer_file.h" + # include "sanitizer_common/sanitizer_stacktrace.h" + # include "sanitizer_file.h" 19 20 using namespace __sanitizer; 21 22 using AddressRange = LoadedModule::AddressRange; What should I do for this issue? |
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp | ||
---|---|---|
13–20 | After rebased code, it is OK now. It seems that the building failure is not caused by this patch. |
See D120362: I think we should refactor the -1/-4 thing first.
This patch should focus on fixing the offset for __sanitizer_cov_trace_pc_guard.
compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp | ||
---|---|---|
227 | I have confirmed that aarch64 needs this as well. | |
llvm/include/llvm/ADT/Triple.h | ||
821 ↗ | (On Diff #410492) | Upload a separate patch for the Triple.h change. You may add ro as a reviewer. |
llvm/tools/sancov/sancov.cpp | ||
---|---|---|
697 ↗ | (On Diff #410699) | Drop this unrelated change. @ro can decide what to do with isSparc. There are three places to update if - 8 is wrong: 3de5322b5f719d9414423d4237a6533fe43cd7f8 |
clang-format might make a mistake as following:
What should I do for this issue?