[Bug fortran/51207] [OOP] Mark __def_init_... as FL_PARAMETER

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 18 09:57:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51207

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu.org

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-11-18 09:50:39 UTC ---
Hit enter too early. The problem is that the __def_init_... is not marked as
FL_PARAMETER and hence not as TREE_READONLY.

However, even if one manually sets attr.flavor == FL_PARAMETER, the call does
not seem to get optimized away. I assume that's because one has:

  __builtin_memcpy (D.1947_18, &__def_init_m_T, D.1957_16);

which makes the analysis more difficult. Nevertheless, the default
initialization should be marked as TREE_READONLY.



More information about the Gcc-bugs mailing list