OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0041-gcc-go-Disable-printing-of-unaccessible-ppc64-struct.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 3f5ee6a593215fbd40975d801ff37cf81a3fced3 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
  18. Date: Mon, 31 Aug 2020 20:26:56 +0200
  19. Subject: [PATCH] gcc-go: Disable printing of unaccessible ppc64 struct members
  20. These struct members do not seem to exist on musl.
  21. ---
  22. libgo/runtime/go-signal.c | 2 +-
  23. 1 file changed, 1 insertion(+), 1 deletion(-)
  24. diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c
  25. index fd1c885f043..e845e453332 100644
  26. --- a/libgo/runtime/go-signal.c
  27. +++ b/libgo/runtime/go-signal.c
  28. @@ -333,7 +333,7 @@ dumpregs(siginfo_t *info __attribute__((unused)), void *context __attribute__((u
  29. runtime_printf("sp %X\n", m->sc_regs[30]);
  30. runtime_printf("pc %X\n", m->sc_pc);
  31. }
  32. -#elif defined(__PPC__) && defined(__LITTLE_ENDIAN__) && defined(__linux__)
  33. +#elif defined(__PPC__) && defined(__LITTLE_ENDIAN__) && defined(__GLIBC__)
  34. {
  35. mcontext_t *m = &((ucontext_t*)(context))->uc_mcontext;
  36. int i;