[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