]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
'libgomp.oacc-fortran/derivedtypes-arrays-1.f90' OpenACC 'serial' construct diagnosti...
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 11 Mar 2021 09:52:59 +0000 (10:52 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 25 Mar 2021 11:51:31 +0000 (12:51 +0100)
Fixup for recent commit d28f3da11d8c0aed9b746689d723022a9b5ec04c "openacc: Fix
lowering for derived-type mappings through array elements".  With nvptx
offloading we see the usual:

    [...]/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: In function 'MAIN__._omp_fn.0':
    [...]/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:90:40: warning: using vector_length (32), ignoring 1

libgomp/
* testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
OpenACC 'serial' construct diagnostic for nvptx offloading.

(cherry picked from commit 8bafce1be11a301c2421483736c634b8bf330e69)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90

index 19f48dc61202c87ec040c846f44409de875cf8a8..05788d5c27a267cfcce09aac40aeea15ecc3c851 100644 (file)
@@ -1,5 +1,8 @@
 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
 
+       * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
+       OpenACC 'serial' construct diagnostic for nvptx offloading.
+
        * plugin/plugin-hsa.c (GOMP_OFFLOAD_supported_features): New
        function.
 
index 644ad1f6b2fc9a2591e265f1a5bca2e493483ac0..7bca2df662857dabf46bf57bb0d1b21c5995208d 100644 (file)
@@ -88,6 +88,7 @@ end do
 !$acc data copyin(var3%t2(5)%t1%arr1)
 
 !$acc serial present(var3%t2(5)%t1%arr1)
+! { dg-warning "using vector_length \\(32\\), ignoring 1" "" { target openacc_nvidia_accel_selected } .-1 }
 var3%t2(5)%t1%arr1(:,:) = 6
 !$acc end serial