commit:     822516c431a2d0bd9ea4fa540c0b7d943c4f8299
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 13 13:16:14 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 13 13:16:14 2025 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=822516c4

16.0.0: add LTO streaming fix

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

 16.0.0/gentoo/87_all_PR121932-gdb-lto.patch | 13 +++++++++++++
 16.0.0/gentoo/README.history                |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/16.0.0/gentoo/87_all_PR121932-gdb-lto.patch 
b/16.0.0/gentoo/87_all_PR121932-gdb-lto.patch
new file mode 100644
index 0000000..786cc4d
--- /dev/null
+++ b/16.0.0/gentoo/87_all_PR121932-gdb-lto.patch
@@ -0,0 +1,13 @@
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121932#c7
+--- a/gcc/ipa-free-lang-data.cc
++++ b/gcc/ipa-free-lang-data.cc
+@@ -735,7 +735,8 @@ find_decls_types_r (tree *tp, int *ws, void *data)
+ 
+       if (TREE_CODE (t) == FUNCTION_DECL)
+       {
+-        fld_worklist_push (DECL_ARGUMENTS (t), fld);
++        for (tree arg = DECL_ARGUMENTS (t); arg; arg = DECL_CHAIN (arg))
++          fld_worklist_push (arg, fld);
+         fld_worklist_push (DECL_RESULT (t), fld);
+       }
+       else if (TREE_CODE (t) == FIELD_DECL)

diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history
index 3a58f30..208891f 100644
--- a/16.0.0/gentoo/README.history
+++ b/16.0.0/gentoo/README.history
@@ -1,3 +1,7 @@
+15     ????
+
+       + 87_all_PR121932-gdb-lto.patch
+
 14     7 September 2025
 
        - 91_all_PR121699-mesa.patch

Reply via email to