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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It seems g_closure_ref is inlined into 3 different functions,
g_closure_invalidate
g_closure_invoke
_g_closure_invoke_va
and those aren't further inlined.  So the noipa attribute presumably just stops
inlining that.
So, can you try to add __attribute__((optimize (0))) to each of those 3 instead
of noinline attribute on g_closure_ref and see which of those 3 works and which
don't?
Ideally so that we have just one problematic function to look at rather than
3...

Reply via email to