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: r238477
+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.
+
2016-07-19 Martin Liska <mliska@suse.cz>
Backported from mainline
function has already called cgraph_create_node, which also created
the cgraph node for this function. */
if (!has_coarray_vars || gfc_option.coarray != GFC_FCOARRAY_LIB)
- (void) cgraph_create_node (fndecl);
+ (void) cgraph_get_create_node (fndecl);
}
else
cgraph_finalize_function (fndecl, true);
+2016-07-19 Martin Jambor <mjambor@suse.cz>
+
+ PR fortran/71688
+ * gfortran.dg/pr71688.f90: New test.
+
2016-07-19 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
--- /dev/null
+! { dg-do compile }
+! { dg-options "-fcoarray=lib" }
+
+program p
+ call s
+contains
+ subroutine s
+ real :: x[*] = 1
+ block
+ end block
+ x = 2
+ end
+end