[Openmp-commits] [PATCH] D137776: [openmp] [test] Set the right calling convention for the Windows thread start function
Martin Storsjö via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 10 02:39:48 PST 2022
mstorsjo created this revision.
mstorsjo added reviewers: AndreyChurbanov, JonChesterfield, natgla, jdoerfert.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: OpenMP.
This is required on i386 Windows; this fixes 99 testcases
in that build configuration.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137776
Files:
openmp/runtime/test/omp_testsuite.h
Index: openmp/runtime/test/omp_testsuite.h
===================================================================
--- openmp/runtime/test/omp_testsuite.h
+++ openmp/runtime/test/omp_testsuite.h
@@ -86,7 +86,7 @@
};
// 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137776.474491.patch
Type: text/x-patch
Size: 565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221110/4f0af4ef/attachment.bin>
More information about the Openmp-commits
mailing list