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

Dmitry Vyukov dvyukov at google.com
Wed Mar 19 06:31:13 PDT 2014


done in r204232

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
>
>



More information about the llvm-commits mailing list