[Patch, fortran] [13/66] inline sum and product: Interfaces changes: gfc_trans_array_constructor
Mikael Morin
mikael.morin@sfr.fr
Thu Oct 27 23:30:00 GMT 2011
loop.temp_dim is set by gfc_trans_create_temp_array; there should be no reason
why that value wouldn't suit gfc_trans_constant_array_constructor, which has
then no reason to set the value directly.
This patch remove that code.
Then, the loop argument is useless and can be removed too.
The function is static, so it loses its gfc_ prefix along the way.
OK?
-------------- next part --------------
2011-10-19 Mikael Morin <mikael@gcc.gnu.org>
* trans-array.c (gfc_trans_constant_array_constructor,
trans_constant_array_constructor): Rename the former to the latter.
Don't set the rank of the temporary for the loop. Remove then unused
loop argument.
(gfc_trans_array_constructor): Update call.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-13.patch
Type: text/x-diff
Size: 1443 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/0d70ba8a/attachment.bin>
More information about the Fortran
mailing list