aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2011-08-05 12:22:10 +0000
committerRainer Orth <ro@gcc.gnu.org>2011-08-05 12:22:10 +0000
commit98d0368392ca95df416e409289e2651f5fd6d7b9 (patch)
tree366606df2579efd3a31919a7b5e91efa7a92d6d7
parent96c891b30a01cfead4d47530d1a2d78ebff13e1a (diff)
downloadgcc-98d0368392ca95df416e409289e2651f5fd6d7b9.zip
gcc-98d0368392ca95df416e409289e2651f5fd6d7b9.tar.gz
gcc-98d0368392ca95df416e409289e2651f5fd6d7b9.tar.bz2
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
-rw-r--r--libgomp/ChangeLog5
-rw-r--r--libgomp/testsuite/libgomp.c++/task-8.C24
2 files changed, 17 insertions, 12 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index df3cf60..ea5951a 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR libgomp/49965
+ * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
+
2011-08-03 Uros Bizjak <ubizjak@gmail.com>
* config/linux/proc.h: New.
diff --git a/libgomp/testsuite/libgomp.c++/task-8.C b/libgomp/testsuite/libgomp.c++/task-8.C
index 3e1b469..b523c4d 100644
--- a/libgomp/testsuite/libgomp.c++/task-8.C
+++ b/libgomp/testsuite/libgomp.c++/task-8.C
@@ -3,42 +3,42 @@
#include <omp.h>
#include <cstdlib>
-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 ();
}