pmaports/cross/gcc-armhf/0038-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch

27 lines
998 B
Diff
Raw Normal View History

From aaf89e0bcb0b490548b781cc8e9234dc2f858520 Mon Sep 17 00:00:00 2001
2020-09-04 19:21:25 +00:00
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
Date: Mon, 31 Aug 2020 20:26:56 +0200
2020-12-03 23:13:25 +00:00
Subject: [PATCH] gcc-go: Disable printing of unaccessible ppc64 struct members
2020-09-04 19:21:25 +00:00
These struct members do not seem to exist on musl.
---
libgo/runtime/go-signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c
index fd1c885f043..e845e453332 100644
--- a/libgo/runtime/go-signal.c
+++ b/libgo/runtime/go-signal.c
@@ -333,7 +333,7 @@ dumpregs(siginfo_t *info __attribute__((unused)), void *context __attribute__((u
runtime_printf("sp %X\n", m->sc_regs[30]);
runtime_printf("pc %X\n", m->sc_pc);
}
-#elif defined(__PPC__) && defined(__LITTLE_ENDIAN__) && defined(__linux__)
+#elif defined(__PPC__) && defined(__LITTLE_ENDIAN__) && defined(__GLIBC__)
{
mcontext_t *m = &((ucontext_t*)(context))->uc_mcontext;
int i;
--
2021-03-14 10:32:02 +00:00
2.30.1