The releases/gcc-14 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:bdc5937df68a197032e800fc27361037d016cbf1

commit r14-10687-gbdc5937df68a197032e800fc27361037d016cbf1
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Aug 26 13:50:00 2024 +0200

    tree-optimization/116460 - ICE with DCE in forwprop
    
    The following avoids removing stmts with defs that might still have
    uses in the IL before calling simple_dce_from_worklist which might
    remove those as that will wreck debug stmt generation.  Instead first
    perform use-based DCE and then remove stmts which may have uses in
    code that CFG cleanup will remove.  This requires tracking stmts
    in to_remove by their SSA def so we can check whether it was removed
    before without running into the issue that PHIs can be ggc_free()d
    upon removal.  So this adds to_remove_defs in addition to to_remove
    which has to stay to track GIMPLE_NOPs we want to elide.
    
            PR tree-optimization/116460
            * tree-ssa-forwprop.cc (pass_forwprop::execute): First do
            simple_dce_from_worklist and then remove stmts in to_remove.
            Track defs to be removed in to_remove_defs.
    
            * g++.dg/torture/pr116460.C: New testcase.
    
    (cherry picked from commit 172637cf0d9b7b2798f83b9c5f9598b449675cb0)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078812

Title:
  lerc: FTBFS with gcc-14

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/2078812/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to