[Patch, fortran] [34/66] inline sum and product: Update the scalarizer: gfc_ss_info refcounting
Mikael Morin
mikael.morin@sfr.fr
Thu Oct 27 23:34:00 GMT 2011
As there will be more than one gfc_ss struct pointing to a single gfc_ss_info,
it needs to be reference counted. This introduces reference counting.
OK?
-------------- next part --------------
2011-10-19 Mikael Morin <mikael@gcc.gnu.org>
* trans.h (struct gfc_ss_info): New field refcount.
* trans-array.c (free_ss_info): Decrement refcount. Return early if
still non-zero.
(gfc_get_array_ss, gfc_get_temp_ss, gfc_get_scalar_ss): Increment
refcount.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr43829-34.patch
Type: text/x-diff
Size: 1277 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/baa94cce/attachment.bin>
More information about the Fortran
mailing list