OpenMP RTL cleanup: eliminated warnings with -Wcast-qual, patch 2.
Changes are: got all atomics to accept volatile pointers that allowed to simplify many type conversions. Windows specific code fixed correspondingly. Differential Revision: https://reviews.llvm.org/D35417 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@308164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5703,7 +5703,7 @@ static void __kmp_reap_thread(kmp_info_t *thread, int is_root) {
|
||||
// so there are no harmful side effects.
|
||||
if (thread->th.th_active_in_pool) {
|
||||
thread->th.th_active_in_pool = FALSE;
|
||||
KMP_TEST_THEN_DEC32(CCAST(kmp_int32 *, &__kmp_thread_pool_active_nth));
|
||||
KMP_TEST_THEN_DEC32(&__kmp_thread_pool_active_nth);
|
||||
KMP_DEBUG_ASSERT(TCR_4(__kmp_thread_pool_active_nth) >= 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user