Commit 351beab7 by Jakub Jelinek Committed by Jakub Jelinek

re PR fortran/71705 (ICE in lower_omp_target, at omp-low.c:16136)

	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: r237887
parent 5a3a6a5e
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-06-29 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/71686
......
......@@ -2182,6 +2182,8 @@ gfc_trans_omp_clauses (stmtblock_t *block, gfc_omp_clauses *clauses,
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-06-30 Jakub Jelinek <jakub@redhat.com>
PR fortran/71705
* gfortran.dg/gomp/pr71705.f90: New test.
2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
* gcc.target/powerpc/dfp/dfp.exp: New dejagnu test script.
......
! PR fortran/71705
! { dg-do compile }
real :: x
x = 0.0
!$omp target update to(x)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment