https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88235

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I think you can add cgraph predicate
former_thunk_p which tests that

return !thunk_p && (thunk_info.fixed_offset || virtual_offset_p ||
indirect_offset)

Every thunk should set one of those (it may be good to also add sanity check
that whenever thunk_p the second part of condition suceeds).
This way you don't need to change all uses of thunk_p and patch won't break LTO
streaming once backported to gcc8.

Honza

Reply via email to