mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-26 20:10:54 +00:00
WARNING: gperftools-2.6.1-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:
devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>
Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-Support-Atomic-ops-on-clang.patch
patching file src/base/atomicops.h
Hunk #1 succeeded at 124 with fuzz 2 (offset 6 lines).
Now at patch 0001-Support-Atomic-ops-on-clang.patch
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From aa0a63209af6813d87255ec3ab339f2dbbf27d6d Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Mon, 6 Mar 2017 13:38:46 -0800
|
|
Subject: [PATCH] Support Atomic ops on clang
|
|
|
|
clang pretends to be gcc 4.2 which is a lie
|
|
it actually supports a lot more features then
|
|
gcc 4.2, here it depends on gcc 4.7 to enable
|
|
the atomics and fails for clang
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Upstream-Status: Pending
|
|
|
|
---
|
|
src/base/atomicops.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/base/atomicops.h b/src/base/atomicops.h
|
|
index dac95be..390733c 100644
|
|
--- a/src/base/atomicops.h
|
|
+++ b/src/base/atomicops.h
|
|
@@ -124,7 +124,7 @@
|
|
#include "base/atomicops-internals-linuxppc.h"
|
|
#elif defined(__GNUC__) && defined(__mips__)
|
|
#include "base/atomicops-internals-mips.h"
|
|
-#elif defined(__GNUC__) && GCC_VERSION >= 40700
|
|
+#elif defined(__GNUC__) && GCC_VERSION >= 40700 || defined(__clang__)
|
|
#include "base/atomicops-internals-gcc.h"
|
|
#elif defined(__clang__) && CLANG_VERSION >= 30400
|
|
#include "base/atomicops-internals-gcc.h"
|