From: Martin Liska Date: Mon, 5 Nov 2018 13:34:36 +0000 (+0100) Subject: Fix build on sparc64-linux-gnu. X-Git-Tag: basepoints/gcc-10~3318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6388cb295749b56bcdde22dec5bcd27007d31c4f;p=thirdparty%2Fgcc.git Fix build on sparc64-linux-gnu. 2018-11-05 Martin Liska PR sanitizer/87860 * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream r346129. From-SVN: r265796 --- diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 8460a0f9ba87..122fc022308e 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,9 @@ +2018-11-05 Martin Liska + + PR sanitizer/87860 + * sanitizer_common/sanitizer_linux.cc: Cherry-pick upstream + r346129. + 2018-10-31 Joseph Myers PR bootstrap/82856 diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc b/libsanitizer/sanitizer_common/sanitizer_linux.cc index f1f70ec57fc9..30d6521f9e90 100644 --- a/libsanitizer/sanitizer_common/sanitizer_linux.cc +++ b/libsanitizer/sanitizer_common/sanitizer_linux.cc @@ -1944,14 +1944,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 -# ifdef SANITIZER_SOLARIS +# if SANITIZER_SOLARIS # define mc_gregs gregs # endif *pc = ucontext->uc_mcontext.mc_gregs[MC_PC];