2008-02-21 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Feb 2009 22:25:06 +0000 (22:25 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 21 Feb 2009 22:25:06 +0000 (22:25 +0000)
commitb9bcea643a2982c926d2ed66368c4d295757d5cb
treee156f268a9631504958d59dd37561d3f6ea3612c
parent7811eab5b74ba7806ce56ff8a25422e1fe99a3dd
2008-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/38914
* array.c (ref_dimen_size):  Rename to gfc_ref_dimen_size,
make global.  Change function name in error messages.
(ref_size):  Change ref_dimen_size to gfc_ref_dimen_size.
(gfc_array_ref_shape):  Likewise.
* gfortran.h:  Add prototype for gfc_ref_dimen_size.
* simplify.c (simplify_bound_dim):  Add ref argument.
If the reference isn't a full array, return one for
the lower bound and the extent for the upper bound.
(simplify_bound):  For array sections, take as from the
argument.  Add reference to all to simplify_bound_dim.

2008-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/38914
* bound_simplification_2.f90:  New test case.
* bound_7.f90:  New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144362 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/gfortran.h
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_7.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bound_simplification_2.f90 [new file with mode: 0644]