public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-977] Don't skip 'libgomp.oacc-fortran/privatized-ref-2.f90' for nvptx offloading
@ 2021-05-21 14:26 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-05-21 14:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5d42db533324e80a7382b20b94cace5b202d41ea

commit r12-977-g5d42db533324e80a7382b20b94cace5b202d41ea
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Fri May 21 09:03:43 2021 +0200

    Don't skip 'libgomp.oacc-fortran/privatized-ref-2.f90' for nvptx offloading
    
            libgomp/
            * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
            for nvptx offloading.

Diff:
---
 libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90 b/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
index 6c3e1dcc211..907f0245f93 100644
--- a/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
+++ b/libgomp/testsuite/libgomp.oacc-fortran/privatized-ref-2.f90
@@ -1,4 +1,11 @@
-! { dg-do run { target { ! openacc_nvidia_accel_selected } } }
+! { dg-do run }
+
+! PR65181 "Support for alloca in nvptx"
+! { dg-excess-errors "lto1, mkoffload and lto-wrapper fatal errors" { target openacc_nvidia_accel_selected } }
+! Aside from restricting this testcase to non-nvptx offloading, and duplicating
+! it with 'dg-do link' for nvptx offloading, there doesn't seem to be a way to
+! XFAIL the "UNRESOLVED: [...] compilation failed to produce executable", or
+! get rid of it, unfortunately.
 
 program main
   implicit none (type, external)
@@ -24,6 +31,7 @@ contains
     !$acc parallel copyout(array)
     array = [(-i, i = 1, nn)]
     !$acc loop gang private(array)
+    ! { dg-message {sorry, unimplemented: target cannot support alloca} PR65181 { target openacc_nvidia_accel_selected } .-1 }
     do i = 1, 10
       array(i) = i
     end do
@@ -37,6 +45,7 @@ contains
     !$acc parallel copyout(array)
     array = [(-2*i, i = 1, size(array))]
     !$acc loop gang private(array)
+    ! { dg-message {sorry, unimplemented: target cannot support alloca} PR65181 { target openacc_nvidia_accel_selected } .-1 }
     do i = 1, 10
       array(i) = 9*i
     end do
@@ -50,6 +59,7 @@ contains
     !$acc parallel copyout(str)
     str = "abcdefghij"
     !$acc loop gang private(str)
+    ! { dg-message {sorry, unimplemented: target cannot support alloca} PR65181 { target openacc_nvidia_accel_selected } .-1 }
     do i = 1, 10
       str(i:i) = achar(ichar('A') + i)
     end do


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 14:26 [gcc r12-977] Don't skip 'libgomp.oacc-fortran/privatized-ref-2.f90' for nvptx offloading Thomas Schwinge

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).