> Hi, > this is the third version of this patch (v2: > https://gcc.gnu.org/pipermail/gcc-patches/2025-December/702508.html). > I changed set_new_clone_decl_and_node_flags to set local to true iff > there are no references to the new node, which is not the case for > callback clones. The flag has to be set this way as there is no > way to tell what value will new_node->local have at that point. I > removed the callback_called_p method from cgraph_node, as it now serves > no purpose. Bootstrapped and regtested on x86_64-linux with > RUNTESTFLAGS="--target_board='unix{-m32}'", it fixes the PR regressions > and introduces no new regressions. This patch also fixes 2 tests in > gcc.dg/guality/vla-1.c when testing with --target_board='unix{-m32}'. I > am not quite sure why. > > Best regards, > Josef > > PR ipa/122798 > > gcc/ChangeLog: > > * cgraph.cc (cgraph_edge::redirect_callee): Set address_taken > for new callee. > * cgraphclones.cc (set_new_clone_decl_and_node_flags): Set > node->local to true iff there are no references to it.
OK. thanks, Honza
