[Openmp-commits] [PATCH] D138818: [openmp] [test] Use stdint.h instead of manual code defining kmp_int*. NFC.

Martin Storsjö via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Nov 28 07:09:41 PST 2022


mstorsjo created this revision.
mstorsjo added reviewers: AndreyChurbanov, JonChesterfield, natgla, jdoerfert, Meinersbur, jlpeyton.
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.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138818

Files:
  openmp/runtime/test/tasking/bug_nested_proxy_task.c
  openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c


Index: openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
===================================================================
--- openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
+++ openmp/runtime/test/tasking/bug_proxy_task_dep_waiting.c
@@ -6,6 +6,7 @@
 // https://bugs.llvm.org/show_bug.cgi?id=45397
 // UNSUPPORTED: linux
 
+#include <stdint.h>
 #include <stdio.h>
 #include <omp.h>
 #include "omp_testsuite.h"
@@ -17,13 +18,9 @@
 */
 
 // Compiler-generated code (emulation)
-#ifdef _WIN64
-typedef long long kmp_intptr_t;
-#else
-typedef long kmp_intptr_t;
-#endif
-typedef int kmp_int32;
-typedef unsigned char kmp_uint8;
+typedef intptr_t kmp_intptr_t;
+typedef int32_t kmp_int32;
+typedef uint8_t kmp_uint8;
 
 typedef char bool;
 
Index: openmp/runtime/test/tasking/bug_nested_proxy_task.c
===================================================================
--- openmp/runtime/test/tasking/bug_nested_proxy_task.c
+++ openmp/runtime/test/tasking/bug_nested_proxy_task.c
@@ -6,6 +6,7 @@
 // https://bugs.llvm.org/show_bug.cgi?id=45397
 // UNSUPPORTED: linux
 
+#include <stdint.h>
 #include <stdio.h>
 #include <omp.h>
 #include "omp_testsuite.h"
@@ -20,13 +21,9 @@
 */
 
 // Compiler-generated code (emulation)
-#ifdef _WIN64
-typedef long long kmp_intptr_t;
-#else
-typedef long kmp_intptr_t;
-#endif
-typedef int kmp_int32;
-typedef unsigned char kmp_uint8;
+typedef intptr_t kmp_intptr_t;
+typedef int32_t kmp_int32;
+typedef uint8_t kmp_uint8;
 
 typedef char bool;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138818.478235.patch
Type: text/x-patch
Size: 1497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221128/a7ef7e32/attachment-0001.bin>


More information about the Openmp-commits mailing list