]> granicus.if.org Git - llvm/commit
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)
commitc17dedb2b8f19f3ee7eeacd56e7b57529e6a27bf
treeb6bd7681d4b6a6f799382e232db6ead45afb4f70
parent465b55b183fcf06deab26af655b381950de906fc
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285782 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Threading.h