aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-09-03 10:37:07 -0700
committerIan Lance Taylor <iant@golang.org>2022-09-06 18:39:50 -0700
commitc0852b51b7a68ada822955eb7ef83d933cc33e47 (patch)
treee9985bf821c8dbdea74b3143fafb1f1aa52cd389 /libgo
parent7a43e52a48b6403a99d3e8ab3105869b4b3c081e (diff)
downloadgcc-c0852b51b7a68ada822955eb7ef83d933cc33e47.zip
gcc-c0852b51b7a68ada822955eb7ef83d933cc33e47.tar.gz
gcc-c0852b51b7a68ada822955eb7ef83d933cc33e47.tar.bz2
runtime: ignore __morestack function in runtime.Callers
We were ignoring all functions starting with "__morestack_", but not the function "__morestack" itself. Without this change, some tests such as recover.go started failing recently, though I'm not sure exactly what changed. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/427935
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/go-callers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/go-callers.c b/libgo/runtime/go-callers.c
index 3178369..1d4dee6 100644
--- a/libgo/runtime/go-callers.c
+++ b/libgo/runtime/go-callers.c
@@ -107,7 +107,7 @@ callback (void *data, uintptr_t pc, const char *filename, int lineno,
p = function;
if (__builtin_strncmp (p, "___", 3) == 0)
++p;
- if (__builtin_strncmp (p, "__morestack_", 12) == 0)
+ if (__builtin_strncmp (p, "__morestack", 11) == 0)
return 0;
}
else if (filename != NULL)