[Patch, fortran] [11/21] Remove coarray support in the scalarizer: Support 0-rank loop in gfc_conv_ss_startstride
Mikael Morin
mikael.morin@sfr.fr
Fri Sep 16 05:47:00 GMT 2011
We are going to remove the gfc_loopinfo::codimen field.
The following assertion in gfc_conv_ss_startstride:
gcc_assert (loop->dimen + loop->codimen != 0);
is going to fail for scalar coarrays when updated to
gcc_assert (loop->dimen != 0);
However, gfc_conv_expr_descriptor, requires (if we don't want to rewrite it
completely) that the expression's gfc_ss struct passes through the scalarizer
(in the scalar coarray case, it will do nothing but get the descriptor).
This patch changes the assertion so that zero rank loops are accepted.
OK?
-------------- next part --------------
2011-09-14 Mikael Morin <mikael.morin@sfr.fr>
* trans-array.c (gfc_conv_ss_startstride): Support zero rank loop.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_coarray_in_scalarizer-11.diff
Type: text/x-diff
Size: 1557 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110916/366d25de/attachment.bin>
More information about the Gcc-patches
mailing list