[Patch, fortran] [40..43/66] inline sum and product: Update the scalarizer: New gfc_ss::parent field.

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


We are going to loop over the parent array infos.
This introduces a new parent field to permit this loop (patch 40).
Then it will be used to loop over multiple parent ss:
 - gfc_set_loop_bounds_from_array_spec (patch 41 with context diff)
 - gfc_trans_array_constructor (patch 42)
 - set_vector_loop_bounds (patch 43)
OK?
-------------- next part --------------
2011-10-19  Mikael Morin  <mikael@gcc.gnu.org>

	* trans.h (struct gfc_ss): New field parent.
	* trans-array.c (gfc_trans_scalarizing_loops): Skip clearing if a
	parent exists.
	* trans-expr.c (gfc_advance_se_ss_chain): Move to parent ss at the
	end of the chain.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-40.patch
Type: text/x-diff
Size: 1629 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/f8f4df1e/attachment.bin>
-------------- next part --------------
2011-10-19  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-array.c (gfc_set_loop_bounds_from_array_spec): Loop over the
	parents.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-41.patch
Type: text/x-diff
Size: 2797 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/f8f4df1e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-41.diff
Type: text/x-diff
Size: 2162 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/f8f4df1e/attachment-0002.bin>
-------------- next part --------------
2011-10-19  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-array.c (gfc_trans_array_constructor): Loop over the parents.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-42.patch
Type: text/x-diff
Size: 1660 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/f8f4df1e/attachment-0003.bin>
-------------- next part --------------
2011-10-19  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-array.c (gfc_set_vector_loop_bounds): Loop over the parents.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-43.patch
Type: text/x-diff
Size: 829 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/f8f4df1e/attachment-0004.bin>


More information about the Fortran mailing list