mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 05:44:15 +08:00
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
This commit is contained in:
parent
4cc31a3c4e
commit
6388cb2957
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user