From: Jan Hubicka Date: Thu, 9 Feb 2017 18:16:00 +0000 (+0100) Subject: re PR ipa/70795 (gcc/libjava/interpret.cc:1948:1: ICE: in binds_to_current_def_p... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=388dde26a5b5a6740018340953955eb05abba817;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9af921975a3..4826bcba838 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-02-09 Jan Hubicka + + PR ipa/70795 + * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible + flag if needed. + 2017-02-09 Jan Hubicka * tree-ssa-loop-unswitch.c (hoist_guard): Update profile. diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index cc49c798515..c82a88a599c 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -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));