diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-04 00:59:59 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-03-04 00:59:59 +0000 |
commit | 63b5fb12c3d75e460799c672bbbdd5d29c3cc33c (patch) | |
tree | 4542b4d256847c3bf355ff9dc47b04bf0eda15a6 /system/gcc/335-gccgo-signal-ppc32.patch | |
parent | 97aec267e0f0c6a4b3d2e88abc05eb36b4b6e2e2 (diff) | |
download | packages-63b5fb12c3d75e460799c672bbbdd5d29c3cc33c.tar.gz packages-63b5fb12c3d75e460799c672bbbdd5d29c3cc33c.tar.bz2 packages-63b5fb12c3d75e460799c672bbbdd5d29c3cc33c.tar.xz packages-63b5fb12c3d75e460799c672bbbdd5d29c3cc33c.zip |
system/gcc: More Go fixes (build and runtime)
Diffstat (limited to 'system/gcc/335-gccgo-signal-ppc32.patch')
-rw-r--r-- | system/gcc/335-gccgo-signal-ppc32.patch | 14 |
1 files changed, 14 insertions, 0 deletions
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; |