xref: /OK3568_Linux_fs/buildroot/package/liburcu/0001-Only-blacklist-ARM-gcc-4.8.0-and-4.8.1.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 54d8fe7ae40902d6d38e670f4024092f53c14e1f Mon Sep 17 00:00:00 2001
2From: Samuel Martin <s.martin49@gmail.com>
3Date: Sat, 8 Mar 2014 13:19:14 +0100
4Subject: [PATCH] Only blacklist ARM gcc 4.8.0 and 4.8.1
5
6Since many ARM toolchain providers include the bug fix for PR58854 in
7their latest releases based on gcc-4.8.2, then only blacklist gcc 4.8.0
8and 4.8.1.
9
10Signed-off-by: Samuel Martin <s.martin49@gmail.com>
11[Fabrice: update for 0.13.0]
12Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
13---
14 urcu/compiler.h | 9 ++++++++-
15 1 file changed, 8 insertions(+), 1 deletion(-)
16
17diff --git a/include/urcu/arch/arm.h b/include/urcu/arch/arm.h
18index 1e30903..56115f1 100644
19--- a/include/urcu/arch/arm.h
20+++ b/include/urcu/arch/arm.h
21@@ -118,10 +118,17 @@
22  */
23
24 /*
25+ * Official gcc releases from 4.8.0 to 4.8.2 have the following bug,
26+ * however, many arm toolchain providers have the included the fix for
27+ * their latest 4.8.2 releases.
28+ * So, we only blacklist gcc 4.8.0 and 4.8.1.
29+ * Unfortunately, this bug is not easy to test, so we rely on the
30+ * knowledge of the user on its compiler.
31+ *
32  * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854
33  */
34 #ifdef URCU_GCC_VERSION
35-# if URCU_GCC_VERSION >= 40800 && URCU_GCC_VERSION <= 40802
36+# if URCU_GCC_VERSION >= 40800 && URCU_GCC_VERSION <= 40801
37 #  error Your gcc version produces clobbered frame accesses
38 # endif
39 #endif
40--
411.9.0
42
43