From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2116) id 013DD3858D28; Tue, 13 Sep 2022 17:35:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 013DD3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663090558; bh=eLUVrkaY6QrgANxcViEDOQYH1iUag48SVv1zM3DQ0lo=; h=From:To:Subject:Date:From; b=HfwYaeP3fSvU5bX3VgEZQYWGEZRpezhkPSt8q4pigCgN4B/v7AZx5WqguGkX/oPQZ BGQT/sa07X4qC9HqgdLKHIAbTHOva5Ot5N5JKvjbzuUQb4mQdQ3YtGyZJPAtaF0Yg3 TYEdAAppc/Y/9ONuu3ngVcsiHlkdtUiaV7BUtiNI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Ian Lance Taylor To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-8762] runtime: ignore __morestack function in runtime.Callers X-Act-Checkin: gcc X-Git-Author: Ian Lance Taylor X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 19e217a2b9d08508203b6e645b67ab63b17af5f8 X-Git-Newrev: 21a3f43c6888b216ab70ef9aff5c3903ed1f218f Message-Id: <20220913173558.013DD3858D28@sourceware.org> Date: Tue, 13 Sep 2022 17:35:58 +0000 (GMT) List-Id: https://gcc.gnu.org/g:21a3f43c6888b216ab70ef9aff5c3903ed1f218f commit r12-8762-g21a3f43c6888b216ab70ef9aff5c3903ed1f218f Author: Ian Lance Taylor Date: Tue Sep 13 10:33:20 2022 -0700 runtime: ignore __morestack function in runtime.Callers Backport from trunk. 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 Diff: --- libgo/runtime/go-callers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgo/runtime/go-callers.c b/libgo/runtime/go-callers.c index 31783696a08..1d4dee66279 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)