[Bug ipa/122976] Miscompile with mixed lto/non-lto, -O3 - stack variable getting clobbered with invalid values

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 4 08:58:11 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122976

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org
          Component|tree-optimization           |ipa

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Was the set of TUs requiring -fno-lto "reduced" in some way?  Does the issue
still reproduce when compiling select other TUs with -fno-lto?  It might be
interesting to see the minimal set of TUs with -flto to reproduce the issue,
because then hopefully most -fno-lto TUs could be dropped to -O0?


More information about the Gcc-bugs mailing list