[Openmp-commits] [openmp] 3ab150f - [openmp][devicertl] Add a missing loader_uninitialized attribute

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 29 15:54:50 PST 2021


Author: Jon Chesterfield
Date: 2021-11-29T23:54:37Z
New Revision: 3ab150f6e44b99dea855024c48d0878eb55ae3d0

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

LOG: [openmp][devicertl] Add a missing loader_uninitialized attribute

Added: 
    

Modified: 
    openmp/libomptarget/DeviceRTL/src/Debug.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/DeviceRTL/src/Debug.cpp b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
index 79be7289556f7..f458a1b2403d8 100644
--- a/openmp/libomptarget/DeviceRTL/src/Debug.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
@@ -55,6 +55,7 @@ int32_t __llvm_omp_vprintf(const char *Format, void *Arguments, uint32_t Size) {
 }
 
 /// Current indentation level for the function trace. Only accessed by thread 0.
+__attribute__((loader_uninitialized))
 static uint32_t Level;
 #pragma omp allocate(Level) allocator(omp_pteam_mem_alloc)
 


        


More information about the Openmp-commits mailing list