2022-01-17 20:12:29 +00:00
|
|
|
From c61dfe08fa888a93fd1d65484a79dc4dd4260c03 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: Sun, 30 Aug 2020 19:27:51 +0200
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] gcc-go: undef SETCONTEXT_CLOBBERS_TLS in proc.c
|
2020-09-04 19:21:25 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
libgo/runtime/proc.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
|
2021-11-25 09:09:10 +00:00
|
|
|
index 38bf7a6b255..e50403b5a75 100644
|
2020-09-04 19:21:25 +00:00
|
|
|
--- a/libgo/runtime/proc.c
|
|
|
|
+++ b/libgo/runtime/proc.c
|
|
|
|
@@ -66,6 +66,10 @@ static void gscanstack(G*);
|
|
|
|
|
|
|
|
__thread G *g __asm__(GOSYM_PREFIX "runtime.g");
|
|
|
|
|
|
|
|
+/* libucontext does not seem to support tlsbase, undef the macro
|
|
|
|
+ * here to make sure we define initcontext and fixcontext as dummies. */
|
|
|
|
+#undef SETCONTEXT_CLOBBERS_TLS
|
|
|
|
+
|
|
|
|
#ifndef SETCONTEXT_CLOBBERS_TLS
|
|
|
|
|
|
|
|
static inline void
|
2020-11-13 10:30:52 +00:00
|
|
|
--
|
2022-01-06 15:11:38 +00:00
|
|
|
2.34.1
|
2020-11-13 10:30:52 +00:00
|
|
|
|