commit:     2dbd672ae7da4a9a12b8eea686d1f66f339e6d0e
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  8 08:18:36 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Jan  8 08:18:36 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=2dbd672a

9.4.9: backport ustat size for asan on __sparc__

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 4.9.4/gentoo/102_all_ustat-sparc.patch | 27 +++++++++++++++++++++++++++
 4.9.4/gentoo/README.history            |  3 +++
 2 files changed, 30 insertions(+)

diff --git a/4.9.4/gentoo/102_all_ustat-sparc.patch 
b/4.9.4/gentoo/102_all_ustat-sparc.patch
new file mode 100644
index 0000000..98cc48b
--- /dev/null
+++ b/4.9.4/gentoo/102_all_ustat-sparc.patch
@@ -0,0 +1,27 @@
+From 27453e962b3fe2f918c5105b2a48ec3e92d4c873 Mon Sep 17 00:00:00 2001
+From: doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4>
+Date: Thu, 31 May 2018 09:57:33 +0000
+Subject: [PATCH] 2018-05-31  Matthias Klose  <d...@ubuntu.com>
+
+        PR sanitizer/86012
+        * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
+        SIZEOF_STRUCT_USTAT for 32bit sparc.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260990 
138bc75d-0d04-0410-961f-82ee72b054a4
+---
+
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
+@@ -256,7 +256,7 @@ namespace __sanitizer {
+   || defined(__x86_64__)
+ #define SIZEOF_STRUCT_USTAT 32
+ #elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
+-  || defined(__powerpc__) || defined(__s390__)
++  || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
+ #define SIZEOF_STRUCT_USTAT 20
+ #else
+ #error Unknown size of struct ustat
+-- 
+2.24.1
+

diff --git a/4.9.4/gentoo/README.history b/4.9.4/gentoo/README.history
index 0d5fc99..7ed72a8 100644
--- a/4.9.4/gentoo/README.history
+++ b/4.9.4/gentoo/README.history
@@ -1,3 +1,6 @@
+2              TODO
+       + 102_all_ustat-sparc.patch
+
 1.4            1 Jun 2019
        + 99_all_remove-lieee.patch
        + 100_all_avoid-ustat-glibc-2.28.patch

Reply via email to