[Patch, fortran, pr65548, 2nd take, v4] [5/6 Regression] gfc_conv_procedure_call

Andre Vehreschild vehre@gmx.de
Thu May 14 09:49:00 GMT 2015


Hi Mikael, hi all,

please find  attached the new version of this patch, where most of the source=
expression assignment to the object to allocate is handled by
gfc_trans_assignment (). To use trans_assignment with temporaries introduced
during the preparation of the source= expression, a gfc_expr is created from
the temporary identifier in the tree of expr3. This creation is done only,
when the tree is an artificial declaration, i.e., a temporary. The gfx_expr is
created only once and only for non-class objects, because for the latter
gfc_trans_assignment can't cope with class arrays, for which the
gfc_trans_allocate () needs the array-descriptor, which is not as easy to
transfer to gfc_trans_assignment (). For class objects gfc_trans_allocate ()
therefore cares about the assignment/data copy itself.

Bootstraps and regtests ok on x86_64-linux-gnu/f21.

Ok for trunk?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr65548_4.clog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150514/fafca892/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr65548_4.patch
Type: text/x-patch
Size: 18004 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150514/fafca892/attachment.bin>


More information about the Gcc-patches mailing list