diff options
-rw-r--r-- | gcc/ChangeLog.hsa | 5 | ||||
-rw-r--r-- | gcc/ipa-hsa.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog.hsa b/gcc/ChangeLog.hsa index 3a788cee4ed..f7377fdeb49 100644 --- a/gcc/ChangeLog.hsa +++ b/gcc/ChangeLog.hsa @@ -1,5 +1,10 @@ 2016-08-15 Martin Jambor <mjambor@suse.cz> + * ipa-hsa.c (process_hsa_functions): Copy externally visible flag + to the node. + +2016-08-15 Martin Jambor <mjambor@suse.cz> + * hsa-gen.c (gen_hsa_unary_operation): Make sure the function does not use bittype source type for firstbit and lastbit operations. (gen_hsa_popcount_to_dest): Make sure the function uses a bittype diff --git a/gcc/ipa-hsa.c b/gcc/ipa-hsa.c index 9ab492701e2..0fbe2e2062d 100644 --- a/gcc/ipa-hsa.c +++ b/gcc/ipa-hsa.c @@ -90,6 +90,7 @@ process_hsa_functions (void) = node->create_virtual_clone (vec <cgraph_edge *> (), NULL, NULL, "hsa"); TREE_PUBLIC (clone->decl) = TREE_PUBLIC (node->decl); + clone->externally_visible = node->externally_visible; clone->force_output = true; hsa_summaries->link_functions (clone, node, s->m_kind, false); @@ -107,6 +108,7 @@ process_hsa_functions (void) = node->create_virtual_clone (vec <cgraph_edge *> (), NULL, NULL, "hsa"); TREE_PUBLIC (clone->decl) = TREE_PUBLIC (node->decl); + clone->externally_visible = node->externally_visible; if (!cgraph_local_p (node)) clone->force_output = true; |