From: Ian Lance Taylor Date: Tue, 12 Apr 2011 18:51:12 +0000 (+0000) Subject: Call cgraph_get_node rather than cgraph_node. X-Git-Tag: releases/gcc-4.7.0~7549 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d94faf0d7dbe407d9a667d188158e8dce7d38d81;p=thirdparty%2Fgcc.git Call cgraph_get_node rather than cgraph_node. This is for a recent change to the gcc middle-end. From-SVN: r172335 --- diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc index 53e43c7b519d..a8a5b4c978fb 100644 --- a/gcc/go/gofrontend/gogo-tree.cc +++ b/gcc/go/gofrontend/gogo-tree.cc @@ -401,7 +401,7 @@ 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_node(fndecl)); + cgraph_mark_needed_node(cgraph_get_node(fndecl)); current_function_decl = NULL_TREE; pop_cfun();