[PATCH] tsan: fix test for machines without pthread_cond_clockwait

2022-10-25 Thread Michael de Lang via Gcc-patches
Hey, As per J. Wakeley's comments on https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100655 make the call to pthread_cond_clockwait conditional. This allows compilation on machines with older glibc versions. Cheers, Michael 2022-10-25 Michael de Lang * Fix testcase for pthread_cond_clockwai

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

2021-05-13 Thread Michael de Lang via Gcc-patches
mtx); + +pthread_join(tid, NULL); +return 0; +} On Thu, 13 May 2021 at 09:33, Martin Liška wrote: > > 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

[PATCH] tsan: fix false positive for pthread_cond_clockwait

2021-05-07 Thread Michael de Lang via Gcc-patches
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/sanitizers/issues/1259 This patch copies code from the fix made in l

[RFC] tsan: fix false positive for pthread_cond_clockwait

2021-04-26 Thread Michael de Lang via Gcc-patches
Leave it to gmail to mess things up. My apologies for the inconvenience. Patch below. Met vriendelijke groet, Michael de Lang diff --git a/gcc/testsuite/g++.dg/tsan/a.out b/gcc/testsuite/g++.dg/tsan/a.out new file mode 100755 index 000..bce6d34f8d3 Binary files /dev/null and b/gcc/testsui

[RFC] tsan: fix false positive for pthread_cond_clockwait

2021-04-26 Thread Michael de Lang via Gcc-patches
pthread_cond_clockwait wasn'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/sanitizers/issues/1259 This patch copies code from the fix made in