Backported from mainline
2016-06-30 Jakub Jelinek <jakub@redhat.com>
PR fortran/71705
* trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
decls in to/from clauses.
* gfortran.dg/gomp/pr71705.f90: New test.
From-SVN: r238146
+2016-07-07 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 2016-06-30 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/71705
+ * trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
+ decls in to/from clauses.
+
2016-05-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from trunk.
tree decl = gfc_get_symbol_decl (n->sym);
if (gfc_omp_privatize_by_reference (decl))
decl = build_fold_indirect_ref (decl);
+ else if (DECL_P (decl))
+ TREE_ADDRESSABLE (decl) = 1;
if (GFC_DESCRIPTOR_TYPE_P (TREE_TYPE (decl)))
{
tree type = TREE_TYPE (decl);
2016-07-07 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2016-06-30 Jakub Jelinek <jakub@redhat.com>
+
+ PR fortran/71705
+ * gfortran.dg/gomp/pr71705.f90: New test.
+
2016-06-28 Jakub Jelinek <jakub@redhat.com>
PR middle-end/71626
--- /dev/null
+! PR fortran/71705
+! { dg-do compile }
+
+ real :: x
+ x = 0.0
+ !$omp target update to(x)
+end