Patchwork Go patch committed: Call cgraph_get_node

login
register
mail settings
Submitter Ian Taylor
Date April 12, 2011, 6:51 p.m.
Message ID <mcr39ln5mn0.fsf@google.com>
Download mbox | patch
Permalink /patch/90850/
State New
Headers show

Comments

Ian Taylor - April 12, 2011, 6:51 p.m.
This patch to the Go frontend brings it up to date with Martin's change
to the cgraph code.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch

diff -r cc9719612058 go/gogo-tree.cc
--- a/go/gogo-tree.cc	Thu Apr 07 10:07:32 2011 -0700
+++ b/go/gogo-tree.cc	Tue Apr 12 11:48:59 2011 -0700
@@ -401,7 +401,7 @@ 
   gimplify_function_tree(fndecl);
 
   cgraph_add_new_function(fndecl, false);
-  cgraph_mark_needed_node(cgraph_node(fndecl));
+  cgraph_mark_needed_node(cgraph_get_node(fndecl));
 
   current_function_decl = NULL_TREE;
   pop_cfun();