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
This commit is contained in:
parent
0b90c54148
commit
388dde26a5
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
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.
|
||||
|
|
|
@ -541,6 +541,8 @@ cgraph_node::add_new_function (tree fndecl, bool lowered)
|
|||
node->local.local = false;
|
||||
node->definition = true;
|
||||
node->force_output = true;
|
||||
if (TREE_PUBLIC (fndecl))
|
||||
node->externally_visible = true;
|
||||
if (!lowered && symtab->state == EXPANSION)
|
||||
{
|
||||
push_cfun (DECL_STRUCT_FUNCTION (fndecl));
|
||||
|
|
Loading…
Add table
Reference in a new issue