From cf2708c1e396fac46e374abba252b8b7b10f3270 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 7 Dec 2023 18:39:36 +0000 Subject: 14.0.0: add botan/openmpt ICE patch Bug: https://gcc.gnu.org/PR112869 Bug: https://gcc.gnu.org/PR112907 Signed-off-by: Sam James --- 14.0.0/gentoo/76_all_PR112869_cxx.patch | 20 ++++++++++++++++++++ 14.0.0/gentoo/README.history | 1 + 2 files changed, 21 insertions(+) create mode 100644 14.0.0/gentoo/76_all_PR112869_cxx.patch (limited to '14.0.0') diff --git a/14.0.0/gentoo/76_all_PR112869_cxx.patch b/14.0.0/gentoo/76_all_PR112869_cxx.patch new file mode 100644 index 0000000..7ec000b --- /dev/null +++ b/14.0.0/gentoo/76_all_PR112869_cxx.patch @@ -0,0 +1,20 @@ +https://gcc.gnu.org/PR112869 (https://gcc.gnu.org/PR112869#c2) +https://gcc.gnu.org/PR112907 +--- a/gcc/cp/cp-gimplify.cc ++++ b/gcc/cp/cp-gimplify.cc +@@ -1177,13 +1177,9 @@ cp_fold_immediate_r (tree *stmt_p, int *walk_subtrees, void *data_) + ? tf_error : tf_none); + const tree_code code = TREE_CODE (stmt); + +- /* No need to look into types or unevaluated operands. +- NB: This affects cp_fold_r as well. */ ++ /* No need to look into types or unevaluated operands. */ + if (TYPE_P (stmt) || unevaluated_p (code) || in_immediate_context ()) +- { +- *walk_subtrees = 0; +- return NULL_TREE; +- } ++ return NULL_TREE; + + tree decl = NULL_TREE; + bool call_p = false; diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index dd1bec0..a8dc8d4 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,6 +1,7 @@ 10 ?? ??? 2023 - 75_all_PR112572-missing-notes-update.patch + + 76_all_PR112869_cxx.patch 9 20 Nov 2023 -- cgit v1.2.3-65-gdbad