[compiler-rt] r178755 - [sanitizer] Use ucontext_t instead of "struct ucontext".
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Apr 4 02:03:57 PDT 2013
Author: eugenis
Date: Thu Apr 4 04:03:56 2013
New Revision: 178755
URL: http://llvm.org/viewvc/llvm-project?rev=178755&view=rev
Log:
[sanitizer] Use ucontext_t instead of "struct ucontext".
Fixes Mac build.
Modified:
compiler-rt/trunk/lib/msan/msan_interceptors.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Modified: compiler-rt/trunk/lib/msan/msan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interceptors.cc?rev=178755&r1=178754&r2=178755&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/msan/msan_interceptors.cc Thu Apr 4 04:03:56 2013
@@ -836,7 +836,7 @@ static void SignalHandler(int signo) {
static void SignalAction(int signo, void *si, void *uc) {
__msan_unpoison(si, __sanitizer::struct_sigaction_sz);
- __msan_unpoison(uc, __sanitizer::struct_ucontext_sz);
+ __msan_unpoison(uc, __sanitizer::ucontext_t_sz);
typedef void (*sigaction_cb)(int, void *, void *);
sigaction_cb cb = (sigaction_cb)sigactions[signo];
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc?rev=178755&r1=178754&r2=178755&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.cc Thu Apr 4 04:03:56 2013
@@ -45,9 +45,9 @@ namespace __sanitizer {
unsigned struct_tm_sz = sizeof(struct tm);
unsigned struct_passwd_sz = sizeof(struct passwd);
unsigned struct_sigaction_sz = sizeof(struct sigaction);
- unsigned struct_ucontext_sz = sizeof(struct ucontext);
unsigned struct_itimerval_sz = sizeof(struct itimerval);
unsigned pthread_t_sz = sizeof(pthread_t);
+ unsigned ucontext_t_sz = sizeof(ucontext_t);
#if SANITIZER_LINUX
unsigned struct_rlimit_sz = sizeof(struct rlimit);
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h?rev=178755&r1=178754&r2=178755&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_limits_posix.h Thu Apr 4 04:03:56 2013
@@ -25,9 +25,9 @@ namespace __sanitizer {
extern unsigned struct_tm_sz;
extern unsigned struct_passwd_sz;
extern unsigned struct_sigaction_sz;
- extern unsigned struct_ucontext_sz;
extern unsigned struct_itimerval_sz;
extern unsigned pthread_t_sz;
+ extern unsigned ucontext_t_sz;
#if SANITIZER_LINUX
extern unsigned struct_rlimit_sz;
More information about the llvm-commits
mailing list