This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, committed] [Fortran, OpenMP] Actually pass use_device_addr on to the middle end
- From: Tobias Burnus <Tobias_Burnus at mentor dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, fortran <fortran at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 10 Oct 2019 10:49:33 +0200
- Subject: [Patch, committed] [Fortran, OpenMP] Actually pass use_device_addr on to the middle end
- Ironport-sdr: PxjtnCKbV/se69n61vR5n+8FbRazAHWFr8+1esd2U4k4FaDnkC3rgCcHq5+3SqHBXr2Bii7jBM qJkAmpXMDkip8I6r5eqLdj2zcs1kHpKg4ziF6qugSdrs8/2izpVzSORpqb9bhoF0W10W7HUqlR Lgb3ffvgHCwfvc0W9CmJMNjMNWBk+WiUBcc4J1nc261+5gwVgNefuOPM7LuEy6W/YTzn8L5hGD IDzVXgh0hEhpkoGGriV7nGXnGDxrFvn9cBjXktCb7VXonKieVdR2Icq0hK37l63qEf2+TcuMn9 sOc=
- Ironport-sdr: PX+gN4oJ9sY4Sl80U1s+Iyhj/cif2mPWYSI49orASMY/7tjq1sXulfPICEMheH+zgM2VyT0Pef yUGjxNcTThWERx5mCE29/S0gjBZCM7hNmwAvg0u50ojOey7AVVkPhtJDHdAWzWS+qHANwsUUaR eqXCjdvsXaYoNQhVBwIHOmYdi0fXdp4dlqXr7chjyMZdca1biVcUHS0KlbrDdS+kSP9u37gWIs WX8E3JtYxYq0CW4XNc4U2pOX7My/g24ec26IzAGrqSQTOQoCOaAixlnXSLRnYeDeDyiOb2KBKh iRg=
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 <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