OSDN Git Service

* omp-low.c (create_omp_child_function): Set DECL_CONTEXT
[pf3gnuchains/gcc-fork.git] / gcc / omp-low.c
index 3b99f69..3e6d91c 100644 (file)
@@ -1577,6 +1577,7 @@ create_omp_child_function (omp_context *ctx, bool task_copy)
   t = build_decl (RESULT_DECL, NULL_TREE, void_type_node);
   DECL_ARTIFICIAL (t) = 1;
   DECL_IGNORED_P (t) = 1;
+  DECL_CONTEXT (t) = decl;
   DECL_RESULT (decl) = t;
 
   t = build_decl (PARM_DECL, get_identifier (".omp_data_i"), ptr_type_node);