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

Alexey Samsonov samsonov at google.com
Tue Mar 11 07:24:58 PDT 2014


FYI for now deadlock detector is not built in configure+make anyway.


On Tue, Mar 11, 2014 at 6:19 PM, Kostya Serebryany <kcc at google.com> wrote:

> this will not cover other builds (configure+make or gcc's one), so an
> attribute in the code is probably much better.
> We use it in sanitizer_common/sanitizer_tls_get_addr.cc, need to pull this
> into a macro in sanitizer_common/sanitizer_internal_defs.h
>
>
> On Thu, Mar 6, 2014 at 4:03 PM, Dmitry Vyukov <dvyukov at google.com> wrote:
>
>> 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)
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>


-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140311/b9268a6c/attachment.html>


More information about the llvm-commits mailing list