[committed,Fortran,OpenMP] Actually pass use_device_addr on to the middle end

Message ID 0d40880d-94b7-16f9-19f1-f3cdda006bc9@mentor.com
State New
Headers show
Series
  • [committed,Fortran,OpenMP] Actually pass use_device_addr on to the middle end
Related show

Commit Message

Tobias Burnus Oct. 10, 2019, 8:49 a.m.
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

Patch

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  <tobias@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  <kargl@gcc.gnu.org>
 
 	PR fortran/91801