]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix build on sparc64-linux-gnu.
authorMartin Liska <mliska@suse.cz>
Mon, 5 Nov 2018 13:34:36 +0000 (14:34 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 5 Nov 2018 13:34:36 +0000 (13:34 +0000)
2018-11-05  Martin Liska  <mliska@suse.cz>

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

From-SVN: r265796

libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_linux.cc

index 8460a0f9ba87b1f99244e779e884f89df854589e..122fc022308eca879f5c1b6bcd6e3155f7f6b6ed 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR bootstrap/82856
index f1f70ec57fc96dc9a42f6f20d4e4f04484f4f26f..30d6521f9e90392a601b568b0478a050cb182f75 100644 (file)
@@ -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];