[Patch, fortran] [10/21] Remove coarray support in the scalarizer: Factor bound evaluation

Mikael Morin mikael.morin@sfr.fr
Thu Sep 15 23:09:00 GMT 2011


In the following patches, we are going to use gfc_conv_section_startstride
to calculate cobounds. The problem is that we don't want to calculate the last
ucobound. As a result, we should have a way to evaluate the lower bound
and the upper bound independently.
This patch moves bound evaluation to a function of its own, and use that new
function in gfc_conv_section_startstride.

OK?

PS: I could have kept the current flag trick to separate lower vs upper bound
evaluation, but besides the fact that I don't like flags in general, having
coarray in their name finished to convince me that they deserved to die. ;-)

-------------- next part --------------
2011-09-14  Mikael Morin  <mikael.morin@sfr.fr>

	* trans-array.c (gfc_conv_section_startstride): Move code to
	evaluate_bound.  Use evaluate_bound.
	(evaluate_bound): New function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_coarray_in_scalarizer-10.diff
Type: text/x-diff
Size: 3408 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110915/5aac0c12/attachment.bin>


More information about the Gcc-patches mailing list