aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2016-08-15 17:09:42 +0000
committerMartin Jambor <mjambor@suse.cz>2016-08-15 17:09:42 +0000
commit12f06be7e127dddc64455dcfed99ff890ef54e1d (patch)
tree1ddafd90b0d6ee07465c495e31229b2ade24b8a4
parentc2d43e0aa11718baaa7cc8935f622f6cc1f305e3 (diff)
Fix ICE in binds_to_current_def_p
2016-08-15 Martin Jambor <mjambor@suse.cz> * ipa-hsa.c (process_hsa_functions): Copy externally visible flag to the node. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/hsa@239485 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog.hsa5
-rw-r--r--gcc/ipa-hsa.c2
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;