commit: c23cb039297642d628b837d2c7e09eced60b0ed5 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jul 12 15:23:30 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jul 12 15:23:30 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c23cb039
16.0.0: add ipa-modref typo fix Bug: https://gcc.gnu.org/PR120987 Signed-off-by: Sam James <sam <AT> gentoo.org> .../gentoo/85_all_PR120987-ipa-modref-typo.patch | 34 ++++++++++++++++++++++ 16.0.0/gentoo/README.history | 1 + 2 files changed, 35 insertions(+) diff --git a/16.0.0/gentoo/85_all_PR120987-ipa-modref-typo.patch b/16.0.0/gentoo/85_all_PR120987-ipa-modref-typo.patch new file mode 100644 index 0000000..fdd82ef --- /dev/null +++ b/16.0.0/gentoo/85_all_PR120987-ipa-modref-typo.patch @@ -0,0 +1,34 @@ +From 7c782da4518edbc4e6ae5a8ca8ee319f362af437 Mon Sep 17 00:00:00 2001 +Message-ID: <7c782da4518edbc4e6ae5a8ca8ee319f362af437.1752333776.git....@gentoo.org> +From: Sam James <[email protected]> +Date: Sat, 12 Jul 2025 16:22:02 +0100 +Subject: [PATCH] ipa-modref: don't call flags_from_decl_or_type on + non-inlined_to node + + PR ipa/120987 + +gcc/ChangeLog: + + * ipa-modref.cc (ipa_merge_modref_summary_after_inlining): Drop + duplicate, unguarded flags_from_decl_or_type call. +--- + gcc/ipa-modref.cc | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/gcc/ipa-modref.cc b/gcc/ipa-modref.cc +index d3e510195b53..cbf5042d14bf 100644 +--- a/gcc/ipa-modref.cc ++++ b/gcc/ipa-modref.cc +@@ -5347,7 +5347,6 @@ ipa_merge_modref_summary_after_inlining (cgraph_edge *edge) + cgraph_node *n; + for (n = edge->caller; n->inlined_to; n = n->callers->caller) + flags |= flags_from_decl_or_type (n->decl); +- flags |= flags_from_decl_or_type (n->decl); + bool ignore_stores = ignore_stores_p (edge->caller->decl, flags); + + if (!callee_info && to_info) + +base-commit: e6d3c88e7bb07f94308074f9751e4384a191e022 +-- +2.50.1 + diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history index 48846cc..f54456e 100644 --- a/16.0.0/gentoo/README.history +++ b/16.0.0/gentoo/README.history @@ -2,6 +2,7 @@ - 85_all_PR120929-Revert-Use-the-counted_by-attribute-of-pointers-in-a.patch - 86_all_PR120929-Revert-Use-the-counted_by-attribute-of-pointers-in-b.patch + + 85_all_PR120987-ipa-modref-typo.patch 5 6 July 2025
