https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124218
--- Comment #6 from Chris Copeland <chris.n.copeland at gmail dot com> --- I've submitted a patch for this here: https://gcc.gnu.org/pipermail/gcc-patches/2026-March/709809.html I don't believe duplicating to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71383 is correct. First, the example there does not depend on -fwhole-program/-flto at all. Second, removing the `static` from `a` in that example makes the function `foo` reload `a` after calling `bar`. This bug is about how, even with no `static`, ipa does not respect the memory clobber.
