]> gcc.gnu.org Git - gcc.git/commitdiff
task-reduction-8.c (bar): Add in_reduction clause for s[0].
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Nov 2018 19:38:21 +0000 (20:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Nov 2018 19:38:21 +0000 (20:38 +0100)
* testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
in_reduction clause for s[0].

From-SVN: r265934

libgomp/ChangeLog
libgomp/testsuite/libgomp.c-c++-common/task-reduction-8.c

index b9d1f96b36a73d2923f8dfe814576d9690a064b1..636cb4992efb26ca5ed70822bc7f91a5e52d7c66 100644 (file)
@@ -1,5 +1,8 @@
 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
 
+       * 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.
index 7b0859db6f01a1b12f7ab8926627f23e7457a23a..52d238a5b15a63b430a55898226dd51f96d56bb1 100644 (file)
@@ -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)
This page took 0.08287 seconds and 5 git commands to generate.