From 98d0368392ca95df416e409289e2651f5fd6d7b9 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 5 Aug 2011 12:22:10 +0000 Subject: [PATCH] re PR target/49965 (libgomp.c++/reduction-4.C and libgomp.c++/task-8.C FAIL on Solaris 11/SPARC) PR libgomp/49965 * testsuite/libgomp.c++/task-8.C: Replaced err by errval. From-SVN: r177428 --- libgomp/ChangeLog | 5 +++++ libgomp/testsuite/libgomp.c++/task-8.C | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index df3cf60992c..ea5951a6bdd 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2011-08-05 Rainer Orth + + PR libgomp/49965 + * testsuite/libgomp.c++/task-8.C: Replaced err by errval. + 2011-08-03 Uros Bizjak * config/linux/proc.h: New. diff --git a/libgomp/testsuite/libgomp.c++/task-8.C b/libgomp/testsuite/libgomp.c++/task-8.C index 3e1b4696b08..b523c4d2253 100644 --- a/libgomp/testsuite/libgomp.c++/task-8.C +++ b/libgomp/testsuite/libgomp.c++/task-8.C @@ -3,42 +3,42 @@ #include #include -int err; +int errval; int main () { int e; -#pragma omp parallel shared(err) +#pragma omp parallel shared(errval) { if (omp_in_final ()) #pragma omp atomic write - err = 1; - #pragma omp task if (0) shared(err) + errval = 1; + #pragma omp task if (0) shared(errval) { if (omp_in_final ()) #pragma omp atomic write - err = 1; - #pragma omp task if (0) shared(err) + errval = 1; + #pragma omp task if (0) shared(errval) if (omp_in_final ()) #pragma omp atomic write - err = 1; + errval = 1; } - #pragma omp task final (1) shared(err) + #pragma omp task final (1) shared(errval) { if (!omp_in_final ()) #pragma omp atomic write - err = 1; + errval = 1; #pragma omp taskyield #pragma omp taskwait - #pragma omp task shared(err) + #pragma omp task shared(errval) if (!omp_in_final ()) #pragma omp atomic write - err = 1; + errval = 1; } } #pragma omp atomic read - e = err; + e = errval; if (e) abort (); } -- 2.30.2