https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63892
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- Created attachment 34817 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34817&action=edit Fixed IPA ICF hooks Hello Jakub. Your patch in #c4 is correct, assert is caused due to wrong placement of unregister hooks. Please see the patch, I tested on my x86_64-linux-pc machine (where I return false in target_supports_symbol_aliases_p) and it works me. Thanks, Martin