[PATCH] D54030: Fix build on sparc64-linux-gnu.
Martin Liška via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 5 04:30:11 PST 2018
This revision was automatically updated to reflect the committed changes.
marxin marked an inline comment as done.
Closed by commit rL346129: Fix build on sparc64-linux-gnu. (authored by marxin, committed by ).
Herald added subscribers: llvm-commits, delcypher.
Changed prior to commit:
https://reviews.llvm.org/D54030?vs=172546&id=172570#toc
Repository:
rL LLVM
https://reviews.llvm.org/D54030
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
@@ -1946,14 +1946,14 @@
#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
-# ifdef SANITIZER_SOLARIS
+# if SANITIZER_SOLARIS
# define mc_gregs gregs
# endif
*pc = ucontext->uc_mcontext.mc_gregs[MC_PC];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54030.172570.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181105/b4869707/attachment.bin>
More information about the llvm-commits
mailing list