Skip to content

Commit 2e07340

Browse files
authored
Merge pull request #10723 from devreal/gcc_atomic_fixes_v4.1.x
[4.1.x] GCC atomics: acquire thread-fence was busted until GCC 8.1.0
2 parents 5abd86c + d9895ce commit 2e07340

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
@@ -52,7 +52,7 @@
5252
#define OPAL_HAVE_ATOMIC_SWAP_64 1
5353

5454

55-
#if (OPAL_ASSEMBLY_ARCH == OPAL_X86_64) && defined (__GNUC__) && !defined(__llvm) && (__GNUC__ < 6)
55+
#if defined(PLATFORM_ARCH_X86_64) && defined(PLATFORM_COMPILER_GNU) && __GNUC__ < 8
5656
/* work around a bug in older gcc versions where ACQUIRE seems to get
5757
* treated as a no-op instead */
5858
#define OPAL_BUSTED_ATOMIC_MB 1

0 commit comments

Comments
 (0)