Date: Thu, 24 Mar 2016 20:55:23 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297244 - head/contrib/llvm/include/llvm/Support Message-ID: <201603242055.u2OKtNCc049131@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Thu Mar 24 20:55:23 2016 New Revision: 297244 URL: https://svnweb.freebsd.org/changeset/base/297244 Log: Pull in r264335 from upstream llvm trunk: Add <atomic> to ThreadPool.h, since std::atomic is used Summary: Apparently, when compiling with gcc 5.3.2 for powerpc64, the order of headers is such that it gets an error about std::atomic<> use in ThreadPool.h, since this header is not included explicitly. See also: https://llvm.org/bugs/show_bug.cgi?id=27058 Fix this by including <atomic>. Patch by Bryan Drewery. Reviewers: chandlerc, joker.eph Subscribers: bdrewery, llvm-commits Differential Revision: http://reviews.llvm.org/D18460 Modified: head/contrib/llvm/include/llvm/Support/ThreadPool.h Modified: head/contrib/llvm/include/llvm/Support/ThreadPool.h ============================================================================== --- head/contrib/llvm/include/llvm/Support/ThreadPool.h Thu Mar 24 20:52:35 2016 (r297243) +++ head/contrib/llvm/include/llvm/Support/ThreadPool.h Thu Mar 24 20:55:23 2016 (r297244) @@ -33,6 +33,7 @@ #pragma warning(pop) #endif +#include <atomic> #include <condition_variable> #include <functional> #include <memory>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603242055.u2OKtNCc049131>