[Bug fortran/87352] [7/8/9 Regression] Large stack usage with new gfortran
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 14 12:28:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87352
--- Comment #17 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Apr 14 12:27:44 2019
New Revision: 270352
URL: https://gcc.gnu.org/viewcvs?rev=270352&root=gcc&view=rev
Log:
2019-04-14 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/87352
Backport from trunk
* gfortran.h (gfc_component): Add finalized field.
* class.c (finalize_component): If the component is already
finalized, return early. Set component->finalized on exit.
2019-04-14 Thomas Koenig <tkoenig@gcc.gnu.org>
Backport from trunk
PR fortran/87352
* gfortran.dg/finalize_28.f90: Adjust count of __builtin_free.
* gfortran.dg/finalize_34.f90: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/finalize_34.f90
Modified:
branches/gcc-7-branch/gcc/fortran/ChangeLog
branches/gcc-7-branch/gcc/fortran/class.c
branches/gcc-7-branch/gcc/fortran/gfortran.h
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/finalize_28.f90
More information about the Gcc-bugs
mailing list