This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] Add end-of-scope finalization (Part 2 of 2)
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org, burnus at net-b dot de
- Date: Wed, 26 Jun 2013 10:01:25 +0200
- Subject: Re: [Patch, Fortran] Add end-of-scope finalization (Part 2 of 2)
Dear Tobias,
Failures in 32 bit mode again!-(
With your patch, I get the following failures with -m32:
FAIL: gfortran.dg/class_48.f90 -O2 (test for excess errors)
FAIL: gfortran.dg/class_48.f90 -Os (test for excess errors)
FAIL: gfortran.dg/finalize_18.f90 -O scan-tree-dump-times original "y.cc._vptr->_final \\(&desc.5, \\(integer\\(kind=8\\)\\) y.cc._vptr->_size, 1\\);" 1
FAIL: gfortran.dg/finalize_18.f90 -O scan-tree-dump-times original "y.dd._vptr->_final \\(&y.dd._data, \\(integer\\(kind=8\\)\\) y.dd._vptr->_size, 1\\);" 1
The failures for finalize_18.f90 are
/opt/gcc/work/gcc/testsuite/gfortran.dg/class_48.f90: In function '__final_test2_T.2138.constprop.0':
/opt/gcc/work/gcc/testsuite/gfortran.dg/class_48.f90:39:0: warning: iteration 2147483648 invokes undefined behavior [-Waggressive-loop-optimizations]
class(t), allocatable :: a
^
/opt/gcc/work/gcc/testsuite/gfortran.dg/class_48.f90:39:0: note: containing loop
and for finalize_18.f90, grepping for _vptr->_size yields
y.cc._vptr->_final (&desc.5, y.cc._vptr->_size, 1);
y.dd._vptr->_final (&y.dd._data, y.dd._vptr->_size, 1);
TIA
Dominique