[compiler-rt] r203111 - tsan: add -ftls-model=initial-exec to deadlock detector flags

Dmitry Vyukov dvyukov at google.com
Thu Mar 6 04:03:39 PST 2014


Author: dvyukov
Date: Thu Mar  6 06:03:39 2014
New Revision: 203111

URL: http://llvm.org/viewvc/llvm-project?rev=203111&view=rev
Log:
tsan: add -ftls-model=initial-exec to deadlock detector flags
one way or another it must present in the process from the beginning


Modified:
    compiler-rt/trunk/lib/tsan/dd/CMakeLists.txt

Modified: compiler-rt/trunk/lib/tsan/dd/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/dd/CMakeLists.txt?rev=203111&r1=203110&r2=203111&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/dd/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/tsan/dd/CMakeLists.txt Thu Mar  6 06:03:39 2014
@@ -4,6 +4,7 @@ include_directories(../..)
 
 set(DD_CFLAGS ${SANITIZER_COMMON_CFLAGS})
 append_no_rtti_flag(DD_CFLAGS)
+list(APPEND DD_CFLAGS -ftls-model=initial-exec)
 
 if("${CMAKE_BUILD_TYPE}" EQUAL "Release")
   set(DD_COMMON_DEFINITIONS DEBUG=0)





More information about the llvm-commits mailing list