commit: badc0e63e684c5cd4359063c4cbea1262b3bd357 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Nov 7 22:58:13 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Nov 7 22:58:13 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=badc0e63
16.0.0: fix busybox ICE Bug: https://gcc.gnu.org/PR122599 Signed-off-by: Sam James <sam <AT> gentoo.org> 16.0.0/gentoo/88_all_PR122599.patch | 18 ++++++++++++++++++ 16.0.0/gentoo/README.history | 1 + 2 files changed, 19 insertions(+) diff --git a/16.0.0/gentoo/88_all_PR122599.patch b/16.0.0/gentoo/88_all_PR122599.patch new file mode 100644 index 0000000..3557918 --- /dev/null +++ b/16.0.0/gentoo/88_all_PR122599.patch @@ -0,0 +1,18 @@ +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122599#c5 +--- a/gcc/tree-scalar-evolution.cc ++++ b/gcc/tree-scalar-evolution.cc +@@ -3947,11 +3947,13 @@ final_value_replacement_loop (class loop *loop) + GENERIC interface). */ + def = unshare_expr (def); + auto loc = gimple_phi_arg_location (phi, exit->dest_idx); +- remove_phi_node (&psi, false); + + /* Create the replacement statements. */ + gimple_seq stmts; + def = force_gimple_operand (def, &stmts, false, NULL_TREE); ++ ++ /* Remove the phi only after the gimplification. */ ++ remove_phi_node (&psi, false); + gassign *ass = gimple_build_assign (rslt, def); + gimple_set_location (ass, loc); + gimple_seq_add_stmt (&stmts, ass); diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history index 7161181..0e6adad 100644 --- a/16.0.0/gentoo/README.history +++ b/16.0.0/gentoo/README.history @@ -1,6 +1,7 @@ 21 ???? - 86_all_PR120933-i386-default-to-mtls-dialect-gnu2-if-appropriate.patch + + 88_all_PR122599.patch 20 3 November 2025
