[Bug fortran/50960] [OOP] vtables not marked as constant
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 2 14:32:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-02
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-11-02 14:32:13 UTC ---
Does not help. The vtable objects are still not in .rodata:
.data
.align 32
.type __m_MOD___vtab_m_T2, @object
.size __m_MOD___vtab_m_T2, 40
__m_MOD___vtab_m_T2:
.long 69979408
.long 0
.quad __m_MOD___vtab_m_T
.quad __m_MOD___def_init_m_T2
.quad __m_MOD___copy_m_T2
.quad __m_MOD_ext
nor are reads from them optimized (-fdump-tree-fre-details, t.f90.027t.fre1):
<bb 6>:
D.1793_12 = &__vtab_m_T;
D.1794_13 = D.1793_12->bar;
D.1794_13 ();
should have been simplified to the constant __vtab_m_T.bar is initialized
from.
More information about the Gcc-bugs
mailing list