commit:     924e7050c743d8fa57298cb13529177b6eb443dd
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  7 16:29:36 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  7 16:29:36 2025 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=924e7050

16.0.0: workaround pgo failure on arm64

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

 16.0.0/gentoo/86_all_PR122456-pgo-workaround.patch | 12 ++++++++++++
 16.0.0/gentoo/README.history                       |  1 +
 2 files changed, 13 insertions(+)

diff --git a/16.0.0/gentoo/86_all_PR122456-pgo-workaround.patch 
b/16.0.0/gentoo/86_all_PR122456-pgo-workaround.patch
new file mode 100644
index 0000000..1f9d204
--- /dev/null
+++ b/16.0.0/gentoo/86_all_PR122456-pgo-workaround.patch
@@ -0,0 +1,12 @@
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122456#c28
+--- a/gcc/cgraph.cc
++++ b/gcc/cgraph.cc
+@@ -1528,6 +1528,7 @@ cgraph_edge::resolve_speculation (cgraph_edge *edge, 
tree callee_decl)
+   ref = e2->speculative_call_target_ref ();
+   edge = edge->speculative_call_indirect_edge ();
+   if (!callee_decl
++      || !symtab_node::get (callee_decl)
+       || !ref->referred->semantically_equivalent_p
+          (symtab_node::get (callee_decl)))
+     {
+

diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history
index cca3370..ec407f3 100644
--- a/16.0.0/gentoo/README.history
+++ b/16.0.0/gentoo/README.history
@@ -1,6 +1,7 @@
 26     ????
 
        + 37_all_PR66487-object-lifetime-instrumentation-for-Valgrind.patch
+       + 86_all_PR122456-pgo-workaround.patch
 
 25     30 November 2025
 

Reply via email to