This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Fortran] Disambiguate A(I,...) and A(I+1,...)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 Mar 2006 21:03:13 -0800
- Subject: Re: [Fortran] Disambiguate A(I,...) and A(I+1,...)
- References: <Pine.LNX.4.44.0603261054040.3740-100000@www.eyesopen.com>
On Sun, Mar 26, 2006 at 11:42:26AM -0700, Roger Sayle wrote:
>
> 2006-03-26 Roger Sayle <roger@eyesopen.com>
>
> * 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.
>
Roger,
In looking at the failure, it appears as if this is part
of a patch you've already applied.
|Index: dependency.c
|===================================================================
|*** dependency.c (revision 112377)
|--- dependency.c (working copy)
--------------------------
Patching file dependency.c using Plan A...
Hunk #1 succeeded at 72.
Hunk #2 succeeded at 223.
Hunk #3 failed at 256.
Hunk #4 succeeded at 1021.
Hunk #5 succeeded at 1035.
1 out of 5 hunks failed--saving rejects to dependency.c.rej
done
--
Steve