------- Comment #2 from hubicka at ucw dot cz  2010-06-21 08:44 -------
Subject: Re:  [4.6 Regression] Revision 159362 caused
        multiple failures on the libstdc++-v3 tests

I was fixing bug like this, where function was extern inline and had address
taken in the unit.
Inliner removed offline copy of the function but we need to keep it around so
ipa-ref can point
to it.

I guess this is your problem too.  ipa-inline should understand that even if
offline copy goes away, the cgraph node needs to be preserved when there are
some references of it.  cgraph_can_remove_if_no_direct_calls_p already tests
for address_taken, so why the offline copy disappears?

Honza


-- 


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

Reply via email to