diff options
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index bb31a0e..63131af 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -660,6 +660,16 @@ tree_rest_of_compilation (tree fndecl) timevar_pop (TV_INTEGRATION); } } + /* We are not going to maintain the cgraph edges up to date. + Kill it so it won't confuse us. */ + while (node->callees) + { + /* In non-unit-at-a-time we must mark all referenced functions as needed. + */ + if (node->callees->callee->analyzed && !flag_unit_at_a_time) + cgraph_mark_needed_node (node->callees->callee); + cgraph_remove_edge (node->callees); + } /* We are not going to maintain the cgraph edges up to date. Kill it so it won't confuse us. */ |