Committed as obvious (r276791) – cherry picked from the patch (still
awaiting review):
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg00503.html
("[patch][OpenMP,Fortran] Fix several OpenMP use_device_addr/map/update
errors found by a length test case")
Tobias
PS: This bit was missing from the original patch at
https://gcc.gnu.org/ml/gcc-patches/2019-10/msg00115.html
Index: gcc/fortran/trans-openmp.c
===================================================================
--- gcc/fortran/trans-openmp.c (revision 276790)
+++ gcc/fortran/trans-openmp.c (revision 276791)
@@ -1887,6 +1887,9 @@
case OMP_LIST_USE_DEVICE_PTR:
clause_code = OMP_CLAUSE_USE_DEVICE_PTR;
goto add_clause;
+ case OMP_LIST_USE_DEVICE_ADDR:
+ clause_code = OMP_CLAUSE_USE_DEVICE_ADDR;
+ goto add_clause;
case OMP_LIST_IS_DEVICE_PTR:
clause_code = OMP_CLAUSE_IS_DEVICE_PTR;
goto add_clause;
Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog (revision 276790)
+++ gcc/fortran/ChangeLog (revision 276791)
@@ -1,3 +1,8 @@
+2019-10-10 Tobias Burnus <tob...@codesourcery.com>
+
+ * trans-openmp.c (gfc_trans_omp_clauses): Actually pass use_device_addr
+ on to the middle end.
+
2019-10-08 Steven G. Kargl <ka...@gcc.gnu.org>
PR fortran/91801