[Patch, fortran] [12/66] inline sum and product: Preliminary cleanups: Stop loop before end marker.

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


We should not be writing to gfc_ss_terminator.
It is working without this patch because gfc_ss_terminator's next pointer is
NULL, so the loop stops just after it, and because we are writing zero to
gfc_ss_terminator, but it is already all zeros anyway.
OK?
-------------- next part --------------
2011-10-19  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-array.c (gfc_trans_scalarizing_loops): Stop loop before end
	marker, not after it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-12.patch
Type: text/x-diff
Size: 432 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/f440d619/attachment.bin>


More information about the Fortran mailing list