forked from OSchip/llvm-project
Re-enable stack depth instrumentation on Windows.
Specified tls_model attribute properly. Should compile on Windows now. llvm-svn: 312037
This commit is contained in:
parent
3bafa546d0
commit
2edac86cdb
|
@ -315,8 +315,8 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC,
|
||||||
if (Add & FuzzerNoLink) {
|
if (Add & FuzzerNoLink) {
|
||||||
CoverageFeatures |= CoverageTracePCGuard | CoverageIndirCall |
|
CoverageFeatures |= CoverageTracePCGuard | CoverageIndirCall |
|
||||||
CoverageTraceCmp | CoveragePCTable;
|
CoverageTraceCmp | CoveragePCTable;
|
||||||
// Due to TLS differences, stack depth tracking is disabled on Mac/Win.
|
// Due to TLS differences, stack depth tracking is disabled on Mac.
|
||||||
if (!TC.getTriple().isOSDarwin() && !TC.getTriple().isOSWindows())
|
if (!TC.getTriple().isOSDarwin())
|
||||||
CoverageFeatures |= CoverageStackDepth;
|
CoverageFeatures |= CoverageStackDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,11 +36,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Mac handles TLS differently
|
// Mac handles TLS differently
|
||||||
#if SANITIZER_MAC || SANITIZER_WINDOWS
|
#if SANITIZER_MAC
|
||||||
# define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE
|
# define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE
|
||||||
#else
|
#else
|
||||||
# define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE \
|
# define SANITIZER_TLS_INITIAL_EXEC_ATTRIBUTE \
|
||||||
__attribute((tls_model("initial-exec"))) thread_local
|
__attribute__((tls_model("initial-exec"))) thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//--------------------------- WEAK FUNCTIONS ---------------------------------//
|
//--------------------------- WEAK FUNCTIONS ---------------------------------//
|
||||||
|
|
Loading…
Reference in New Issue