From e7980addd0537e0d053371ef8094d019ac52dfbf Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Tue, 19 Jul 2016 17:40:43 +0200 Subject: re PR fortran/71688 (ICE in analyze, at cgraphunit.c:632 with -fcoarray=lib) Fix PR fortran/71688 2016-07-19 Martin Jambor 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 --- gcc/fortran/trans-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/fortran') 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); -- cgit v1.1