[llvm-branch-commits] [llvm] d75ce45 - Revert "[CMake] CheckAtomic.cmake: catch false positives in RISC-V"

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Feb 20 06:45:16 PST 2020


Author: Hans Wennborg
Date: 2020-02-20T15:41:26+01:00
New Revision: d75ce45777d9802d43b555993fde8ed6562fb368

URL: https://github.com/llvm/llvm-project/commit/d75ce45777d9802d43b555993fde8ed6562fb368
DIFF: https://github.com/llvm/llvm-project/commit/d75ce45777d9802d43b555993fde8ed6562fb368.diff

LOG: Revert "[CMake] CheckAtomic.cmake: catch false positives in RISC-V"

This reverts commit a572a8a147c76b9d31585c2d4257a5db566c9a9d.

Apparently it was part of a larger series, and I'm not planning on
merging that; see https://reviews.llvm.org/D68964

Added: 
    

Modified: 
    llvm/cmake/modules/CheckAtomic.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/CheckAtomic.cmake b/llvm/cmake/modules/CheckAtomic.cmake
index 34ab8e98de42..29f3bdd57f03 100644
--- a/llvm/cmake/modules/CheckAtomic.cmake
+++ b/llvm/cmake/modules/CheckAtomic.cmake
@@ -12,12 +12,8 @@ function(check_working_cxx_atomics varname)
   CHECK_CXX_SOURCE_COMPILES("
 #include <atomic>
 std::atomic<int> x;
-std::atomic<short> y;
-std::atomic<char> z;
 int main() {
-  ++z;
-  ++y;
-  return ++x;
+  return x;
 }
 " ${varname})
   set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})


        


More information about the llvm-branch-commits mailing list