aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2011-04-19 18:08:50 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2011-04-19 18:08:50 +0200
commit7c589800e2ecee0587396ef30140e1b541f229a2 (patch)
treed21a997a1275619fc77cb259c221f5734891a43c /gcc
parentb8a17fa24d04821f345f516b67d15132f35c2095 (diff)
downloadgcc-7c589800e2ecee0587396ef30140e1b541f229a2.zip
gcc-7c589800e2ecee0587396ef30140e1b541f229a2.tar.gz
gcc-7c589800e2ecee0587396ef30140e1b541f229a2.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/trans-decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index f6e7d47..94ee71c 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -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
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 2901046..f80c9db 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -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);