Commit b4b7464b by Ian Lance Taylor

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
parent 025f56b7
9cc7092b84c38d77d98ed856f1f613a6ca27122d 017830d2a4bd2efbddf5e841ba9ccff8acf9d7c8
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -475,7 +475,7 @@ bool scanstackwithmap(void*) ...@@ -475,7 +475,7 @@ bool scanstackwithmap(void*)
bool doscanstack(G*, void*) bool doscanstack(G*, void*)
__asm__("runtime.doscanstack"); __asm__("runtime.doscanstack");
bool runtime_usestackmaps; extern bool runtime_usestackmaps;
bool probestackmaps(void) bool probestackmaps(void)
__asm__("runtime.probestackmaps"); __asm__("runtime.probestackmaps");
......
...@@ -16,6 +16,8 @@ extern void * __splitstack_find_context (void *context[10], size_t *, void **, ...@@ -16,6 +16,8 @@ extern void * __splitstack_find_context (void *context[10], size_t *, void **,
#endif #endif
bool runtime_usestackmaps;
// Calling unwind_init in doscanstack only works if it does not do a // Calling unwind_init in doscanstack only works if it does not do a
// tail call to doscanstack1. // tail call to doscanstack1.
#pragma GCC optimize ("-fno-optimize-sibling-calls") #pragma GCC optimize ("-fno-optimize-sibling-calls")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment