[Openmp-commits] [openmp] ca0e241 - [openmp] Silence warning when compiling with MSVC targetting x86

Alexandre Ganea via Openmp-commits openmp-commits at lists.llvm.org
Thu Jan 25 06:34:44 PST 2024


Author: Alexandre Ganea
Date: 2024-01-25T09:34:19-05:00
New Revision: ca0e2417912d8dea49c053186402aafe1ac8995a

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

LOG: [openmp] Silence warning when compiling with MSVC targetting x86

This fixes:
```
[3593/7449] Building CXX object projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_debug.cpp.obj
C:\git\llvm-project\openmp\runtime\src\kmp_os.h(471): warning C4163: '_InlineInterlockedExchange64': not available as an intrinsic function
```

Added: 
    

Modified: 
    openmp/runtime/src/kmp_os.h

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index a0552dd930a62a4..954fd93c0877c38 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -467,7 +467,7 @@ enum kmp_mem_fence_type {
 #pragma intrinsic(InterlockedExchangeAdd)
 #pragma intrinsic(InterlockedCompareExchange)
 #pragma intrinsic(InterlockedExchange)
-#if !(KMP_COMPILER_ICX && KMP_32_BIT_ARCH)
+#if !KMP_32_BIT_ARCH
 #pragma intrinsic(InterlockedExchange64)
 #endif
 #endif


        


More information about the Openmp-commits mailing list