commit: 69c1c8e9629f7b5014b041b4d12b4d80af683e4e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Jul 25 18:48:37 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Jul 25 18:49:11 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=69c1c8e9
16.0.0: fix libsanitizer build w/ glibc-2.42 Signed-off-by: Sam James <sam <AT> gentoo.org> ...ommon-Remove-reference-to-obsolete-termio.patch | 74 ++++++++++++++++++++++ 16.0.0/gentoo/README.history | 1 + 2 files changed, 75 insertions(+) diff --git a/16.0.0/gentoo/88_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch b/16.0.0/gentoo/88_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch new file mode 100644 index 0000000..eece80d --- /dev/null +++ b/16.0.0/gentoo/88_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch @@ -0,0 +1,74 @@ +From 50cff2194bcb8321414437169d443bf48695972c Mon Sep 17 00:00:00 2001 +Message-ID: <50cff2194bcb8321414437169d443bf48695972c.1753469285.git....@gentoo.org> +From: Sam James <[email protected]> +Date: Fri, 25 Jul 2025 19:45:18 +0100 +Subject: [PATCH] [sanitizer_common] Remove reference to obsolete termio ioctls + (#138822) +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Cherry picked from LLVM commit c99b1bcd505064f2e086e6b1034ce0b0c91ea5b9. + +The termio ioctls are no longer used after commit 59978b21ad9c +("[sanitizer_common] Remove interceptors for deprecated struct termio +(#137403)"), remove them. Fixes this build error: + +../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:765:27: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ + 765 | unsigned IOCTL_TCGETA = TCGETA; + | ^~~~~~ +../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:769:27: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ + 769 | unsigned IOCTL_TCSETA = TCSETA; + | ^~~~~~ +../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:770:28: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ + 770 | unsigned IOCTL_TCSETAF = TCSETAF; + | ^~~~~~~ +../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:771:28: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’ + 771 | unsigned IOCTL_TCSETAW = TCSETAW; + | ^~~~~~~ +--- + .../sanitizer_common/sanitizer_platform_limits_posix.cpp | 4 ---- + .../sanitizer_common/sanitizer_platform_limits_posix.h | 4 ---- + 2 files changed, 8 deletions(-) + +diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp +index 490e75fe8f65..9856ac3c3ec4 100644 +--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp ++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp +@@ -762,13 +762,9 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr); + unsigned IOCTL_SOUND_PCM_WRITE_FILTER = SOUND_PCM_WRITE_FILTER; + #endif // SOUND_VERSION + unsigned IOCTL_TCFLSH = TCFLSH; +- unsigned IOCTL_TCGETA = TCGETA; + unsigned IOCTL_TCGETS = TCGETS; + unsigned IOCTL_TCSBRK = TCSBRK; + unsigned IOCTL_TCSBRKP = TCSBRKP; +- unsigned IOCTL_TCSETA = TCSETA; +- unsigned IOCTL_TCSETAF = TCSETAF; +- unsigned IOCTL_TCSETAW = TCSETAW; + unsigned IOCTL_TCSETS = TCSETS; + unsigned IOCTL_TCSETSF = TCSETSF; + unsigned IOCTL_TCSETSW = TCSETSW; +diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h +index a80df656826e..cfac4903b76b 100644 +--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h ++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h +@@ -1274,13 +1274,9 @@ extern unsigned IOCTL_SNDCTL_COPR_SENDMSG; + extern unsigned IOCTL_SNDCTL_COPR_WCODE; + extern unsigned IOCTL_SNDCTL_COPR_WDATA; + extern unsigned IOCTL_TCFLSH; +-extern unsigned IOCTL_TCGETA; + extern unsigned IOCTL_TCGETS; + extern unsigned IOCTL_TCSBRK; + extern unsigned IOCTL_TCSBRKP; +-extern unsigned IOCTL_TCSETA; +-extern unsigned IOCTL_TCSETAF; +-extern unsigned IOCTL_TCSETAW; + extern unsigned IOCTL_TCSETS; + extern unsigned IOCTL_TCSETSF; + extern unsigned IOCTL_TCSETSW; + +base-commit: ba5a6787374dea3e90f09771134d16b9f6d2714e +-- +2.50.1 + diff --git a/16.0.0/gentoo/README.history b/16.0.0/gentoo/README.history index 7020432..a0f16ff 100644 --- a/16.0.0/gentoo/README.history +++ b/16.0.0/gentoo/README.history @@ -2,6 +2,7 @@ + 86_all_PR121190-vect-Fix-insufficient-alignment-requirement-for-spec.patch + 87_all_PR121020-vect-Add-missing-skip-vector-check-for-peeling-with-.patch + + 88_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch 7 21 July 2025
