[Openmp-commits] [openmp] 0a29879 - [OpenMP] Add missing bit with the Hurd support (#70609)

via Openmp-commits openmp-commits at lists.llvm.org
Sun Oct 29 19:35:07 PDT 2023


Author: Brad Smith
Date: 2023-10-29T22:35:03-04:00
New Revision: 0a29879e410689aff381c4a48e34bfe857f6ce5a

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

LOG: [OpenMP] Add missing bit with the Hurd support (#70609)

Looking at 855d09855d8e541176758f38015e8b9b522d6110 it looks like a bit was
missing. The padding variable is used further down by the KMP_ALLOCA()
function.

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 e6aa6f413d168c5..5495f60d2029d49 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -512,7 +512,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_OPENBSD || KMP_OS_HURD
   if (__kmp_stkoffset > 0 && gtid > 0) {
     padding = KMP_ALLOCA(gtid * __kmp_stkoffset);
     (void)padding;


        


More information about the Openmp-commits mailing list