2019-05-03 Kwok Cheung Yeung <kcy@codesourcery.com>
gcc/
* gimplify.c (gomp_oacc_needs_data_present): Return NULL if decl is a
Fortran optional argument.
(cherry picked from openacc-gcc-9-branch commit
9f8245e675d2907ae7b76a50557452361e979c59)
+2019-05-03 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * gimplify.c (gomp_oacc_needs_data_present): Return NULL if decl is a
+ Fortran optional argument.
+
2019-02-01 Thomas Schwinge <thomas@codesourcery.com>
* omp-oacc-kernels.c (struct adjust_nested_loop_clauses_wi_info): New.
|| TREE_CODE (TREE_TYPE (TREE_TYPE (decl))) != ARRAY_TYPE))
return NULL;
+ if (omp_is_optional_argument (decl))
+ return NULL;
+
decl = get_base_address (decl);
for (ctx = gimplify_omp_ctxp->outer_context; ctx; ctx = ctx->outer_context)