[Openmp-commits] [openmp] r328575 - Move blocktime_str variable right before its first use

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Mon Mar 26 12:20:50 PDT 2018


Author: jlpeyton
Date: Mon Mar 26 12:20:50 2018
New Revision: 328575

URL: http://llvm.org/viewvc/llvm-project?rev=328575&view=rev
Log:
Move blocktime_str variable right before its first use

Modified:
    openmp/trunk/runtime/src/kmp_settings.cpp

Modified: openmp/trunk/runtime/src/kmp_settings.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_settings.cpp?rev=328575&r1=328574&r2=328575&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_settings.cpp (original)
+++ openmp/trunk/runtime/src/kmp_settings.cpp Mon Mar 26 12:20:50 2018
@@ -665,9 +665,6 @@ static void __kmp_stg_print_blocktime(km
   __kmp_stg_print_int(buffer, name, __kmp_dflt_blocktime);
 } // __kmp_stg_print_blocktime
 
-// Used for OMP_WAIT_POLICY
-static char const *blocktime_str = NULL;
-
 // -----------------------------------------------------------------------------
 // KMP_DUPLICATE_LIB_OK
 
@@ -702,6 +699,9 @@ static void __kmp_stg_print_inherit_fp_c
 
 #endif /* KMP_ARCH_X86 || KMP_ARCH_X86_64 */
 
+// Used for OMP_WAIT_POLICY
+static char const *blocktime_str = NULL;
+
 // -----------------------------------------------------------------------------
 // KMP_LIBRARY, OMP_WAIT_POLICY
 




More information about the Openmp-commits mailing list