trans-decl.c (gfc_generate_function_code): Call cgraph_create_node instead of cgraph_get_create_node.

2011-04-19  Martin Jambor  <mjambor@suse.cz>

gcc/fotrean/
	* trans-decl.c (gfc_generate_function_code): Call cgraph_create_node
	instead of cgraph_get_create_node.

From-SVN: r172715
This commit is contained in:
Martin Jambor 2011-04-19 18:08:50 +02:00 committed by Martin Jambor
parent b8a17fa24d
commit 7c589800e2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-04-19 Martin Jambor <mjambor@suse.cz>
* trans-decl.c (gfc_generate_function_code): Call cgraph_create_node
instead of cgraph_get_create_node.
2011-04-18 Jim Meyering <meyering@redhat.com>
remove now-unused definition of gfc_free

View File

@ -5046,7 +5046,7 @@ gfc_generate_function_code (gfc_namespace * ns)
if (decl_function_context (fndecl))
/* Register this function with cgraph just far enough to get it
added to our parent's nested function list. */
(void) cgraph_get_create_node (fndecl);
(void) cgraph_create_node (fndecl);
else
cgraph_finalize_function (fndecl, true);