[Openmp-commits] [openmp] r353748 - [OpenMP] Remove accidental commit to config-ix.cmake in r353747

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 11 13:09:15 PST 2019


Author: jlpeyton
Date: Mon Feb 11 13:09:15 2019
New Revision: 353748

URL: http://llvm.org/viewvc/llvm-project?rev=353748&view=rev
Log:
[OpenMP] Remove accidental commit to config-ix.cmake in r353747

Modified:
    openmp/trunk/runtime/cmake/config-ix.cmake

Modified: openmp/trunk/runtime/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/cmake/config-ix.cmake?rev=353748&r1=353747&r2=353748&view=diff
==============================================================================
--- openmp/trunk/runtime/cmake/config-ix.cmake (original)
+++ openmp/trunk/runtime/cmake/config-ix.cmake Mon Feb 11 13:09:15 2019
@@ -10,7 +10,6 @@
 
 include(CheckCCompilerFlag)
 include(CheckCSourceCompiles)
-include(CheckCXXSourceCompiles)
 include(CheckCXXCompilerFlag)
 include(CheckIncludeFile)
 include(CheckLibraryExists)
@@ -39,42 +38,6 @@ function(libomp_check_version_symbols re
   file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/__version_script.txt)
 endfunction()
 
-function(libomp_check_attribute_fallthrough retval)
-  set(fallthroughs "[[fallthrough]]" "[[clang::fallthrough]]" "__attribute__((__fallthrough__))")
-  foreach(fallthrough IN LISTS fallthroughs)
-    string(MAKE_C_IDENTIFIER "${fallthrough}" test_name)
-    set(source_code
-      "#include <stdio.h>
-      enum class foo_e { zero, one, two, three, four };
-      int main(int argc, char** argv) {
-        foo_e foo;
-        if (argc == 0) foo = foo_e::zero;
-        else if (argc == 1) foo = foo_e::one;
-        else if (argc == 2) foo = foo_e::two;
-        else if (argc == 3) foo = foo_e::three;
-        else if (argc == 4) foo = foo_e::four;
-        switch (foo) {
-          case foo_e::zero:
-            ${fallthrough}
-          case foo_e::one:
-            return 1;
-          case foo_e::two:
-            return 2;
-          case foo_e::three:
-            return 3;
-          case foo_e::four:
-            return 4;
-        }
-        return 0;
-      }")
-    check_cxx_source_compiles("${source_code}" ${test_name})
-    if(${test_name})
-      set(${retval} ${fallthrough} PARENT_SCOPE)
-      break()
-    endif()
-  endforeach()
-endfunction()
-
 # Includes the architecture flag in both compile and link phase
 function(libomp_check_architecture_flag flag retval)
   set(CMAKE_REQUIRED_FLAGS "${flag}")
@@ -209,7 +172,6 @@ endif()
 # Checking features
 # Check if version symbol assembler directives are supported
 libomp_check_version_symbols(LIBOMP_HAVE_VERSION_SYMBOLS)
-libomp_check_attribute_fallthrough(LIBOMP_FALLTHROUGH)
 
 # Check if quad precision types are available
 if(CMAKE_C_COMPILER_ID STREQUAL "GNU")




More information about the Openmp-commits mailing list