> some time ago, Andrew wrote a patch that fixes PR58867 > (http://patchwork.ozlabs.org/patch/286866/), but for some reasons it > wasn't committed to trunk. > > This is resurrected Andrew's patch, extended to support Tsan testsuite.
This patch broke --disable-libsanitizer though, i.e. you now get gazillions of sanitizer failures in the C and C++ testsuites. -- Eric Botcazou