https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92938
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to jcmvbkbc from comment #1) > The issue does not reproduce with the current gcc trunk after SVN revision > 277054 (generalized IPA predicate on parameter), but it doesn't look like > this change fixes the root cause, it just results in inlining of > bitmap_replace() into the test_replace(). I DON'T think it is a GCC issue. The code is broken. If bitmap_replace was marked as always_inline, that would have worked or if it was marked as extern, it would have worked. The inlining is not happening since test_replace is marked as cold so not inlining is "expected".