re PR go/92605 (r278509 causes/reveals issue in building go library)
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 21 Nov 2019 01:06:47 +0000 (01:06 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 21 Nov 2019 01:06:47 +0000 (01:06 +0000)
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
libgo/runtime/runtime.h
libgo/runtime/stack.c

index 7050d78103ee39429341140a0a251476ee398996..27e74e5cf682b4f704dc86a04d1ea09270335a23 100644 (file)
@@ -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.
index 399df51014587abf8c664407aee756e781bce1a9..89134c1d0e02528676d30db77de9251938d7982f 100644 (file)
@@ -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");
index aff8dd524a47c4c3804e0ac7c9565a08dff50451..c78f0c4595b3766a9bea8843bfcc3eff4061cafb 100644 (file)
@@ -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")