diff options
author | Martin Liska <mliska@suse.cz> | 2018-11-05 14:34:36 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-11-05 13:34:36 +0000 |
commit | 6388cb295749b56bcdde22dec5bcd27007d31c4f (patch) | |
tree | e60c05a3c5ce9548c06462cfea47873510a787b0 /libsanitizer/sanitizer_common | |
parent | 4cc31a3c4ee108d960eb003129f05d5950f08355 (diff) | |
download | gcc-6388cb295749b56bcdde22dec5bcd27007d31c4f.zip gcc-6388cb295749b56bcdde22dec5bcd27007d31c4f.tar.gz gcc-6388cb295749b56bcdde22dec5bcd27007d31c4f.tar.bz2 |
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
Diffstat (limited to 'libsanitizer/sanitizer_common')
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_linux.cc b/libsanitizer/sanitizer_common/sanitizer_linux.cc index f1f70ec..30d6521 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]; |