From: Michael Jeanson Date: Mon, 5 Jun 2023 17:58:16 +0000 (-0400) Subject: fix: aarch64: allow RHEL7 gcc 4.8.5-11 X-Git-Tag: v0.13.4~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=74b2e59b52980e2e6eeafce92fecc7085a8aef67;p=userspace-rcu.git fix: aarch64: allow RHEL7 gcc 4.8.5-11 The patch for GCC upstream bug 63293[1] was backported in RHEL7 gcc 4.8.5-11 package, allow building with this version. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293 Change-Id: Ib5d8ef3c292a691167c5c4834c1e0bfdfe5b56b3 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/urcu/arch/aarch64.h b/include/urcu/arch/aarch64.h index 9e2f1ff..2da43d1 100644 --- a/include/urcu/arch/aarch64.h +++ b/include/urcu/arch/aarch64.h @@ -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