[Openmp-commits] [openmp] 3425e11 - [OpenMP] Add missing pieces in __kmp_launch_worker for Solaris support (#72613)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 17 10:04:17 PST 2023


Author: Brad Smith
Date: 2023-11-17T13:04:13-05:00
New Revision: 3425e11a11c32704f7d70221bf1d073851682de3

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

LOG: [OpenMP] Add missing pieces in __kmp_launch_worker for Solaris support (#72613)

Added: 
    

Modified: 
    openmp/runtime/src/z_Linux_util.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 9e1a7c7736298db..72da0f79865dfb1 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -474,7 +474,7 @@ static void *__kmp_launch_worker(void *thr) {
 #endif /* KMP_BLOCK_SIGNALS */
   void *exit_val;
 #if KMP_OS_LINUX || KMP_OS_DRAGONFLY || KMP_OS_FREEBSD || KMP_OS_NETBSD ||     \
-    KMP_OS_OPENBSD || KMP_OS_HURD
+    KMP_OS_OPENBSD || KMP_OS_HURD || KMP_OS_SOLARIS
   void *volatile padding = 0;
 #endif
   int gtid;
@@ -523,7 +523,7 @@ static void *__kmp_launch_worker(void *thr) {
 #endif /* KMP_BLOCK_SIGNALS */
 
 #if KMP_OS_LINUX || KMP_OS_DRAGONFLY || KMP_OS_FREEBSD || KMP_OS_NETBSD ||     \
-    KMP_OS_OPENBSD || KMP_OS_HURD
+    KMP_OS_OPENBSD || KMP_OS_HURD || KMP_OS_SOLARIS
   if (__kmp_stkoffset > 0 && gtid > 0) {
     padding = KMP_ALLOCA(gtid * __kmp_stkoffset);
     (void)padding;


        


More information about the Openmp-commits mailing list