* omp-low.c (create_omp_child_function): Tag entrypoint
functions with a special attribute.
From-SVN: r220950
+2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
+
+ * omp-low.c (create_omp_child_function): Tag entrypoint
+ functions with a special attribute.
+
2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
PR target/65058
}
}
+ if (cgraph_node::get_create (decl)->offloadable
+ && !lookup_attribute ("omp declare target",
+ DECL_ATTRIBUTES (current_function_decl)))
+ DECL_ATTRIBUTES (decl)
+ = tree_cons (get_identifier ("omp target entrypoint"),
+ NULL_TREE, DECL_ATTRIBUTES (decl));
+
t = build_decl (DECL_SOURCE_LOCATION (decl),
RESULT_DECL, NULL_TREE, void_type_node);
DECL_ARTIFICIAL (t) = 1;