@@ -1,3 +1,10 @@
+2016-11-07 Cesar Philippidis <cesar@codesourcery.com>
+
+ * gimplify.c (enum gimplify_omp_var_data): Remove stale
+ GOVD_USE_DEVPTR.
+ (gimplify_scan_omp_clauses): Likewise.
+ (gimplify_adjust_omp_clauses_1): Likewise.
+
2016-10-28 Cesar Philippidis <cesar@codesourcery.com>
* config/nvptx/nvptx.c (nvptx_single): Use a single predicate
@@ -93,9 +93,6 @@ enum gimplify_omp_var_data
/* Flag for GOVD_MAP, if it is a forced mapping. */
GOVD_MAP_FORCE = 262144,
- /* OpenACC deviceptr clause. */
- GOVD_USE_DEVPTR = 524288,
-
GOVD_DATA_SHARE_CLASS = (GOVD_SHARED | GOVD_PRIVATE | GOVD_FIRSTPRIVATE
| GOVD_LASTPRIVATE | GOVD_REDUCTION | GOVD_LINEAR
| GOVD_LOCAL)
@@ -7307,8 +7304,6 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
if (OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_ALWAYS_TO
|| OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_ALWAYS_TOFROM)
flags |= GOVD_MAP_ALWAYS_TO;
- else if (OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_FORCE_DEVICEPTR)
- flags |= GOVD_USE_DEVPTR;
goto do_add;
case OMP_CLAUSE_DEPEND:
@@ -8057,8 +8052,6 @@ gimplify_adjust_omp_clauses_1 (splay_tree_node n, void *data)
struct gimplify_omp_ctx *ctx = gimplify_omp_ctxp->outer_context;
splay_tree_node on
= splay_tree_lookup (ctx->variables, (splay_tree_key) decl);
- if (on && (on->value & GOVD_USE_DEVPTR))
- OMP_CLAUSE_SET_MAP_KIND (clause, GOMP_MAP_FORCE_PRESENT);
}
OMP_CLAUSE_SIZE (clause) = DECL_SIZE_UNIT (decl);
}
@@ -1,3 +1,7 @@
+2016-11-07 Cesar Philippidis <cesar@codesourcery.com>
+
+ * c-c++-common/goacc/deviceptr-4.c: Adjust testcase.
+
2016-10-05 Cesar Philippidis <cesar@codesourcery.com>
* gfortran.dg/goacc/tile-lowering.f95: Add more coverage.
@@ -8,4 +8,4 @@ subr (int *a)
a[0] += 1.0;
}
-/* { dg-final { scan-tree-dump-times "#pragma omp target oacc_parallel.*map\\(force_present:a" 1 "gimple" } } */
+/* { dg-final { scan-tree-dump-times "#pragma omp target oacc_parallel.*map\\(tofrom:a" 1 "gimple" } } */