[compiler-rt] r295057 - [compiler-rt][asan|win] Force tls_init test to use dynamic runtime
Etienne Bergeron via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 14 07:21:53 PST 2017
Author: etienneb
Date: Tue Feb 14 09:21:53 2017
New Revision: 295057
URL: http://llvm.org/viewvc/llvm-project?rev=295057&view=rev
Log:
[compiler-rt][asan|win] Force tls_init test to use dynamic runtime
Summary:
There is no guarantee that the tls_init is executed on the static runtime
(/MT).
On windows 7, this unittest is failing.
On windows 10, I believe it's working because of the new CRT.
On ASAN side, it doesn't matter that the hook point is run or not.
It must be run only if there is other tls_initializer that are registered.
Reviewers: rnk, chrisha
Reviewed By: rnk
Subscribers: kubamracek, llvm-commits
Differential Revision: https://reviews.llvm.org/D29838
Modified:
compiler-rt/trunk/test/asan/TestCases/Windows/tls_init.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Windows/tls_init.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/tls_init.cc?rev=295057&r1=295056&r2=295057&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/tls_init.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/tls_init.cc Tue Feb 14 09:21:53 2017
@@ -1,4 +1,4 @@
-// RUN: %clang_cl_asan %s -Fe%t.exe
+// RUN: %clang_cl_asan %s -Fe%t.exe /MD
// RUN: %run %t.exe | FileCheck %s
// CHECK: my_thread_callback
More information about the llvm-commits
mailing list