From 63b5fb12c3d75e460799c672bbbdd5d29c3cc33c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 4 Mar 2019 00:59:59 +0000 Subject: system/gcc: More Go fixes (build and runtime) --- system/gcc/335-gccgo-signal-ppc32.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 system/gcc/335-gccgo-signal-ppc32.patch (limited to 'system/gcc/335-gccgo-signal-ppc32.patch') diff --git a/system/gcc/335-gccgo-signal-ppc32.patch b/system/gcc/335-gccgo-signal-ppc32.patch new file mode 100644 index 000000000..f44444948 --- /dev/null +++ b/system/gcc/335-gccgo-signal-ppc32.patch @@ -0,0 +1,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; -- cgit v1.2.3-60-g2f50