aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-02-09 19:16:00 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-02-09 18:16:00 +0000
commit388dde26a5b5a6740018340953955eb05abba817 (patch)
tree710886bd206a1d8cfe9e947fb5b2bdd2d06e0105 /gcc
parent0b90c54148e93786d4f5f5d428c8eed57b3cd08b (diff)
downloadgcc-388dde26a5b5a6740018340953955eb05abba817.zip
gcc-388dde26a5b5a6740018340953955eb05abba817.tar.gz
gcc-388dde26a5b5a6740018340953955eb05abba817.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cgraphunit.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9af9219..4826bcb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
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.
2017-02-09 Jakub Jelinek <jakub@redhat.com>
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index cc49c79..c82a88a 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));