From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id ECAD438515FC; Fri, 21 May 2021 14:26:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECAD438515FC MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-977] Don't skip 'libgomp.oacc-fortran/privatized-ref-2.f90' for nvptx offloading X-Act-Checkin: gcc X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/master X-Git-Oldrev: 61796dc03befa9b7426d5bc7c336cca585944143 X-Git-Newrev: 5d42db533324e80a7382b20b94cace5b202d41ea Message-Id: <20210521142614.ECAD438515FC@sourceware.org> Date: Fri, 21 May 2021 14:26:14 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2021 14:26:15 -0000 https://gcc.gnu.org/g:5d42db533324e80a7382b20b94cace5b202d41ea commit r12-977-g5d42db533324e80a7382b20b94cace5b202d41ea Author: Thomas Schwinge 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