This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [FORTRAN] Improved expansion of simple WHERE statements
- 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: Sun, 5 Feb 2006 09:25:40 -0800
- Subject: Re: [FORTRAN] Improved expansion of simple WHERE statements
- References: <Pine.LNX.4.44.0602040829160.26691-100000@www.eyesopen.com>
On Sat, Feb 04, 2006 at 09:27:47AM -0700, Roger Sayle wrote:
>
> 2006-02-04 Roger Sayle <roger@eyesopen.com>
>
> * dependency.c (gfc_check_dependency): Remove unused vars and nvars
> arguments. Replace with an "identical" argument. A full array
> reference to the same symbol is a dependency if identical is true.
> * dependency.h (gfc_check_dependency): Update prototype.
> * trans-array.h (gfc_check_dependency): Delete duplicate prototype.
> * trans-stmt.c: #include dependency.h for gfc_check_dependency.
> (gfc_trans_forall_1): Update calls to gfc_check_dependency.
> (gfc_trans_where_2): Likewise. Remove unneeded variables.
> (gfc_trans_where_3): New function for simple non-dependent WHEREs.
> (gfc_trans_where): Call gfc_trans_where_3 to translate simple
> F90-style WHERE statements without internal dependencies.
> * Make-lang.in (trans-stmt.o): Depend upon dependency.h.
>
OK.
Thanks for the detailed explanation of the changes. It certainly
made reviewing the code easier. Note, I asked pbrook on IRC to
read the patch as well, and he also said OK.
--
Steve