commit:     1c2de5bf7542dca179c0770f19cc70821033f59f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  5 12:44:37 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 12:44:37 2025 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1c2de5bf

16.0.0: add uninit fix

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

 16.0.0/gentoo/87_all_PR121806-fortran-uninit.patch | 27 ++++++++++++++++++++++
 16.0.0/gentoo/README.history                       |  1 +
 2 files changed, 28 insertions(+)

diff --git a/16.0.0/gentoo/87_all_PR121806-fortran-uninit.patch 
b/16.0.0/gentoo/87_all_PR121806-fortran-uninit.patch
new file mode 100644
index 0000000..8b47240
--- /dev/null
+++ b/16.0.0/gentoo/87_all_PR121806-fortran-uninit.patch
@@ -0,0 +1,27 @@
+From a3748f8a02ae510d2631fb7db4829efae12733bb Mon Sep 17 00:00:00 2001
+From: Andre Vehreschild <[email protected]>
+Date: Thu, 4 Sep 2025 08:20:04 +0200
+Subject: [PATCH] Fix uninitialized variable in frontend.
+
+gcc/ChangeLog:
+
+       * gcc.cc (for_each_path): Initialize return value.
+---
+ gcc/gcc.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gcc/gcc.cc b/gcc/gcc.cc
+index 722d42c6968..8da821e92ac 100644
+--- a/gcc/gcc.cc
++++ b/gcc/gcc.cc
+@@ -2788,7 +2788,7 @@ for_each_path (const struct path_prefix *paths,
+   const char *multi_suffix;
+   const char *just_multi_suffix;
+   char *path = NULL;
+-  decltype (callback (nullptr)) ret;
++  decltype (callback (nullptr)) ret = nullptr;
+   bool skip_multi_dir = false;
+   bool skip_multi_os_dir = false;
+ 
+-- 
+2.51.0

diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history
index 5b19927..eeeb65a 100644
--- a/16.0.0/gentoo/README.history
+++ b/16.0.0/gentoo/README.history
@@ -1,6 +1,7 @@
 14     ????
 
        - 91_all_PR121699-mesa.patch
+       + 87_all_PR121806-fortran-uninit.patch
 
 13     31 August 2025
 

Reply via email to