From: Jakub Jelinek Date: Thu, 8 Nov 2018 19:38:21 +0000 (+0100) Subject: task-reduction-8.c (bar): Add in_reduction clause for s[0]. X-Git-Tag: upstream/12.2.0~28248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8991d77974c3278cc7b9bd1352f88ced790d27fa;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index b9d1f96..636cb49 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 7b0859d..52d238a 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)