Re: [PATCH] tsan: fix false positive for pthread_cond_clockwait

2021-05-14 Thread Martin Liška
On 5/13/21 7:10 PM, Michael de Lang wrote: |Thanks for updating LLVM to upstream. I've added the rebased patch below.| Thanks, I've just tested and pushed your commit: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=80b4ce1a5190ebe764b1009afae57dcef45f92c2 Martin

Re: [PATCH] tsan: fix false positive for pthread_cond_clockwait

2021-05-13 Thread Michael de Lang via Gcc-patches
Thanks for updating LLVM to upstream. I've added the rebased patch below. Met vriendelijke groet, Michael de Lang gcc/ChangeLog * g++.dg/tsan/pthread_cond_clockwait.C: new testcase diff --git a/gcc/testsuite/g++.dg/tsan/pthread_cond_clockwait.C b/gcc/testsuite/g++.dg/tsan/pthread_cond_clockwai

Re: [PATCH] tsan: fix false positive for pthread_cond_clockwait

2021-05-13 Thread Martin Liška
On 5/7/21 7:07 PM, Michael de Lang via Gcc-patches wrote: pthread_cond_clockwait isn't added to TSAN_INTERCEPTORS which leads to false positives regarding double locking of a mutex. This was uncovered by a user reporting an issue to the google sanitizer github: https://github.com/google/sanitizer