public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] Add XFAIL for libgomp.oacc-c-c++-common/data-firstprivate-1.c
@ 2021-05-13 16:14 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2021-05-13 16:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:dea5ec48a22075c833a77a6c26cdd141064c9ae0

commit dea5ec48a22075c833a77a6c26cdd141064c9ae0
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date:   Tue Mar 24 09:36:42 2020 -0700

    Add XFAIL for libgomp.oacc-c-c++-common/data-firstprivate-1.c
    
    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.

Diff:
---
 libgomp/ChangeLog.omp                                             | 5 +++++
 libgomp/testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index cd1bc53ea95..8b27fcf9cff 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -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
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c
index 8900a4e070d..4b88c53fac7 100644
--- a/libgomp/testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c
+++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c
@@ -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>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:14 [gcc/devel/omp/gcc-11] Add XFAIL for libgomp.oacc-c-c++-common/data-firstprivate-1.c Kwok Yeung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).