[PATCH] D19001: [ppc64] Disable sibling-call-optimization when building tsan library by clang

Chuang-Yu Cheng via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 03:36:07 PDT 2016


cycheng added a comment.

Hi Hal,

Because I found that threshold is only workable for gcc, not for clang.

If I build compiler-rt with clang, distance between __sanitizer_print_stack_trace and __tsan::PrintCurrentStackSlow is 0x2df8 = 11768

So it looks like feasible work around is disable sco when building tsan library.

(Run-time data when building compiler-rt by clang: https://llvm.org/bugs/show_bug.cgi?id=27280#c2)

CY


http://reviews.llvm.org/D19001





More information about the llvm-commits mailing list