[Bug fortran/57987] Fortran finalizers considered extern-inline by middle-end
hubicka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 30 12:12:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57987
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-07-30
Ever confirmed|0 |1
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I suppose the old test was simply a bug: cgraph_finalize_function creates node
when it does not exist and uses existing one otherwise. So I suppose the new
patch is OK - the conditional ought to match condition on which
generate_coarray_init is called. What we had was just latent bug hidden by the
cgraph_finalize_function lazyness.
If things get complex, simply calling cgraph_get_create_node on all nested
functions may be better option.
Honza
More information about the Gcc-bugs
mailing list