From: Matthias Klose Date: Sun, 23 Sep 2018 08:36:14 +0000 (+0000) Subject: backport: re PR sanitizer/86012 (libsanitizer build failure on sparc64-linux-gnu) X-Git-Tag: releases/gcc-6.5.0~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4230708946741dfbfccaa5889c0076b5ca292e02;p=thirdparty%2Fgcc.git backport: re PR sanitizer/86012 (libsanitizer build failure on sparc64-linux-gnu) 2017-09-23 Matthias Klose Backported from the gcc-7-branch: 2018-05-31 Matthias Klose PR sanitizer/86012 * sanitizer_common/sanitizer_platform_limits_posix.cc: Define SIZEOF_STRUCT_USTAT for 32bit sparc. From-SVN: r264511 --- diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 2c88691ebed0..ae4f170dc418 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,12 @@ +2017-09-23 Matthias Klose + + Backported from the gcc-7-branch: + 2018-05-31 Matthias Klose + + PR sanitizer/86012 + * sanitizer_common/sanitizer_platform_limits_posix.cc: Define + SIZEOF_STRUCT_USTAT for 32bit sparc. + 2017-09-21 Matthias Klose Backported from the gcc-7-branch: diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc index 98825b584d24..069d8d557def 100644 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc @@ -249,7 +249,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