Skip to content

Commit e72273a

Browse files
committed
GCC atomics: acquire thread-fence was busted until GCC 8.1.0
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent b1383f4 commit e72273a

File tree

1 file changed

+1
-1
lines changed
  • opal/include/opal/sys/gcc_builtin

1 file changed

+1
-1
lines changed

opal/include/opal/sys/gcc_builtin/atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
*********************************************************************/
3838

39-
#if defined(PLATFORM_ARCH_X86_64) && defined (__GNUC__) && !defined(__llvm) && (__GNUC__ < 6)
39+
#if defined(PLATFORM_ARCH_X86_64) && defined(PLATFORM_COMPILER_GNU) && __GNUC__ < 8
4040
/* work around a bug in older gcc versions where ACQUIRE seems to get
4141
* treated as a no-op instead */
4242
#define OPAL_BUSTED_ATOMIC_MB 1

0 commit comments

Comments
 (0)