[polly] r280811 - Disable MSVC warnings on ISL.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 07:11:20 PDT 2016


Author: meinersbur
Date: Wed Sep  7 09:11:20 2016
New Revision: 280811

URL: http://llvm.org/viewvc/llvm-project?rev=280811&view=rev
Log:
Disable MSVC warnings on ISL.

Disable some Visual C++ warnings on ISL. These are not reported by GCC/Clang in
the ISL build system. We do not intend to fix them in the Polly in-tree copy,
hence disable these warnings.

Modified:
    polly/trunk/lib/External/CMakeLists.txt

Modified: polly/trunk/lib/External/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/CMakeLists.txt?rev=280811&r1=280810&r2=280811&view=diff
==============================================================================
--- polly/trunk/lib/External/CMakeLists.txt (original)
+++ polly/trunk/lib/External/CMakeLists.txt Wed Sep  7 09:11:20 2016
@@ -260,6 +260,17 @@ add_polly_library(PollyISL FORCE_STATIC
   ${ISL_FILES}
 )
 
+if (MSVC)
+  # Disable common warnings; ideally, they should be fixed upstream
+  target_compile_options(PollyISL PRIVATE
+    -wd4018 # 'expression' : signed/unsigned mismatch
+    -wd4090 # 'operation' : different 'modifier' qualifiers
+    -wd4200 # nonstandard extension used: zero-sized array in struct/union
+    -wd4201 # nonstandard extension used: nameless struct/union
+    -wd4334 # 'operator': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
+  )
+endif ()
+
 # ISL requires at least C99 to compile. gcc < 5.0 use -std=gnu89 as default.
 target_enable_c99(PollyISL)
 




More information about the llvm-commits mailing list