]> 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>
Tue, 21 Jun 2022 13:11:21 +0000 (14:11 +0100)
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 dc2e8893756469bba2fca6821b1b40f692c6142a..53943208c91a8e771af3bd139114bb9c6f6a317e 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.
+
 2019-09-17  Julian Brown  <julian@codesourcery.com>
            Kwok Cheung Yeung  <kcy@codesourcery.com>
 
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>