@@ -1,5 +1,7 @@
2014-11-11 Thomas Schwinge <thomas@codesourcery.com>
+ * omp-low.c (scan_sharing_clauses): Remove bogus assertion.
+
* omp-low.c (delete_omp_context): Dispose of reduction_map.
* omp-low.c (maybe_lookup_reduction): Don't require an OpenACC
@@ -1920,10 +1920,6 @@ scan_sharing_clauses (tree clauses, omp_context *ctx)
{
tree base = get_base_address (decl);
tree nc = OMP_CLAUSE_CHAIN (c);
- gcc_assert (nc == NULL_TREE
- || OMP_CLAUSE_CODE (nc) != OMP_CLAUSE_MAP
- || (OMP_CLAUSE_MAP_KIND (nc)
- != OMP_CLAUSE_MAP_FORCE_DEVICEPTR));
if (DECL_P (base)
&& nc != NULL_TREE
&& OMP_CLAUSE_CODE (nc) == OMP_CLAUSE_MAP
@@ -1,3 +1,8 @@
+2014-11-07 Thomas Schwinge <thomas@codesourcery.com>
+ James Norris <jnorris@codesourcery.com>
+
+ * c-c++-common/goacc/deviceptr-3.c: New file.
+
2014-11-05 Thomas Schwinge <thomas@codesourcery.com>
* c-c++-common/goacc/update-1.c: Extend.
new file mode 100644
@@ -0,0 +1,11 @@
+float *d_a;
+
+void
+f (float *a)
+{
+#pragma acc parallel copyout (a[3:10]) deviceptr (d_a)
+ d_a[2] += 1.0;
+
+#pragma acc parallel deviceptr (d_a) copyout (a[3:10])
+ d_a[2] += 1.0;
+}