[Openmp-commits] [openmp] 29ef16c - [openmp] [test] Set the right calling convention for the Windows thread start function
Martin Storsjö via Openmp-commits
openmp-commits at lists.llvm.org
Fri Nov 11 03:55:58 PST 2022
Author: Martin Storsjö
Date: 2022-11-11T13:55:25+02:00
New Revision: 29ef16c29f4c736aa1c3d770f0ecdf4409db5622
URL: https://github.com/llvm/llvm-project/commit/29ef16c29f4c736aa1c3d770f0ecdf4409db5622
DIFF: https://github.com/llvm/llvm-project/commit/29ef16c29f4c736aa1c3d770f0ecdf4409db5622.diff
LOG: [openmp] [test] Set the right calling convention for the Windows thread start function
This is required on i386 Windows; this fixes 99 testcases in that
build configuration.
Differential Revision: https://reviews.llvm.org/D137776
Added:
Modified:
openmp/runtime/test/omp_testsuite.h
Removed:
################################################################################
diff --git a/openmp/runtime/test/omp_testsuite.h b/openmp/runtime/test/omp_testsuite.h
index c3b5a90178fb..b1dcf8ff2ad7 100644
--- a/openmp/runtime/test/omp_testsuite.h
+++ b/openmp/runtime/test/omp_testsuite.h
@@ -86,7 +86,7 @@ struct thread_func_info_t {
};
// call the void* start_routine(void*);
-static DWORD __thread_func_wrapper(LPVOID lpParameter) {
+static DWORD WINAPI __thread_func_wrapper(LPVOID lpParameter) {
struct thread_func_info_t* function_information;
function_information = (struct thread_func_info_t*)lpParameter;
function_information->start_routine(function_information->arg);
More information about the Openmp-commits
mailing list