re PR fortran/87352 (Large stack usage with new gfortran)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 6 Apr 2019 22:10:28 +0000 (22:10 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 6 Apr 2019 22:10:28 +0000 (22:10 +0000)
commitb81f7b83631be7dedcdcf44eed6dd575ada3ac23
tree7bc7716412e765e98c5dbc22808a8b12304c7246
parent2955784caf887cbc6949b766bc38d6f9e0f3fc48
re PR fortran/87352 (Large stack usage with new gfortran)

2019-04-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87352
* 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-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87352
* gfortran.dg/finalize_28.f90: Adjust count of __builtin_free.
* gfortran.dg/finalize_33.f90: Likewise.
* gfortran.dg/finalize_34.f90: New test.

From-SVN: r270184
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/gfortran.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/finalize_28.f90
gcc/testsuite/gfortran.dg/finalize_33.f90
gcc/testsuite/gfortran.dg/finalize_34.f90 [new file with mode: 0644]