]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add XFAIL for libgomp.oacc-c-c++-common/data-firstprivate-1.c
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 24 Mar 2020 16:36:42 +0000 (09:36 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 22 Apr 2021 17:14:23 +0000 (10:14 -0700)
The firstprivate_int optimization changes the semantics of firstprivate
in this test, so XFAIL it until the correct semantics for firstprivate
have been decided (PR92036).

2020-03-24  Kwok Cheung Yeung  <kcy@codesourcery.com>

libgomp/
* testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: XFAIL
execution test.

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c

index cd1bc53ea9521e3c1b2e43d61ff110a864aa2f4e..8b27fcf9cfff9615bda6fc6e3300b2dfc8e7a428 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-24  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: XFAIL
+       execution test.
+
 2020-03-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
        * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c (main): Add
index 8900a4e070da1d7ccc5b31427485e92e02e844d8..4b88c53fac76d56f75cc36e6328c8577789f8fd6 100644 (file)
@@ -1,6 +1,12 @@
 /* Test behavior of 'firstprivate' lexically vs. dynamically nested inside a
    'data' region.  */
 
+/* The firstprivate_int optimization changes the semantics of firstprivate
+   in dynamically_nested_compute_2 to copy-by-value when not using shared
+   memory, leading to the behaviour suggested in PR92036 for this case.  */
+
+/* { dg-xfail-run-if "firstprivate_int" { *-*-* } { "-DACC_MEM_SHARED=0" } } */
+
 #include <stdlib.h>