https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121593
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #8) > Also I am trying to understand which version has the bug? The one without > the patch (and with `__attribute__((optimize("O0"))` removed) or the one > with the patch (and with `__attribute__((optimize("O0"))` removed)? > > Does changing `optimize("O0")` to noipa help fix the issue? what about instead of noipa, noinline? I am trying to figure out if there is an alias modref issue or not. Or does it depend on inlining that function to get the failure. Having it being inlined, definitely makes it harder to figure out what is going wrong.