From b4b7464b57190287cb1bfc5eb56f63148a508f0c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 21 Nov 2019 01:06:47 +0000 Subject: [PATCH] re PR go/92605 (r278509 causes/reveals issue in building go library) PR go/92605 runtime: declare runtime_usestackmaps in stack.c, not runtime.h Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/208161 From-SVN: r278540 --- gcc/go/gofrontend/MERGE | 2 +- libgo/runtime/runtime.h | 2 +- libgo/runtime/stack.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 7050d78103e..27e74e5cf68 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -9cc7092b84c38d77d98ed856f1f613a6ca27122d +017830d2a4bd2efbddf5e841ba9ccff8acf9d7c8 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 399df510145..89134c1d0e0 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -475,7 +475,7 @@ bool scanstackwithmap(void*) bool doscanstack(G*, void*) __asm__("runtime.doscanstack"); -bool runtime_usestackmaps; +extern bool runtime_usestackmaps; bool probestackmaps(void) __asm__("runtime.probestackmaps"); diff --git a/libgo/runtime/stack.c b/libgo/runtime/stack.c index aff8dd524a4..c78f0c4595b 100644 --- a/libgo/runtime/stack.c +++ b/libgo/runtime/stack.c @@ -16,6 +16,8 @@ extern void * __splitstack_find_context (void *context[10], size_t *, void **, #endif +bool runtime_usestackmaps; + // Calling unwind_init in doscanstack only works if it does not do a // tail call to doscanstack1. #pragma GCC optimize ("-fno-optimize-sibling-calls") -- 2.30.2