[Patch, Fortran, OOP] PR 50960: vtables not marked as constant
Janus Weil
janus@gcc.gnu.org
Tue Nov 8 11:12:00 GMT 2011
Hi all,
the attached patch marks the 'vtab' symbols as constant
(FL_PARAMETER). They are fixed objects which are initialized once and
never change.
Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
Is it ok to commit without a test case? If not, any suggestions how a
good test case could look like?
Cheers,
Janus
2011-11-08 Janus Weil <janus@gcc.gnu.org>
PR fortran/50960
* class.c (gfc_find_derived_vtab): Make the vtab symbols FL_PARAMETER.
* expr.c (gfc_simplify_expr): Prevent vtabs from being replaced with
their value.
* resolve.c (resolve_values): Use-associated symbols do not need to
be resolved again.
(resolve_fl_parameter): Make sure the symbol has a value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50960_v4.diff
Type: text/x-diff
Size: 2029 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111108/651fad22/attachment.bin>
More information about the Gcc-patches
mailing list