2010-12-02 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 2010 10:35:12 +0000 (10:35 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Dec 2010 10:35:12 +0000 (10:35 +0000)
commit65a182bcf6e0fc890aebf2cd5522706ef482f8fb
tree9a5ce24417a6f1a45ba00b75518c778dfe427e49
parentfdcc25a6d6e003415dc121a7d12ccd78067a60af
2010-12-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45159
* dependency.c (check_section_vs_section):  Pre-calculate
the relationship between the strides and the relationship
between the start values.  Use an integer constant one for
that purpose.
Forward dependencies for positive strides apply for where
the lhs start <= rhs start and lhs stride <= rhs stride
and vice versa for negative stride.  No need to compare
end expressions in either case (assume no bounds violation).

2010-12-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45159
* gfortran.dg/dependency_38.f90:  New test.

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