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.

40 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0039-gcc-go-undef-SETCONTEXT_CLOBBERS_TLS-in-proc.c.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 56dc7cac03987e95915032161ff0f7d5a8b8bf36 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
  18. Date: Sun, 30 Aug 2020 19:27:51 +0200
  19. Subject: [PATCH] gcc-go: undef SETCONTEXT_CLOBBERS_TLS in proc.c
  20. ---
  21. libgo/runtime/proc.c | 4 ++++
  22. 1 file changed, 4 insertions(+)
  23. diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
  24. index 274ce01c0bf..92a540bdde9 100644
  25. --- a/libgo/runtime/proc.c
  26. +++ b/libgo/runtime/proc.c
  27. @@ -66,6 +66,10 @@ static void gscanstack(G*);
  28. __thread G *g __asm__(GOSYM_PREFIX "runtime.g");
  29. +/* libucontext does not seem to support tlsbase, undef the macro
  30. + * here to make sure we define initcontext and fixcontext as dummies. */
  31. +#undef SETCONTEXT_CLOBBERS_TLS
  32. +
  33. #ifndef SETCONTEXT_CLOBBERS_TLS
  34. static inline void