summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2017-10-20 12:05:19 -0200
committerAlexandre Oliva <aoliva@redhat.com>2017-10-20 13:41:57 -0200
commitf9f98f1d9ec8ef9ed6eab743ab4d796cca2aa4d6 (patch)
treecc0de8472e892e2053e981b849a128eb9b960640
parentabde4e3d42034994b5c1f7d955992308c5298176 (diff)
downloadgcc-aoliva/pne.tar.gz
debug info: partial noentry functions: omp split-out blocksaoliva/pne
-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))
{