libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-12 / patches / Bug106813.patch
blob31fa4171930a7634a1029bb015890b963723b134
2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106813
4 diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c
5 index 528d9b6..865d652 100644
6 --- a/libgo/runtime/go-signal.c
7 +++ b/libgo/runtime/go-signal.c
8 @@ -244,6 +244,10 @@ getSiginfo(siginfo_t *info, void *context __attribute__((unused)))
9 ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.pc;
10 #elif defined(__NetBSD__)
11 ret.sigpc = _UC_MACHINE_PC(((ucontext_t*)(context)));
12 +#elif defined(__x86_64__) && defined(__sun__)
13 + ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[REG_RIP];
14 +#elif defined(__i386__) && defined(__sun__)
15 + ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[REG_RIP];
16 #endif
18 if (ret.sigpc == 0) {