aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-04-03 15:35:49 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2015-04-03 15:35:49 +0200
commitf74849783ea001fcd646b0c9f9c2e158cf261722 (patch)
tree21636e6c28bf2280412d596e0045af74ef56d6b1
parenta115251c2b89d7effa0f61bc8fd5d8225f0af913 (diff)
downloadgcc-f74849783ea001fcd646b0c9f9c2e158cf261722.zip
gcc-f74849783ea001fcd646b0c9f9c2e158cf261722.tar.gz
gcc-f74849783ea001fcd646b0c9f9c2e158cf261722.tar.bz2
omp-low.c (scan_omp_parallel, [...]): Set TYPE_ARTIFICIAL on the .omp_data* types.
* omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set TYPE_ARTIFICIAL on the .omp_data* types. From-SVN: r221853
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/omp-low.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fee8cb5..a12d8e7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-03 Jakub Jelinek <jakub@redhat.com>
+
+ * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
+ TYPE_ARTIFICIAL on the .omp_data* types.
+
2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
* cgraphunit.c (cgraph_node::expand_thunk): Don't expand
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 80bddf0..835ff71 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -2351,6 +2351,7 @@ scan_omp_parallel (gimple_stmt_iterator *gsi, omp_context *outer_ctx)
DECL_ARTIFICIAL (name) = 1;
DECL_NAMELESS (name) = 1;
TYPE_NAME (ctx->record_type) = name;
+ TYPE_ARTIFICIAL (ctx->record_type) = 1;
create_omp_child_function (ctx, false);
gimple_omp_parallel_set_child_fn (stmt, ctx->cb.dst_fn);
@@ -2391,6 +2392,7 @@ scan_omp_task (gimple_stmt_iterator *gsi, omp_context *outer_ctx)
DECL_ARTIFICIAL (name) = 1;
DECL_NAMELESS (name) = 1;
TYPE_NAME (ctx->record_type) = name;
+ TYPE_ARTIFICIAL (ctx->record_type) = 1;
create_omp_child_function (ctx, false);
gimple_omp_task_set_child_fn (stmt, ctx->cb.dst_fn);
@@ -2404,6 +2406,7 @@ scan_omp_task (gimple_stmt_iterator *gsi, omp_context *outer_ctx)
DECL_ARTIFICIAL (name) = 1;
DECL_NAMELESS (name) = 1;
TYPE_NAME (ctx->srecord_type) = name;
+ TYPE_ARTIFICIAL (ctx->srecord_type) = 1;
create_omp_child_function (ctx, true);
}
@@ -2671,6 +2674,7 @@ scan_omp_target (gomp_target *stmt, omp_context *outer_ctx)
DECL_ARTIFICIAL (name) = 1;
DECL_NAMELESS (name) = 1;
TYPE_NAME (ctx->record_type) = name;
+ TYPE_ARTIFICIAL (ctx->record_type) = 1;
if (offloaded)
{
if (is_gimple_omp_oacc (stmt))