浏览代码

gcc: Have the codelet structure inherit the visibility of the task.

* gcc-plugin/src/starpu.c (define_codelet): Have CL_DEF inherit
  TREE_PUBLIC from TASK_DECL.
Ludovic Courtès 14 年之前
父节点
当前提交
9d34786546
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      gcc-plugin/src/starpu.c

+ 1 - 0
gcc-plugin/src/starpu.c

@@ -835,6 +835,7 @@ define_codelet (tree task_decl)
   gcc_assert (cl_def != NULL_TREE && TREE_CODE (cl_def) == VAR_DECL);
 
   /* Turn the codelet declaration into a definition.  */
+  TREE_PUBLIC (cl_def) = TREE_PUBLIC (task_decl);
   TREE_STATIC (cl_def) = true;
   DECL_EXTERNAL (cl_def) = false;
   DECL_INITIAL (cl_def) = build_codelet_initializer (task_decl);