projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
233a02d
)
Fix build on sparc64-linux-gnu.
author
Martin Liska
<mliska@suse.cz>
Mon, 5 Nov 2018 12:27:43 +0000
(12:27 +0000)
committer
Martin Liska
<mliska@suse.cz>
Mon, 5 Nov 2018 12:27:43 +0000
(12:27 +0000)
Differential Revision: https://reviews.llvm.org/D54030
llvm-svn: 346129
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
index
49040e4
..
d6ffc70
100644
(file)
--- a/
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
+++ b/
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
@@
-1946,14
+1946,14
@@
static void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
#elif defined(__sparc__)
ucontext_t *ucontext = (ucontext_t*)context;
uptr *stk_ptr;
-# if defined
(__sparcv9
)
+# if defined
(__sparcv9) || defined (__arch64__
)
# ifndef MC_PC
# define MC_PC REG_PC
# endif
# ifndef MC_O6
# define MC_O6 REG_O6
# endif
-# if
def
SANITIZER_SOLARIS
+# if SANITIZER_SOLARIS
# define mc_gregs gregs
# endif
*pc = ucontext->uc_mcontext.mc_gregs[MC_PC];