From: Jonas Hahnfeld Date: Tue, 9 Feb 2016 07:07:30 +0000 (+0000) Subject: [GCC] GOMP_task: Change argument type of if_cond from int to bool X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9dffeff894bc190ca31723a2eb3c21f972d2256f;p=platform%2Fupstream%2Fllvm.git [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 llvm-svn: 260204 --- diff --git a/openmp/runtime/src/kmp_gsupport.c b/openmp/runtime/src/kmp_gsupport.c index 779ac40..406b279 100644 --- a/openmp/runtime/src/kmp_gsupport.c +++ b/openmp/runtime/src/kmp_gsupport.c @@ -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();