PR ipa/70795
* cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
flag if needed.
From-SVN: r245312
+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.
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));