public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-977] Don't skip 'libgomp.oacc-fortran/privatized-ref-2.f90' for nvptx offloading
Date: Fri, 21 May 2021 14:26:14 +0000 (GMT)	[thread overview]
Message-ID: <20210521142614.ECAD438515FC@sourceware.org> (raw)

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


                 reply	other threads:[~2021-05-21 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210521142614.ECAD438515FC@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).