[Patch, fortran] [05/66] inline sum and product: Prepare gfc_trans_preloop_setup

Mikael Morin mikael.morin@sfr.fr
Thu Oct 27 23:29:00 GMT 2011


This is for consistency. As dim == dimen-1 means "we are in the outermost loop",
we should check against the loop dimension, not the array dimension.
An assertion is added to check that it is in fact the same.
OK?
-------------- next part --------------
2011-10-19  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-array.c (gfc_trans_preloop_setup): Use loop's dimension instead
	of array's dimention. Check that it is indeed the same.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-5.patch
Type: text/x-diff
Size: 779 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/30e9b80f/attachment.bin>


More information about the Fortran mailing list