r112605 - in /trunk/gcc: fortran/ChangeLog fort...
sayle@gcc.gnu.org
sayle@gcc.gnu.org
Sat Apr 1 07:11:00 GMT 2006
Author: sayle
Date: Sat Apr 1 07:11:35 2006
New Revision: 112605
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112605
Log:
* dependency.c (gfc_dep_compare_expr): Strip parentheses and unary
plus operators when comparing expressions. Handle comparisons of
the form "X+C vs. X", "X vs. X+C", "X-C vs. X" and "X vs. X-C" where
C is an integer constant. Handle comparisons of the form "P+Q vs.
R+S" and "P-Q vs. R-S". Handle comparisons of integral extensions
specially (increasing functions) so extend(A) > extend(B), when A>B.
(gfc_check_element_vs_element): Move test later, so that we ignore
the fact that "A < B" or "A > B" when A or B contains a forall index.
* gfortran.dg/dependency_14.f90: New test case.
* gfortran.dg/dependency_15.f90: Likewise.
* gfortran.dg/dependency_16.f90: Likewise.
Added:
trunk/gcc/testsuite/gfortran.dg/dependency_14.f90
trunk/gcc/testsuite/gfortran.dg/dependency_15.f90
trunk/gcc/testsuite/gfortran.dg/dependency_16.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/dependency.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list