summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-22 17:49:33 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-25 13:26:20 (GMT)
commit0d489fab194efdf77970cb981dc9b636c36da2ea (patch)
tree2a744ebed24f669184638ee369534fd1bc74ea66 /Utilities
parent1699f5c231bf0a9fa411eda637564b7f4deec7f0 (diff)
downloadCMake-0d489fab194efdf77970cb981dc9b636c36da2ea.zip
CMake-0d489fab194efdf77970cb981dc9b636c36da2ea.tar.gz
CMake-0d489fab194efdf77970cb981dc9b636c36da2ea.tar.bz2
libuv: fix atomic ops compilation with xlclang
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibuv/src/unix/atomic-ops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/unix/atomic-ops.h b/Utilities/cmlibuv/src/unix/atomic-ops.h
index 7cac1f9..be741dc 100644
--- a/Utilities/cmlibuv/src/unix/atomic-ops.h
+++ b/Utilities/cmlibuv/src/unix/atomic-ops.h
@@ -37,7 +37,7 @@ UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)) {
: "r" (newval), "0" (oldval)
: "memory");
return out;
-#elif defined(_AIX) && defined(__xlC__)
+#elif defined(_AIX) && (defined(__xlC__) || defined(__ibmxl__))
const int out = (*(volatile int*) ptr);
__compare_and_swap(ptr, &oldval, newval);
return out;
@@ -63,7 +63,7 @@ UV_UNUSED(static long cmpxchgl(long* ptr, long oldval, long newval)) {
: "r" (newval), "0" (oldval)
: "memory");
return out;
-#elif defined(_AIX) && defined(__xlC__)
+#elif defined(_AIX) && (defined(__xlC__) || defined(__ibmxl__))
const long out = (*(volatile int*) ptr);
# if defined(__64BIT__)
__compare_and_swaplp(ptr, &oldval, newval);