+2019-11-29 Tobias Burnus <tobias@codesourcery.com>
+
+ * fortran.dg/goacc/common-block-3.f90: Check that unused common-block
+ variables do not get mapped.
+
2019-11-29 Martin Jambor <mjambor@suse.cz>
PR ipa/92476
- * g++.dg/lto/pr92476_[01].C: New test.
+ * g++.dg/lto/pr92476_[01].C: New test.
2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
implicit none
integer :: i, j
- real :: a(n) = 0, b(n) = 0, c, d
+ real :: a(n) = 0, b(n) = 0, c, d, e(n)
real :: x(n) = 0, y(n), z
common /BLOCK/ a, b, c, j, d
common /KERNELS_BLOCK/ x, y, z
! { dg-final { scan-tree-dump-times "omp target oacc_kernels .*map\\(tofrom:y \\\[len: 400\\\]\\\)" 1 "omplower" } }
! { dg-final { scan-tree-dump-times "omp target oacc_kernels .*map\\(force_tofrom:c \\\[len: 4\\\]\\)" 1 "omplower" } }
-! { dg-final { scan-tree-dump-not "map\\(.*:block\\)" "omplower" } }
-! { dg-final { scan-tree-dump-not "map\\(.*:kernels_block\\)" "omplower" } }
+! Expecting no mapping of un-referenced common-blocks variables
+
+! { dg-final { scan-tree-dump-not "map\\(.*:block" "omplower" } }
+! { dg-final { scan-tree-dump-not "map\\(.*:kernels_block" "omplower" } }
+! { dg-final { scan-tree-dump-not "map\\(.*:d " "omplower" } }
+! { dg-final { scan-tree-dump-not "map\\(.*:e " "omplower" } }
+! { dg-final { scan-tree-dump-not "map\\(.*:z " "omplower" } }