[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
Tue Nov 29 13:17:56 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG624e9e131827: [openmp] [test] Use stdint.h instead of manual code defining kmp_int*. NFC. (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138818/new/
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.478705.patch
Type: text/x-patch
Size: 1497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221129/0fc72eda/attachment.bin>
More information about the Openmp-commits
mailing list