summaryrefslogtreecommitdiff
path: root/libsanitizer
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2017-01-10 15:22:56 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2017-01-10 15:22:56 +0000
commit97df8fb541f017f9d0a2e62e055719430b2e8c27 (patch)
tree4c1b888a94ddf6a0e09c2d8a3c6a181cfa4215b5 /libsanitizer
parentb6e43945a4bab7dce661d08ccca9cb2fc84bfa81 (diff)
PR sanitizer/78992
* sanitizer_common/sanitizer_platform_limits_posix.h (struct __sanitizer_sigaction): Cherry-pick upstream r291561. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244275 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libsanitizer')
-rw-r--r--libsanitizer/ChangeLog6
-rw-r--r--libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h7
2 files changed, 11 insertions, 2 deletions
diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog
index 3dc49d3ebb04..db9221c13847 100644
--- a/libsanitizer/ChangeLog
+++ b/libsanitizer/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-10 James Clarke <jrtc27@jrtc27.com>
+
+ PR sanitizer/78992
+ * sanitizer_common/sanitizer_platform_limits_posix.h
+ (struct __sanitizer_sigaction): Cherry-pick upstream r291561.
+
2016-11-30 Maxim Ostapenko <m.ostapenko@samsung.com>
* LOCAL_PATCHES: Add revision.
diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
index 066bf41ffef7..c139322839aa 100644
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -633,9 +633,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;