commit:     323b1da8d9a5c1c3ac9bc1e9548dd7601aad6356
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 14 22:47:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 14 22:47:10 2025 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=323b1da8

15.0.0: add ICE patch

Bug: https://gcc.gnu.org/PR119803
Signed-off-by: Sam James <sam <AT> gentoo.org>

 15.0.0/gentoo/87_all_PR119803-vrp.patch | 19 +++++++++++++++++++
 15.0.0/gentoo/README.history            |  1 +
 2 files changed, 20 insertions(+)

diff --git a/15.0.0/gentoo/87_all_PR119803-vrp.patch 
b/15.0.0/gentoo/87_all_PR119803-vrp.patch
new file mode 100644
index 0000000..9f71cca
--- /dev/null
+++ b/15.0.0/gentoo/87_all_PR119803-vrp.patch
@@ -0,0 +1,19 @@
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119803#c6
+--- a/gcc/ipa-cp.cc    2025-04-14 22:51:13.171434430 +0200
++++ b/gcc/ipa-cp.cc    2025-04-14 23:42:40.515006966 +0200
+@@ -923,13 +923,13 @@ ipcp_bits_lattice::meet_with_1 (widest_i
+   m_mask = (m_mask | mask) | (m_value ^ value);
+   if (drop_all_ones)
+     m_mask |= m_value;
+-  m_value &= ~m_mask;
+ 
+-  widest_int cap_mask = wi::bit_not (wi::sub (wi::lshift (1, precision), 1));
++  widest_int cap_mask = wi::shifted_mask <widest_int> (0, precision, true);
+   m_mask |= cap_mask;
+   if (wi::sext (m_mask, precision) == -1)
+     return set_to_bottom ();
+ 
++  m_value &= ~m_mask;
+   return m_mask != old_mask;
+ }
+ 

diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history
index fb90c7b..9297835 100644
--- a/15.0.0/gentoo/README.history
+++ b/15.0.0/gentoo/README.history
@@ -5,6 +5,7 @@
        + 84_all_PR116975-GDCFLAGS.patch
        + 85_all_PR119614-ipa-vrp-lto.patch
        + 86_all_PR119614-ipa-vrp-lto-inc.patch
+       + 87_all_PR119803-vrp.patch
 
 54     13 April 2025
 

Reply via email to