blob: f44444948549faa0352671266f0615ec97d47dba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- gcc-8.3.0/libgo/runtime/go-signal.c.old 2019-03-02 22:02:02.250000000 +0000
+++ gcc-8.3.0/libgo/runtime/go-signal.c 2019-03-03 02:04:13.220000000 +0000
@@ -222,7 +222,11 @@
#endif
#ifdef __PPC__
#ifdef __linux__
+ #ifdef __PPC64__
ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gp_regs[32];
+ #else
+ ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[32];
+ #endif
#endif
#ifdef _AIX
ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.jmp_context.iar;
|