diff mbox

[alpha] : libgo patch: also recognize alpha in signal handler

Message ID CAFULd4aiLTnEYgCfQs1J3vT_ZDN7UT5SNd3C-rCdMB+Wk3Xmnw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 22, 2017, 5:59 p.m. UTC
Similar patch to the one for PPC [1].

[1] https://gcc.gnu.org/ml/gcc-patches/2017-07/msg01334.html

Tested on alphaev68-pc-linux-gnu.

Uros.

Comments

Ian Lance Taylor July 26, 2017, 8:20 p.m. UTC | #1
On Sat, Jul 22, 2017 at 10:59 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Similar patch to the one for PPC [1].
>
> [1] https://gcc.gnu.org/ml/gcc-patches/2017-07/msg01334.html
>
> Tested on alphaev68-pc-linux-gnu.

Thanks.  Committed to mainline.

Ian
diff mbox

Patch

Index: libgo/runtime/go-signal.c
===================================================================
--- libgo/runtime/go-signal.c	(revision 250443)
+++ libgo/runtime/go-signal.c	(working copy)
@@ -215,6 +215,11 @@ 
 	ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[REG_EIP];
   #endif
 #endif
+#ifdef __alpha__
+  #ifdef __linux__
+	ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.sc_pc;
+  #endif
+#endif
 #ifdef __PPC__
   #ifdef __linux__
 	ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.regs->nip;