[patch, fortran] PR 56937 - temporaries with array indices
Thomas Koenig
tkoenig@netcologne.de
Sat Jul 20 14:27:00 GMT 2013
Hello world,
the attached patch fixes two cases of unnecessary array temporaries
when vector indices were involved. When we saw something like that,
we gave up even if
- The vector indices were equal
- The vector indices didn't matter at all because, in a different
dimension, things were known to be different.
Regression-tested. OK for trunk?
Thomas
2013-07-20 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/56937
* dependency.c (gfc_dep_resolver): Treat identical
array subscripts as identical; don't unconditionally
return a dependency if an array subscript is found.
2013-07-20 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/56937
* gfortran.dg/dependency_42.f90: New test.
* gfortran.dg/dependency_43.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 1364 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130720/68487cbd/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependency_42.f90
Type: text/x-fortran
Size: 362 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130720/68487cbd/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependency_43.f90
Type: text/x-fortran
Size: 444 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130720/68487cbd/attachment-0002.bin>
More information about the Gcc-patches
mailing list