commit: e809e4d64c0e0e44b623040718b823bcf4e003e3 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jan 25 23:27:32 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jan 25 23:28:17 2026 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e809e4d6
16.0.0: fix selftest failure Signed-off-by: Sam James <sam <AT> gentoo.org> 16.0.0/gentoo/89_all_selftest.patch | 51 +++++++++++++++++++++++++++++++++++++ 16.0.0/gentoo/README.history | 4 +++ 2 files changed, 55 insertions(+) diff --git a/16.0.0/gentoo/89_all_selftest.patch b/16.0.0/gentoo/89_all_selftest.patch new file mode 100644 index 0000000..7ca6dc7 --- /dev/null +++ b/16.0.0/gentoo/89_all_selftest.patch @@ -0,0 +1,51 @@ +From a6c3c48148dd60a09ffab57019f163180c159d65 Mon Sep 17 00:00:00 2001 +Message-ID: <a6c3c48148dd60a09ffab57019f163180c159d65.1769383625.git....@gentoo.org> +From: Sandra Loosemore <[email protected]> +Date: Sun, 25 Jan 2026 22:43:58 +0000 +Subject: [PATCH] Fix gcc-urlifier selftest failure + +My recent commits for PR122243 added index entries for -fno-* options +as well as their normal positive forms. Apparently the "urlifier" +used to insert option URLS into diagnostic messages can find the +anchor for either form, but its self-tests are hard-wired to match +only the positive form for the two specific options it's looking up. +This patch robustifies it to allow it to match the anchor for either +the positive or negative forms. + +gcc/ChangeLog + * gcc-urlifier.cc (test_gcc_urlifier): Match either positive + or negative option URLS. +--- + gcc/gcc-urlifier.cc | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +diff --git a/gcc/gcc-urlifier.cc b/gcc/gcc-urlifier.cc +index d6958e3f6f86..37f87d55a915 100644 +--- a/gcc/gcc-urlifier.cc ++++ b/gcc/gcc-urlifier.cc +@@ -262,12 +262,18 @@ test_gcc_urlifier () + doc_urls[idx].url_suffix); + + /* Check an option. */ +- ASSERT_STREQ (u.get_url_suffix_for_quoted_text ("-fpack-struct").get (), +- "gcc/Code-Gen-Options.html#index-fpack-struct"); ++ const char *s1 = u.get_url_suffix_for_quoted_text ("-fpack-struct").get (); ++ ASSERT_TRUE (!strcmp (s1, ++ "gcc/Code-Gen-Options.html#index-fno-pack-struct") ++ || !strcmp (s1, ++ "gcc/Code-Gen-Options.html#index-fpack-struct")); + + /* Check a "-fno-" variant of an option. */ +- ASSERT_STREQ (u.get_url_suffix_for_quoted_text ("-fno-inline").get (), +- "gcc/Optimize-Options.html#index-finline"); ++ const char *s2 = u.get_url_suffix_for_quoted_text ("-fno-inline").get (); ++ ASSERT_TRUE (!strcmp (s2, ++ "gcc/Optimize-Options.html#index-fno-inline") ++ || !strcmp (s2, ++ "gcc/Optimize-Options.html#index-finline")); + } + + /* Run all of the selftests within this file. */ +-- +2.52.0 + diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history index e7989b5..0ac9d74 100644 --- a/16.0.0/gentoo/README.history +++ b/16.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +34 25 January 2026 + + + 89_all_selftest.patch + 33 25 January 2026 - 88_all_PR123650-libatomic-symlink.patch
