https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108984
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- There is redirect_to_unreachable and a couple of other places (though at least half of them are related to devirtualization which shouldn't be happening here): grep builtin_decl_unreachable ipa* ipa.cc: target = cgraph_node::get_create (builtin_decl_unreachable ()); ipa-fnsummary.cc: = cgraph_node::get_create (builtin_decl_unreachable ()); ipa-prop.cc: target = builtin_decl_unreachable (); ipa-prop.cc: tree new_target = builtin_decl_unreachable (); So, I'd add a breakpoint on builtin_decl_unreachable and see where it is called for this code.