From 12f06be7e127dddc64455dcfed99ff890ef54e1d Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Mon, 15 Aug 2016 17:09:42 +0000 Subject: Fix ICE in binds_to_current_def_p 2016-08-15 Martin Jambor * 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 --- gcc/ChangeLog.hsa | 5 +++++ gcc/ipa-hsa.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog.hsa b/gcc/ChangeLog.hsa index 3a788cee4ed..f7377fdeb49 100644 --- a/gcc/ChangeLog.hsa +++ b/gcc/ChangeLog.hsa @@ -1,3 +1,8 @@ +2016-08-15 Martin Jambor + + * ipa-hsa.c (process_hsa_functions): Copy externally visible flag + to the node. + 2016-08-15 Martin Jambor * hsa-gen.c (gen_hsa_unary_operation): Make sure the function does 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 (), 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 (), 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; -- cgit v1.2.3