diff options
author | Yabin Cui <yabinc@google.com> | 2016-01-15 06:21:46 +0000 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-01-15 06:21:46 +0000 |
commit | 19e8c0e2f7add381e14be0a5b75095f8b77a3ee3 (patch) | |
tree | 5a70ca4b7637fe11b575c99d4be4225ce876170a | |
parent | 925d60ee1e6be56b92558035593c8fa5fa3f0e78 (diff) | |
download | bcm5719-llvm-19e8c0e2f7add381e14be0a5b75095f8b77a3ee3.tar.gz bcm5719-llvm-19e8c0e2f7add381e14be0a5b75095f8b77a3ee3.zip |
[tsan] Fix some tiny errors.
Summary:
1. Fix spell error for sigaction.
2. Make line_length <= 80.
Reviewers: llvm-commits, eugenis, kcc, dvyukov
Subscribers: tberghammer, danalbert, srhines
Differential Revision: http://reviews.llvm.org/D16210
llvm-svn: 257872
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | 2 | ||||
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index 8ccac6e1ff8..10a005c4e1e 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc @@ -168,7 +168,7 @@ struct sigaction_t { u32 sa_flags; union { sighandler_t sa_handler; - sigactionhandler_t sa_sgiaction; + sigactionhandler_t sa_sigaction; }; __sanitizer_sigset_t sa_mask; void (*sa_restorer)(); diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc index 244a1e3893c..3e962fcf163 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc @@ -367,9 +367,11 @@ void ReplaceSystemMalloc() { } #if SANITIZER_ANDROID #if defined(__aarch64__) -# define __get_tls() ({ void** __val; __asm__("mrs %0, tpidr_el0" : "=r"(__val)); __val; }) +# define __get_tls() \ + ({ void** __val; __asm__("mrs %0, tpidr_el0" : "=r"(__val)); __val; }) #elif defined(__x86_64__) -# define __get_tls() ({ void** __val; __asm__("mov %%fs:0, %0" : "=r"(__val)); __val; }) +# define __get_tls() \ + ({ void** __val; __asm__("mov %%fs:0, %0" : "=r"(__val)); __val; }) #else #error unsupported architecture #endif @@ -377,8 +379,8 @@ void ReplaceSystemMalloc() { } // On Android, __thread is not supported. So we store the pointer to ThreadState // in TLS_SLOT_TSAN, which is the tls slot allocated by Android bionic for tsan. static const int TLS_SLOT_TSAN = 8; -// On Android, one thread can call intercepted functions after DestroyThreadState(), -// so add a fake thread state for "dead" threads. +// On Android, one thread can call intercepted functions after +// DestroyThreadState(), so add a fake thread state for "dead" threads. static ThreadState *dead_thread_state = nullptr; ThreadState *cur_thread() { |