summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-11-19 10:36:33 -0800
committerKhem Raj <raj.khem@gmail.com>2016-11-19 10:45:27 -0800
commit68e56391040b440b762059dc8d946b2ab705b8c0 (patch)
treebb5f3caa6ad1ee0d135e53f0d87c6e7f89872caf
parenta7017d50242c12291273fe99c66adbc7cb0d2000 (diff)
downloadmeta-clang-68e56391040b440b762059dc8d946b2ab705b8c0.tar.gz
clang: Update to latest
Forward port libcxx patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-devtools/clang/clang.inc12
-rw-r--r--recipes-devtools/clang/libcxx/0001-use-constexpr-when-using-glibc.patch14
2 files changed, 13 insertions, 13 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc
index aa364be..5d42c2e 100644
--- a/recipes-devtools/clang/clang.inc
+++ b/recipes-devtools/clang/clang.inc
@@ -10,12 +10,12 @@ LLVM_GIT_PROTOCOL ?= "git"
10 10
11PV = "4.0.0" 11PV = "4.0.0"
12BRANCH = "master" 12BRANCH = "master"
13SRCREV_llvm = "8934fe31f3cbfa1543b98dc101005a2142bb3fe0" 13SRCREV_llvm = "aea637329e650a06c199f23f078cf0ad55489445"
14SRCREV_clang = "2785479f9a42db2c3f4e183ef1dfc026c1d40134" 14SRCREV_clang = "8a6ea813424dabc71bf4514942e487bd0268a317"
15SRCREV_compiler-rt = "a1df33d42314dc8c52e3eb5254f0f216397e60fc" 15SRCREV_compiler-rt = "4eb08d1dbd9bdfe505c146fcfbcdf94e9d26a173"
16SRCREV_cxxabi = "89d8f36cc664fe1d590eb38175337c8293152be4" 16SRCREV_cxxabi = "2ecedcc0a1605ebeaa0afe3ab6fabe5dc8d5a2f8"
17SRCREV_libcxx = "efd039a62e635b3fc5dc68a773fbf22705c5c0e8" 17SRCREV_libcxx = "6f7f0b85300a16614c7899d7877ba86a6460996a"
18SRCREV_libunwind = "8bfcea40f9973dadfaafae59192cd45b616e605b" 18SRCREV_libunwind = "1041783b9f43ede983fbca7e41aaf3300286fcd7"
19 19
20LLVMMD5SUM = "b99eb43c934ceebecab85c6b9b1a08be" 20LLVMMD5SUM = "b99eb43c934ceebecab85c6b9b1a08be"
21CLANGMD5SUM = "a77eac638a3aae44a2d604217d6f0f01" 21CLANGMD5SUM = "a77eac638a3aae44a2d604217d6f0f01"
diff --git a/recipes-devtools/clang/libcxx/0001-use-constexpr-when-using-glibc.patch b/recipes-devtools/clang/libcxx/0001-use-constexpr-when-using-glibc.patch
index 9d2b327..be9cf0b 100644
--- a/recipes-devtools/clang/libcxx/0001-use-constexpr-when-using-glibc.patch
+++ b/recipes-devtools/clang/libcxx/0001-use-constexpr-when-using-glibc.patch
@@ -1,4 +1,4 @@
1From a5b8426cf21c3c303349a5be4d735123f514c435 Mon Sep 17 00:00:00 2001 1From 7d56f7fc304a4acf69c44b4c6f4ffb5e2af1fc0c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 May 2016 23:22:52 -0700 3Date: Thu, 19 May 2016 23:22:52 -0700
4Subject: [PATCH] use constexpr when using glibc 4Subject: [PATCH] use constexpr when using glibc
@@ -16,18 +16,18 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 1 file changed, 8 insertions(+), 2 deletions(-) 16 1 file changed, 8 insertions(+), 2 deletions(-)
17 17
18diff --git a/include/__mutex_base b/include/__mutex_base 18diff --git a/include/__mutex_base b/include/__mutex_base
19index 38a76ac..0fb1e2f 100644 19index 59458ec..0a12e62 100644
20--- a/include/__mutex_base 20--- a/include/__mutex_base
21+++ b/include/__mutex_base 21+++ b/include/__mutex_base
22@@ -43,7 +43,10 @@ class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mut 22@@ -43,7 +43,10 @@ class _LIBCPP_TYPE_VIS _LIBCPP_THREAD_SAFETY_ANNOTATION(capability("mutex")) mut
23 public: 23 public:
24 _LIBCPP_INLINE_VISIBILITY 24 _LIBCPP_INLINE_VISIBILITY
25 #ifndef _LIBCPP_HAS_NO_CONSTEXPR 25 #ifndef _LIBCPP_HAS_NO_CONSTEXPR
26- constexpr mutex() _NOEXCEPT _LIBCPP_DEFAULT 26- constexpr mutex() _NOEXCEPT = default;
27+#ifdef __GLIBC__ 27+#ifdef __GLIBC__
28+ constexpr 28+ constexpr
29+#endif 29+#endif
30+ mutex() _NOEXCEPT _LIBCPP_DEFAULT 30+ mutex() _NOEXCEPT = default;
31 #else 31 #else
32 mutex() _NOEXCEPT {__m_ = (__libcpp_mutex_t)_LIBCPP_MUTEX_INITIALIZER;} 32 mutex() _NOEXCEPT {__m_ = (__libcpp_mutex_t)_LIBCPP_MUTEX_INITIALIZER;}
33 #endif 33 #endif
@@ -35,14 +35,14 @@ index 38a76ac..0fb1e2f 100644
35 public: 35 public:
36 _LIBCPP_INLINE_VISIBILITY 36 _LIBCPP_INLINE_VISIBILITY
37 #ifndef _LIBCPP_HAS_NO_CONSTEXPR 37 #ifndef _LIBCPP_HAS_NO_CONSTEXPR
38- constexpr condition_variable() _NOEXCEPT _LIBCPP_DEFAULT 38- constexpr condition_variable() _NOEXCEPT = default;
39+#ifdef __GLIBC__ 39+#ifdef __GLIBC__
40+ constexpr 40+ constexpr
41+#endif 41+#endif
42+ condition_variable() _NOEXCEPT _LIBCPP_DEFAULT 42+ condition_variable() _NOEXCEPT = default;
43 #else 43 #else
44 condition_variable() _NOEXCEPT {__cv_ = (__libcpp_condvar_t)_LIBCPP_CONDVAR_INITIALIZER;} 44 condition_variable() _NOEXCEPT {__cv_ = (__libcpp_condvar_t)_LIBCPP_CONDVAR_INITIALIZER;}
45 #endif 45 #endif
46-- 46--
472.10.0 472.10.2
48 48