[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug ipa/88235] [7/8/9 Regression] ICE: verify_cgraph_node failed (error: edge points to wrong decla
From:       "hubicka at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2019-02-28 16:13:12
Message-ID: bug-88235-4-lrD2uKCCgV () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]

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=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic