[GCC] GOMP_task: Change argument type of if_cond from int to bool
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Tue, 9 Feb 2016 07:07:30 +0000 (07:07 +0000)
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Tue, 9 Feb 2016 07:07:30 +0000 (07:07 +0000)
(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

llvm-svn: 260204

openmp/runtime/src/kmp_gsupport.c

index 779ac40..406b279 100644 (file)
@@ -924,7 +924,7 @@ PARALLEL_LOOP_START(xexpand(KMP_API_NAME_GOMP_PARALLEL_LOOP_RUNTIME_START),
 
 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();