https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65003
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 34713 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34713&action=edit gcc5-pr65003.patch Untested fix. If the assert ever triggers, I guess we'll need to do something smarter in the cgraph area. Note that symbols that are aliases from the beginning aren't a problem here, the only problem is if a symbol has RTL created too early (in this case because of notice_global_symbol) and then IPA or whatever turns it into an alias to some other symbol.