[Bug tree-optimization/124627] [15/16 Regression] ICE with LTO with -O1/-O2/-O3 + -g

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 25 11:38:12 GMT 2026


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

--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:415a00e0aae8b39ca81debfcdf82f9c53af203e7

commit r16-8287-g415a00e0aae8b39ca81debfcdf82f9c53af203e7
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Mar 25 09:40:56 2026 +0100

    tree-optimization/124627 - inlining and elided debug stmts

    When we fixup a noreturn call during inlining we can end up eliding
    debug stmts, so we have to make sure to not re-instantiate SSA
    operands on those later when processing all debug stmts.

            PR tree-optimization/124627
            * tree-inline.cc (copy_debug_stmts): Only copy debug
            stmts that are still in the IL.


More information about the Gcc-bugs mailing list