https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135
--- Comment #6 from Carlos Alberto Lopez Perez <clopez at igalia dot com> --- (In reply to Sam James from comment #5) > (In reply to Carlos Alberto Lopez Perez from comment #2) > > -fno-ipa-modref helps! passing this flag makes the compiled program is > > correct :) > > -> calling it an IPA issue. > > Carlos, if you can find a version which worked before, could you bisect? Unfortunately all versions of GCC that I tested fail. I even tested with a nightly build of GCC (built yesterday at version 15.0.0 20240520 from GCC commit e14c673ea9ab2eca5de4db91b478f0b5297ef321). It also fails.