summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch')
-rw-r--r--meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch
deleted file mode 100644
index 2fd21c278..000000000
--- a/meta-oe/recipes-support/gperftools/gperftools/0001-Support-Atomic-ops-on-clang.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From aa0a63209af6813d87255ec3ab339f2dbbf27d6d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 6 Mar 2017 13:38:46 -0800
4Subject: [PATCH] Support Atomic ops on clang
5
6clang pretends to be gcc 4.2 which is a lie
7it actually supports a lot more features then
8gcc 4.2, here it depends on gcc 4.7 to enable
9the atomics and fails for clang
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12
13Upstream-Status: Pending
14
15---
16 src/base/atomicops.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/base/atomicops.h b/src/base/atomicops.h
20index dac95be..390733c 100644
21--- a/src/base/atomicops.h
22+++ b/src/base/atomicops.h
23@@ -124,7 +124,7 @@
24 #include "base/atomicops-internals-linuxppc.h"
25 #elif defined(__GNUC__) && defined(__mips__)
26 #include "base/atomicops-internals-mips.h"
27-#elif defined(__GNUC__) && GCC_VERSION >= 40700
28+#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__)
29 #include "base/atomicops-internals-gcc.h"
30 #elif defined(__clang__) && CLANG_VERSION >= 30400
31 #include "base/atomicops-internals-gcc.h"