[PATCH] D28309: [sanitizer] Fix sigaction definition on 32-bit sparc

James Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 12:34:52 PST 2017


jrtc27 updated this revision to Diff 83107.
jrtc27 added a comment.

Reinstate compiler-rt/trunk/ prefix


Repository:
  rL LLVM

https://reviews.llvm.org/D28309

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -635,9 +635,12 @@
 #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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28309.83107.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/c8ac6746/attachment.bin>


More information about the llvm-commits mailing list