commit:     c8c94f09b88542c7293b251c8e5bacb51b057a64
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 23:07:28 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri May 31 23:07:28 2019 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c8c94f09

4.8.5: tweak libsanitizer for modern glibc

Reported-by: Guilherme Amadio
Bug: https://bugs.gentoo.org/671568
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch | 8 ++++++++
 4.8.5/gentoo/README.history                                 | 1 +
 2 files changed, 9 insertions(+)

diff --git a/4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch 
b/4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch
new file mode 100644
index 0000000..479aab0
--- /dev/null
+++ b/4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/671568
+--- a/libsanitizer/tsan/tsan_platform_linux.cc
++++ b/libsanitizer/tsan/tsan_platform_linux.cc
+@@ -294,3 +294,3 @@ int ExtractResolvFDs(void *state, int *fds, int nfd) {
+   int cnt = 0;
+-  __res_state *statp = (__res_state*)state;
++  struct __res_state *statp = (struct __res_state*)state;
+   for (int i = 0; i < MAXNS && cnt < nfd; i++) {

diff --git a/4.8.5/gentoo/README.history b/4.8.5/gentoo/README.history
index 65f15cc..6cf4dd0 100644
--- a/4.8.5/gentoo/README.history
+++ b/4.8.5/gentoo/README.history
@@ -2,6 +2,7 @@
        + 96_all_stage1-ldflags.patch
        + 97_all_libjava-ucontext.patch
        + 98_all_asan-signal_h.patch
+       + 99_all_libsanitizer-res_state-glibc-2.28.patch
 
 1.4            23 Sep 2018
        U 09_all_default-ssp.patch

Reply via email to