compiler: Don't call cgraph_mark_needed_node.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 21:20:36 +0000 (21:20 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 21:20:36 +0000 (21:20 +0000)
From-SVN: r186644

gcc/go/gofrontend/gogo-tree.cc

index fa229320c963d9616a80ffa31cb7ca4a00493e35..762f9fc9b8170ecd39e6c5cd16bbdeca16259ea6 100644 (file)
@@ -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();