From 8991d77974c3278cc7b9bd1352f88ced790d27fa Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 8 Nov 2018 20:38:21 +0100 Subject: [PATCH] task-reduction-8.c (bar): Add in_reduction clause for s[0]. * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add in_reduction clause for s[0]. From-SVN: r265934 --- libgomp/ChangeLog | 3 +++ libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b9d1f96b36a..636cb4992ef 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2018-11-08 Jakub Jelinek + * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add + in_reduction clause for s[0]. + * affinity.c (gomp_display_affinity_place): New function. * affinity-fmt.c: New file. * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions. diff --git a/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c b/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c index 7b0859db6f0..52d238a5b15 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c +++ b/libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c @@ -45,7 +45,8 @@ unsigned long long int bar (int z, int *a, unsigned long long int *b, int *s) { unsigned long long int x = 1; - #pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) + #pragma omp taskloop reduction (*:x) in_reduction (*:b[0]) \ + in_reduction (+:s[0]) for (int i = z; i < z + 8; i++) { #pragma omp task in_reduction (*:x)