[Bug ipa/103819] [13/14/15/16 Regression] ICE in redirect_callee, at cgraph.c:1389 with __attribute__((flatten)), comdat and aliases and -O2 since r11-7940-ge7fd3b783238d034

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 27 13:14:24 GMT 2026


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

--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
bool    
cgraph_node::check_calls_comdat_local_p ()
{
  for (cgraph_edge *e = callees; e; e = e->next_callee)
    if (e->inline_failed
        ? e->callee->comdat_local_p ()
        : e->callee->check_calls_comdat_local_p ())
      return true;
  return false;
}   

that also looks exponential for deep inline stacks.  And it shows the
checking is bogus, that !e->inline_failed is comdat-local doesn't matter.


More information about the Gcc-bugs mailing list