aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-decl.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2016-07-19 17:40:43 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2016-07-19 17:40:43 +0200
commite7980addd0537e0d053371ef8094d019ac52dfbf (patch)
tree1bdadaa99c0f55fab63543b26cc2bf7a383f5924 /gcc/fortran/trans-decl.c
parent13e889530d0da219afcbcd78c768688593dd5257 (diff)
downloadgcc-e7980addd0537e0d053371ef8094d019ac52dfbf.zip
gcc-e7980addd0537e0d053371ef8094d019ac52dfbf.tar.gz
gcc-e7980addd0537e0d053371ef8094d019ac52dfbf.tar.bz2
re PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib)
Fix PR fortran/71688 2016-07-19 Martin Jambor <mjambor@suse.cz> PR fortran/71688 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node rather than cgraph_create_node to get a call graph node. testsuite/ gfortran.dg/pr71688.f90: New test. From-SVN: r238476
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r--gcc/fortran/trans-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 6c9bf50..69ddd17 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -6372,7 +6372,7 @@ gfc_generate_function_code (gfc_namespace * ns)
function has already called cgraph_create_node, which also created
the cgraph node for this function. */
if (!has_coarray_vars || flag_coarray != GFC_FCOARRAY_LIB)
- (void) cgraph_node::create (fndecl);
+ (void) cgraph_node::get_create (fndecl);
}
else
cgraph_node::finalize_function (fndecl, true);