diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-11-21 01:06:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-11-21 01:06:47 +0000 |
commit | b4b7464b57190287cb1bfc5eb56f63148a508f0c (patch) | |
tree | 57815f6863346324fa074231896232fe07351a9e /libgo/runtime | |
parent | 025f56b7d3061631ce5210520beb0cb7d2764e47 (diff) | |
download | gcc-b4b7464b57190287cb1bfc5eb56f63148a508f0c.zip gcc-b4b7464b57190287cb1bfc5eb56f63148a508f0c.tar.gz gcc-b4b7464b57190287cb1bfc5eb56f63148a508f0c.tar.bz2 |
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
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/runtime.h | 2 | ||||
-rw-r--r-- | libgo/runtime/stack.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index 399df51..89134c1 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 aff8dd5..c78f0c4 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") |