summaryrefslogtreecommitdiff
path: root/system/gcc/335-gccgo-signal-ppc32.patch
blob: 1e52b925ec93dd108f3f3e8d34b0c4b02314db58 (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
@@ -249,7 +249,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;