https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122976
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-bisection
CC| |jamborm at gcc dot gnu.org
Last reconfirmed| |2025-12-04
Known to fail| |15.2.0
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can reproduce the issue with GCC 15.2. It is fixed when using -fno-ipa-sra
at link time, and reproduces also with -flto-partition=1to1.
Adding -fno-ipa-sra to just the @[email protected] TU compile fixes the issue as
well.
Using GCC 16 from a moderately recent snapshot does not reproduce the issue,
not necessarily because of a fix of course. Nevertheless bisecting what
fixes/hides the issue might be an interesting thing to pursue.
The bug is not necessarily with IPA SRA, it might just trigger an issue
downstream. Replacing -O3 with -O2 -fipa-sra doesn't reproduce the issue,
but I'm not sure costs, etc. line up with those used with -O3.