[Openmp-commits] [openmp] 2d02988 - [OpenMP] Remove gcc-12 warnings from libomp
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jul 6 09:47:52 PDT 2023
Author: Jonathan Peyton
Date: 2023-07-06T11:47:45-05:00
New Revision: 2d02988f7430ae4b796a796ade8b19fc39cb8453
URL: https://github.com/llvm/llvm-project/commit/2d02988f7430ae4b796a796ade8b19fc39cb8453
DIFF: https://github.com/llvm/llvm-project/commit/2d02988f7430ae4b796a796ade8b19fc39cb8453.diff
LOG: [OpenMP] Remove gcc-12 warnings from libomp
Added:
Modified:
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_runtime.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index f50fb01f793f01..3a2e8d64f4b620 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -1120,7 +1120,7 @@ extern void __kmp_init_target_task();
#endif /* KMP_MAX_NTH */
#ifdef PTHREAD_STACK_MIN
-#define KMP_MIN_STKSIZE PTHREAD_STACK_MIN
+#define KMP_MIN_STKSIZE ((size_t)PTHREAD_STACK_MIN)
#else
#define KMP_MIN_STKSIZE ((size_t)(32 * 1024))
#endif
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 0154ee064faf3a..2d5b37b2308b93 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -6105,7 +6105,6 @@ void *__kmp_launch_thread(kmp_info_t *this_thr) {
__kmp_join_barrier(gtid);
}
}
- TCR_SYNC_PTR((intptr_t)__kmp_global.g.g_done);
#if OMPD_SUPPORT
if (ompd_state & OMPD_ENABLE_BP)
More information about the Openmp-commits
mailing list