[Bug tree-optimization/125579] [17 Regression] ICE on valid code at -O3 with "-fno-tree-ccp -fno-inline" on x86_64-linux-gnu: Segmentation fault

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 3 10:04:31 GMT 2026


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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Richard Sandiford <rsandifo@gcc.gnu.org>:

https://gcc.gnu.org/g:84ab2358609dbbbb45c06c67b57d2d988457f398

commit r17-1252-g84ab2358609dbbbb45c06c67b57d2d988457f398
Author: Richard Sandiford <rdsandiford@googlemail.com>
Date:   Wed Jun 3 11:04:15 2026 +0100

    backprop: Avoid double deletions [PR125579]

    In this PR, two values were simplified to the same phi, which in
    turn was made redundant by other simplifications.  The pass then
    tried to delete the phi twice.

    gcc/
            PR tree-optimization/125579
            * gimple-ssa-backprop.cc (backprop::execute): Avoid double
deletions.

    gcc/testsuite/
            PR tree-optimization/125579
            * gcc.dg/pr125579.c: New test.


More information about the Gcc-bugs mailing list