diff options
| author | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2017-01-10 12:41:18 +0000 |
|---|---|---|
| committer | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2017-01-10 12:41:18 +0000 |
| commit | 0f0407331e6a18f8e915f3f8facdf940c034da40 (patch) | |
| tree | 85ebe23390799f70e7fe8b06aebfe7054baf1ac4 | |
| parent | c1e2ab3626c535858ec80af905f52deb2d49e594 (diff) | |
| download | bcm5719-llvm-0f0407331e6a18f8e915f3f8facdf940c034da40.tar.gz bcm5719-llvm-0f0407331e6a18f8e915f3f8facdf940c034da40.zip | |
[sanitizer] Fix sigaction definition on 32-bit sparc
Patch by James Clarke.
Differential Revision: https://reviews.llvm.org/D28309
llvm-svn: 291561
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h index 477a0ecbe0e..c2d9f2cd376 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h @@ -635,9 +635,12 @@ namespace __sanitizer { #ifndef __mips__ #if defined(__sparc__) #if __GLIBC_PREREQ (2, 20) - // On sparc glibc 2.19 and earlier sa_flags was unsigned long, and - // __glibc_reserved0 didn't exist. + // On sparc glibc 2.19 and earlier sa_flags was unsigned long. +#if defined(__arch64__) + // To maintain ABI compatibility on sparc64 when switching to an int, + // __glibc_reserved0 was added. int __glibc_reserved0; +#endif int sa_flags; #else unsigned long sa_flags; |

