diff options
| author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-02-11 21:09:15 +0000 |
|---|---|---|
| committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-02-11 21:09:15 +0000 |
| commit | 2f744592a0de80b5eda9659163950ada278be0a2 (patch) | |
| tree | cc2749e7720ec22ff7607dcafbb9406ea283abee /openmp/runtime | |
| parent | 65ebfeecf88e68f34c8fc1604da042ffad5ebd8b (diff) | |
| download | bcm5719-llvm-2f744592a0de80b5eda9659163950ada278be0a2.tar.gz bcm5719-llvm-2f744592a0de80b5eda9659163950ada278be0a2.zip | |
[OpenMP] Remove accidental commit to config-ix.cmake in r353747
llvm-svn: 353748
Diffstat (limited to 'openmp/runtime')
| -rw-r--r-- | openmp/runtime/cmake/config-ix.cmake | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/openmp/runtime/cmake/config-ix.cmake b/openmp/runtime/cmake/config-ix.cmake index 61b6618ee6d..5404715b6d9 100644 --- a/openmp/runtime/cmake/config-ix.cmake +++ b/openmp/runtime/cmake/config-ix.cmake @@ -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 retval) 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") |

