diff options
author | Kostya Serebryany <kcc@google.com> | 2012-12-03 18:39:21 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-12-03 18:39:21 +0000 |
commit | 68aad43bee8b49d41dec72cb4b4eb34cdcd80e9c (patch) | |
tree | d20b9bf079a1d1ea7fa2e9ebce5271c21850ca86 /lib/asan/asan_linux.cc | |
parent | 9c3929e3a0517305bf10698a05282fa0c8d1b5e2 (diff) | |
download | compiler-rt-68aad43bee8b49d41dec72cb4b4eb34cdcd80e9c.tar.gz compiler-rt-68aad43bee8b49d41dec72cb4b4eb34cdcd80e9c.tar.bz2 compiler-rt-68aad43bee8b49d41dec72cb4b4eb34cdcd80e9c.tar.xz |
[asan] two more bits for __sparc__
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_linux.cc')
-rw-r--r-- | lib/asan/asan_linux.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc index 2f89a1ef..068f7b10 100644 --- a/lib/asan/asan_linux.cc +++ b/lib/asan/asan_linux.cc @@ -158,7 +158,9 @@ void GetStackTrace(StackTrace *stack, uptr max_s, uptr pc, uptr bp) { stack->trace[0] = pc; if ((max_s) > 1) { stack->max_size = max_s; -#if defined(__arm__) || defined(__powerpc__) || defined(__powerpc64__) +#if defined(__arm__) || \ + defined(__powerpc__) || defined(__powerpc64__) || \ + defined(__sparc__) _Unwind_Backtrace(Unwind_Trace, stack); // Pop off the two ASAN functions from the backtrace. stack->PopStackFrames(2); |