Commit 6388cb29 by Martin Liska Committed by Martin Liska

Fix build on sparc64-linux-gnu.

2018-11-05  Martin Liska  <mliska@suse.cz>

	PR sanitizer/87860
	* sanitizer_common/sanitizer_linux.cc:  Cherry-pick upstream
	r346129.

From-SVN: r265796
parent 4cc31a3c
2018-11-05 Martin Liska <mliska@suse.cz>
PR sanitizer/87860
* sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream
r346129.
2018-10-31 Joseph Myers <joseph@codesourcery.com> 2018-10-31 Joseph Myers <joseph@codesourcery.com>
PR bootstrap/82856 PR bootstrap/82856
......
...@@ -1944,14 +1944,14 @@ static void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) { ...@@ -1944,14 +1944,14 @@ static void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp) {
#elif defined(__sparc__) #elif defined(__sparc__)
ucontext_t *ucontext = (ucontext_t*)context; ucontext_t *ucontext = (ucontext_t*)context;
uptr *stk_ptr; uptr *stk_ptr;
# if defined (__sparcv9) # if defined(__sparcv9) || defined (__arch64__)
# ifndef MC_PC # ifndef MC_PC
# define MC_PC REG_PC # define MC_PC REG_PC
# endif # endif
# ifndef MC_O6 # ifndef MC_O6
# define MC_O6 REG_O6 # define MC_O6 REG_O6
# endif # endif
# ifdef SANITIZER_SOLARIS # if SANITIZER_SOLARIS
# define mc_gregs gregs # define mc_gregs gregs
# endif # endif
*pc = ucontext->uc_mcontext.mc_gregs[MC_PC]; *pc = ucontext->uc_mcontext.mc_gregs[MC_PC];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment