galeb

Једноставна статичка дистрибуција заснована на musl-у
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

0038-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch (998B)


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