[Openmp-commits] [openmp] r311269 - Use va_copy instead of __va_copy to fix building libomp against musl libc

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Sat Aug 19 16:53:36 PDT 2017


Author: jlpeyton
Date: Sat Aug 19 16:53:36 2017
New Revision: 311269

URL: http://llvm.org/viewvc/llvm-project?rev=311269&view=rev
Log:
Use va_copy instead of __va_copy to fix building libomp against musl libc

Fixes https://bugs.llvm.org/show_bug.cgi?id=34040

Patch by Peter Levine

Differential Revision: https://reviews.llvm.org/D36343

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

Modified: openmp/trunk/runtime/src/kmp_str.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_str.cpp?rev=311269&r1=311268&r2=311269&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_str.cpp (original)
+++ openmp/trunk/runtime/src/kmp_str.cpp Sat Aug 19 16:53:36 2017
@@ -168,7 +168,7 @@ void __kmp_str_buf_vprint(kmp_str_buf_t
 
 #if !KMP_OS_WINDOWS
       va_list _args;
-      __va_copy(_args, args); // Make copy of args.
+      va_copy(_args, args); // Make copy of args.
 #define args _args // Substitute args with its copy, _args.
 #endif // KMP_OS_WINDOWS
       rc = KMP_VSNPRINTF(buffer->str + buffer->used, free, format, args);




More information about the Openmp-commits mailing list