summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/omp-low.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index afa758bf499..9bb23ce64d3 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -1633,6 +1633,8 @@ create_omp_child_function (omp_context *ctx, bool task_copy)
= DECL_FUNCTION_SPECIFIC_TARGET (current_function_decl);
DECL_FUNCTION_VERSIONED (decl)
= DECL_FUNCTION_VERSIONED (current_function_decl);
+ DECL_FUNCTION_PARTIAL_COPY (decl) = 1;
+ DECL_ABSTRACT_ORIGIN (decl) = current_function_decl;
if (omp_maybe_offloaded_ctx (ctx))
{