re PR fortran/57987 (Fortran finalizers considered extern-inline by middle-end)
commit15682f2418221ee45ebf9fd2c4803fb179060c42
authorMartin Jambor <mjambor@suse.cz>
Tue, 6 Aug 2013 12:48:53 +0000 (6 14:48 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 6 Aug 2013 12:48:53 +0000 (6 14:48 +0200)
tree54d423cab2471b50ef6202932602d8e48f3f22b2
parent6ffd1096cf7620eea04f99693c32601e9312cd8c
re PR fortran/57987 (Fortran finalizers considered extern-inline by middle-end)

2013-08-06  Martin Jambor  <mjambor@suse.cz>

PR fortran/57987
* cgraphunit.c (cgraph_finalize_function): Assert that nested function
is not re-finalized.  Rename second parameter to no_collect.

fortran/
* trans-decl.c (gfc_generate_function_code): Never call
cgraph_finalize_function on nested functions.

testsuite/
* gfortran.dg/pr57987.f90: New test.

From-SVN: r201526
gcc/ChangeLog
gcc/cgraphunit.c
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr57987.f90 [new file with mode: 0644]