Commit 388dde26 by Jan Hubicka Committed by Jan Hubicka

re PR ipa/70795 (gcc/libjava/interpret.cc:1948:1: ICE: in binds_to_current_def_p, at symtab.c:2232)

	PR ipa/70795
	* cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
	flag if needed.

From-SVN: r245312
parent 0b90c541
2017-02-09 Jan Hubicka <hubicka@ucw.cz> 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
PR ipa/70795
* cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
flag if needed.
2017-02-09 Jan Hubicka <hubicka@ucw.cz>
* tree-ssa-loop-unswitch.c (hoist_guard): Update profile. * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
2017-02-09 Jakub Jelinek <jakub@redhat.com> 2017-02-09 Jakub Jelinek <jakub@redhat.com>
......
...@@ -541,6 +541,8 @@ cgraph_node::add_new_function (tree fndecl, bool lowered) ...@@ -541,6 +541,8 @@ cgraph_node::add_new_function (tree fndecl, bool lowered)
node->local.local = false; node->local.local = false;
node->definition = true; node->definition = true;
node->force_output = true; node->force_output = true;
if (TREE_PUBLIC (fndecl))
node->externally_visible = true;
if (!lowered && symtab->state == EXPANSION) if (!lowered && symtab->state == EXPANSION)
{ {
push_cfun (DECL_STRUCT_FUNCTION (fndecl)); push_cfun (DECL_STRUCT_FUNCTION (fndecl));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment