bound simplification refactoring
authorMikael Morin <mikael@gcc.gnu.org>
Sun, 10 May 2015 13:56:47 +0000 (13:56 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 10 May 2015 13:56:47 +0000 (13:56 +0000)
commit22fa926f19ae0ebbeec9598592b0cecc9e3fcd87
tree2cb82e13799733c3035f9753c2df8ecb70db73b6
parentedff0c0662c428774cdccdab4d1998e64ce8acf5
bound simplification refactoring

gcc/fortran/
* simplify.c (simplify_bound_dim): Don't check for emptyness
in the case of cobound simplification.  Factor lower/upper
bound differenciation before the actual simplification.
(simplify_bound): Remove assumed shape specific simplification.
Don't give up early for the lbound of an assumed shape.
gcc/testsuite/
* gfortran.dg/bound_simplification_5.f90: New.

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