commit:     cf2708c1e396fac46e374abba252b8b7b10f3270
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  7 18:39:36 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  7 18:40:00 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=cf2708c1

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 <sam <AT> gentoo.org>

 14.0.0/gentoo/76_all_PR112869_cxx.patch | 20 ++++++++++++++++++++
 14.0.0/gentoo/README.history            |  1 +
 2 files changed, 21 insertions(+)

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
 

Reply via email to