fix: aarch64: allow RHEL7 gcc 4.8.5-11
[userspace-rcu.git] / include / urcu / arch / aarch64.h
index 9e2f1ffdb6d09ee93c12692a77db3866a69de9e3..2da43d162d66e3d034042c7785c0470b8e8b6b60 100644 (file)
@@ -44,9 +44,17 @@ extern "C" {
 
 /*
  * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293
+ *
+ * Backported in RHEL7 gcc 4.8.5-11
  */
+#if defined(URCU_GCC_VERSION) && defined(__GNUC_RH_RELEASE__)
+# if (URCU_GCC_VERSION == 40805) && (__GNUC_RH_RELEASE__ >= 11)
+#  define URCU_GCC_PATCHED_63293
+# endif
+#endif
+
 #ifdef URCU_GCC_VERSION
-# if URCU_GCC_VERSION < 50100
+# if URCU_GCC_VERSION < 50100 && !defined(URCU_GCC_PATCHED_63293)
 #  error Your gcc version performs unsafe access to deallocated stack
 # endif
 #endif
This page took 0.028995 seconds and 4 git commands to generate.