This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [FORTRAN] Improved expansion of simple WHERE statements


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]