Disable the use of std::call_once on OpenBSD with libstdc++.
authorBrad Smith <brad@comstyle.com>
Wed, 2 Nov 2016 01:39:01 +0000 (01:39 +0000)
committerBrad Smith <brad@comstyle.com>
Wed, 2 Nov 2016 01:39:01 +0000 (01:39 +0000)
commitb4f6ebf80695ee4aeefe4184728a1b3379b54baa
tree4b1c593e615dfeb9ce3bedbdd60dba0d0315732b
parentc76c3f2f9191b923103a0113fe60358b618f13f8
Disable the use of std::call_once on OpenBSD with libstdc++.

It was noticed this caused performance regressions and deadlocks. PR30768.

Reorder the code to make it clearer what is tested.

PPC now disables the use of std::call_once only with libstdc++ with
the reordering of the code, as was the original intent.

llvm-svn: 285782
llvm/include/llvm/Support/Threading.h