[Openmp-commits] [openmp] r260204 - [GCC] GOMP_task: Change argument type of if_cond from int to bool
Jonas Hahnfeld via Openmp-commits
openmp-commits at lists.llvm.org
Mon Feb 8 23:07:31 PST 2016
Author: hahnfeld
Date: Tue Feb 9 01:07:30 2016
New Revision: 260204
URL: http://llvm.org/viewvc/llvm-project?rev=260204&view=rev
Log:
[GCC] GOMP_task: Change argument type of if_cond from int to bool
(libgomp has bool as well)
This was causing a test failure in omp_test_if.c when building with GCC in
Debug mode. I have verified that GCC versions 4.9.2 and 5.3.0 now work and
compile-tested this change with clang 3.7.1 and Intel Compiler 16.0.
Differential Revision: http://reviews.llvm.org/D16921
Modified:
openmp/trunk/runtime/src/kmp_gsupport.c
Modified: openmp/trunk/runtime/src/kmp_gsupport.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.c?rev=260204&r1=260203&r2=260204&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.c (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.c Tue Feb 9 01:07:30 2016
@@ -924,7 +924,7 @@ PARALLEL_LOOP_START(xexpand(KMP_API_NAME
void
xexpand(KMP_API_NAME_GOMP_TASK)(void (*func)(void *), void *data, void (*copy_func)(void *, void *),
- long arg_size, long arg_align, int if_cond, unsigned gomp_flags)
+ long arg_size, long arg_align, bool if_cond, unsigned gomp_flags)
{
MKLOC(loc, "GOMP_task");
int gtid = __kmp_entry_gtid();
More information about the Openmp-commits
mailing list