This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Go patch committed: Don't call cgraph_mark_needed_node


Honza removed the function cgraph_mark_needed_node from mainline.  The
Go frontend called it, but that call was left over from days long ago
when package initialization was run as a global constructor.  Package
initialization is now done by a direct call from the main function
(found in libgo/runtime/go-main.c), so the function is no longer special
from a cgraph point of view.  This patch just removes the call to
cgraph_mark_needed_node.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linx-gnu.  Committed to mainline.

Ian

diff -r 2247d6aae86d go/gogo-tree.cc
--- a/go/gogo-tree.cc	Fri Apr 20 13:09:25 2012 -0700
+++ b/go/gogo-tree.cc	Fri Apr 20 14:19:43 2012 -0700
@@ -495,7 +495,6 @@
   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();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]