fix: aarch64: allow RHEL7 gcc 4.8.5-11
[userspace-rcu.git] / include / urcu / arch / aarch64.h
index d6a133758dffca0c22ca5f6e94314c4c6d0d5390..c2e46ae24dfc1f809ed24568de8aacee282229ad 100644 (file)
@@ -42,6 +42,25 @@ extern "C" {
 #define __NR_membarrier                283
 #endif
 
+/*
+ * 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 && !defined(URCU_GCC_PATCHED_63293)
+#  error Your gcc version performs unsafe access to deallocated stack
+# endif
+#endif
+
+#define caa_cpu_relax()        __asm__ __volatile__ ("yield" : : : "memory")
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.024306 seconds and 4 git commands to generate.