Hi, On Sat, Oct 18 2025, Josef Melcr wrote: > Due to the if statement in ipa_compute_jump_functions_for_bb, callback > edges were never constructed for builtin functions unless LTO was > enabled. This patch corrects this behavior, allowing GCC to optimize > callbacks more broadly. It also extends our testing capabilities. > > gcc/ChangeLog: > > * attr-callback.cc (callback_edge_callee_has_attr): New > function. > * attr-callback.h (callback_edge_callee_has_attr): New function > decl. > * ipa-prop.cc (ipa_compute_jump_functions_for_bb): Don't skip > callback carriers when calculating jump functions. > > gcc/testsuite/ChangeLog: > > * gcc.dg/ipa/ipcp-cb-spec1.c: Remove LTO requirement. > * gcc.dg/ipa/ipcp-cb-spec2.c: Likewise. > * gcc.dg/ipa/ipcp-cb1.c: Likewise.
One all the pre-requisites are in, this is OK too. Thanks for your patience, Martin
