Allow bound simplification of array subreferences.
authorMikael Morin <mikael@gcc.gnu.org>
Fri, 1 May 2015 13:32:42 +0000 (13:32 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Fri, 1 May 2015 13:32:42 +0000 (13:32 +0000)
commit11642de8a8c04a4e9c0eeea663e53e27eae7537a
tree290809dd2859bb40c21b878fcd3db098a2f2b075
parent50093a330f9e4d1b816f77c4ff8bb0dcfea96549
Allow bound simplification of array subreferences.

gcc/fortran/
* simplify.c (simplify_bound_dim): Tighten the check for array fullness
by also checking for absence of subreference.
(simplify_bound): Don't skip simplification if the array
has subreferences.
(simplify_cobound): Same.
gcc/testsuite/
* gfortran.dg/bound_simplification_4.f90: New.

From-SVN: r222681
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_simplification_4.f90 [new file with mode: 0644]