From: Ian Lance Taylor Date: Fri, 20 Apr 2012 21:20:36 +0000 (+0000) Subject: compiler: Don't call cgraph_mark_needed_node. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8512b2843f4e3740f457c96b43703f91483c4422;p=gcc.git compiler: Don't call cgraph_mark_needed_node. From-SVN: r186644 --- diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc index fa229320c96..762f9fc9b81 100644 --- a/gcc/go/gofrontend/gogo-tree.cc +++ b/gcc/go/gofrontend/gogo-tree.cc @@ -495,7 +495,6 @@ Gogo::write_initialization_function(tree fndecl, tree init_stmt_list) gimplify_function_tree(fndecl); cgraph_add_new_function(fndecl, false); - cgraph_mark_needed_node(cgraph_get_node(fndecl)); current_function_decl = NULL_TREE; pop_cfun();