We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92950ee + 63dd834 commit 8e58607Copy full SHA for 8e58607
opal/include/opal/sys/atomic_stdc.h
@@ -29,6 +29,7 @@
29
# define OPAL_ATOMIC_STDC_H
30
31
# include "opal_stdint.h"
32
+# include "opal/opal_portable_platform.h"
33
# include <stdatomic.h>
34
# include <stdint.h>
35
@@ -50,7 +51,7 @@ static inline void opal_atomic_wmb(void)
50
51
52
static inline void opal_atomic_rmb(void)
53
{
-# if defined(PLATFORM_ARCH_X86_64) && PLATFORM_COMPILER_GNU && __GNUC__ < 8
54
+# if defined(PLATFORM_ARCH_X86_64) && defined(PLATFORM_COMPILER_GNU) && __GNUC__ < 8
55
/* work around a bug in older gcc versions (observed in gcc 6.x)
56
* where acquire seems to get treated as a no-op instead of being
57
* equivalent to __asm__ __volatile__("": : :"memory") on x86_64.
0 commit comments